Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What's Wrong With This????
Message
From
08/08/2011 00:45:07
 
 
To
08/08/2011 00:39:05
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Miscellaneous
Thread ID:
01520346
Message ID:
01520353
Views:
41
>>
>>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.
>
Battling with Keyboard suggestions overlooked that the voters Must Be Counted....
Previous
Reply
Map
View

Click here to load this message in the networking platform