Zargo
Programmer
- Mar 21, 2005
- 109
Hi all,
SELECT * FROM XX_TABLEA WHERE T1 LIKE (SELECT T1 FROM XX_TABLEB WHERE USER_NAME = 'ZARGO')
The tables are look like:
XX_TABLEA
T1
1100023
1012132
2012121
And the other table:
XX_TABLEB
T1 USER_NAME
10% ZARGO
11% ZARGO
20% OTHER
I want to get these results:
1100023
1012132
The query at the top doesn't work, does anybody know what im doing wrong? How to write this query to get the right results
Any Idea is appreciated?
SELECT * FROM XX_TABLEA WHERE T1 LIKE (SELECT T1 FROM XX_TABLEB WHERE USER_NAME = 'ZARGO')
The tables are look like:
XX_TABLEA
T1
1100023
1012132
2012121
And the other table:
XX_TABLEB
T1 USER_NAME
10% ZARGO
11% ZARGO
20% OTHER
I want to get these results:
1100023
1012132
The query at the top doesn't work, does anybody know what im doing wrong? How to write this query to get the right results
Any Idea is appreciated?