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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

What should I do to sort 3 items ?

Status
Not open for further replies.

desprits

Programmer
Feb 14, 2004
40
CA
What should I do to sort 3 items in a dataBase?
For exemple :
Zoro 5 Fev 18:20
Zoro 5 Fev 17:25
Amanda 5 Fev 21:40
Jack 6 Fev 19.30
Amanda 7 Fev 03:22

Me I would like to have the result :
Amanda 5 Fev 21:40
Amanda 7 Fev 03:22
Jack 6 Fev 19:30
Zoro 5 Fev 17:25
Zoro 5 Fev 18:20
 
Use "Order By" in the SQL statement.

"Life is full of learning, and then there is wisdom"
 
How should I do that, I don't know realy well SQL statement ..?
 
Hi,

- With respect to SQL there are tons of web sites that give SQL tutorials, but and SQL statement goes like this:

SELECT item1, item2 .....
FROM tablename
WHERE item1 = ?????
ORDER BY item1, item2

- but, how are you extracting the data from the DB?

"Life is full of learning, and then there is wisdom"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top