Thread
:
How to form Query for details given?
View Single Post
#
2
(
permalink
)
11-29-2006, 05:51 PM
ben
Administrator
Join Date: Mar 2007
Posts: 91
MySQL
answer.
Re: How to form Query for details given?
This should work with MS SQL as well
[sql]
SELECT empid FROM Emptable
WHERE datetime > (CURRENT_TIMESTAMP + INTERVAL '-7' DAY)
GROUP BY empid
HAVING count(empid) >= 5
[/sql]
ben
View Public Profile
Send a private message to ben
Find all posts by ben