Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

retrive values from two table

Status
Not open for further replies.

abyinsydney

Programmer
Feb 17, 2004
99
AU
greetings fellow citizens
I need a suggestion from you people

i have two table suppose

Table one

column 1 column 2 column 3
name age

Table two
column 1 column
name cardno

my query is i need TO find people whose card number strar with 0423etc

this is the query i have built is this right

select name, age from table one,table two where Table one.name=Table two.name where table two.cardnumber like0423 %/


Is this the right query or some suggestions please help

aby
 
Code:
like '0423%'
will be fine ...
 
More like this:

Code:
select name, age from one, two 
where one.name = two.name 
and two.cardno like '0423%'

No?

--Dave
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top