Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Group the sql table

Author  Topic 

aim
Starting Member

2 Posts

Posted - 2010-04-02 : 04:00:14
i have the following sql table:
studid studname Assname Marks
1234567 alice test 1 30
1234567 alice test 2 30
8900122 bob test 1 29
8900122 bob test 2 29

i would like to grop the table to look like this
studid studname Assname Marks
1234567 alice test 1 30
test 2 30
8900122 bob test 1 29
test 2 29

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2010-04-02 : 04:04:26
this is a formatting issue which you can very well be obtained at your front end. Is this for a reporting purpose? if yes, this is available in most of reporting tools and is called suppress duplicates or remove duplicates property

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

aim
Starting Member

2 Posts

Posted - 2010-04-02 : 04:13:08
yes fro reporting pupose.. what do you mean by remove duplicate property?? i'm using the Ms Sql database
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2010-04-02 : 04:17:48
what reporting tool you're using? SSRS?

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page
   

- Advertisement -