Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

"alternate" results

Status
Not open for further replies.

sgtheinz

Technical User
Jun 6, 2008
1
FR
Hi there !

I need some help on a query design. Look at this exemple table :

+------+--------+
| id | ville |
+------+--------+
| 1 | Paris |
| 2 | Paris |
| 3 | Paris |
| 4 | Lyon |
| 5 | Lyon |
| 6 | Rennes |
| 7 | Rennes |
+------+--------+

I would like to find a query wich can order the result on the 'ville' col, where items are "alternate".

Like :

+------+--------+
| id | ville |
+------+--------+
| 1 | Paris |
| 4 | Lyon |
| 6 | Rennes |
| 2 | Paris |
| 5 | Lyon |
| 7 | Rennes |
| 3 | Paris |
+------+--------+

Thx !
 
What have you tried so far and where in your code are you stuck ?

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top