mayamanako
Technical User
hi guys, i am trying to self-join an alias table and i cant seem to get my head round it. can you advice please?
this is my sql:
SELECT id, description FROM (SELECT id, description
FROM adminTable) AS tempTable
INNER JOIN tempTable tempTable2 ON tempTable.id = tempTable2.id
it says:
invalid object name 'tempTable'
any advice guys? thanks.
this is my sql:
SELECT id, description FROM (SELECT id, description
FROM adminTable) AS tempTable
INNER JOIN tempTable tempTable2 ON tempTable.id = tempTable2.id
it says:
invalid object name 'tempTable'
any advice guys? thanks.