Last answered:

21 Apr 2020

Posted on:

17 Apr 2020

0

Resolved: What is the second rule when organizing records when ORDER BY (for ex. first_name) is used and more people have same first_name?

Hello.

What is the second rule when organizing records when ORDER BY (for ex. first_name) is used and more people have same first_name?
Is there some rule or is it random?
Thanks.

Cheers,
Maros J

1 answers ( 0 marked as helpful)
Instructor
Posted on:

21 Apr 2020

1
Hi Maros! Thanks for reaching out. In this particular lecture, we only provide an example. Otherwise, you can use the primary key when ordering the data, for instance. Alternatively, depending on the situation, you could add a second field like this:
...
ORDER BY first_name, last_name DESC;
Hope this helps.
Best,
Martin

Submit an answer