SQl help please

  • I have 2 requirements

    1.) Fetch the records where Charge_Capture_Primary_Code != '00550'

    2.) Fetch the records where Charge_Capture_Primary_Cod not in the range 00560-00580

    Select top 100 * FROM TBL where Charge_Capture_Primary_Code not in ( '00550 ' )

  • One option...

    SELECT *

    FROM tbl

    WHERE Change_Capture_Code !='00550'

    AND Change_Capture_Code NOT BETWEEN '00560' AND '00580';

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply