Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: How do they get the answer?
My thoughts are
Typical OCP question.
a) Could be the answer depending on if both the subjects are taught by the same 2 teachers b) Cannot be the answer because only 2 subjects are mentioned (102,105) c) Could be the answer if the 2 subjects are taught by 4 different teachers (not it cannot be more than 4 therefor the 'at least 4' is misleading
d) If a syntax error did occur you would correct and run again so why you should fail the OCP question for that reason is bizarre anyway.
John
-----Original Message-----
From: kjanusz_at_att.net [mailto:kjanusz_at_att.net]
Sent: 21 August 01 17:26
To: Multiple recipients of list ORACLE-L
Subject: How do they get the answer?
I am taking the Self-Test software test for the SQL exam and don't see how they get the answer to this problem. They don't explain how it is arrived at.
Any help you can give me will be appreciated.
Thanks,
Ken Janusz, CPIM
Examine the structure of the TEACHER table:
Name Null? Type ID NOT NULL NUMBER(9) SALARY NUMBER
Evaluate this PL/SQL block:
DECLARE
v_pct_raise number := 1.10;
BEGIN
UPDATE teacher SET salary = salary * 1.10 WHERE subject_id IN (102, 105); COMMIT;
(A) Only two teachers will receive a 10% salary increase.
(B) All of the teachers will receive a 10% salary
increase.
(C) At least four teachers will receive a 10% salary
increase.
(D) A syntax error will occur.
Answer:
(C)
-- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: INET: kjanusz_at_att.net Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-LReceived on Tue Aug 21 2001 - 10:50:19 CDT
(or the name of mailing list you want to be removed from). You may
also send the HELP command for other information (like subscribing). ********************************************************************** This email and any attachments may be confidential and the subject of legal professional privilege. Any disclosure, use, storage or copying of this email without the consent of the sender is strictly prohibited. Please notify the sender immediately if you are not the intended recipient and then delete the email from your inbox and do not disclose the contents to another person, use, copy or store the information in any medium. **********************************************************************
![]() |
![]() |