SELECT
CASE WHEN Col1 < 10 THEN Col1 ELSE null END as Col1,
CASE WHEN Col2 < 10 THEN Col2 ELSE null END as Col2,
CASE WHEN Col3 < 10 THEN Col3 ELSE null END as Col3,
FROM
table1
How to actually read through a row in the database?
Like if across the rows, if one of the column already exceeds some amount, i no need the other columns already. How can i implement it? Thanks
SELECT * FROM [I]tablename[/I] WHERE [I]one_of_the_columns[/I] <= '[I]some_amount[/I]'