Hi,

I need a where clause in following situation:

Say I want to query two tables: A and B. In table A there is field Afn,
while in table B there ere 3 fields: Bfn1, Bfn2 and Bfn3. I want to
compose a query, in which the where clause can do this: 

if A.Afn=1, then check Bfn1, 
if A.Afn=2, then check Bfn2,
if A.Afn=3, then check Bfn3.

So how I compose a where clause to do this? Thanks in advance!

Alex Shi



---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to