Quantcast
Channel: Microsoft SQL Server
Viewing all articles
Browse latest Browse all 4871

SQL Query for Parameter in Report Builder

$
0
0

I am attempting to a Date picker field to a report that we currently run so that users can select a data range.

Here is a snippet of the code

CONVERT(CHAR(10), DATEADD(d, tot_est_ship_code +5843, 0), 1) as Ship_Promise_Date,

"Job_Order_View"."date_wanted",

UPPER(cast(q.LOC as char)) as Location,

cast(q.ONHAND_QTY as int) as OnHandQty,

Job_Order_View.csr as csr,

SH10_AS_BD_TOT_VIEW.shipto_cust_numb as ShipToNum,

SH10_AS_BD_TOT_VIEW.shipto_name as ShipToName,

rtrim(SH10_AS_BD_TOT_VIEW.SHIPTO_CITY) as ShipToCity,

SH10_AS_BD_TOT_VIEW.SHIPTO_STATE as ShipToState

FROM SH10_AS_BD_TOT_VIEW "SH10_AS_BD_TOT_VIEW"

LEFT OUTER JOIN job_order_view "Job_Order_View"

ON ("SH10_AS_BD_TOT_VIEW"."JOB_NUMB"="Job_Order_View"."job_numb")

AND ("SH10_AS_BD_TOT_VIEW"."LINE_NUMB"="Job_Order_View"."line_numb")

left outer join fg14 q on fg_item_numb = q.ITEM_NUMB

WHERE...


Viewing all articles
Browse latest Browse all 4871

Trending Articles



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