I am working on a database join and I want to do the following:
Select tabel_one.id,
tabel_one.title,
tabel_one.content,
table_two.value as table_two.key
from tabel_one
Join table_two ON table_two.id = table_one.id ....
The Important part is:
table_two.value as table_two.key
Is there a way this could work?
No, you cannot define an alias referencing a table.
In general, you should simply use:
Otherwise, as OMG Ponies suggested in another answer, you can wrap the alias in backticks: