Click here to Skip to main content
15,892,746 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
table one (boxno) have a column name ( EDSboxes ) value like 1234
table tow (allbox) have a column name (IDbox ) value Like CI,1234,DFS,24/11/2011,

i need make select to give me the like value between to column

SELECT *
FROM boxno
WHERE EDSboxes in
(SELECT IDbox FROM allbox where allbox.IDbox Like * boxno.EDSboxes * );

i want typ * on the start and end to give me the same value in the tow table
Posted

1 solution

I think your data layout is a disaster, and so the best you can do is use the LIKE keyword. It would be better to fix your data
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900