Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SELECT COUNT(*) with UNION
Message
De
02/01/2013 21:50:27
 
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Versions des environnements
SQL Server:
SQL Server 2008
Application:
Web
Divers
Thread ID:
01561145
Message ID:
01561155
Vues:
43
>
>select sum(cntTotal) as Total
>FROM
>(select count(..) as cntTotal from myFirstTable ...
>UNION ALL
>select count(..) as cntTotal from  mySecondTable) X
Thanks

That's what I used but did not include the ALL.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform