Click here to Skip to main content
15,919,500 members
Home / Discussions / Database
   

Database

 
QuestionSQL DATABASE Pin
kibromg11-Aug-09 6:43
kibromg11-Aug-09 6:43 
AnswerRe: SQL DATABASE Pin
Hristo-Bojilov13-Aug-09 5:04
Hristo-Bojilov13-Aug-09 5:04 
QuestionCase Sensitive User Name Pin
janani1311-Aug-09 2:38
janani1311-Aug-09 2:38 
AnswerRe: Case Sensitive User Name Pin
Luc Pattyn11-Aug-09 3:30
sitebuilderLuc Pattyn11-Aug-09 3:30 
QuestionHow to change the default port 1433 for SQLServer 2008 Pin
Paramu197311-Aug-09 1:03
Paramu197311-Aug-09 1:03 
AnswerRe: How to change the default port 1433 for SQLServer 2008 Pin
Paramu197311-Aug-09 4:18
Paramu197311-Aug-09 4:18 
QuestionHow to Concate more than one rows in one row ?. Pin
Fazal Vahora10-Aug-09 21:41
Fazal Vahora10-Aug-09 21:41 
AnswerRe: How to Concate more than one rows in one row ?. Pin
infneeta10-Aug-09 23:46
infneeta10-Aug-09 23:46 
Create Function to return the all names(seperated by comma) for a given code.
Create FUNCTION [dbo].[GetNamesById]
(
@code int
)
RETURNS varchar(max)
AS
BEGIN
declare @result varchar(max)
select @result = COALESCE(@result + ',', '') + [name]
from tblCode
where code = @code

return @result
END
GO

now use following query:
select code,dbo.GetNamesById(code) from tblCode group by code

above query will give output as:
Code name
50141 abc,pqr
QuestionOuter Join issues Pin
Mustafa Ismail Mustafa10-Aug-09 4:45
Mustafa Ismail Mustafa10-Aug-09 4:45 
AnswerRe: Outer Join issues Pin
leckey10-Aug-09 5:26
leckey10-Aug-09 5:26 
GeneralRe: Outer Join issues Pin
Mustafa Ismail Mustafa10-Aug-09 5:44
Mustafa Ismail Mustafa10-Aug-09 5:44 
GeneralRe: Outer Join issues Pin
DoctorMick10-Aug-09 6:28
DoctorMick10-Aug-09 6:28 
GeneralRe: Outer Join issues Pin
Mustafa Ismail Mustafa10-Aug-09 9:34
Mustafa Ismail Mustafa10-Aug-09 9:34 
GeneralRe: Outer Join issues Pin
i.j.russell10-Aug-09 8:12
i.j.russell10-Aug-09 8:12 
GeneralRe: Outer Join issues Pin
Mustafa Ismail Mustafa10-Aug-09 9:41
Mustafa Ismail Mustafa10-Aug-09 9:41 
GeneralRe: Outer Join issues Pin
leckey10-Aug-09 8:38
leckey10-Aug-09 8:38 
Questioncustom query Pin
sujithkumarsl9-Aug-09 23:45
sujithkumarsl9-Aug-09 23:45 
AnswerRe: custom query Pin
Mycroft Holmes10-Aug-09 3:04
professionalMycroft Holmes10-Aug-09 3:04 
GeneralRe: custom query Pin
Luc Pattyn10-Aug-09 3:34
sitebuilderLuc Pattyn10-Aug-09 3:34 
QuestionConnection String Pin
John.L.Ponratnam9-Aug-09 23:34
John.L.Ponratnam9-Aug-09 23:34 
AnswerRe: Connection String Pin
SeMartens10-Aug-09 0:31
SeMartens10-Aug-09 0:31 
Questionlost data base Pin
Tauseef A9-Aug-09 23:09
Tauseef A9-Aug-09 23:09 
AnswerRe: lost data base Pin
SeMartens10-Aug-09 0:33
SeMartens10-Aug-09 0:33 
QuestionDTS to Import .SQL file Pin
Paul Hayman9-Aug-09 22:28
Paul Hayman9-Aug-09 22:28 
AnswerRe: DTS to Import .SQL file Pin
Mycroft Holmes10-Aug-09 3:08
professionalMycroft Holmes10-Aug-09 3:08 

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.