MySQL Forums
Forum List  »  Newbie

2 Tables, get lowest number
Posted by: Tore Brukstuen
Date: October 12, 2017 03:03PM

Hello,

tried to look around, tested tons of code, but as a newbie with mysql I'm not able to fix this myself. I want to learn, but I'm stuck.

I have 2 tables - customers and orders.
From the customers table I need to grab & sort the name of the costumers (cname) together with the order number (ono).

customers have cno, cname
orders have cno, ono.

Question:
Any idea how I can get the lowest values from (count) ono and the name linked to it?


-Thanks

Options: ReplyQuote


Subject
Written By
Posted
2 Tables, get lowest number
October 12, 2017 03:03PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.