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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

to join tables by IDS (one of which is a substring)

Status
Not open for further replies.

irinnew

Technical User
Mar 19, 2005
81
US
Hello,

I have two tables. One of them contains Long IDS, while another one has a short oneS for the same members.

For example,FirstTable.id=111111bob12/03/2005
SecondTable.id=11111 (substring)

I need a quiery to join both tables by IDs. How can I do it?

Thank you in advance,

Irin
 
SELECT ...
FROM FirstTable, SecondTable
WHERE Val(FirstTable.id) = SecondTable.id

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top