Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calling a UDF - Getting An Error - Part 2
Message
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Miscellaneous
Thread ID:
01326464
Message ID:
01326474
Views:
11
>I prefer JOIN syntax :
>
>SELECT *
>       FROM Transactions
>INNER JOIN (SELECT DataItems FROM udfParseCommaListToTable(@sTransTypeCodes, ',') AS TranCodes
>      ON Transactions.sTrans_Type_CD = TranCodes.DataItems
>
IMO, The 'IN' version is better because it clearly shows intent of the query. There's nothing to return from the second table which makes JOIN unnecessary. Not to mention that it should be 'Transactions.*'.
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform