I have to migrate an old SQL Statement to SQLServer2008. The old SQL-Statement still has the old Join-Operator "*=". Of course I could set the DB-Compatibility, but I don't like to do this :-)
My Question: I am not sure if I am doing following correct and I can't test the old statement anymore. Could someone please check the syntax of my new SQL-Statement ?
old original statement :
select * from A,B where A.field *= B.field
My guess:
SELECT * from A
LEFT JOIN B
ON A.field=B.field;
Or is it the opposit way ? :
SELECT * from B
LEFT JOIN A
ON B.field=A.field;
Thanks and regards