Oracle
1Z0-860 · Question #64
1Z0-860 Question #64: Real Exam Question with Answer & Explanation
Sign in or unlock 1Z0-860 to reveal the answer and full explanation for question #64. The question stem and answer options stay visible for context.
Question
A User entity is in a one-to-many relationship with a Book entity. A developer writes a query to delete users that have a first name of Fred1or 'Ginger', and writes the following Java Persistence query language statement: DELETE FROM User u WHERE u.name IN (Fred', "Ginger) If the query fails with a Persistence Exception, what can be the cause?
Options
- AThe syntax of the query is NOT correct.
- BThe query causes a foreign key integrity constraint to be violated.
- CThe database does NOT have any users with the name Fred' or 'Ginger'.
- DThe entities corresponding to the users with the name Fred' or 'Ginger' are already being managed by
Unlock 1Z0-860 to see the answer
You've previewed enough free 1Z0-860 questions. Unlock 1Z0-860 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.