相关试题
单选题
Examine this query:
SELECT 2 FROM DUAL d1 CROSS JOIN DUAL d2 CROSS JOIN DUAL d3;
What is returned upon execution?
单选题
Which is true about the ROUND, TRUNC and MOD functions?
单选题
Examine the description of the EMPLOYEES table: 
Which statement will execute successfully, returning distinct employees with non-
Null first names?
单选题
You have been tasked to create a table for a banking application.
One of the columns must meet three requirements:
1) Be stored in a format supporting date arithmetic without using conversion functions
2) Store a loan period of up to 10 years
3) Be used for calculating interest for the number of days the loan remains unpaid
Which data type should you use?
单选题
Examine this partial query:
SELECT ch.channel_ type, t.month, co. country_ code, SUM (s.amount_sold) SALES
FROM sales S, times t, channels ch, countries co WHERE s. time_ id = t. time_ id AND s.country_ id = co. country_ id AND s.channel_ id = ch.channel_ id AND ch.channel_ type IN (‘Direct Sales ', ' Internet’) AND t.month IN (' 2000-091 ', ' 2000-10) AND co. country_ code IN (‘GB’,' US ' )
Examine this output: 
Which GROUP BY clause must be added so the query returns the results shown?
单选题
Examine this statement, which executes successfully:
Examine this statement, which executes successfully:
SELECTd. department_ name, ROUND (AVG (NULLIF (e. salary, 0))) AS avgsal, MAX (e. salary) AS maxsal FROM employees e
JOIN departments d ON (e. department_ id =d. department_ id)
GROUP BYd. department_ name
ORDER BY 2;
In which order are the rows displayed?
单选题
Examine this statement:
SELECT 1 AS id, ' John' AS first name FROM DUAL
UNION
SELECT 1 , ' John' AS name FROM DUAL
ORDER BY 1;
What is returned upon execution?
单选题
The STORES table has a column START_ DATE of data type DATE, containing the date the row was inserted.
You only want to display details of rows where START_ DATE is within the last 25 months.
Which WHERE clause can be used?