1z0-082 Exam QuestionsBrowse all questions from this exam

1z0-082 Exam - Question 22


Which three statements are true about single-row functions? (Choose three.)

Show Answer
Correct Answer: BCD

Single-row functions can take a column name, variable, literal, or expression as an argument. They can also return a different data type than the argument provided. These functions can be nested to any level, allowing for complex expressions.

Discussion

13 comments
Sign in to comment
avanandOptions: BCD
May 25, 2020

Correct choice is B C D. single row function can be nested to any level.

danito
May 30, 2020

D is not correct, more than three nested functions return ora0935

elvegaa
Nov 13, 2020

I had no such error in 11.2 select DECODE(COALESCE(NVL(ROUND(TRUNC(5)),4),3),2)1) from dual;

saidov1981
Apr 4, 2021

statement correction: select decode(coalesce(nvl(round(trunc(5)),4),3),5,5,1) from dual; -- or select decode(coalesce(nvl(round(trunc(5)),4),3),2,1) from dual;

antonica
Mar 17, 2024

Hi, it is posible . This pdf http://moko.lecturer.pens.ac.id/file/Basis%20Data%201/Les03%20-%20Using%20Single-Row%20Functions%20to%20Customize%20Output.pdf

you1234Options: BCD
Jun 30, 2020

B & C & D is correct answer

ama
Jul 3, 2020

yes, D is also correct … see Question 30 > https://www.tutorialspoint.com/sql_certificate/using_single_row_functions_questions.htm

dbaclaudioOptions: BCD
Jan 12, 2021

B,C,D A - Incorrect -> Documentation: "can appear in select lists, WHERE clauses, START WITH and CONNECT BY clauses, and HAVING clauses." B - Correct -> EXAMPLE: select lower(&data), lower(DUMMY), lower('TABLE'),LOWER(TO_DATE('12-JAN-08','DD-MONTH-RR')) from dual; RESULT: 12-jan-21 x table 12-jan-08 C - Correct -> Like in length or months_between D - Correct -> there's no limit in documentation. EXAMPLE: select instr(substr(decode(mod(6,4),4,'abcabcabc',1,'bcabcabca','cabcabcab'),4),'abc') from dual; RESULT: 2 E - Incorrect -> Functions like substr, accepts more than one parameter F - Incorrect -> Here's a catch, documentation: "Single-row functions return a single result row for every row of a queried table or view" NOT "...return a single result row per table"

thuto
Aug 19, 2022

Thank you for Clarifying F...

valiantvimal
Apr 26, 2024

Thanks for showcasing the difference with respect to F..

GraceYu
Jun 7, 2020

This is note regards single row function and aggregate function https://oracledbars.blogspot.com/2018/01/using-conversion-functions-and.html. Nesting Functions Single-row functions can be nested to any level. • Nested functions are evaluated from the deepest level to the least deep level. https://mahtodeepak05.wordpress.com/2014/12/17/aggregate-function-nesting-in-oracle/ Hence Two level Deep is the max you can go with nested aggregate functions in Oracle. Logically that the way it should be, Third aggregation functions wont have any group to act on as previous aggregations functions “SUM” had already produce singular output.

dkmrajuOptions: BCF
Sep 26, 2020

Correct one B, C, F

elvegaaOptions: BCE
Nov 13, 2020

B C D & E seems right to me :\ I guess.. D is the most close to wrong, since i'm sure there's some kind of nesting limit, but this limit is not specified in oracle documentation.

SimoneF
Dec 10, 2020

There is no such limit for single-row functions, and E is certainly false: for instance, CONCAT is a single-row function and it accepts two arguments.

nautil2Options: BCD
Sep 19, 2023

A - FALSE; can be used after SELECT, in WHERE clause, in START WITH clause, in CONNECT BY clause and in HAVING clause B - TRUE C - TRUE; typically conversion functions, e.g. TO_CHAR, TO_DATE D - TRUE E - FALSE; they can accept more arguments, e.g. TO_DATE('2023-09-19 16:15','YYYY-MM-DD HH24:MI') F - FALSE; group functions return a single result per group, while single-row functions returns a result for each input value

EkosOptions: BCD
Oct 25, 2020

C, D, and E

Ekos
Dec 8, 2020

Sorry, B,C,D is the correct one

Guhborges
Oct 5, 2021

Why not E? They can only accept one argument, they can also accept more. Is different when we use the word MUST.... I'm not a native English speaker...

Guhborges
Oct 5, 2021

BCDE is right for me. E- We can use upper for only one and we can use CONCAT for more than two, isn't that correct?

ryuahOptions: BCD
Jan 9, 2022

B,C,D is correct

emburriaOptions: BCD
Jan 20, 2022

B, C, D for sure

Oracle2020Options: BCD
Mar 23, 2024

I agree BCD