Pass through query help

dmonney

Registered User.
Local time
Today, 16:05
Joined
Dec 3, 2007
Messages
31
I have a table on an ODBC connection where all the dates(RQDATE8_275) are in the yyyymmdd format
I am trying to make a pass through query to retrieve the records with dates before today. With this code I get a missing right parenthises error.


SELECT RQQTY_275 AS TRAV_QTY,PARTNO_201, RQDATE8_275
FROM FRH_MRP.PSK02275_OPEN
WHERE RQDATE8_275 <= dbo.fn_format_datetime(current_date 'yyyymmdd')
 
Figured it out

I figured it out...

PHP:
SELECT RQQTY_275 AS TRAV_QTY,PARTNO_201, RQDATE8_275
FROM FRH_MRP.PSK02275_OPEN
WHERE
    RQDATE8_275 <= TO_CHAR(SYSDATE, 'YYYYMMDD')
 
It looks like you are missing a Comma in the function call

dbo.fn_format_datetime(GETDATE(), 'yyyyMMdd')
 

Users who are viewing this thread

Back
Top Bottom