Oracle Assignment :S
Posted: Sun Apr 04, 2010 10:29 am
So in my DB class we are working in oracle and ffor being an introductry course it is getting pretty intense.
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.
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.