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
SQL Function Question
How to use the Switch case in the Report Expression effectively
Asp's Page ViewState
Calculate the Net Hours
Cumulative Count in a Query
Subform last record not showing on report
how to import multiple contacts into office communicator 2007?
IIS7 produces "HTTP Error 404. The requested resource is not found" when no www is used
I need to save *dynamic* application settings in .NET 2.0 Winforms
Migration to Exchange 2010 problems