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

Database

 
GeneralRe: SQL Server upgrade Problem Pin
dl4gbe2-Jan-06 17:52
dl4gbe2-Jan-06 17:52 
GeneralRe: SQL Server upgrade Problem Pin
JimmyRopes3-Jan-06 5:43
professionalJimmyRopes3-Jan-06 5:43 
GeneralRe: SQL Server upgrade Problem Pin
dl4gbe3-Jan-06 21:00
dl4gbe3-Jan-06 21:00 
GeneralRe: SQL Server upgrade Problem Pin
JimmyRopes3-Jan-06 23:34
professionalJimmyRopes3-Jan-06 23:34 
QuestionSQL command optimization Pin
Wjousts2-Jan-06 10:06
Wjousts2-Jan-06 10:06 
AnswerRe: SQL command optimization Pin
Michael Flanakin3-Jan-06 3:05
Michael Flanakin3-Jan-06 3:05 
GeneralRe: SQL command optimization Pin
Wjousts3-Jan-06 11:02
Wjousts3-Jan-06 11:02 
AnswerRe: SQL command optimization Pin
Michael Flanakin4-Jan-06 2:26
Michael Flanakin4-Jan-06 2:26 
Good catch. I thought it was odd that the code would be in the child table, too. Guess I got ahead of myself when writing the SQL. It's kinda hard to write that stuff when you don't have the tables to play with in front of you.

The plus sign represents an outer join. You typically do an outer join to a foreign key column that might be null. So, since the p.code column is the primary key, that comparison should be p.code = l.code(+). I don't think you need one on the key comparisons. If so, they probably go on the l.key1 column. I'd have to play with it to be sure.

Also, just to make things easier on people who read your SQL, I'd suggest you put the outer join columns on the right side of the operator. Not that it's a huge deal, but I personally find it a bit easier to read that way. Maybe that's just because it's the way I'm used to it, tho.

Michael Flanakin
Web Log
QuestionNeed help for the trigger Pin
rs_net1-Jan-06 17:52
rs_net1-Jan-06 17:52 
AnswerRe: Need help for the trigger Pin
Colin Angus Mackay2-Jan-06 4:06
Colin Angus Mackay2-Jan-06 4:06 
QuestionPlease, Help me. I am really LOST Pin
alexvw1-Jan-06 14:47
alexvw1-Jan-06 14:47 
AnswerRe: Please, Help me. I am really LOST Pin
Colin Angus Mackay1-Jan-06 15:16
Colin Angus Mackay1-Jan-06 15:16 
GeneralRe: Please, Help me. I am really LOST Pin
alexvw2-Jan-06 2:15
alexvw2-Jan-06 2:15 
GeneralRe: Please, Help me. I am really LOST Pin
Colin Angus Mackay2-Jan-06 2:38
Colin Angus Mackay2-Jan-06 2:38 
GeneralRe: Please, Help me. I am really LOST Pin
alexvw2-Jan-06 2:35
alexvw2-Jan-06 2:35 
AnswerRe: Please, Help me. I am really LOST Pin
S. Akif Kamal1-Jan-06 20:02
S. Akif Kamal1-Jan-06 20:02 
GeneralRe: Please, Help me. I am really LOST Pin
alexvw2-Jan-06 2:17
alexvw2-Jan-06 2:17 
GeneralRe: Please, Help me. I am really LOST Pin
alexvw2-Jan-06 2:35
alexvw2-Jan-06 2:35 
GeneralRe: Please, Help me. I am really LOST Pin
Colin Angus Mackay2-Jan-06 2:40
Colin Angus Mackay2-Jan-06 2:40 
GeneralRe: Please, Help me. I am really LOST Pin
Rob Graham2-Jan-06 4:49
Rob Graham2-Jan-06 4:49 
GeneralRe: Please, Help me. I am really LOST Pin
S. Akif Kamal2-Jan-06 19:26
S. Akif Kamal2-Jan-06 19:26 
Questionado in pascal Pin
aspnet_221-Jan-06 9:09
aspnet_221-Jan-06 9:09 
AnswerRe: ado in pascal Pin
André Ziegler1-Jan-06 12:22
André Ziegler1-Jan-06 12:22 
GeneralRe: ado in pascal Pin
aspnet_221-Jan-06 22:58
aspnet_221-Jan-06 22:58 
GeneralRe: ado in pascal Pin
André Ziegler1-Jan-06 23:58
André Ziegler1-Jan-06 23:58 

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.