Functions, Joins & Set Operators MCQs

14 MCQs  — Oracle: Introduction & SQL Overview MCQs  (Page 1 of 2)

Practice Functions, Joins & Set Operators MCQs with correct answers and explanations. These questions are from the Oracle: Introduction & SQL Overview MCQs section.

What does INITCAP('oracle database') return?
ORACLE DATABASE
oracle database
Oracle Database
Oracle database
What does MONTHS_BETWEEN(date1, date2) return?
The number of days between the two dates
The later of the two dates
The month name of date1
The number of months between the two dates
Which rule applies to a SELECT with GROUP BY?
All columns must be aggregated
GROUP BY must appear before FROM
Every non-aggregated column in SELECT must appear in GROUP BY
Only numeric columns can be grouped