I have a question that uses this DML statement
SELECT SupplierID, COUNT(*) AS TotalProducts FROM Products GROUP BY SupplierID;
I am trying to get the same results without using "Group By". I can use a table variable or a temporary table, if necessary, insert and update. In addition, While and IF-Else are allowed.
I really lost any help, that would be great. Thanks SO Community.
This is used in SQL Server. Thanks again.
source share