I wrestling with the CASE statement below.
I want to set FLAGC based on credit rank and order total.
See anything odd? Thanks folks.
SELECT customers.creditrank, OrderTotals.OrderTotal,
CASE ( WHEN OrderTotals_OrderTotal > 1000000 AND customers_creditrank = 'A' THEN '1'
END) AS FLAGC
FROM customers, OrderTotals
I want to set FLAGC based on credit rank and order total.
See anything odd? Thanks folks.
SELECT customers.creditrank, OrderTotals.OrderTotal,
CASE ( WHEN OrderTotals_OrderTotal > 1000000 AND customers_creditrank = 'A' THEN '1'
END) AS FLAGC
FROM customers, OrderTotals