Click here to Skip to main content
16,010,474 members
Home / Discussions / Database
   

Database

 
GeneralRe: cancel inner join Pin
Amr M. K.10-Jul-07 2:48
Amr M. K.10-Jul-07 2:48 
QuestionINSERT query for a table?(Using two Tables) Pin
chand1010-Jul-07 0:52
chand1010-Jul-07 0:52 
AnswerRe: INSERT query for a table?(Using two Tables) Pin
andyharman10-Jul-07 1:39
professionalandyharman10-Jul-07 1:39 
QuestionError "item has already been added.Key in dictionary" while programming in .Net using DB2 as backend Pin
salimssss10-Jul-07 0:40
salimssss10-Jul-07 0:40 
AnswerRe: Error "item has already been added.Key in dictionary" while programming in .Net using DB2 as backend Pin
Paul Conrad15-Jul-07 5:24
professionalPaul Conrad15-Jul-07 5:24 
Questionhow to read an excel file in sql server 2000 Pin
Amit Sk Sharma9-Jul-07 22:00
Amit Sk Sharma9-Jul-07 22:00 
AnswerRe: how to read an excel file in sql server 2000 Pin
Paul Conrad13-Jul-07 11:51
professionalPaul Conrad13-Jul-07 11:51 
QuestionORA-12505 [modified] Pin
Shajeel9-Jul-07 21:52
Shajeel9-Jul-07 21:52 
AnswerRe: ORA-12505 Pin
andyharman11-Jul-07 3:16
professionalandyharman11-Jul-07 3:16 
GeneralRe: ORA-12505 Pin
Shajeel11-Jul-07 18:27
Shajeel11-Jul-07 18:27 
QuestionConnection problem pls help Pin
micydon9-Jul-07 21:39
micydon9-Jul-07 21:39 
AnswerRe: Connection problem pls help Pin
Paul Conrad13-Jul-07 11:53
professionalPaul Conrad13-Jul-07 11:53 
QuestionHelp needed for an user defined Function Pin
Exelioindia9-Jul-07 21:14
Exelioindia9-Jul-07 21:14 
AnswerRe: Help needed for an user defined Function Pin
WoutL9-Jul-07 22:53
WoutL9-Jul-07 22:53 
GeneralRe: Help needed for an user defined Function Pin
Exelioindia9-Jul-07 23:02
Exelioindia9-Jul-07 23:02 
AnswerRe: Help needed for an user defined Function Pin
gauthee9-Jul-07 23:26
gauthee9-Jul-07 23:26 
QuestionRight Outer Join Probs... Pin
Member 38798819-Jul-07 20:19
Member 38798819-Jul-07 20:19 
QuestionPassing an array to stored procedures Pin
M. J. Jaya Chitra9-Jul-07 18:40
M. J. Jaya Chitra9-Jul-07 18:40 
AnswerRe: Passing an array to stored procedures Pin
Sathesh Sakthivel9-Jul-07 19:16
Sathesh Sakthivel9-Jul-07 19:16 
QuestionQuery Insert Date? Pin
Vodstok9-Jul-07 16:14
Vodstok9-Jul-07 16:14 
AnswerRe: Query Insert Date? Pin
Frank Kerrigan16-Jul-07 2:32
Frank Kerrigan16-Jul-07 2:32 
QuestionQuery probs............., Pin
Member 38798819-Jul-07 3:36
Member 38798819-Jul-07 3:36 
AnswerRe: Outer join problem Pin
andyharman9-Jul-07 6:49
professionalandyharman9-Jul-07 6:49 
Hi Magi

I think what you want is:
FROM @tbl_date ttd
LEFT OUTER JOIN dbo.tblTimeCardmain TC
  ON TC.carddate = ttd.mydate
LEFT OUTER JOIN dbo.tblEmployeeMaster EM
  ON EM.empId = TC.empid
LEFT OUTER JOIN dbo.tblsalarydetails SD
  ON SD.EmpID = TC.empid
LEFT OUTER JOIN dbo.tblProjectMaster PM
  ON PM.projectID = TC.projectid
LEFT OUTER JOIN dbo.tblMonthHourDetails MHD
  ON MHD.EmpId = TC.empid
  AND MHD.SDate = TC.carddate
Your @tbl_date table is the lead-table in the query. The rest of the tables should be outer-joined as they contain the optional data.

Regards
Andy

If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message".

GeneralRe: Outer join problem Pin
Member 38798819-Jul-07 19:07
Member 38798819-Jul-07 19:07 
Questionhow to connect a database in sql with vb6 application Pin
treem jone9-Jul-07 1:42
treem jone9-Jul-07 1:42 

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.