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.

SQL Statement

Empfohlene Antworten

Hi,

ich hab grad ein paar probs mit meinem oracle sql statement ... eventuell kann mir ja wer helfen ...


select to_char(begin,'HH24') "H", count(callcount) "WV"

from akstat

where trunc(begin) = to_date('19.10.02','dd.mm.yy')

and result like 'WV'

group by to_char(begin,'HH24');


select to_char(begin,'HH24') "H", count(callcount) "WV"

from akstat

where trunc(begin) = to_date('19.10.02','dd.mm.yy')

and result [b]not[/b] like 'WV'

group by to_char(begin,'HH24');

diese 2 statements sollen nun zu einem zusammengefasst werden, sodass ich in der ersten spalte den uhrzeit wert habe, in der 2ten den callcount mit dem result 'WV' und in der dritten die callcount mit den uebrigen werten, ohne 'WV' ...

also im prinzip ein non-equi-inner-join ... :D

oder mit subselects ... aber ich bekomm das irgendwie net hin. :(

problem geloest. :)


select ak1.h, ak1.wv, ak2.h, ak2.nonwv

from (

  select to_char(begin,'HH24') h, count(callcount) wv

  from akstat

  where trunc(begin) = to_date('19.10.02','dd.mm.yy')

  and result like 'WV'

  group by to_char(begin,'HH24')

  ) ak1, (

  select to_char(begin,'HH24') h, count(callcount) nonwv

  from akstat

  where trunc(begin) = to_date('19.10.02','dd.mm.yy')

  and result not like 'WV'

  group by to_char(begin,'HH24')

  ) ak2

where ak1.h = ak2.h

order by 1

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

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.