logudotcom Posted March 12, 2007 Share Posted March 12, 2007 In Jasper Report I had to take values from two tables with two quesries.But these two queries are releted one another for example Table 1: School, School Id, School Name Table 2: Student, Student Id, Student Name, School Id Now I need to report Like this, School Name Student Names St. Thomas's School - Ram PrasadSt. Paul's School - Vinoth XavierSt. Mullers School - Loganathan, loguKK How to take report in jasper or How to write query in jasper. Link to comment Share on other sites More sharing options...
tarelr Posted March 12, 2007 Share Posted March 12, 2007 I think, your topic is not in the right place, cause it is a SQL problem and is not a jasper issue. For information,see the query: Code:select table1.schoolName,table2.studentNamefrom table1,table2where --the joins clausetable1.schoolId=table2.schoolId Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now