Bonjour,
J'ai une table MaTable avec les champs Champ1 et Champ2.
Je voudrais retourner une table à une ligne et deux champ MyCount et MyDistinctCount.J'en suis làJe n'arrive pas à placer mon SELECT COUNT(*) AS MyCount FROM MaTable.SELECT COUNT(*) AS MyDistinctCount FROM
(SELECT DISTINCT Champ1,Champ2 FROM MaTable) AS MonAlias
Comment compter les lignes et les lignes distinctes d'une table SQL Server (T-SQL) ?
a+, =)
-=Clement=-
Partager