Question

4. Result: Obtain a list of every vehicle passing camera 10 on 25th Feb 2007. whn reg name Show the time, the registration and the name of the keeper if available. SELECT iwhn, i.reg, k.name FROM image i, keeper k, vehicle v WHERE i.reg-v.id AND k.id . v keeper AND ǐwhn·2007-02-25 Sebmit SQL Restore default

PK take penm OIN NULL keeper PK id name address mage PK. FK permit PK. FK reg PK camera sDate charge Type 1.1 records ▼ holds ▲ vehicle owner keeper

How do i fix my above code

0 0
Add a comment Improve this question Transcribed image text
Answer #1

QUERY:

SELECT vehicle.id, image.whn, image.reg, vehicle.keeper FROM vehicle, image, permit WHERE image.camera = 10 AND image.whn = 2007-02-25 AND image.reg IN (SELECT reg FROM permit);

Explanation:

Here we need to select the vehicle captured by camera 10. So image.camera = 10 condition is included.

Also, reg number should be in the permit of the vehicle.

Add a comment
Know the answer?
Add Answer to:
How do i fix my above code 4. Result: Obtain a list of every vehicle passing...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT