Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Oracle/OAS
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Tim Cooke
Ron McLeod
paul wheaton
Jeanne Boyarsky
Sheriffs:
Paul Clapham
Devaka Cooray
Saloon Keepers:
Tim Holloway
Roland Mueller
Himai Minh
Bartenders:
Forum:
Oracle/OAS
Simple sql
Rex Rock
Ranch Hand
Posts: 82
posted 23 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Whats wrong with this sql.
Select col1, col2 from Table1 where col3 in ( select col2 from Table2 where col1 = 'xyz' ) Table 1 col1 col2 col3 kevin johson 100 Kasi johnson 101 Table 2 col1 col2 xyz 100 xyz 101
All the columns are
string
type
I am expecting result kevin johnson and Kasi johnson, but it returns nothing.
Beksy Kurian
Ranch Hand
Posts: 254
posted 23 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
There is no problem with the sql. Make sure that your data(especially 'xyz') is stored in the same way(small letters) as in the where clause. I got the results using your sql statement.
Beksy
Don't get me started about those stupid
light bulbs
.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Inner SQL
Question of using SqlResultSetMapping
Update Database
SQL Question
Regarding java caching framework
More...