Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What would be the syntax for this?
Message
 
 
To
30/11/1999 07:56:53
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00296780
Message ID:
00296797
Views:
27
Hi:

>Using a WHERE on the Room_No and getting ONE unique set of consecutive >Singer_No in Singer_No ORDER. The following is the result I'm looking for.

SET ORDER TO 0
SELECT room_no,singer_no,song_no;
FROM MyTable ;
WHERE room_no = 1 ;
GROUP BY room_no ;
ORDER BY 2

VFP will pick first singer_no by natural order.

HTH,

--Paul
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform