As long as you are using a single table, there is no difference at all. The field name in the result will be taken from the field name of the table, so the table name is not visible in the result.
If you use more than one table you might need to specify which field to use:
select Table1.Col1, Table2.Col1
from Table1
inner join Table2 on Table2.Col2 = Table1.Col2
You can also use aliases for the table names to make it easier to read:
select a.Col1, b.Col1
from Table1 as a
inner join Table2 as b on b.Col2 = a.Col2
Or even without the as
keyword:
select a.Col1, b.Col1
from Table1 a
inner join Table2 b on b.Col2 = a.Col2
You can also use aliases to put different names on the output fields:
select Table1.Col1 as Table1Col1, Table2.Col1 as Table2Col1
from Table1
inner join Table2 on Table2.Col2 = Table1.Col2
Or:
select Table1Col1 = Table1.Col1, Table2Col1 = Table2.Col1
from Table1
inner join Table2 on Table2.Col2 = Table1.Col2