Thanks,
Javier Álvarez.
Madrid. SPAIN. Europe.
"Javier Álvarez" <jav...@delete.mantis-informatica.es> wrote in message
news:%23$7jdZY6D...@tk2msftngp13.phx.gbl...
SELECT * FROM users
where firstname = 'Larry' XOR lastname = 'Smith'
While helpful, a bit of logic conversion can get you the same thing:
SELECT * FROM users
WHERE (firstname = 'Larry' AND lastname != 'Smith) OR (firstname != 'Larry'
AND lastname = 'Smith')
-Cliff
"Narayana Vyas Kondreddi" <answ...@hotmail.com> wrote in message
news:u1eeQSZ6...@tk2msftngp13.phx.gbl...
--
----------------------------------------------------------------------------
-----------
Louis Davidson (dr...@hotmail.com)
Compass Technology Management
Pro SQL Server 2000 Database Design
http://www.apress.com/book/bookDisplay.html?bID=266
Note: Please reply to the newsgroups only unless you are
interested in consulting services. All other replies will be ignored :)
"Narayana Vyas Kondreddi" <answ...@hotmail.com> wrote in message
news:u1eeQSZ6...@tk2msftngp13.phx.gbl...
SELECT * FROM users
where firstname = 'Larry' XOR lastname = 'Smith'
because is more simple and easy than
SELECT * FROM users
WHERE (firstname = 'Larry' AND lastname != 'Smith) OR (firstname != 'Larry'
AND lastname = 'Smith')
and today, all languages have a XOR Operator.
Thanks,
Javier Álvarez.
Madrid, SPAIN.
"Cliff Harris" <he...@myrealbox.com> escribió en el mensaje
news:eDzeana6...@TK2MSFTNGP10.phx.gbl...