Click here to Skip to main content
15,896,549 members
Home / Discussions / Database
   

Database

 
QuestionSort GetChildRow datarow array Pin
BobW99912-Oct-15 2:58
BobW99912-Oct-15 2:58 
AnswerRe: Sort GetChildRow datarow array Pin
Mycroft Holmes12-Oct-15 13:07
professionalMycroft Holmes12-Oct-15 13:07 
GeneralRe: Sort GetChildRow datarow array Pin
BobW99912-Oct-15 17:34
BobW99912-Oct-15 17:34 
GeneralRe: Sort GetChildRow datarow array Pin
Mycroft Holmes12-Oct-15 17:40
professionalMycroft Holmes12-Oct-15 17:40 
SuggestionNeed to Optimize this Query Pin
Member 1205173711-Oct-15 23:33
Member 1205173711-Oct-15 23:33 
QuestionTimeline for Work Completion Pin
macca249-Oct-15 0:48
macca249-Oct-15 0:48 
AnswerRe: Timeline for Work Completion Pin
CHill609-Oct-15 2:12
mveCHill609-Oct-15 2:12 
QuestionMSSQL behavior: I need to round instead of truncation when number scale is exceeded Pin
px058-Oct-15 21:32
px058-Oct-15 21:32 
AnswerRe: MSSQL behavior: I need to round instead of truncation when number scale is exceeded Pin
GuyThiebaut8-Oct-15 23:04
professionalGuyThiebaut8-Oct-15 23:04 
GeneralRe: MSSQL behavior: I need to round instead of truncation when number scale is exceeded Pin
px058-Oct-15 23:26
px058-Oct-15 23:26 
AnswerRe: MSSQL behavior: I need to round instead of truncation when number scale is exceeded Pin
Eddy Vluggen9-Oct-15 1:39
professionalEddy Vluggen9-Oct-15 1:39 
AnswerRe: MSSQL behavior: I need to round instead of truncation when number scale is exceeded Pin
Wombaticus10-Oct-15 8:00
Wombaticus10-Oct-15 8:00 
QuestionSql Server Back-end with Access or Asp.net Front-end Pin
macca247-Oct-15 23:23
macca247-Oct-15 23:23 
AnswerRe: Sql Server Back-end with Access or Asp.net Front-end Pin
CHill608-Oct-15 14:29
mveCHill608-Oct-15 14:29 
AnswerRe: Sql Server Back-end with Access or Asp.net Front-end Pin
Daniel Miller19-Oct-15 14:18
professionalDaniel Miller19-Oct-15 14:18 
Questiondatagrid code Pin
Maristello7-Oct-15 3:47
Maristello7-Oct-15 3:47 
AnswerRe: datagrid code Pin
CHill608-Oct-15 14:25
mveCHill608-Oct-15 14:25 
QuestionSQL server query Pin
Swap96-Oct-15 4:04
Swap96-Oct-15 4:04 
id_no first_name last_name
1 X ABC
2 Y ABC
3 M pqr
4 N PQR

Here is the query I am running :

SELECT STUFF((select stuff1 from(SELECT distinct T1.id_no 'sequenceno', ('/' + Col2) + ',' + STUFF((SELECT STUFF2 FROM(SELECT distinct T2.id_no 'sequenceno' ,'-' + substring(first_name, 1, 1)'STUFF2' FROM Table2 AS T2 WHERE T2.last_name = T1.last_name AND T2.id_no = 1234 AND T2.id_no = T1.id_no) dt2
order BY dt2.sequenceno
FOR XML PATH(''),TYPE
).value('.', 'varchar(MAX)'), 1, 1, '') 'stuff1'

FROM Table1 AS T1) dt
order BY dt.sequenceno

FOR XML PATH(''),TYPE).value('.', 'VARCHAR(MAX)'), 1, 1, '') AS Result

OUTPUT - ABc,X-Y/ABc,X-Y/pqr,M-N/PQR,M-N
Desired OUTPUT - ABc,X-Y/pqr,M-N

Can you pls help me on this ?
AnswerRe: SQL server query Pin
Richard Andrew x646-Oct-15 7:10
professionalRichard Andrew x646-Oct-15 7:10 
AnswerRe: SQL server query Pin
RNA Team10-Oct-15 8:33
RNA Team10-Oct-15 8:33 
QuestionHOW TO COPY DBF Files in VB.NET Pin
sunil8800891-Oct-15 22:17
sunil8800891-Oct-15 22:17 
AnswerRe: HOW TO COPY DBF Files in VB.NET Pin
phil.o1-Oct-15 23:55
professionalphil.o1-Oct-15 23:55 
AnswerRe: HOW TO COPY DBF Files in VB.NET Pin
Patrice T2-Oct-15 0:56
mvePatrice T2-Oct-15 0:56 
GeneralRe: HOW TO COPY DBF Files in VB.NET Pin
sunil8800893-Oct-15 21:50
sunil8800893-Oct-15 21:50 
Questionreturn the results from Query union the external proc in DB2 Pin
sudevsu30-Sep-15 8:49
sudevsu30-Sep-15 8:49 

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.