Choose the best
Examine the description of the EMPLOYEES table:

Which query is valid?
Free preview: 20 questions.
Choose the best
Examine the description of the EMPLOYEES table:

Which query is valid?
You want D and E here. COALESCE goes until it finds a non-null, so D, and NVL does force types to match, so E. The others are distractors. Pretty sure this is right but always possible I'm missing a weird edge case.
I'm not sure, but I'd pick D. I recall that only the owner can grant object privileges, so DBA users shouldn't be able to unless they're also the owner. Someone correct me if I'm missing an exception here, but that's how I remember it.
A and C here, saw a similar scenario in a mock. Owners get all privileges on their objects by default, and references privilege is needed for foreign keys. Not 100% sure if I'm missing a corner case but pretty confident.
C and D for me. CURRENT_DATE uses the session time zone, not just server OS, and SYSDATE gets its value straight from the database server's clock. Pretty sure that's what Oracle expects but happy to hear other takes.
C/D? I get why most go for A, B, E since Oracle doesn't autocommit by default and primary key isn't required for DML. E seems solid with update subqueries, but C always makes me second guess because of different tool behaviors. Pretty sure it's A, B, E unless there's some weird context in play-let me know if you see it differently.
I remember a similar question, and went with A, D, E. Adding a primary key in another schema seems like it should need a system privilege, not just object privileges. Pretty sure about A and D, but not 100% about E over F. Let me know if you see it differently.
Not sure I buy A and D only. B seems legit since with a self join you often use inner join syntax, just different aliases on the same table. So I'd say B and D-self joins can still be written using INNER JOIN, right? I might be missing something subtle here though. Did others get tripped up by Oracle's phrasing?
Isn't C a bit of a trap here? Deletes on GTTs can be rolled back just like normal tables, so only B, D, and E line up with how Oracle handles temp tables. Anyone disagree?
NLS_DATE_FORMAT is set to DD-MON-YY.
Which query requires explicit data type conversion?A/E? Had something like this in a mock. Foreign keys do allow nulls (A) and they have to match a PK or unique key when filled in (E). D is just backwards logic. Not completely sure about B, but in Oracle I think multiple nulls are possible only in certain composite unique constraints. Agree?
Option A and E make sense here. Foreign key columns can accept nulls so A is true. E is also right because every foreign key value, if not null, must match an existing primary or unique key in the parent table. C is wrong since primary keys can’t be null. D reverses the relationship. Pretty sure about this but open to corrections if I missed a nuance.
TRIM or SUBSTR should work here since we're just modifying the endings. Saw something close to this on a practice test, and substring usually solves these cases.For full outer joins, A and D line up with what the official Oracle SQL guide describes. You get all matched rows (like an inner join) plus unmatched from both tables. Pretty sure that's what similar exam questions expect. Anyone disagree?
Which three statements are true about the Oracle join and ANSI Join syntax?