Click here to Skip to main content
15,902,938 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Hello,

I have two master table school and music table.

Now when a user from the school access music a log entry will be placed in database.

Now i want to create a cross tab report using the data.

The problem is with the school and music files which are not accessed by users.

I want to show all school and music files in reports which have not access music.

Can any one suggest me solution how to implement this..


Do i need to create a sql query if yes then plz suggest how to implement it.

Or i can create a telerik report using multiple queries.

Or there is another method for it.
Posted

Hi,
Yes, using SQL PIVOT operator you can create cross-tab report.

Could you please give an idea,
What do you want to see on the cross-tab column?
What do you want to see on the cross-tab row?
What data do you want to see on the cross-tab cell?

Please mention your both table structure, sample data, and sample of your wanted cross-tab report output column, output row, and output cross-tab cell data.
 
Share this answer
 
Comments
Hetal Jariwala 5-Dec-14 2:04am    
I have solved my problem using making a cross join on data then assign the query to cross tab report.

Is this solution is correct?
Masud Ahmed SQL Programmar 5-Dec-14 4:17am    
Hi,
I have not created cross-tab using cross join, but I have seen some other people do it. Please have a look at this article. I hope it will help you-

http://community.tableausoftware.com/message/135795#135795
Check this link for how to create a Pivot Query.
Basic SQL Queries for Beginners[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900