Hi there,I asked a friend for some assistance with a SQL statement for self joins. It works fine but I was trying to understand what he did.He gave me this:select dt.book_name,dt.date_value datetime,ph.number_value phone,gl.number_value glassfrom export dtjoin export ph on ph.book_template_name = dt.book_template_nameand ph.book_name = dt.book_nameand ph.page_name = dt.page_nameand ph.row_number = dt.row_numberjoin export gl on gl.book_template_name = dt.book_template_nameand gl.book_name = dt.book_nameand gl.page_name = dt.page_nameand gl.row_number = dt.row_numberwhere dt.book_template_name = 'Alice'and dt.page_name = '12'and dt.field_name = 'font';
I'm assuming "dt.date_value datetime" means "dt.date_value as datetime" but I don't understand the "dt." portion. Is it a schema? I don't have that as a schema but the script seems to work. He later uses in a separate script:select ...from export dtjoin export ph on ...
which seems to reference the portion from the top. Can anyone explain what the significance of [value].[field_name] syntax is and how it is possible to use [value] in a later script? Much thanks in advance.