LibyasFinest
LibyasFinest

Reputation: 11

MYSQL Setting Chronological Order

select guest_frs, guest_sur, town, customer.postcode 
from table1,table2 
where name = "xxxxx"

I need to put names of clients in chronological order on mysql but I'm unsure on how to do this. Help is appreciated. Thanks.

Upvotes: 1

Views: 780

Answers (1)

FBHY
FBHY

Reputation: 1004

Look at ORDER BY

select guest_frs, guest_sur, town, customer.postcode, yourfield
from table1,table2 
where name = "xxxxx"
order by yourfield ASC

Upvotes: 1

Related Questions