Click here to Skip to main content
15,902,889 members
Home / Discussions / Database
   

Database

 
GeneralRe: LEFT JOIN ??? Pin
Halawlaws27-Aug-07 1:41
Halawlaws27-Aug-07 1:41 
GeneralRe: LEFT JOIN ??? Pin
Colin Angus Mackay27-Aug-07 2:27
Colin Angus Mackay27-Aug-07 2:27 
GeneralRe: LEFT JOIN ??? Pin
Halawlaws27-Aug-07 4:05
Halawlaws27-Aug-07 4:05 
AnswerRe: LEFT JOIN ??? Pin
Michael Potter27-Aug-07 5:31
Michael Potter27-Aug-07 5:31 
GeneralRe: LEFT JOIN ??? Pin
Halawlaws27-Aug-07 5:56
Halawlaws27-Aug-07 5:56 
GeneralRe: LEFT JOIN ??? Pin
Michael Potter27-Aug-07 6:01
Michael Potter27-Aug-07 6:01 
GeneralRe: LEFT JOIN ??? Pin
Halawlaws27-Aug-07 20:05
Halawlaws27-Aug-07 20:05 
GeneralRe: LEFT JOIN ??? Pin
Michael Potter28-Aug-07 3:24
Michael Potter28-Aug-07 3:24 
You can't put the default=1 in the WHERE clause. It has to be put in the JOIN clause as I listed in a previous post. The WHERE clause will eliminate non-matching rows (a null in the default column does not match 1). I have long since stopped qualifying my joins in the WHERE clause because of this type of issue.

The sample query I listed before should get you your desired results if your tables are structured as you have stated. If you are getting duplicate results, there is something in your structure that I don't understand. I do LEFT JOINS all the time without the side effect you are getting.

Can you post the actual query you are using?
Questionreference data from database to textboxes Pin
RaveRare26-Aug-07 22:29
RaveRare26-Aug-07 22:29 
AnswerRe: reference data from database to textboxes Pin
Colin Angus Mackay27-Aug-07 0:56
Colin Angus Mackay27-Aug-07 0:56 
QuestionOh No, How this happened???? Pin
RaveRare26-Aug-07 20:21
RaveRare26-Aug-07 20:21 
QuestionDatabase Login Pin
Bonsta26-Aug-07 8:47
Bonsta26-Aug-07 8:47 
AnswerRe: Database Login Pin
Marek Grzenkowicz26-Aug-07 21:43
Marek Grzenkowicz26-Aug-07 21:43 
QuestionWhy the Column from Type BigInt must have name [Size] in SQL 2000 to work well ?!! Pin
I Believe In GOD26-Aug-07 5:39
I Believe In GOD26-Aug-07 5:39 
AnswerRe: Why the Column from Type BigInt must have name [Size] in SQL 2000 to work well ?!! Pin
Michael Sync26-Aug-07 17:44
Michael Sync26-Aug-07 17:44 
QuestionPleaes help me with this query Pin
Meysam Mahfouzi26-Aug-07 4:22
Meysam Mahfouzi26-Aug-07 4:22 
AnswerRe: Pleaes help me with this query Pin
Colin Angus Mackay26-Aug-07 5:35
Colin Angus Mackay26-Aug-07 5:35 
GeneralRe: Pleaes help me with this query Pin
Meysam Mahfouzi26-Aug-07 11:32
Meysam Mahfouzi26-Aug-07 11:32 
GeneralRe: Pleaes help me with this query Pin
Colin Angus Mackay26-Aug-07 11:44
Colin Angus Mackay26-Aug-07 11:44 
GeneralRe: Pleaes help me with this query Pin
Meysam Mahfouzi28-Aug-07 3:25
Meysam Mahfouzi28-Aug-07 3:25 
AnswerRe: Pleaes help me with this query Pin
Michael Potter27-Aug-07 5:41
Michael Potter27-Aug-07 5:41 
GeneralRe: Pleaes help me with this query Pin
Meysam Mahfouzi28-Aug-07 3:08
Meysam Mahfouzi28-Aug-07 3:08 
GeneralRe: Pleaes help me with this query Pin
Colin Angus Mackay28-Aug-07 6:55
Colin Angus Mackay28-Aug-07 6:55 
GeneralRe: Pleaes help me with this query Pin
Meysam Mahfouzi28-Aug-07 21:38
Meysam Mahfouzi28-Aug-07 21:38 
QuestionProblem with cursor Pin
Developer61126-Aug-07 4:06
Developer61126-Aug-07 4:06 

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.