thebigwillie
Member
- Joined
- Mar 25, 2004
- Messages
- 75
Hey everyone, I'm having trouble with this question. Its an SQL statement:
FROM Contacts
WHERE State = "NSW"
SELECT Firstname, Lastname, Email
ORDER Lastname, Firstname
The bold bit is the part I dont really understand.....Whats ORDER actually mean? In the standards package they set it out like:
Firstname, Lastname, Email
The the ORDER says its Lastname, Firstname *confused*
If I attempted the question it would be like:
Lastname, Firstname, Email
But the right answer is Firstname, Lastname, Email
Could someone plz explain why it is like this? And what ORDER means? Thanx in advance
FROM Contacts
WHERE State = "NSW"
SELECT Firstname, Lastname, Email
ORDER Lastname, Firstname
The bold bit is the part I dont really understand.....Whats ORDER actually mean? In the standards package they set it out like:
Firstname, Lastname, Email
The the ORDER says its Lastname, Firstname *confused*
If I attempted the question it would be like:
Lastname, Firstname, Email
But the right answer is Firstname, Lastname, Email
Could someone plz explain why it is like this? And what ORDER means? Thanx in advance