exam questions

Exam 1z0-071 All Questions

View all questions & answers for the 1z0-071 exam

Exam 1z0-071 topic 1 question 95 discussion

Actual exam question from Oracle's 1z0-071
Question #: 95
Topic #: 1
[All 1z0-071 Questions]

Examine the description of the EMPLOYEES table:



Which two statements will run successfully? (Choose two.)

  • A. SELECT ‘The first_name is ‘‘ || first_name || ‘‘ FROM employees;
  • B. SELECT ‘The first_name is ‘‘‘ || first_name || ‘‘‘‘ FROM employees;
  • C. SELECT ‘The first_name is ‘‘‘ || first_name || ‘‘‘ FROM employees;
  • D. SELECT ‘The first_name is ‘ || first_name || ‘‘ FROM employees;
  • E. SELECT ‘The first_name is \‘‘ || first_name || ‘\‘‘ FROM employees;
Show Suggested Answer Hide Answer
Suggested Answer: BD 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
RIDA_007
1 month, 2 weeks ago
D is incorrect, there is a missing single quote before the (||) operator
upvoted 1 times
...
archit4321
2 months, 1 week ago
Selected Answer: BD
A. SELECT 'The first_name is " || first_name || " FROM (select 'user' first_name from dual); --O/P = ORA-00923: FROM keyword not found where expected B. SELECT 'The first_name is ''' || first_name || '''' FROM (select 'user' first_name from dual); --O/P = The first_name is 'user' C. SELECT 'The first_name is ''' || first_name || ''' FROM (select 'user' first_name from dual); --O/P = ORA-00923: FROM keyword not found where expected D. SELECT 'The first_name is ' || first_name || '' FROM (select 'user' first_name from dual); --O/P = The first_name is user E. SELECT 'The first_name is \" || first_name || '\" FROM (select 'user' first_name from dual); --O/P = ORA-24450: Cannot pre-process OCI statement
upvoted 1 times
...
yaya32
5 months, 3 weeks ago
Selected Answer: BD
BD for me
upvoted 1 times
...
lucemqy
7 months, 3 weeks ago
Selected Answer: BD
BD is correct checked
upvoted 1 times
...
Sushmasri
11 months, 1 week ago
Can someone explain why B,D is correct ?
upvoted 3 times
...
jelenadinere_1
11 months, 2 weeks ago
it depends on quotation mark, since we can not copy from this question normally you have to guess where are double qoutes and where are single ones, but if it like that: SELECT 'The first_name is ' " || first_name || ' ' " FROM temp; (column name || first_name || ' ' ) SELECT 'The first_name is ' " || first_name || ' " FROM temp; (column name || first_name || ' ) SELECT 'The first_name is ' || first_name || ' ' FROM temp; ( The first_name is Jhon ) then 3 answers are right: BCD
upvoted 1 times
...
zouve
1 year ago
Selected Answer: BD
BD checked
upvoted 1 times
...
CyberP
1 year, 1 month ago
Why its BD ? explain the reason logically & don't tell me I tested it. In the exam there will be no tool to test anything if something changed so we need to understand the logic please.
upvoted 1 times
...
kuff
1 year, 2 months ago
Selected Answer: BD
BD is the answer
upvoted 1 times
...
pmeyer
1 year, 2 months ago
Selected Answer: BD
Who chose the correct answer?
upvoted 2 times
...
MooonLight
1 year, 2 months ago
I tried... none works.... anybody can explain even just a bit?
upvoted 2 times
...
Poke90
1 year, 3 months ago
Selected Answer: BD
tested it
upvoted 1 times
...
Orakol
1 year, 4 months ago
*Tested in SQL* - BD are correct.
upvoted 1 times
...
jfc1
1 year, 5 months ago
Selected Answer: BD
BD is the correct answer
upvoted 2 times
...
dexdinh91
1 year, 5 months ago
Selected Answer: BD
BD are correct
upvoted 2 times
...
cadcadley
1 year, 5 months ago
BD is correct regarding to try in SQL
upvoted 2 times
...
Viviana3184
1 year, 6 months ago
BD are correct
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
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.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago