Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem Query
Message
From
18/07/2000 10:15:56
 
 
To
All
General information
Forum:
Oracle
Category:
PL/SQL
Title:
Problem Query
Miscellaneous
Thread ID:
00393781
Message ID:
00393781
Views:
49
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.
Next
Reply
Map
View

Click here to load this message in the networking platform