barrysprout
MIS
I’m trying to run a query that is based on a subquery that is based on another subquery, i.e. 3 queries in total. I can get the SQL of the first two subqueries to work but am not sure of the syntax for the last query that provides the final result. The SQL for the first 2 subqueries which works fine, follows the pattern below:
SELECT abc.field
FROM [subquery sql]. AS abc
Can anyone suggest how to incorporate that into a final query? I’ve tried this:
SELECT xyz.field
FROM [SELECT abc.field FROM [subquery sql]. AS abc]. AS xyz
but it doesn’t work.
SELECT abc.field
FROM [subquery sql]. AS abc
Can anyone suggest how to incorporate that into a final query? I’ve tried this:
SELECT xyz.field
FROM [SELECT abc.field FROM [subquery sql]. AS abc]. AS xyz
but it doesn’t work.