Hello,I'm having trouble running this query against an insurance database:SELECT DISTINCT c.Claimid, c.ClaimDate, n.Comments,FROM dbo.tblClaim As cJOIN dbo.tblNotes As nON c.Rowguid = n.Rowguid
If I join the tables using RIGHT JOIN then the Comments field is filled but I get a NULL in the ClaimID and ClaimDate field (which can't be right because all Claims have an ID and Date)If I join the tables using LEFT JOIN the ClaimID and ClaimDate field are filled but there is a NULL in the Comments field.If I use the WHERE clause like this:SELECT DISTINCT c.Claimid, c.ClaimDate, n.Comments,FROM dbo.tblClaim As cJOIN dbo.tblNotes As nON c.Rowguid = n.RowguidWHERE c.ClaimID = '32961'
then the result just comes back blank, no error or NULL.Any ideas where I'm going wrong here?ThanksSteven