Have a table with three columns: col1 being primary INT, col2 & col 3 being UNIQUE and INT.
I need to select those rows in which col1, col2 and col3 are equal to const1, and col2 and
col3 are not equal to zero.
Is the following query correct?
NOTE: Have used meaningful names for attributes, and the values given here for
illistrative purposes only.
SELECT * FROM table WHERE col1 = const OR col2 = const OR col3 = const AND (coll2 <> 0 AND col3 <> 0);
const can be any INT values
=? - Martin Smith