i have this simple SQL join query, which is giving me a syntax error on the second FROM
SELECT * FROM ##temporderstable P
FROM supporder Y join backorder ON P.catalogid = Y.backorder
GROUP BY P.catalogid
i can’t figure out whats wrong with it, any hints?
Thanks in advance
You can’t have two FROM clauses like that…
You might mean JOIN but you’d need another ON condition:
The second ON would need to reference a column of B and a column of either P or Y.