Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What's Wrong With This????
Message
 
 
To
08/08/2011 00:39:05
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Miscellaneous
Thread ID:
01520346
Message ID:
01520363
Views:
48
>>
>>SELECT u.id, u.campaign_id, u.user_id, u.query_name, u.query_desc, v.voter_id
>>	FROM universes u
>>	JOIN universe_xref_voters v ON v.universe_id = u.id
>>	WHERE u.Campaign_Id = 134 
>>	ORDER BY u.Query_Name
>>
>>
>>Notice that I'm getting the universes tabel repeated 3 times. I should be getting back all 4 universe roes with a voter Id added on.
>>>My ultimate goal is to get a result set of universes with a count of voters assigned to each, but I can't get past this.
>you Need a Left join grouped on the id and a Field to Count the Universe recs.
>Typung on the pad is Not so Great for Code - you should get the idea.
>
>Regards
>
>Thomas

Which pad did you get? I am also a fan (don't have one yet) but can well imagine typing code is not its forte.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform