Click here to Skip to main content
15,905,967 members
Home / Discussions / Database
   

Database

 
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 
AnswerRe: how to connect a database in sql with vb6 application Pin
Pete O'Hanlon9-Jul-07 1:48
mvePete O'Hanlon9-Jul-07 1:48 
AnswerRe: how to connect a database in sql with vb6 application Pin
Sven Cipido9-Jul-07 20:23
Sven Cipido9-Jul-07 20:23 
QuestionCreation of table Pin
Ashish Vohra9-Jul-07 1:33
Ashish Vohra9-Jul-07 1:33 
AnswerRe: Creation of table Pin
SHatchard9-Jul-07 2:02
SHatchard9-Jul-07 2:02 
AnswerRe: Creation of table Pin
sam#9-Jul-07 2:05
sam#9-Jul-07 2:05 
AnswerRe: Creation of table Pin
Krish - KP9-Jul-07 2:11
Krish - KP9-Jul-07 2:11 
QuestionBackup or restore Pin
jaics2629-Jul-07 0:46
jaics2629-Jul-07 0:46 
AnswerRe: Backup or restore Pin
Paul Conrad13-Jul-07 11:54
professionalPaul Conrad13-Jul-07 11:54 
QuestionProblem inserting data in SQL Server 2000 Pin
Mubashir Javaid8-Jul-07 22:12
Mubashir Javaid8-Jul-07 22:12 
AnswerRe: Problem inserting data in SQL Server 2000 Pin
Rajesh Mascon8-Jul-07 23:22
Rajesh Mascon8-Jul-07 23:22 
Questionhousekeeping Blobs. [modified] Pin
gloffa8-Jul-07 21:39
gloffa8-Jul-07 21:39 
QuestionSQL Server 2000 connection problem Pin
Deteroc8-Jul-07 21:31
Deteroc8-Jul-07 21:31 
AnswerRe: SQL Server 2000 connection problem Pin
Nouman Bhatti8-Jul-07 21:57
Nouman Bhatti8-Jul-07 21:57 
Questiondisplay stored procedure format..........., Pin
Member 38798818-Jul-07 21:16
Member 38798818-Jul-07 21:16 
AnswerRe: display stored procedure format..........., Pin
Pete O'Hanlon8-Jul-07 23:06
mvePete O'Hanlon8-Jul-07 23: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.