• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

query join

 
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I need pne help in query.I have 2 table Table1 ,Table 2.in Table1 one column is there "Status" which contains the values fixed,resolved..etc and I have
to group by this values..based on some id.now 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
---"----

Thanks



 
Sheriff
Posts: 3837
66
Netbeans IDE Oracle Firefox Browser
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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).
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic