I'm pretty new to SQL and I have only worked with one-two table(s) at time. I got an assignment now against multiple tables, and the queries it wants me to solve is really hard. I was just wondering if you could help me to solve and understand these questions?
Employee(Empno, FirstName, LastName, Address, Zip, Date of Birth, Job, Salary)
Customer(Custno, FirstName, LastName, Addresse, Zip, Sex)
Salary(Salary, Salary at Year)
Order(OrderNo, OrderDate, Custno, Empno, SentDate, PaidDate)
OrderLine(OrderNo, Itemno, PricePerUnit, Total)
PriceHistory(Itemno, Date, OldPrice)
Item(Itemno, Name, Prce, Catno, Total, Section)
The first one I'm having a hard time with is:
- Find last name, first name and amount on the customer who bought the most total.
Could anyone tell me how I to solve this? Explain how..
Edited by Stjerne: a