Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 10671

Re: Unable to take prompt fields from a different table.

$
0
0

Hi

 

 

Try This

 

 

/* SELECT FROM [dbo].[OSRT] P1 */

 

declare @StartDate as date

 

declare @EndDate as date

 

set @StartDate =  /* P0.FromDate */ '[%0]'

set @EndDate = /* P1.ToDate */ '[%1]'

 

 

 

SELECT T0.[CreateDate] AS 'CreateDate', T0.[Code] AS 'Code', T0.[U_cardName] AS 'Customer Name'

FROM  [dbo].[@CRCSJOBMASTER] T0

WHERE (T0.[CreateDate]>@StartDate  AND  T0.[CreateDate]<   @EndDate )

ORDER BY T0.[CreateDate]

 

FOR BROWSE

 

 

Regards

Kennedy


Viewing all articles
Browse latest Browse all 10671

Trending Articles



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