|
I have three tables which i have joined ..but the manner in which i have to display them is a little difficult for me to understand.I am trying to group them and not getting the desired result. I need to display this information in the following manner.. and something similar for tenis
(comments are locked)
|
|
The formatting of the data would be something that should be handled by your front-end application, rather than by SQL Server. The query to return the data you require is straightforward: SELECT s.Name, t.Team_Name, p.Player_Name FROM PlayerName p INNER JOIN Teams t ON t.Id = p.Team_id INNER JOIN Sport_Name s ON s.Id = t.Sport_Id.... I could use this but i need to place the Football ,cricket on the top of a grid..hence i need to group it i guess
Sep 04 '12 at 11:40 AM
fashraf
That sort of thing really should be done by the presentation layer - SSRS, your application, your web page - whatever it is that you're doing to display the data to whoever. If you have to do this all in a single T-SQL query, then say so (& why) - it'll be a much uglier query!
Sep 04 '12 at 11:55 AM
ThomasRushton ♦
Thank you !
Sep 04 '12 at 01:04 PM
fashraf
(comments are locked)
|

