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

Multiple reports in a single query in jasper

 
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi guys

i am working with jasper reports and i have requirement where i need to generate more than one report in a single select query

Example:
Table1: Car Brands (Mercedes,audi,...)

Table2: Car Model No

eg data in Table 2:

Brand ModelNo
Mercedes Merce123
Mercedes Merce468
Mercedes Merce351
Audi audi123
Audi audi864
Audi audi486

Now the query i would write in sql is

select t1.brand ,t2.modelno
from table1 t1,table2 t2
where t1.brand = t2.brand

now from this query i need to generate two reports one for mercedes and the other for audi

is there any i could try this in Jasper Reports

 
The glass is neither half full or half empty. It is too big. But this tiny ad is just right:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic