How many active employees whose payrate is equal or below 30 per hour.
active employee refers to CurrentFlag = 1; Rate< = 30;
SELECT COUNT(T1.BusinessEntityID) FROM Employee AS T1 INNER JOIN EmployeePayHistory AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID WHERE T1.CurrentFlag = 1 AND T2.Rate <= 30