Which statement is true regarding the above queries?

Examine the structure of the TRANSACTIONS table:
Name Null Type
TRANS_ID NOT NULL NUMBER(3)
CUST_NAME VARCHAR2(30)
TRANS_DATE DATE
TRANS_AMT NUMBER(10, 2)
You want to display the transaction date and specify whether it is a weekday or weekend.
Evaluate the following two queries:


Which statement is true regarding the above queries?
A. Both give wrong results.
B. Both give the correct result.
C. Only the first query gives the correct result.
D. Only the second query gives the correct result.

Download Printable PDF. VALID exam to help you PASS.

One thought on “Which statement is true regarding the above queries?

  1. The second query runs successfully, but the output is wrong because the expression logic is not right.

    It looks at the BETWEEN condition as exact 2 values ‘MONDAY’ and ‘FRIDAY’- not as interval between [monday and friday] .

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.