Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Help with inner join

Author  Topic 

dwdwonw
Starting Member

21 Posts

Posted - 2010-06-02 : 12:13:18
This should work but doesn't. I can't seem to figure out where I'm going wrong. Any suggestions are appreciated!

Thanks,
Dan

SELECTC.BillingCycleID, C.CustID, C.LocalName, B.Description
FROM tblCustomer AS C
INNER JOIN tblBillingCycles AS B ON B.BillingCycleID = C.BillingCycleID

jimf
Master Smack Fu Yak Hacker

2875 Posts

Posted - 2010-06-02 : 12:28:35
What isn't working about it? The only syntax error in your example is that is there no space between your SELECT and C.BillingCycleID.

Jim

Everyday I learn something that somebody else already knew
Go to Top of Page

dwdwonw
Starting Member

21 Posts

Posted - 2010-06-02 : 15:38:51
Even with the space, it crashes on me. Only when I remove the table names from the column names in the ON part of the clause do I get a result, which, of course, ends up being the cartesian product.
Go to Top of Page

vijayisonly
Master Smack Fu Yak Hacker

1836 Posts

Posted - 2010-06-02 : 16:17:23
quote:
Even with the space, it crashes on me

What specific error did you receive?
Go to Top of Page
   

- Advertisement -