I have a table where each entry can have sequence number of 1 or 2. I want to choose one of these options based on the value of the current year. Is it possible to do the following in a where statement:
(CASE sequence_number
WHEN cy.curyr < '41' THEN '1'
ELSE '2'
END ) sequence_number
the correct way in a where clause would be
is
curyra string though?