Aug 15, 2001 #1 Raparla IS-IT--Management Aug 7, 2000 9 US Hi, Any idea on how to find, in which month the maximum number of employees joined the company. Table has two fields Month, Emp_Id You can use the following as prototype. select Month_Name, max(count(Emp_Id)) from Table1 group by Month_Name
Hi, Any idea on how to find, in which month the maximum number of employees joined the company. Table has two fields Month, Emp_Id You can use the following as prototype. select Month_Name, max(count(Emp_Id)) from Table1 group by Month_Name
Aug 15, 2001 #2 karluk MIS Nov 29, 1999 2,485 US I would try something like SELECT top 1 month,COUNT(emp_id) FROM table1 GROUP BY month order by 2 desc Upvote 0 Downvote
I would try something like SELECT top 1 month,COUNT(emp_id) FROM table1 GROUP BY month order by 2 desc
Aug 15, 2001 Thread starter #3 Raparla IS-IT--Management Aug 7, 2000 9 US Thank You. It is working fine. Upvote 0 Downvote