Click here to Skip to main content
15,912,507 members
Home / Discussions / Database
   

Database

 
GeneralRe: Sql statement error with ntext field Pin
MJay4-Jan-06 2:30
MJay4-Jan-06 2:30 
QuestionE Fail Problem Pin
rchokler3-Jan-06 10:31
rchokler3-Jan-06 10:31 
QuestionCreating new Child records with a DataSet Pin
WindSailor3-Jan-06 9:17
WindSailor3-Jan-06 9:17 
Question.net Pin
bikshamaiah.g3-Jan-06 5:47
bikshamaiah.g3-Jan-06 5:47 
AnswerRe: .net Pin
Colin Angus Mackay3-Jan-06 9:26
Colin Angus Mackay3-Jan-06 9:26 
AnswerRe: .net Pin
Christian Graus3-Jan-06 16:06
protectorChristian Graus3-Jan-06 16:06 
QuestionGetting an image from dataSet Pin
Sasuko3-Jan-06 0:32
Sasuko3-Jan-06 0:32 
AnswerRe: Getting an image from dataSet Pin
S. Akif Kamal3-Jan-06 1:59
S. Akif Kamal3-Jan-06 1:59 
GeneralSQL Server / IIS incompatibility Pin
hairy_hats2-Jan-06 23:48
hairy_hats2-Jan-06 23:48 
GeneralRe: SQL Server / IIS incompatibility Pin
Colin Angus Mackay3-Jan-06 2:02
Colin Angus Mackay3-Jan-06 2:02 
QuestionSort By Date?? Pin
tadhg882-Jan-06 23:15
tadhg882-Jan-06 23:15 
AnswerRe: Sort By Date?? Pin
S. Akif Kamal3-Jan-06 2:46
S. Akif Kamal3-Jan-06 2:46 
GeneralRe: Sort By Date?? Pin
tadhg883-Jan-06 5:46
tadhg883-Jan-06 5:46 
Questionpls help me out..its urgent... Pin
rs_net2-Jan-06 22:14
rs_net2-Jan-06 22:14 
GeneralSQL Server upgrade Problem Pin
dl4gbe2-Jan-06 16:02
dl4gbe2-Jan-06 16:02 
GeneralRe: SQL Server upgrade Problem Pin
JimmyRopes2-Jan-06 17:16
professionalJimmyRopes2-Jan-06 17:16 
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 
I think this is what you're looking for. I'm not sure if you need the outer join (plus sign) or not. Do you still want to show master data if there is no link/child data? If not, you don't; if so, you'll need one on the latter side of the three code comparisons.
SELECT
  m.code,
  m.field1,
  m.field2,
  c1.data1,
  c2.data1
FROM master m, link l, child c1, child c2
WHERE m.code = l.code
  AND l.code = c1.code
  AND l.code = c2.code
  AND c1.key1 = c2.key1
  AND c1.key2 = 1
  AND c2.key2 = 2


Michael Flanakin
Web Log
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 
QuestionNeed help for the trigger Pin
rs_net1-Jan-06 17:52
rs_net1-Jan-06 17:52 

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.