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
 SQL Server 2005 Forums
 Transact-SQL (2005)
 Help on query

Author  Topic 

cyberpd
Yak Posting Veteran

60 Posts

Posted - 2010-01-11 : 04:46:35
Suppose there is a table T1 with two fields F1, F2, will have more in the future.

Suppose there are two rows in the table T1.
The values are as follows :-
F1 F2
admin admin
admin bb

The query will return only one row as the following :-
admin admin, bb

Can this be done?
Thanks and regards.

jackv
Master Smack Fu Yak Hacker

2179 Posts

Posted - 2010-01-11 : 05:12:58
Could you post the table definition - for example , are there any Primary Keys?
What you request is possible ,but some more information is required to give you a suitable response.

Jack Vamvas
--------------------
http://www.ITjobfeed.com
Go to Top of Page

cyberpd
Yak Posting Veteran

60 Posts

Posted - 2010-01-11 : 05:20:52
Thanks for the reply Jack.
There are no Primary Key.
I would like to mention that if there is a third row, including the above mentioned two with values such as:-
admin admin

then the result set would be like this:-
admin admin, bb, admin

Thanks and regards
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2010-01-11 : 05:38:28
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=81254

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page

cyberpd
Yak Posting Veteran

60 Posts

Posted - 2010-01-11 : 05:51:48
Thanks for the reply Madhivanan.

I don't have words to express my gratitude.
that is exactly what I wanted.

Thank you so much.
This thread is resolved.
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2010-01-11 : 07:27:03
quote:
Originally posted by cyberpd

Thanks for the reply Madhivanan.

I don't have words to express my gratitude.
that is exactly what I wanted.

Thank you so much.
This thread is resolved.


You are welcome

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -