This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes JDBC and Relational Databases and the fly likes SQL> no rows selected Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "SQL> no rows selected" Watch "SQL> no rows selected" New topic
Author

SQL> no rows selected

Farakh khan
Ranch Hand

Joined: Mar 22, 2008
Posts: 833
Hello,



Above query works fine because record exists in each table row but when I add:


Then it displays "no rows selected" as this table don't have any record for linked cv_id

How can I ignore the table if no record exists to display the rest of records?

Thanks in anticipation

Farakh khan
Ranch Hand

Joined: Mar 22, 2008
Posts: 833
still waiting for reply
sachin potu
Greenhorn

Joined: Oct 22, 2011
Posts: 21
if i am not wrong , you must use Left join, instead of Equi join
Farakh khan
Ranch Hand

Joined: Mar 22, 2008
Posts: 833
thanks sachin
 
Don't get me started about those stupid light bulbs.
 
subject: SQL> no rows selected
 
It's not a secret anymore!