Viewing 2 posts - 1 through 3 (of 3 total)
Thanks to all the valuable suggestions given here. I appreciate it very much. Thanks 🙂
July 25, 2005 at 6:37 pm
#577028
Thanks Mike
The table was created as follows:
CREATE TABLE objview(objId VARCHAR(35) REFERENCES obj(objId), viewDate DATETIME, ip VARCHAR(255))
And the query is as simple as:
SELECT DISTINCT YEAR(viewDate) AS year FROM objview WHERE objId=?...
July 25, 2005 at 5:29 am
#576719