瀏覽單個文章
黑狗弟
Elite Member
 
黑狗弟的大頭照
 

加入日期: Jan 2000
您的住址: 噗噗噗噗
文章: 4,489
像這樣...
-
Select
employees.employee_id,
employees.first_name,
employees.last_name,
tests.name,
testlog.test_date,
tests.frequency,
SYSDATE - testlog.test_date DayTaken,
SYSDATE - testlog.test_date - tests.frequency DaysOverdue
From employees, tests, testlog
Where
employees.employee_id = testlog.employee_id
and testlog.test_id = tests.test_id
and SYSDATE - testlog.test_date > tests.frequency;
-
lk777 大大所說的 trunc 因該放在哪呀??
__________________

你們都是我的心肝寶貝呀..
舊 2003-06-03, 11:10 AM #9
回應時引用此文章
黑狗弟離線中