File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Oracle/OAS and the fly likes query join Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Oracle/OAS
Bookmark "query join" Watch "query join" New topic

query join

Eshwin Sukhdeve
Ranch Hand

Joined: Mar 15, 2012
Posts: 90
I need pne help in query.I have 2 table Table1 ,Table Table1 one column is there "Status" which contains the values fixed,resolved..etc and I have
to group by this values..based on some one more table is there which having columns fixed,resolved..etc..this columns contains values..0,1,2..etc.
now I have to show output like this

Table1 Table2
fixed 3(total no of count for fixed column in Table 2)
resolved 3


Martin Vajsar

Joined: Aug 22, 2010
Posts: 3733

This is quite basic stuff. I'd suggest reading some SQL tutorial and then trying to write the query yourself. If I understand your problem correctly, you'll need to utilize select, inner join and a group by (these keywords might help you find the relevant parts of the tutorial sooner).

If you get stuck, post here what you've tried. We'll be glad to help you, but we're NotACodeMill (⇐ click).
I agree. Here's the link:
subject: query join
It's not a secret anymore!