Click here to Skip to main content
15,907,281 members
Home / Discussions / Database
   

Database

 
GeneralRe: Database Testing Concurrency Pin
SimulationofSai5-Nov-07 0:08
SimulationofSai5-Nov-07 0:08 
GeneralRe: Database Testing Concurrency Pin
Pete O'Hanlon5-Nov-07 0:22
mvePete O'Hanlon5-Nov-07 0:22 
GeneralRe: Database Testing Concurrency Pin
SimulationofSai5-Nov-07 19:48
SimulationofSai5-Nov-07 19:48 
QuestionSQL Database Constraints Pin
Vimalsoft(Pty) Ltd4-Nov-07 22:37
professionalVimalsoft(Pty) Ltd4-Nov-07 22:37 
AnswerRe: SQL Database Constraints Pin
SimulationofSai5-Nov-07 19:50
SimulationofSai5-Nov-07 19:50 
QuestionTo get son and all grandsons Pin
VB.Net Developer4-Nov-07 22:07
VB.Net Developer4-Nov-07 22:07 
AnswerRe: To get son and all grandsons Pin
Pete O'Hanlon4-Nov-07 22:30
mvePete O'Hanlon4-Nov-07 22:30 
AnswerRe: To get son and all grandsons Pin
Grampa Simpson6-Nov-07 2:49
Grampa Simpson6-Nov-07 2:49 
Trying to be a bit more helpful

But the solution has to do with CTEs, at least if your using SQL Server as this is not standard SQL:

<br />
with tmp(parent, son) as (<br />
select <br />
   tab.parent, tab.son from tab<br />
where <br />
    tab.parent='A'<br />
<br />
union all<br />
<br />
select <br />
   tmp.super, tab.son<br />
from <br />
   tmp join tab on tmp.son=tab.parent<br />


Beware of loops! In that case you need to introduce a recursion counter or a condition that restricts son<>'A'.
QuestionInserting Leading Zero for datepart(MM and datepart(dd Pin
Support1234-Nov-07 20:33
Support1234-Nov-07 20:33 
AnswerRe: Inserting Leading Zero for datepart(MM and datepart(dd Pin
Support1234-Nov-07 23:28
Support1234-Nov-07 23:28 
GeneralRe: Inserting Leading Zero for datepart(MM and datepart(dd Pin
r a j u u4-Nov-07 23:45
r a j u u4-Nov-07 23:45 
QuestionCast into Numeric Pin
banker_kiran4-Nov-07 19:56
banker_kiran4-Nov-07 19:56 
AnswerRe: Cast into Numeric Pin
r a j u u4-Nov-07 20:24
r a j u u4-Nov-07 20:24 
GeneralRe: Cast into Numeric Pin
banker_kiran4-Nov-07 20:27
banker_kiran4-Nov-07 20:27 
GeneralRe: Cast into Numeric Pin
r a j u u4-Nov-07 20:50
r a j u u4-Nov-07 20:50 
GeneralRe: Cast into Numeric Pin
banker_kiran4-Nov-07 23:14
banker_kiran4-Nov-07 23:14 
AnswerRe: Cast into Numeric Pin
Muhammad Shahid Farooq5-Nov-07 3:48
professionalMuhammad Shahid Farooq5-Nov-07 3:48 
GeneralRe: Cast into Numeric Pin
banker_kiran5-Nov-07 18:12
banker_kiran5-Nov-07 18:12 
QuestionDatabse ambiguity Pin
sindhutiwari4-Nov-07 19:34
sindhutiwari4-Nov-07 19:34 
QuestionDeploying report in Sql Server Reporting Services Pin
ankprasanna4-Nov-07 18:07
ankprasanna4-Nov-07 18:07 
QuestionProblem with my connection Pin
sudany_zool4-Nov-07 16:13
sudany_zool4-Nov-07 16:13 
AnswerRe: Problem with my connection Pin
John Gathogo4-Nov-07 18:21
John Gathogo4-Nov-07 18:21 
QuestionHelp Help Help Pin
Ahmad Adnan3-Nov-07 23:13
Ahmad Adnan3-Nov-07 23:13 
AnswerRe: Help Help Help Pin
Mark Churchill3-Nov-07 23:25
Mark Churchill3-Nov-07 23:25 
AnswerRe: Help Help Help [modified] Pin
Ghazi H. Wadi3-Nov-07 23:28
Ghazi H. Wadi3-Nov-07 23:28 

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.