Quantcast
Channel: SCN : Unanswered Discussions - Reporting and Printing
Viewing all articles
Browse latest Browse all 776

Query on UDT need to declare table variable

$
0
0

Experts,

 

I have a client who want to be able to search a UDT (Tracking numbers) to get related Sales Order/Delivery number.

 

I started the query, but have trouble declaring the table a variable. Any help would be appreciated.

 

SELECT T0.[U_Tracking], T0.[U_Ref] as 'Sales Order/Delivery'

FROM @AAA_SHIPTRACK T0

WHERE T0.[U_Tracking] =[%0]

 

Regards,

Marli


Viewing all articles
Browse latest Browse all 776


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>