Advertisement
Fhernd

ValoresUnicos.sql

Jul 11th, 2016
898
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
T-SQL 0.29 KB | None | 0 0
  1. SELECT RateChangeDate,
  2.     COUNT(Rate) AS 'Contador',
  3.     COUNT(DISTINCT Rate) AS 'Valores Distintos'
  4.     FROM HumanResources.EmployeePayHistory
  5.     WHERE RateChangeDate >= '2003-01-01T00:00:00.000'
  6.         AND RateChangeDate < '2003-01-10T00:00:00.000'
  7.     GROUP BY RateChangeDate;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement