Forum Moderators: open
for example i have a table called positions:
ID, FOR_TABLE, FOR_ID
1, articles, 10
2, authors, 20
my articles table:
ID, CONTENT, STATUS
10, BlahBlah, 1
my authors table:
ID, CONTENT, STATUS
20, BlahBlah, 0
basically i'd like to return the status for each row of table 'positions'.
so would i be able to do this...
SELECT * FROM positions LEFT JOIN positions.FOR_TABLE AS t ON positions.FOR_ID = t.ID
?
My problem is actually more complex than this...so i'm taking this step by step. would this work, or is there another syntax i'd need?