The only statement that is true about aggregate functions is:
D. The MAX and MIN functions can be used on columns with character data types
The other statements are false:
A. Aggregate functions can be nested to any number of levels - Aggregate functions can be nested to a maximum depth of 15 levels.
B. The AVG function implicitly converts NULLS to zero - The AVG function ignores NULLS when calculating the average.
C. Aggregate functions can be used in any clause of a SELECT statement - Aggregate functions can only be used in the SELECT clause and the GROUP BY clause of a SELECT statement.
Aggregate functions are functions that perform calculations on groups of rows. Some common aggregate functions include COUNT(), SUM(), AVG(), MAX(), and MIN().
Aggregate functions can be used to calculate a variety of statistics, such as the total number of rows in a table, the average value of a column, or the highest value in a column.
The correct answer is D It is true that MAX and MIN can be used with character data types.
B is incorrect because AVG ignores NULL values
C is incorrect because aggregate functions cannot be used in any clause of the select. That is, they are used with SELECT statements that select many rows, scan a set of rows, and return a single response for all of them.
A is wrong.
Aggregates are not allowed on an outer query.
D is correct
MAX is allowed only on expressions that evaluate to built-in data types (including CHAR, VARCHAR, DATE, TIME, CHAR FOR BIT DATA, etc.).
https://docs.oracle.com/javadb/10.6.2.1/ref/rrefsqlj27781.html#:~:text=MAX%20is%20an%20aggregate%20function,BIT%20DATA%2C%20etc.).
https://docs.oracle.com/javadb/10.6.2.1/ref/rrefsqlj33923.html#rrefsqlj33923
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
you1234
Highly Voted 3 years, 6 months agoEkos
3 years, 1 month agoLalala8
Most Recent 3 months, 2 weeks agoOracle2020
4 months, 4 weeks agoRaNik69
7 months, 4 weeks agoLingy
1 year, 2 months agoLeandroHPN
1 year, 6 months agodanito
3 years, 7 months ago