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
 Want to avoid duplicate names

Author  Topic 

sagarg
Starting Member

1 Post

Posted - 2011-03-26 : 04:59:18
subjectname / subjectcode / teachername
---------------- --------------- -------------------
Maths / MA02/ ABC
Electronics / BS02/ XYZ
Electronics / BS02/ YTR
Electronics / BS02/ LOP
Data Structures/ DS02/ KKK
Data Structures / DS02/ JKL

i m expecting output something like this:

subjectname/ subjectcode/ teachername
---------------- ------------------- ---------------
Maths / MA02 / ABC
Electronics/ BS02 / XYZ
----------/ -------/ YTR
----------/ --------/ LOP
Data Struct / DS02/ KKK
-----------/ ---------/ JKL


Plz help me out!!!!! Note: (I have used '/' just to denote the end of the word)

sagarg

alinora14
Starting Member

5 Posts

Posted - 2011-03-26 : 06:33:25
hi,
i have something interesting for you about the query you have asked.
-----------
unspammed
Go to Top of Page

webfred
Master Smack Fu Yak Hacker

8781 Posts

Posted - 2011-03-26 : 07:41:31
quote:
Originally posted by sagarg

subjectname / subjectcode / teachername
---------------- --------------- -------------------
Maths / MA02/ ABC
Electronics / BS02/ XYZ
Electronics / BS02/ YTR
Electronics / BS02/ LOP
Data Structures/ DS02/ KKK
Data Structures / DS02/ JKL

i m expecting output something like this:

subjectname/ subjectcode/ teachername
---------------- ------------------- ---------------
Maths / MA02 / ABC
Electronics/ BS02 / XYZ
----------/ -------/ YTR
----------/ --------/ LOP
Data Struct / DS02/ KKK
-----------/ ---------/ JKL


Plz help me out!!!!! Note: (I have used '/' just to denote the end of the word)

sagarg


This is nothing SQL was made for.
If possible then do that in your front end.


No, you're never too old to Yak'n'Roll if you're too young to die.
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2011-03-27 : 01:16:52
you can very well achieve this in front end using any of report tools. its called hide duplicates in cell property in sql reporting services.

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

Go to Top of Page
   

- Advertisement -