How to Join two Table [message #14637] |
Thu, 02 September 2004 12:32 |
Kumar
Messages: 115 Registered: December 1998
|
Senior Member |
|
|
Hi
I have two table
NAMES
=======
FN | LN
------------------
SAM | JOSE
TIM | SMITH
RAJ | PATEL
Table name is NAMES, two column name is FN & LN both are string type
CONDITIONS
===========
CONDITION
---------------
FN= "SAM"
LM="PATEL"
Table nameis CONDITIONS, one column name is CONDITION - Type string.
CONDITION column have condition used to filter data.
I am looking for output like Select * from NAMES where ( FN="SAM or
LN="PATEL")
My output would be ..
NAMES
========
FN | LN
------------------
SAM | JOSE
RAJ | PATEL
How to generate where condition using single SELECT Statement
Thanks
|
|
|
|
rd. how to join two table [message #16293 is a reply to message #14637] |
Sun, 21 November 2004 21:38 |
jeetendra anare
Messages: 1 Registered: November 2004
|
Junior Member |
|
|
I have two table
i want to join but all the data is not in 2 nd table
but i want to show the message in query which is not in 2 nd table.
suppose found in 2nd table i will display a data
if not then i want to give message that data is not there.
|
|
|