Lets say i have a table like so…
ITEM# ItemType SIZE
1 Car 5.20
2 Watch 2.00
3 Watch 7.50
4 Watch 6.40
5 Car 5.00
6 Car 4.30
I would like to select all rows but whenever the ItemType = ‘Car’ I would like the value for SIZE to be returned as null.
I have tried using
CASE When ItemType = 'Car'
Then SIZE = null
END
but this does not work.
Many thanks!
maybe because value where missing for other rows, try with this: