Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam 1z0-071 All Questions

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

Exam 1z0-071 topic 1 question 60 discussion

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

The INVOICE table has a QTY_SOLD column of data type NUMBER and an INVOICE_DATE column of data type DATE.
NLS_DATE_FORMAT is set to DD-MON-RR.
Which two are true about data type conversions involving these columns in query expressions? (Choose two.)

  • A. invoice_date = '15-march-2019' : uses implicit conversion
  • B. qty_sold BETWEEN '101' AND '110' : uses implicit conversion
  • C. invoice_date > '01-02-2019' : uses implicit conversion
  • D. qty_sold = '0554982' : requires explicit conversion
  • E. CONCAT (qty_sold, invoice_date) : requires explicit conversion
Show Suggested Answer Hide Answer
Suggested Answer: AB 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
ArslanAltaf
5 months ago
ABC are correct
upvoted 3 times
...
Bertrand_dok
5 months, 1 week ago
Selected Answer: BE
A and C can't work because it doesn't match the NLS date format, D works fine by implicit conversion , so it's BE
upvoted 1 times
yanoolthecool
5 months ago
E says 'explicit' did you see any conversion function? A works, as MON is for the full month name and RR.. just google it.
upvoted 1 times
...
...
799f3be
7 months ago
why is E wrong?
upvoted 1 times
a947739
4 months, 2 weeks ago
SELECT CONCAT(sal,hiredate) from emp; try this , it doesn't need explicit conversion
upvoted 1 times
...
...
Nennuzzo
11 months ago
Selected Answer: AB
AB are correct, I tested it.
upvoted 3 times
...
Monesha_Ganesan
11 months ago
Selected Answer: CD
C. invoice_date > '01-02-2019': This statement uses implicit conversion. The date string is implicitly converted to a DATE type using the default date format. D. qty_sold = '0554982': This statement requires explicit conversion. You need to explicitly convert the string to a NUMBER to compare it with the QTY_SOLD column.
upvoted 1 times
...
MooonLight
1 year, 6 months ago
Can anyone please explain the correct answers? not quite getting the sense... thank you.
upvoted 1 times
kuff
1 year, 6 months ago
A. Implicit conversion can be done as string matches the NSL_DATE_FORMAT. B. Implicit conversion to number C. Can't use implicit conversion as string doesn't match NSL_DATE_FORMAT D. Doesn't require explicit conversion E. Doesn't require explicit conversion
upvoted 4 times
lucemqy
1 year ago
but the month is spelled out isn't MON the three letter abbreviation of the month?
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 ...