Oh Great Dann (mySQL question)
Posted: Thu Jun 17, 2010 9:57 am
so I have written a join:
from our conversation years ago, this should work. Well, it didn't... So I did a little looking and wrote:
but it complains about joinMeta.telegramID not existing. So I wrote:
and it complains about T1 not existing, which is fine because presumably the previous SQL statement liked telegrams, so I just returned to that statement. Any idea as to why it doesn't like joinMeta.telegramID?
U R still my hero, btw.
Code: Select all
SELECT telegrams.*, telegramMeta.* FROM telegrams
JOIN telegrams ON telegrams.id = joinMeta.telegramID
JOIN telegramMeta on joinMeta.metaID = telegramMeta.id
Code: Select all
SELECT telegrams.*, telegramMeta.* FROM telegrams as T1, telegramMeta as T2
JOIN telegrams ON telegrams.id = joinMeta.telegramID
JOIN telegramMeta on joinMeta.metaID = telegramMeta.id
Code: Select all
SELECT telegrams.*, telegramMeta.* FROM telegrams as T1, telegramMeta as T2
JOIN T1 ON T1.id = joinMeta.telegramID
JOIN telegramMeta on joinMeta.metaID = telegramMeta.idU R still my hero, btw.