Click here to Skip to main content
15,898,134 members
Home / Discussions / Database
   

Database

 
GeneralRe: Dynamic Stored Procedure Pin
jschell23-Nov-13 11:16
jschell23-Nov-13 11:16 
GeneralRe: Dynamic Stored Procedure Pin
Commish1323-Nov-13 13:17
professionalCommish1323-Nov-13 13:17 
GeneralRe: Dynamic Stored Procedure Pin
jschell25-Nov-13 7:48
jschell25-Nov-13 7:48 
AnswerRe: Dynamic Stored Procedure Pin
GuyThiebaut24-Nov-13 6:03
professionalGuyThiebaut24-Nov-13 6:03 
AnswerRe: Dynamic Stored Procedure Pin
Dusara Maulik26-Nov-13 18:55
Dusara Maulik26-Nov-13 18:55 
Questionconstraints Pin
Member 1041899722-Nov-13 0:47
Member 1041899722-Nov-13 0:47 
AnswerRe: constraints Pin
Chris Quinn22-Nov-13 2:13
Chris Quinn22-Nov-13 2:13 
AnswerRe: constraints Pin
thatraja22-Nov-13 2:51
professionalthatraja22-Nov-13 2:51 
Generaltriggers Pin
Member 1041899722-Nov-13 0:05
Member 1041899722-Nov-13 0:05 
QuestionRe: triggers Pin
thatraja22-Nov-13 0:08
professionalthatraja22-Nov-13 0:08 
QuestionHow to create linked server MySQL? Pin
Arun Sylvester J21-Nov-13 20:45
Arun Sylvester J21-Nov-13 20:45 
AnswerRe: How to create linked server MySQL? Pin
jschell22-Nov-13 9:50
jschell22-Nov-13 9:50 
QuestionSemicolon delimited lists in SQL Pin
.dan.g.21-Nov-13 13:12
professional.dan.g.21-Nov-13 13:12 
AnswerRe: Semicolon delimited lists in SQL Pin
Mycroft Holmes21-Nov-13 13:38
professionalMycroft Holmes21-Nov-13 13:38 
AnswerRe: Semicolon delimited lists in SQL Pin
PIEBALDconsult21-Nov-13 13:48
mvePIEBALDconsult21-Nov-13 13:48 
AnswerRe: Semicolon delimited lists in SQL Pin
Peter Leow21-Nov-13 13:58
professionalPeter Leow21-Nov-13 13:58 
GeneralRe: Semicolon delimited lists in SQL Pin
.dan.g.21-Nov-13 14:13
professional.dan.g.21-Nov-13 14:13 
Questionfind total money of parent node of tree according to a particular pattern Pin
jitendra raj20-Nov-13 5:54
jitendra raj20-Nov-13 5:54 
AnswerRe: find total money of parent node of tree according to a particular pattern Pin
Mycroft Holmes20-Nov-13 19:25
professionalMycroft Holmes20-Nov-13 19:25 
GeneralRe: find total money of parent node of tree according to a particular pattern Pin
jitendra raj20-Nov-13 22:46
jitendra raj20-Nov-13 22:46 
GeneralRe: find total money of parent node of tree according to a particular pattern Pin
Mycroft Holmes21-Nov-13 1:35
professionalMycroft Holmes21-Nov-13 1:35 
AnswerRe: find total money of parent node of tree according to a particular pattern Pin
Jörgen Andersson21-Nov-13 1:37
professionalJörgen Andersson21-Nov-13 1:37 
That wasn't to hard to solve.

But I'm not going to tell you how. And this is why:
Pyramid schemes are illegal in a larger part of the world, and I'm not being part of it!
Alternatively this is a school assignment, where I'm not simply going to tell you the answer. Because I'm might have to work with you in the future, and if you got your degree without actually having understood what you were taught, you're going to be a dead weight for your workmates.

So you'll have to do the work yourself, but I'll assume you're a student and will give you a few pointers on how to get there.

Drop that silly tbl prefix, you're not selling furniture and it's not following standards (ISO-11179).
Drop the temp table, it's a last resort and shows that you're thinking procedurally instead of setbased.

So if you think setbased instead: get two CTEs, one containing the nodes having left children and one having containing the nodes with right children. Now you only need to join those CTEs three times to get the nodes that should get payed $1500.
Politicians are always realistically manoeuvering for the next election. They are obsolete as fundamental problem-solvers.
Buckminster Fuller

GeneralRe: find total money of parent node of tree according to a particular pattern Pin
jschell21-Nov-13 8:30
jschell21-Nov-13 8:30 
QuestionDynamic Filter Stored Procedure Pin
Commish1319-Nov-13 6:38
professionalCommish1319-Nov-13 6:38 
AnswerRe: Dynamic Filter Stored Procedure Pin
Mycroft Holmes19-Nov-13 12:02
professionalMycroft Holmes19-Nov-13 12:02 

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.