Logical Operators in DB2

Functionality Operator
Logical AND <condition 1> AND <condition 2>
Logical OR <condition 1> OR <condition 2>
Logical NOT NOT <condition>
Greater than <value 1>  > <value 2>
Less than <value 1>  < <value 2>
Greater than or equal to <value 1>  >= <value 2>
Less than or equal to <value 1>  <= <value 2>
Not Eqaul <value 1>  <> <value 2>
Between <variable> BETWEEN <value 1> AND <value 2>

One thought on “Logical Operators in DB2”

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.