Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Empfohlene Antworten

Veröffentlicht

Hallo

Hier mal mal mein Select das ich zu Übungszwecken erstellen musste:

Select EZN, KZT1.JSCHM, EZDAT22, KZT1.EZDATUM, KZT1.TANR, KPT1.SEQU, STOFFE.ST_SCHL, STOFFE.ANLAGE, TEXTK,

ART, KURZBEZ, SGEW, IGEW, SGEW-IGEW Differenz

From OXRU.KZT1, OXRU.KPT1, OXRU.STOFFE, OXRU.ANLAGENTEXTE, OXRU.STTEXT

Where KZT1.JSCHM = KPT1.JSCHM

and KZT1.JSCHM = STOFFE.JSCHM

and STOFFE.ANLAGE = ANLAGENTEXTE.ANLAGE

and STOFFE.ST_SCHL = STTEXT.ST_SCHL

and EZDAT22 between to_date('01.10.2008 00:00:00','DD.MM.YYYY HH24:MI:SS')

and to_date('31.10.2008 23:59:59','DD.MM.YYYY HH24:MI:SS')

Order by JSCHM, ANLAGE, ST_SCHL

Jetzt habe ich folgende Aufgabe:

Die Schmelznummern (Bsp.: 2008123456) sollen so ausgegeben werden:

Bsp.: 2008-123456

Ich steh aber total auf dem Schlauch^^ Wie mach ich das?

Brauche ich da einen To_Char?

Alles was die Schmelzen betrifft hab ich fett gedruckt ;)

Probiers mal so:

Select EZN, Format([KZT1.JSCHM],"dd\.mm\.yyyy"), EZDAT22

__________________________

EDIT:

sry. gar nicht aufgepasst. ist ja kein Date

so sollte es aber gehn:

Format([KZT1.JSCHM],"####-######")

Bearbeitet von LadyPreis
Dummheit

Da bekomme ich den fehler, dass ein Ausdruck fehlt

Mh ne leider kommt wieder der Fehler, dass ein Ausdruck fehlt...

Jetzt habe ich folgende Aufgabe:

Die Schmelznummern (Bsp.: 2008123456) sollen so ausgegeben werden:

Bsp.: 2008-123456

Ich steh aber total auf dem Schlauch^^ Wie mach ich das?

Brauche ich da einen To_Char?

Alles was die Schmelzen betrifft hab ich fett gedruckt ;)

Hallo,

Welche Datenbank benutzt du denn ? Bei Oracle könntest du folgendes versuchen :



SELECT blablabla, SUBSTR([B]KZT1.JSCHM[/B],1,4) || '-' || SUBSTR([B]KZT1.JSCHM[/B],5), etcetc


Gruss

Erstelle ein Konto oder melde dich an, um einen Kommentar zu schreiben.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.