Dalam oracle ni, senang aje kalau nak filter by date secara manual...
contoh filter secara manual dengan tarikh dan masa dimasukkan ikut suka hati sendiri aje.
SELECT COUNT(DISTINCT AUD_LOGINID) AS TOTAL
FROM AUDIT_LOGIN
WHERE DATE_LOGIN > TO_TIMESTAMP('24/03/2011 01:01:01', 'DD/MM/YYYY HH24:MI:SS')
contoh filter kalau nak ambik data yang semalam punya
SELECT COUNT(DISTINCT AUD_LOGINID) AS TOTAL
FROM AUDIT_LOGIN
WHERE DATE_LOGIN > sysdate - 1
haaa... kan senang aje....
0 comments:
Post a Comment
Say whut you want, but be responsible on whut you said...