0% found this document useful (0 votes)
114 views6 pages

Oracle Certificate Quiz Section 6

This pdf contains DBMS Oracle Certificate Quiz of named Section, hope its gonna be helpfull for yah fellas
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
114 views6 pages

Oracle Certificate Quiz Section 6

This pdf contains DBMS Oracle Certificate Quiz of named Section, hope its gonna be helpfull for yah fellas
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 6
Section 6 (nawer all questions in this section) 1. The primary advantages of using JOIN ON. (Chom al cares arses) : (Select two) 1 it rermits columns with different names to bejoined. (*) Teil dizplay rome chat de not meat the join cancition “Thesoin happens autonaveally bazed on matching column names and datatypes, Gr = columns that dont have matching dats types to bejoined. (*) 2. Which of the following statements isthe simplest description of a nonequijoin?- © Aisin condition cortsining something ether than an equality eperator(*) ‘join condition that includes the (+) onthe lft han side avin that jon » table itself O A jviscondition that tari aque cothervine 3. The primary advantage of using 2O1N ON is: > reuill izplay rane thar do not mast the jin concition Ieeasily procuces a Cartesian product between the tables in the statement » The join happens automatically based on matching column names and data tyres. {Ie permits columns that dons have matching dats types to bejoined, Ie permits colunns with diferent names to bejoined.(*) 4, What types of jeins will return the unmatched values from both tables in the join? Ful ovterioins (* > Natural jeins Let outerjoins » Right outerjeins _ ENPLOYEES Table: [name Null? Frype leMPLOvEE 10 [NOT NULLWUMBERIE) IFIRST_NAME /ARCHAR2(20) [LasT_NAwe [NOT NULLIVARCHAR2(25) lDEPARTMENT._I0| [NUMBER (4) DEPARTMENTS Table: (Nem: Inuit? fivee DEPARTMENT 1D [NOT NULLNUMBER 4 IDEPARTMENT_NAM|NOT NULLVARCHAR2(30] IMANAGER_ID LUMBER (6) A.query is needed fo display each department and its manager name irom the above tables. However, not all departments have a manager but we want departments returned in all cases. Which of the allowing QL: 1999 syntax seripts will accomplish the task? SELECT éepartments.departmert_id, employees first_rame, employees last_rame FROM employees , deparenents WHERE employess.emoloyes.id RIGHT QUTER JOIN cepartmenss.manager ids SELECT departments departmert_id, enployees first_rame, employ: FROM employees WHERE (employees. department id = departments. department id SELECT cepartments.departmert_i, employees first_rame, employses.ast_rame FROM employees FULL OUTER JOIN departments ON (employees.employes.id = deparemenss.nanager_id); © SELECT departments department_Id, employees firstname. emplove FROM employees RIGHT QUTER JOIN cepartman:s ON (emplayees.emplove._ic = departments manager i voonet Section 6 (lenawer ail questions in this section) 6, Given the following descriptions of the employees and jobs tables, which of the following scripts will dispiay each employees possible minimum and maximum salaries based on their job title? EMPLOYEES Table: [Name [Nal Fivpe lemeLOveE 10 [NOT NULLINUMBER (6) IFIRET_NAME VARCHAR2 (20)] ILAST_NANE NOT NULL|VARCHAR2 (25}] lEmatt. INOT NULLVARCHAR? (25) IPHONE NUMBER VARCHAR? (20)] oe io INoT nuLUVaRcHaR2 (ol [saLaRy Inuwees (5.2 [conMIsetON_ Fer Iunoen (2.2) WANAGER, 10) [NUMBER (6) [SEDARTMENT_ID [Nuwar (4) ‘JOBS Table: [Name [hale Fivee joe. 15 [NOT NULLVARCRARZ (0) Loe Time [Nor NuLtIvaRcHaRe (35) Min SALARY] nuns (5) Wax SALAR InuneeR (5) © SELECT irst_name,lest_nane,job_id, min_salary, max_sslary FROM empleyess NATURAL IJOIN obs; (* SELECT employees.fist_name, employe FROM employees NATURAL I0IN jobs: Jast_nane, employees.jeb_ié,jnbsumin_salary,jobs.max_salary SELECT employeessfiat_s FROM ampleyece NATURAL JOINiobs ON (employees.iab ttle =jobssjob_ttle): sme;employens.lest_name; employees jcb_W,jobaimin_selarysjobsiman salary SELECT amplaycenfirt name, employecs.last_name, emplayses,jeh_id jabsimin_calary,jobsiman_ealary FROM employees NATURAL JOIN jobs USING Gb i SELECT frst_name, last_name,job_ié, min_salary, max_salary FROM empleyees FULL JOIN jobs (job_id vComest 8. The join column must be included in the select statement when you use the NATURAL JOIN claus. ‘True oF False? O False) 9. ANATURAL JOIN is based on: | Tabla with the same struct © Columns with the same name and datatype (*) © Columns sith the zame name Se ee 110. You naed to join two tables that have twe columne with the same name, datatype, and pracision. ‘Which type of join would vou create to join the tables on both of the columns? © natural join (*) > Selejoin © owrrioin Ti, Which select statement will return the last name and hire date of an employee and his! her manager for emaloyees that started in the company before their managers? SELECT workerlast_name, werkerhire date, maragerlist name, managerire date FROM employees worker JOIN employees worker ON workermanager i= vorkeramgloyes id WHERE workenhre date - werkenhre. © SELECT workerlast_name, workenhire date, managerlest_name, m.fire_date FROM employees worker JOIN employees manager ON worketmanager_id = manageremployes_td WHERE werkerhire date < managerhire date SELECT oisnlaut atin ewes ache meaieslaa Heine, FROM amplayaet worker JOIN employees manzaer ON warkermanager id !=manageremployae id WHERE werkerhre_date managenhire. cate VCore 112, Which statement about a self join is true? ‘The NATURAL JOIN clause must be used: © Table slisses must be used to qualify table names. (*) rub liseae cannot be used te qualify rable name A salfsoin must be implemented by defining view. VCore 113, Which SELECT statement implemerts a self join? © SELECT itempart_id, type-product id FROM pare tem JOIN procuct fyo= ON itempart id= type preduct a SELECT itempart_id type product id FROM par Item JOIN product Hy2= ON item.per. id=! eypsiproduct.idh SELECT itempart_id typeproduct_1¢ ON item.pare id= type preduce (+); SELECT iemparid, ypeprocucti¢ FROM pare item JOIN paretyee ON item.pare id= type predue a) xtacomct Refer o Sction 6Laton 4. 413. Which SELECT statement implements a self join? SELECT tem .pert_id, typeproduct id FROM par item JOIN product type On item pareid= Hype.product i ‘SELECT item.pertid, typeiproduct id FROM par item JOIN product type ONitempartid =! bypesproduct id SELECT item.part_4,type.product id FROM part ita JOIN product type ON item pared = rype-product id (+): SELECT te pred ypesproduce fd FROM par itam JOIN garibyoe ON item.part id= typereduct. id: (*) 2daconec: Referto action 6 Laon 4 14. Hierarchical queries can walk both Top-Down and Bettam-Up. True or False? O False lacoec: Referto Section 6Lason 4 415. Which SELECT etctoment implements 2 celf join? SELECT workeremployes_td, managermanager_ié FROM employees worker JOIN emplayses mensger (ON manaceremolovee id= workermarager id: *) SELECT worker i loyee_ids menagermans FROM areployacr warkar JOIN managers manz5 ON workeremplayes_id = manacermarager_id: SELECT workaramsloyae id, menagarmanager id FROM employees worker NATURAL JOIN employees manager; © SELECT workeramslovee_id, menagermana FROM employees vorker JOIN depsremants manager ON workenemployes id= manacermarager_id; ‘xiacores.Rafarto Section 6Lessoa 4.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy