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 manage the decimal separator in SQL Server 2008
Simple ADODB Connection Error
Supress SQL login in MSACCESS on linked tables
Sony Vaio PCG-531A - Can the OS be upgraded on this notebook??
HKLM\ RunOnce does not run until login
Blue Screen Windows 7 - Memory_Management 0x0000001a
AxShockwaveFlash transparency problem
Exchange 2007 RSG Problem
wiaManager = new WiaClass(); // create COM instance of WIA manager
Dates will not format properly (month and day)