Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What's Wrong With This????
Message
De
08/08/2011 00:45:07
 
 
À
08/08/2011 00:39:05
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Divers
Thread ID:
01520346
Message ID:
01520353
Vues:
39
>>
>>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....
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform