問題文
A query needs the length of service of each employee. The developer writes SYSDATE - hire_date in the select list. What is the data type and the meaning of the value that this expression returns?
選択肢
- A number that counts seconds, because subtracting one datetime value from another yields a number and the database reads such a number as a count of seconds.
- An interval that counts days and seconds, because subtracting one datetime value from another yields a value of the interval data type in every case.
- A date that marks the anniversary, because subtracting one datetime value from another yields a datetime value and the database reads it as a point in time.
- A number that counts days, because subtracting one datetime value from another yields a number and the database reads such a number as a count of days.