email.vinu04 Posted March 10, 2017 Share Posted March 10, 2017 The query which I have written for fetching data from 3 tables is working fine in SQL server management studio and MS Access but in Jaspersoft studio it is giving unexpected output with many duplicate records. My query looks something like thisEmployee table: emp_Id, emp_name, salary, Dep_num, project_id --->Primary key=emp_IdDepartment table: Dep_num, Dep_name, Manager ----->Primary key= Dep_numProject table: project_id, project_name, project_loc ------->Primary key=project_idI want to have a resul table like emp_name, Dep_name,project_nameI have written query like thisselect emp_name, Dep_name, project_namefrom Employee as E inner join Department as D on E.Dep_num = D.Dep_numinner join Project as P on E.project_id = P.project.id;so I am awaiting any response from jasper team, query is fine but jasper is not giving correct output, anyone help me out, how to deal with this issue Link to comment Share on other sites More sharing options...
reportdev Posted March 10, 2017 Share Posted March 10, 2017 did you create any groups on the report ?I would suggest start from scratch and just pull all your fields into the detail band after sql evaluation. Link to comment Share on other sites More sharing options...
email.vinu04 Posted March 13, 2017 Author Share Posted March 13, 2017 I am not using any groups or tables, because it gives duplicate records, so only I am just pulling all fields into detail band, but the problem is, it is not supporting that query well, even though it is correct Link to comment Share on other sites More sharing options...
jbarger.consultant Posted July 26, 2019 Share Posted July 26, 2019 Im getting same situation. The Inner Join doesn't appear to work correctly. It joins but joins everything on everything. 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