Hi guys. I am trying to write a report that shows all sales quotes that are converted to orders.
Returning information needs to be by date range, sales employee and percent converted but not containing those quotes manually closed.
I'm clearly nowhere near with the below query and frustrated by not being able to see what I need to do or where I am going wrong - any help will me massively appreciated.
Thank you
SELECT T0.[DocNum], T0.[DocStatus], T0.[CardCode] AS 'Account No.', T0.[CardName] AS 'Customer Name', T0.[DocDate], T0.[SlpCode]
FROM OQUT T0, [dbo].[OSLP] T0 INNER JOIN [dbo].[OQUT] T1 ON T1.[SlpCode] = T0.[SlpCode]
WHERE T0.[DocStatus] = 'C' AND T0.[DocManClsd] <> AND (T0.DocDate>='[%0]' and T0.DocDate<='[%1]')