Scarpozzi
Lifer
I'm learning SQL queries. Working with multiple tables, joins, etc...
One of the problems I have is that there is a table with questions and answers. I have to do a sub query to create a value. I've seen this done by throwing a whole subquery in the SELECT statement of the main query, then assigning it a name "VALUE1". Just an example.
Can I use the value of that subquery in the WHERE statement of the main query?
Basically, I'm trying to isolate records. I may need to rethink my query design...just wondering if that's possible. Sorry if my lingo is poor....still learning.
One of the problems I have is that there is a table with questions and answers. I have to do a sub query to create a value. I've seen this done by throwing a whole subquery in the SELECT statement of the main query, then assigning it a name "VALUE1". Just an example.
Can I use the value of that subquery in the WHERE statement of the main query?
Basically, I'm trying to isolate records. I may need to rethink my query design...just wondering if that's possible. Sorry if my lingo is poor....still learning.