Jump to content

Having trouble trying to execute queries


malcom1985

Recommended Posts

I hope this post is in the right place, I'm not entirely sure that it is. If it isn't, please move this to the correct place. Hopefully I am in the right place though.

 

I'm trying to figure out exactly how I would get SQL to display the unavailable options on a car within my table. The question in the assignment I have wants to know which options are unavailable on a 93 FORD EXPLORER?  (Code, Description, Price), and so far I've tried selecting just those three columns but I'm not sure I'm doing this correctly.

 

So far I have:

select Code,Description,Price from Options

where not exists

(select Make,Year from Vehicle

select 'Ford Explorer' from make

select 93 from year);

 

But that doesn't exactly work. Could anyone offer some suggestions?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.