Click here to Skip to main content
15,905,875 members
Home / Discussions / Database
   

Database

 
GeneralRe: Debugging null data adapter Pin
Wendelius13-Nov-08 7:14
mentorWendelius13-Nov-08 7:14 
GeneralRe: Debugging null data adapter Pin
theFrenchHornet15-Nov-08 9:21
theFrenchHornet15-Nov-08 9:21 
GeneralRe: Debugging null data adapter Pin
Wendelius15-Nov-08 9:59
mentorWendelius15-Nov-08 9:59 
AnswerRe: Debugging null data adapter Pin
PIEBALDconsult13-Nov-08 16:11
mvePIEBALDconsult13-Nov-08 16:11 
GeneralRe: Debugging null data adapter Pin
theFrenchHornet15-Nov-08 9:22
theFrenchHornet15-Nov-08 9:22 
QuestionSQL CE Exception Pin
hammerstein0512-Nov-08 4:01
hammerstein0512-Nov-08 4:01 
AnswerRe: SQL CE Exception Pin
Ennis Ray Lynch, Jr.13-Nov-08 4:39
Ennis Ray Lynch, Jr.13-Nov-08 4:39 
QuestionHow to get this nested level output Pin
VenkataRamana.Gali11-Nov-08 18:10
VenkataRamana.Gali11-Nov-08 18:10 
There are two tables, NAMES (ID INT IDENTITY (1,1), NAME VARCHAR(255)) and
RELATIONSHIPS ( NAMEID INT , PARENT _ NAMEID INT ) linked via NAMES.ID = RELATIONSHIPS.NAMEID and where top-most name has a PARENT _ NAMEID = 0.

Show a nested list of names including LEVEL , NAMEID and NAME , where LEVEL indicates the nest level (or depth) from the top, as indicated in the expected output (below).

NAMES table content:
==================
ID NAME
1 Frank
2 Jo
3 Mary
4 Peter
5 Amy

RELATIONSHIPS table content:
==========================
NAMEID PARENT _ NAMEID
1 0
2 1
3 2
4 1
5 2


Expected Output:
===================
In the expected output, please note The sequence of the output, in which child elements appear immediately beneath their respective parent elements.

LEVEL ID NAME
0 1 Frank
1 2 Jo
2 5 Amy
2 3 Mary
1 4 Peter


any sounds please...

Ramana

AnswerRe: How to get this nested level output Pin
ScottM111-Nov-08 19:42
ScottM111-Nov-08 19:42 
AnswerRe: How to get this nested level output Pin
Wendelius12-Nov-08 7:39
mentorWendelius12-Nov-08 7:39 
Questionenabling xp_cmdshell Pin
sunny7411-Nov-08 17:58
sunny7411-Nov-08 17:58 
AnswerRe: enabling xp_cmdshell Pin
ScottM111-Nov-08 19:39
ScottM111-Nov-08 19:39 
GeneralRe: enabling xp_cmdshell Pin
sunny7411-Nov-08 22:15
sunny7411-Nov-08 22:15 
GeneralRe: enabling xp_cmdshell Pin
ScottM111-Nov-08 22:31
ScottM111-Nov-08 22:31 
AnswerRe: enabling xp_cmdshell Pin
Tomb42113-Nov-08 4:01
Tomb42113-Nov-08 4:01 
QuestionHOW TO PRINT THIS PATTERN Pin
saikirankatighar11-Nov-08 1:09
saikirankatighar11-Nov-08 1:09 
AnswerRe: HOW TO PRINT THIS PATTERN Pin
Mycroft Holmes11-Nov-08 1:24
professionalMycroft Holmes11-Nov-08 1:24 
GeneralRe: HOW TO PRINT THIS PATTERN Pin
saikirankatighar11-Nov-08 1:33
saikirankatighar11-Nov-08 1:33 
GeneralRe: HOW TO PRINT THIS PATTERN Pin
Mycroft Holmes11-Nov-08 1:39
professionalMycroft Holmes11-Nov-08 1:39 
GeneralRe: HOW TO PRINT THIS PATTERN Pin
This is Remo11-Nov-08 1:42
This is Remo11-Nov-08 1:42 
AnswerRe: HOW TO PRINT THIS PATTERN Pin
ScottM111-Nov-08 1:50
ScottM111-Nov-08 1:50 
GeneralRe: HOW TO PRINT THIS PATTERN Pin
Paul Conrad11-Nov-08 15:37
professionalPaul Conrad11-Nov-08 15:37 
Questionstring parameter treate as colunm name in execute procedure Pin
Unknown Ajanabi11-Nov-08 0:07
Unknown Ajanabi11-Nov-08 0:07 
AnswerRe: string parameter treate as colunm name in execute procedure Pin
Ashfield11-Nov-08 0:17
Ashfield11-Nov-08 0:17 
GeneralRe: string parameter treate as colunm name in execute procedure Pin
Unknown Ajanabi11-Nov-08 0:50
Unknown Ajanabi11-Nov-08 0:50 

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.