sql - Check if value in column for all rows is exactly value -


For example, I want to follow number 2 as the target

This is a positive sign > ID Status 123 1 432 3 531 2 123 2

This negative signal should return:

  ID status 123 1 432 1 531 1 123 1 Code>  

thanks

EXISTS in priority COUNT then this first Non-mailing lines can return as soon as possible. Select

  when not existing (choose from your _table status & lt; & gt; 2) Then your message as 'Y' ELSE 'N' END  < / Pre> 

You do not know the status of RDBMS You may have to add DUAL to at the end of the dependency on the taste.

Comments

Popular posts from this blog

qt - switch/case statement in C++ with a QString type -

python - sqlite3.OperationalError: near "REFERENCES": syntax error - foreign key creating -

Python's equivalent for Ruby's define_method? -