Code: Select all
Sample Question:
--Question s) Find the name of the customer with the oldest vehicle. Show also the year of the vehicle
SELECT * FROM (
SELECT DISTINCT(FirstName || ' ' || LastName) AS Name, Year
FROM Customer, Vehicle
WHERE Customer.CustNo = Vehicle.CustNo
ORDER BY Year
)
WHERE ROWNUM <=1;
As you can see that is my answer to the question. It took me several hours to figure it out but I did. Now I have stumbled upon some other questions that don't seem to be as extensive but are just as mind boggling. I will let everyone know how I am Doing with the assignment. I think I have 5 or 6 questions left. but they are hurting my head. maybe I need a break for a little while.