Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why did they do this
Message
From
26/03/2005 14:31:05
 
 
To
26/03/2005 09:41:09
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Miscellaneous
Thread ID:
00999274
Message ID:
00999294
Views:
18
The reason for creating a sql statement the way you show is to conform to SQL standard. I'm guessing you are expecting to see both tables in the from, and then instead of JOIN.....see wms_ITRN.Sku = Inventory.primary_reference in the "Where" clause.

I forget where, but in certain circumstances, matching tables thru "Where" will not work.

PF



>I am redoing one of the programs from one of our best programmers who left.
>Why did she code FROM wms_ITRN_all wms_ITRN without a comma and then join them later ?
>
>
>
>FROM
>
> wms_ITRN_all wms_ITRN
>
> INNER JOIN
>
> Inventory
>
> ON
>
> wms_ITRN.Sku = Inventory.primary_reference
>
> LEFT OUTER JOIN
>
> wms_AdjustmentDetail_All
>
> ON wms_ITRN.ItrnKey = wms_AdjustmentDetail_All.ItrnKey
>
>Thanks
>Jim

(On an infant's shirt): Already smarter than Bush
Previous
Reply
Map
View

Click here to load this message in the networking platform