Jump to content

Recommended Posts

I have a table in my db with three columns country, weight and cost. I cannot edit my table neither add another table. I add my data in jasper studio and i set the following as a data query:

SELECT COUNTRY, SUM(WEIGHT) AS WEIGHT, SUM(COST) AS COST FROM MY_TABLE, GROUP BY COUNTRY;

I want to create a crosstab with the countries as column header and weight, cost as rows. How can i achieve this? 

 Country 1Country 2
Weight100123.2212123.2
Costs111.213123123.1

 

Link to comment
Share on other sites

  • 2 weeks later...
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...