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
sharepoint create site column programmatically
Need help with SQL 2008 running on a 2008 failover cluster
XCopy command leaves folder hidden
Nested countif problem
Can we enable the guest account on a machine
BootMGR Is missing
Calendar Options grids
vb.net color palette
How do I compute a SUM from 2 different tables and divide the Sums?
unlock the "local area connection' of windows xp