question of the practical exam 1Z0-047 - CONNECT BY PRIOR

Hello
Please see the question by clicking on the link:

http://S10.postimg.org/58ph01n5l/1z0_047_connectby.PNG

I échinés on it (well, for a few minutes or more) because I don't think that the answers are correct.
Option 3 is almost correct, except that in my mind the CONNECT BY PRIOR is backwards.
Option 4 is almost correct, except it takes LEVEL < = 5 rather than LEVEL < 5.

In the end, I chose option 3 because it is more certain that the LEVEL should be < = 5 I had CONNECT it BEFORE the wrong way round.

Now, it so is that I chose the "correct" answer but I am mistaken on option 3? Option 3 is really correct?
My reasoning is this: we want the ancestors of Peter. This means that Peter's parents. CONNECTION BY ParentID = PRIOR PersonID will begin at the root (Peter Clark), and the next record found (using this SQL) will have ParentID = PersonId of pre-registration, namely, of Peter Clark PersonID. In other words, Peter Clark will be parent of the next record. But we are looking for ancestors of Peter Clark; Ancestors of Peter Clark are the parents of Peter Clark. Peter Clark cannot be the parent of the ancestor (or ancestors).

I'm here or not?

Thank you
Jason

I agree with you. The connection is evil around all 4 options.
I set up a test with grandparents etc and connect ParentId = PersonId prior only got the start record.
Connect prior ParentId = PersonId gives the correct descent.

create table gr (parentid integer, personID integer, name varchar2(30));
insert into gr values (null,1,'GGG');
insert into gr values (1,2,'GGF');
insert into gr values (null,3,'GGM');
insert into gr values (2,4,'GF');
insert into gr values (4,5,'F');
insert into gr values (5,6,'Peter');
select * from gr order by parentid, personid;

  PARENTID   PERSONID NAME
---------- ---------- ------------------------------
         1          2 GGF
         2          4 GF
         3          4 GF
         4          5 F
         5          6 Peter
                    1 GGG
                    3 GGM

select level, gr.* from GR where level <= 5
start with name = 'Peter'
connect by ParentId = Prior PersonId
Order Siblings by name;

Output has only Peter:

     LEVEL   PARENTID   PERSONID NAME
---------- ---------- ---------- ------------------------------
         1          5          6 Peter

1 row selected.

The reverse

select level, gr.* from GR where level <= 5
start with name = 'Peter'
connect by Prior ParentId = PersonId
Order Siblings by name;

     LEVEL   PARENTID   PERSONID NAME
---------- ---------- ---------- ------------------------------
         1          5          6 Peter
         2          4          5 F
         3          2          4 GF
         4          1          2 GGF
         5                     1 GGG
         3          3          4 GF
         4                     3 GGM

7 rows selected.

Tags: Database

Similar Questions

  • Certified Oracle SQL Expert Exam - 1Z0-047

    I plan on taking the exam 1Z0-047 and recently (in the last 3 weeks) bought the study guide / review of Kaplan for Oracle 11 g r2 for this test practice (or at least I thought it was up to and including Oracle 11 g r2).

    If I understand correctly what I read, it seems that questions for version 12 of the database are now included in this review.  There is apparently no separate examination that does not include the Oracle 12.  Is this correct, or can I still request a review for 11g r2?

    This is also true for PL/SQL and other exams (must study for any question 12 c)?

    Given that most of the developers I know is not yet up on 12 c, it seems that there should be at least an option of which version of the database you want to testify against.

    Everything / all thoughts are appreciated.

    Barry D.

    If I understand correctly what I read, it seems that the issues for version 12 of the database are now included in this review.  There is apparently no separate examination that does not include the Oracle 12.  Is this correct, or can I still request a review for 11g r2?

    I guess in what above, where you have "now", you want to say 'no '.

    No there is only one exam 1Z0-047.  The number of topics under review that are specific to Oracle 12 c is minimal.  I've updated my page on the contest of Expert SQL include articles on these topics, so you can prepare for them, even if the Kaplan materials do not yet cover them.

    Oracle Certification Preparation: Details of the examination and preparation for 1Z0 - 047 resources

    This is also true for PL/SQL and other exams (must study for any question 12 c)?

    The current reviews of PL/SQL (1Z0-144 and 1Z0-146) have not been updated to 12 c.  In my view, that the two have been validated against ut 12 c. which simply means that nothing they contain is wrong for 12 c - No 12 new c-specific features have been added.

  • Exam 1Z0-047

    I appear in the exam 1Z0-047 that I am a developer SQL and PL/SQL in oracle 10g.
    But I just want to know if the exam 1Z0-047 is the first, or should I take the fundamental SQL or any other exam appearing before 1Z0-047?

    Published by: 928405 on April 18, 2012 02:22

    You can take exam 1Z0-047 directly, there is no prequisity to order other tests first.

  • I just did the exam 1Z0-047 - what's next?

    I just spent my first (internationally recognized) exam Oracle 1Z0-047. Hmmm, I got 83%. I think its good since its my first review, I felt I could do better up to 90% +. This article shows 9 chips of topics can I show review. The subjects, they mentioned that I know really well. I'll take the exam again? I don't think it's a big deal, probably 83% is good. Anyway, the test centre gave me a paper printed from my total score. They said that oracle will send another Certification to my address. Which Certification is official? The one that was given to me by the exam Center is a printed cert (black and point). We must I show employers?

    I'm happy but also sad because I knew that the mistakes I made are stupid (I want to get rid of the bullet points argghhhh) + I did the review after having at least 3 months College hands on experience.

    Congratulations. You did, and that's all that matters (except your pride).

    Realize that issues are sometimes sensitive - the wording is intended to encourage the wrong answer, unless you're very careful. Thus, the "bullet points" can be simply a way of telling you to read more carefully.

    Having said that - your next step is to decide what other certifications you want. http://education.Oracle.com/pls/web_prod-PLQ-dad/db_pages.GetPage?page_id=141 and this depends on if you want to become an administrator/operator or a developer. (To take?-ask a career Advisor, not us.)

    As for who you show your employer - does not display unless asked. And when you get from Oracle, is the official, it's as well as to the need to present a passport.

  • Exam question-value of the point and unanswered questions about the VCP4 exam?

    Hello

    I have a few questions about the scoring to secure Channel 4 review system:

    1. All the questions on the exam are weighted the same?

    2. Is there a penalty for unanswered questions?  In other words, is it better to not answer a question, if you are sure that you do not know the answer, or take a guess if it comes down to it?

    Thank you very much

    Bryan

    Not responding not to an element, it is the same thing that answer wrongly as far as scoring is concerned, so it makes sense to guess rather than leave the question unanswered.

    With respect to the weighting, all elements have the same weight in the VCP exam, but some items do not count against the overall score.  These "dosed" items continually change and are chosen at random.  We insert elements assayed to determine the validity of the element until it became a party has received from the real exam.  If however, you want to treat each item with an equal amount of importance.

    Hope this helps,

    Jon C. Hall

    Technical developer certification

    [email protected]

    2077 Loma Linda way n., Clearwater, FL 33763

    727-446-8430 Office

    727-460-8448 Mobile

    Fax 702-554-3727

  • Question about the Satellite L300 to TV connection

    Hi everyone, first of all this is my first post.

    Also I'm a bit geek o when it comes to computers etc., I can use one but im not a wizz tech kid as well as use of base of an im afraid.

    I have a Satellite L300 laptop.

    My question is, my laptop has no HDMI port, but it has a VGA port.
    I have a digital TV with many ports Inc. USB, VGA, HDMI etc.

    I am downloading movies and burn them on dvd, but it's very tedious, so I wonder if I connect the laptop to the tv to use the TV as a monitor screen? so, I can either watch the dvd on the tv, and gold to direct flows to the laptop and then on television.

    I connected a vga cable for the necessary ports between the TV and the pc, and although television confirms that a pc is connected, there is only a white screen? so I guess I can't connect in this way.

    It is not possible to connect using the usb ports? or of other ideas like if I may or may not connect to this laptop?

    Kind regards

    Bob

    Hi Bob

    What laptop has no HDMI port this is a bit complicated. In General, you should be able to use your TV as external monitor. When you connect your laptop with VGA cable to your TV and turn on this port to the TV use the FN + F5 key combination and desktop to TV switch.

    If your TV is correctly detected when you use FN + F5, you should see several options. Problem is that the VGA connection is for video only and you will not hear on your TV. You can transfer the sound, but you must separate the wires and connect the headphone jack of your laptop and openings of his TV or even receiver Hi-Fi if you a.

    It's a little complicated.

  • Questions about the Satellite A200 and TV connection

    I have a laptop Satellite A200 - 1 GB and I tried to plug into a 42 '' Toshiba LCD screen. I have only a VGA connection to TV from my laptop.

    My first question is:
    When I watched a movie I had really big black lines (from the screen). Is there a way I can zoom in on the film I'll have more pictures and fewer black lines?

    Second question:
    What is the best way to connect to the sound?

    Third: Can I use I-link (firewire) to connect to a TV for watching movies?
    Thank you!!

    Hello

    Port VGA specifications was to use and connect an external monitor. Not a TV!

    If you want to connect to the laptop to a TV, then you must use the s-video port that is available too!

    > What is the best way to connect to the sound?
    S-video cable only transmits the video signal.

    If you want to hear the sound on the TV speakers, then you must connect to the laptop to the TV using a [RCA cable | http://www.action-electronics.com/grc/ppmma3.5.jpg].

    Then you connect the TV to headphones Jack cell phone s.

    Best regards

  • A quick question on the VCP3 exam

    Hi all

    After the assistance received from the Scott in a previous post (thank you again for that) I am excited to review (not normal I know!). I have a small question though. First of all, if this post breaks any community/VMWare rules it was not planned and I apologize. Please delete the post.

    My questions are how long how long the examination questions is there and what is the pass mark?

    Thank you very much in advance for all positions, and on the reverse, sorry if this breaks all the rules.

    James

    Hi, have a look at the pages of VMware training - http://mylearn.vmware.com/portals/certification/?ui=www on the right are links to exam VCP - VCP3 and 4 plans. The score is different in the v4, but it will explain everything. There are also a lot of messages for Certification in the communities which is a good resource. Good luck

    Thank you

    Neil

  • Question about the FND application R12 Oracle connection

    Hello

    I need a query to search for if logging is enabled in the application of R12. Recently, some users have allowed FND logging in the Application, although I have disabled logging
    but still, I want to know which allowed logging in it.

    The EBS version: 12.1.2
    Database version: 11.2.0.1
    Operating system: Aix 6.1

    Kind regards
    Gerard

    I checked another profile option, as we have implemented SOA.

    CONTEXT SHORT_NAME NAME LEVEL_SET VALUE
    ------------------------------ ---------------------------------------- --------------- ------------------------------ --------------------------------------

    FND_SOA_AUDIT_ENABLED SOA: Service Monitor ON Site

    He is one.

    See your other thread - Re: oafmstd.out size of the file increases very quickly

    Thank you
    Hussein

  • Which exam is indifferent to the newcomer in oracle 1zo-1z0-047/051(10g /11g)?

    Hi friends,

    I am new to oracle as I have no experience as an oracle DBA any industry. But have been trained in this area and has a good knowledge of DBA, but some basic knowledge of SQL. I intend to be OCA certified but confused about certification of 10 g / 11 g? I'd rather that we should... Please, someone guide me and how can I precede with them to get the certification?
    Thanks for the help in advance,
    Neha.

    I basically agree with Hub, but I'll just separate the answer somewhat differently.

    (1) for the review SQL:

    Ignore if the review SQL says it is 10g or 11g; the main difference is that 1z0-047 is a SQL expert and is much more difficult than 1z0 - 051.

    So, I would still recommend a beginner to study firstly for 1z0 - 051.
    When towards the end of your exam 1z0-051 study if you feel really confident then a really confident student could jump 1z0-051 and pursue their studies up to the level of the exam 1z0-047 and take that instead. Although this would probably only be advised in the very small number of cases.

    (2) for the review of DBA.

    It is probably best to 11g instead of the 10 g; but there are exceptions.

    -An exception may be if you work with 10g and 11g not.

    -Another exception would be due to the availability of authorized training for satisfy the requirement of the OCP DBA.
    Even if currently targeting DBA OCA; Sir, you will probably find a DBA OCP will be necessary. Who can find courses appropriate for 10 g are available at a great price in a program of the WDP (but 11 g are not), of you can find you already took a course that meets 10 g OCP DBA requirement, but do not satsifdy the requirement for OCP DBA 11 g and which can influence you to choose 10 g OCP DBA.

  • Could I take 1Z0-051 and 1Z0-047 together?

    Hi, I currently intend to take an Oracle PL/SQL Developer Certified Associate. Initially, I intend to take the path of 1Z0 - 047 + 1Z0-144, that leads to this certification, because the exam 1Z0-047 points also to an another cert (cert Oracle SQL Expert). So if I take this path, I'd end up with two certifications (cert Expert Oracle SQL and PL/SQL Developer Certified Associate)

    However, people keep telling me that 1Z0-047 is very hard, saying that 1Z0 - 051 is a lot easier if I want to guarantee a PL/SQL Developer Certified Associate.

    So, is it possible that I take all three exams (1Z0-047, 1Z0-051 and 1Z0-144)? I think that takes 1Z0 - 051 as a kind of 'practice' because it is an online exam and the scope of the review seems easy for me. I also have some budgets for me so I don't mind spend a little more money to the Oracle exams.

    I wonder if both of them (051, 047) are mutually exclusive in the policy review or something.

    So, is it possible that I take all three exams (1Z0-047, 1Z0-051 and 1Z0-144)?

    Yes, you can take both 1Z0-051 and 1Z0-047. In fact, I highly recommend taking 1Z0-051 before 1Z0-047. You heard correctly, 047 is a much more difficult test and requires a much higher level of experience or SQL knowledge. If you look at the subjects of study for the two trials, you will see that 1Z0 - 047 includes essentially all the 1Z0-051 exam topics and has an another 30 more topics. Study for 1Z0 - 051 is, in itself, the scrutiny of experts preparation. Discuss the two reviews in an article here:

    http://www.gocertify.com/articles/Oracle-SQL-certification-1Z0-051-or-1Z0-047.html

  • Books for 1Z0-047 and 1Z0-144

    Hi all

    I intend to study for certification "Oracle PL/SQL Developer Certified Associate. I was intending to prepare for 1Z0 - 047 and 1Z0-144, as both of these reviews are validated based on Oracle Database 11 g.

    I was wondering if one of the guys here can help me with the couple of questions I have.

    1. that we recommend among the two exams below?

    1Z0-047 (Oracle database SQL Expert)
    or
    1Z0-051 (Oracle Database 11g: SQL Fundamentals I)

    2. what books should I refer to 1Z0-047 and 1Z0-144? I read a lot of threads on this topic. But, I haven't found a good answer yet, that's why I'm writing this question again.

    For 1Z0-047, I've seen people recommend the following:
    OCA Oracle database SQL Expert corrected: exam 1Z0-047 (Osborne Oracle Press series) by Steve O'Hearn
    OCA Oracle Database 11g SQL Fundamentals I corrected: exam 1Z0-051 (Osborne ORACLE press series) by John Watson and Danielle Ramklass

    1Z0-144 for, I've seen people recommend the following:
    Oracle PL/SQL programming: Versions of covers by Oracle Database 11 g Release 2 (Animal Guide) with Steven Feuerstein, Bill Pribyl
    OCP developer PL/SQL program units corrected by Steve O'Hearn


    I ask you guys to help me because I don't have an idea on these books. It would be really great if someone who has passed the examinations or read these books shed some light on these.

    Thanks in advance.

    I expect the review Expert SQL to be stronger, more need SQL knowledge, but if it was my choice, I seek the Oracle Press book you mentioned everything first and go to the Expert SQL exam. The nice thing about that is that you get the cert SQL Expert on this one review.

    Preparation for the next review would be more difficult, because there is no easy choice for a book. Feuerstein's book is good to have, but is big enough and not particularly focused on the content of any review. I called when he was studying in the review of PL/SQL, 1z0-146, but only that I found the relevant content to the object that Oracle posted about it. I also used the PL/SQL book you mentioned by Steve O'Hearn (I could borrow through interlibrary loan), which has also been helpful, but the same idea applies, that is, you might find some useful stuff in here...

    The best thing to do in such cases is to use the object posted by Oracle for the review and go to the Oracle documentation. Really, you find that it is better than the springs for a book that is perhaps not so relevant in such cases.

  • VCP6-VTC practice exams

    Hi, I passed the practical exam 20 question for Foundation 2V0-620 and 621 - 2V0, but I need to practice a lot more exam test... where can I found test facsimile?


    Thank you

    Hi Lori87,

    I read book Mastering of vSphere 6 and play quizzes in * link to discharge of brain removed by moderator *.

    Good luck!

  • Exam 1Z0-058

    Hello all-

    I am preparing for the 058 exam 1Z0. I see that there are two sections and 77 questions.
    My question is that

    (a) is it 77 questions in each section?
    (b) if it is for questions 77, (total), then do we know if how many questions of each section (percentage wise).

    Thanks in advance.

    user11142794 wrote:
    (a) is it 77 questions in each section?

    Nope - 77 total. It is a very good thing, because if there are 154 questions to answer in 105 minutes, you would only 41 seconds per question to answer all.

    (b) if it is for questions 77, (total), then do we know if how many questions of each section (percentage wise).

    OE does not provide this information. However, there are 47 grid Infrastructure: Clusterware and ASM topics and 32 topics CARS. With 77 and 79 issues, you can expect the two sections to separate close enough percentages of topic, this figure approximately 60% of the trial (46 questions) being about Clusterware and 40% (31 questions) being about RAC and you're not far off.

  • 1Z0-047 Oracle database SQL expert

    Hi all!

    I want to prepare for review reference in question.
    How can I make it right?

    Is these books sth that I would like to search for? :

    Oracle Database 10 g, SQL (Osborne ORACLE Press Series)
    http://www.Amazon.com/GP/product/0072229810/ref=s9subs_c1_14_at1-rfc_g1_si3?pf_rd_m=ATVPDKIKX0DER & pf_rd_s = center-1 & pf_rd_r = 0NY1DZFY480AYW383FNE & pf_rd_t = 101 & pf_rd_p = 463383351 & pf_rd_i = 507846

    OCA Oracle database SQL Expert corrected (exam 1Z0-047)
    http://www.Amazon.com/Oracle-database-expert-guide-1Z0-047/DP/0071614214/ref=sr_1_14?ie=UTF8 & s = Books & qid = 1229588476 & SR = 8-14

    Are there other options, for example PDF files.

    Best regards
    user10679687

    These two references should be useful. You can also refer to:

    Oracle® database SQL Reference 10 g Release 2 (10.2)
    http://download.Oracle.com/docs/CD/B19306_01/server.102/b14200/TOC.htm

    1Z0-047 Oracle database SQL expert
    http://education.Oracle.com/pls/web_prod-PLQ-dad/db_pages.GetPage?page_id=41&p_org_id=1001&lang=us&p_exam_id=1Z0_047

    Sample Questions - 1Z0-047 Oracle database SQL Expert
    http://www.Oracle.com/global/us/education/certification/sample_questions/exam_1z0-047.html

Maybe you are looking for