Microsoft
Software
Hardware
Network
Question : SQL query
I have a table which has many records including user_id, activity_type
now i want to find the user_id which returns maximum records with activity_type = 2
Answer : SQL query
SELECT MAX(a.iCount)
FROM
(SELECT user_id, COUNT(user_id) as iCount
FROM Table1
WHERE activity_count=2
GROUP BY user_id) as a
Random Solutions
How to Select a Single Record from a MySql database when DISTINCT doesn't work
Office 2007 Product ID
Execute Script On Shutdown BEFORE network connections close
HP 4730 Mfp configure
Install Office Small Business 2007 using .msi file
Long SQL String is Wrapping and Not Running in Access VBA
Wallpaper GPO Issue
Exchange 2007 Autodiscover & OAB & OOF not working anymore
System.OutOfMemoryExceptio<wbr />n when filling dataset with 655,000 rows - need workaround!!
form timer causes "out of stack space error"