Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem using Group By with a SQL Select
Message
De
08/08/2002 11:16:24
Christian Cote
Les Logiciels Onoma Inc.
Longueuil, Québec, Canada
 
 
À
08/08/2002 10:13:26
Information générale
Forum:
Oracle
Catégorie:
Rapports
Divers
Thread ID:
00687500
Message ID:
00687551
Vues:
14
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!
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform