Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem Query
Message
De
18/07/2000 10:15:56
 
 
À
Tous
Information générale
Forum:
Oracle
Catégorie:
PL/SQL
Titre:
Problem Query
Divers
Thread ID:
00393781
Message ID:
00393781
Vues:
47
Hi,

I have a problem with the following query:

Select training.idtraining, training.course, training.subject, training.held from training group by training.course

I'm trying to select records from the training table, with one record for each unique value of the training.course field.

The above query works in SQL Server and VFP, but Oracle doesn't like it because:

"each column in the select, which is not an
aggregate function, must be included in the GROUP BY clause"

I can't use SELECT DISTINCT, because training.idtraining is unique for each record and this causes all records to be returned.

How do I get the result I want from Oracle ?

Best.

Matt.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform