Click here to Skip to main content
15,891,607 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
there are many column like column name (a,b,c,d,e,f,g) having multiple value including zero column a contains id I want to select only one id with value of those column having value greater than five.
if column having value less than five then column can not display.
Posted
Comments
_Asif_ 8-Jul-15 4:13am    
What have you tried?

1 solution

select <columns>from table
where a > 5 or b > 5 or c> 5 or d>5 or e>5

if you mean ony include IDs where one of the columns is > 5

replace 'or' with 'and' if you mean all columns must be > 5
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900