Last answered:

03 Jul 2023

Posted on:

18 Nov 2022

0

Resolved: SELECT first_name FROM employees GROUP BY first name did not work properly

Hi, unfortunately after running this query I got a lost of first names of employees not in Alphabetical Order like in Your video, just random names.
There was no error however just no alph.order. Why so?
Thx,
Ana

5 answers ( 1 marked as helpful)
Posted on:

18 Nov 2022

2

Ups....tried again and experimented, it worked out only with the line ORDER BY first_name ASC. Strange, I assume this Mysql version just needs it.

Posted on:

18 Nov 2022

0

Had the same problem and figured it out just like you did. In the initial description, he does say GROUP BY has to be used with the ORDER BY clause. But in his demo, he doesn't do it, but it works all the same. Not sure what the real problem is.

Instructor
Posted on:

18 Nov 2022

0

Hi Anna and Puvanan!
Thanks for reaching out.

I am glad that you have resolved your issue. We need the ORDER BY clause.

Hope this helps.
Best,
Tsvetelin

Posted on:

03 Jul 2023

0

Hi Instructor,

Actually i had the same problem and after reading the comments i resolved it but there is 1 more problem i found that here 1000 rows returned but in your video its only 1275. Will you please help me out.

Posted on:

03 Jul 2023

0

My this issue also has been resolved.

Thankyou.

Submit an answer