It's UWAweek 47

help1402

This forum is provided to promote discussion amongst students enrolled in CITS1402 Relational Database Management Systems.

Please consider offering answers and suggestions to help other students! And if you fix a problem by following a suggestion here, it would be great if other interested students could see a short "Great, fixed it!"  followup message.

How do I ask a good question?
Displaying selected article
Showing 1 of 684 articles.
Currently 123 other people reading this forum.


 UWA week 41 (2nd semester, week 11) ↓
SVG not supported

Login to reply

👍x1
helpful
1:26pm Mon 7th Oct, ANONYMOUS

Question 8: Create a view ('ActiveHiresWithInsurance') to show active hires with insurance details (show HireID, Date, PolicyType, and Cost), between the dates 5th of Jan 2024 and 25th May 2024, and for all insurance entries with a cost of more then $20.

Avoid joining insurance with Insurance ip ON hv.insuranceID = ip.insuranceID, it will result in hv not having insuranceID column

I tried checking with this query and wasting another 0.1 point only to find out HiredVehicle only contains HireID Date CardType CardNo Odometer Days VehicleID

CREATE VIEW IF NOT EXISTS ActiveHiresWithInsurance AS
SELECT hv.*
FROM HiredVehicle hv;

I don't know the name of the weak entity to link it to HiredVehicle so if anyone found it please also drop it down below

The University of Western Australia

Computer Science and Software Engineering

CRICOS Code: 00126G
Written by [email protected]
Powered by history
Feedback always welcome - it makes our software better!
Last modified  8:08AM Aug 25 2024
Privacy policy