Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why did they do this
Message
De
26/03/2005 14:31:05
 
 
À
26/03/2005 09:41:09
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Divers
Thread ID:
00999274
Message ID:
00999294
Vues:
17
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform