I'm a complete SQL noob and have no idea how to utilize JOINs. If someone could help with this query, it would be great.
I have a table questions which contains two columns: queid and que.
Another table options, contains the corresponding options for the questions, and has columns optionid, queid,option.
How can I do a SELECT statement such that I can join both tables together based on queid ?
Something like:
SELECT * from questions,options where queid=1