Click here to Skip to main content
15,890,741 members
Home / Discussions / Database
   

Database

 
GeneralRe: Equivalent in MS Sql Pin
SilimSayo14-Dec-11 2:51
SilimSayo14-Dec-11 2:51 
GeneralRe: Equivalent in MS Sql Pin
jschell14-Dec-11 9:26
jschell14-Dec-11 9:26 
GeneralRe: Equivalent in MS Sql Pin
Shameel15-Dec-11 7:27
professionalShameel15-Dec-11 7:27 
GeneralRe: Equivalent in MS Sql Pin
SilimSayo15-Dec-11 11:00
SilimSayo15-Dec-11 11:00 
GeneralRe: Equivalent in MS Sql Pin
jschell16-Dec-11 8:34
jschell16-Dec-11 8:34 
JokeRe: Equivalent in MS Sql Pin
SilimSayo16-Dec-11 14:31
SilimSayo16-Dec-11 14:31 
GeneralRe: Equivalent in MS Sql Pin
Shameel20-Dec-11 2:51
professionalShameel20-Dec-11 2:51 
QuestionGROUP BY and listing rows in an aggrigate Pin
nallelcm13-Dec-11 5:44
nallelcm13-Dec-11 5:44 
here is my problem.
table: Employees
id   name    position
----------------------------------
1    bob     sales
2    joe     sales
3    mark    management
4    jane    management
5    julie   it
6    donald  sales

what I want to do is write a query that would spit out
position   people
------------------------------
sales      bob, joe, donald
management mark, jane
it         julie


so something like this

SQL
SELECT position, somefunction(names) AS people FROM Employees GROUP BY position



does that 'somefuction' exist? if not how would i emulate it.

I'm doing this for reporting purposes.
AnswerRe: GROUP BY and listing rows in an aggrigate Pin
Eddy Vluggen13-Dec-11 7:07
professionalEddy Vluggen13-Dec-11 7:07 
GeneralRe: GROUP BY and listing rows in an aggrigate Pin
nallelcm13-Dec-11 7:26
nallelcm13-Dec-11 7:26 
AnswerRe: GROUP BY and listing rows in an aggrigate Pin
Eddy Vluggen13-Dec-11 7:44
professionalEddy Vluggen13-Dec-11 7:44 
AnswerRe: GROUP BY and listing rows in an aggrigate Pin
Eddy Vluggen13-Dec-11 8:34
professionalEddy Vluggen13-Dec-11 8:34 
GeneralRe: GROUP BY and listing rows in an aggrigate Pin
nallelcm13-Dec-11 8:51
nallelcm13-Dec-11 8:51 
GeneralRe: GROUP BY and listing rows in an aggrigate Pin
Eddy Vluggen13-Dec-11 9:34
professionalEddy Vluggen13-Dec-11 9:34 
Questioncolums to single row Pin
Ramkumar_S12-Dec-11 18:29
Ramkumar_S12-Dec-11 18:29 
AnswerRe: colums to single row Pin
_Damian S_12-Dec-11 19:43
professional_Damian S_12-Dec-11 19:43 
AnswerRe: colums to single row Pin
SilimSayo13-Dec-11 3:13
SilimSayo13-Dec-11 3:13 
AnswerRe: colums to single row Pin
gvprabu22-Dec-11 1:45
gvprabu22-Dec-11 1:45 
Questionerror has occurred while establishing a connection Pin
Member 808991411-Dec-11 23:54
Member 808991411-Dec-11 23:54 
AnswerRe: error has occurred while establishing a connection Pin
Satheesh154612-Dec-11 1:20
Satheesh154612-Dec-11 1:20 
AnswerRe: error has occurred while establishing a connection Pin
thatraja12-Dec-11 1:58
professionalthatraja12-Dec-11 1:58 
QuestionSQL Server Management Studio R2 (varchar(MAX)) Pin
Framework .l.11-Dec-11 18:13
Framework .l.11-Dec-11 18:13 
AnswerRe: SQL Server Management Studio R2 (varchar(MAX)) Pin
Mycroft Holmes11-Dec-11 19:04
professionalMycroft Holmes11-Dec-11 19:04 
GeneralRe: SQL Server Management Studio R2 (varchar(MAX)) Pin
Framework .l.11-Dec-11 19:26
Framework .l.11-Dec-11 19:26 
GeneralRe: SQL Server Management Studio R2 (varchar(MAX)) Pin
Mycroft Holmes11-Dec-11 19:40
professionalMycroft Holmes11-Dec-11 19:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.