Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem using Group By with a SQL Select
Message
From
08/08/2002 11:16:24
Christian Cote
Les Logiciels Onoma Inc.
Longueuil, Quebec, Canada
 
 
General information
Forum:
Oracle
Category:
Reports
Miscellaneous
Thread ID:
00687500
Message ID:
00687551
Views:
15
Can you try this?

select order_header.client_id as clientid,
DECODE('Shipped', 'Hold', order_header.ORDER_DATE, 'Shipped', order_header.DELIVER_BY_DATE, NULL) as TheDate,
count(order_header.FROM_SITE_ID)
from order_header
group by client_id, client_id, order_header.ORDER_DATE, order_header.DELIVER_BY_DATE

It should work. Good lock!
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform