Jump to content

I need query help with a query!


Schnix

Recommended Posts

I have two tables. One with a list of questions, and one where I have put the users, and the id of the question. every time they answer a question correctly, it should appear in this table. as a username and question id.

 

The connection/table is:

 

table one: question id - subject id

table to: question id - subject id - username

 

I want to check if the user has answered the question - that is: there is an entry in the second table

 

What I need to do is:

If the user is logged in, and he wants to see a list over all questions he has not answered, the following need to be done:

compare the question id and subject id where the username is matching. If the question id and subject id is matching in the two tables, then show

table one, EXCLUDING the matching data from table two.

 

How can I do this?

 

- Schnix

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.