QuestionQ114

VerifiedRestricting and sorting data

Review the description of the BOOKS_TRANSACTIONS table:

Question Image

Review this partial SQL statement:

SELECT * FROM books_transactions  

Which two WHERE conditions produce the same result?

Choose two
Explanation

AND has higher precedence than OR in SQL. Therefore, borrowed_date = SYSDATE AND transaction_type = 'RM' OR member_id IN ('A101', 'A102') is evaluated as (borrowed_date = SYSDATE AND transaction_type = 'RM') OR member_id IN ('A101', 'A102').

Community Discussion

No comments yet. Be the first to start the discussion!