Open navigation menu
Close suggestions
Search
Search
en
Change Language
Upload
Sign in
Sign in
Download free for days
0 ratings
0% found this document useful (0 votes)
114 views
6 pages
Oracle Certificate Quiz Section 6
This pdf contains DBMS Oracle Certificate Quiz of named Section, hope its gonna be helpfull for yah fellas
Uploaded by
MUTABAZI SHEMA TRESOR PATERNE
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
Download
Save
Save Oracle Certificate Quiz Section 6 For Later
Share
0%
0% found this document useful, undefined
0%
, undefined
Print
Embed
Report
0 ratings
0% found this document useful (0 votes)
114 views
6 pages
Oracle Certificate Quiz Section 6
This pdf contains DBMS Oracle Certificate Quiz of named Section, hope its gonna be helpfull for yah fellas
Uploaded by
MUTABAZI SHEMA TRESOR PATERNE
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
Carousel Previous
Carousel Next
Download
Save
Save Oracle Certificate Quiz Section 6 For Later
Share
0%
0% found this document useful, undefined
0%
, undefined
Print
Embed
Report
Download
Save Oracle Certificate Quiz Section 6 For Later
You are on page 1
/ 6
Search
Fullscreen
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 voonetSection 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 vComest8. 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 © owrrioinTi, 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
Displaying Data From Multiple Tables Using Joins
PDF
100% (1)
Displaying Data From Multiple Tables Using Joins
38 pages
SQL Joins
PDF
No ratings yet
SQL Joins
45 pages
Advanced SQL All Practicals
PDF
No ratings yet
Advanced SQL All Practicals
23 pages
TCS Data Analyst Interview Questions
PDF
No ratings yet
TCS Data Analyst Interview Questions
8 pages
Day-3 Joins and Sub Qry
PDF
100% (1)
Day-3 Joins and Sub Qry
46 pages
Chapter 13-1 Multiple-Table JOINs
PDF
No ratings yet
Chapter 13-1 Multiple-Table JOINs
52 pages
SQL Part 2: Kal@ittelkom - Ac.id
PDF
No ratings yet
SQL Part 2: Kal@ittelkom - Ac.id
28 pages
DBI202 - Chapter6 - Group5
PDF
No ratings yet
DBI202 - Chapter6 - Group5
33 pages
Roadmap 2 ETL Testing - by Himanshu
PDF
100% (1)
Roadmap 2 ETL Testing - by Himanshu
56 pages
Ssssss
PDF
100% (1)
Ssssss
6 pages
Module 4.0
PDF
No ratings yet
Module 4.0
64 pages
Question Bank - Module-3 and Module-4 (.5) Key Answers-Updated
PDF
No ratings yet
Question Bank - Module-3 and Module-4 (.5) Key Answers-Updated
30 pages
Lab Manual 5
PDF
No ratings yet
Lab Manual 5
10 pages
Akhuwat-Db-Lab-07 More SQL Joins
PDF
No ratings yet
Akhuwat-Db-Lab-07 More SQL Joins
8 pages
4 2-Joins
PDF
No ratings yet
4 2-Joins
34 pages
Sec.4 - CASE AND CARACTER MANIPULATION
PDF
No ratings yet
Sec.4 - CASE AND CARACTER MANIPULATION
27 pages
Joints, Aggregation Functions and Group by Clause.
PDF
No ratings yet
Joints, Aggregation Functions and Group by Clause.
6 pages
Types of Joins: By: Neha Sharma
PDF
No ratings yet
Types of Joins: By: Neha Sharma
20 pages
Pemodelan Basis Data
PDF
No ratings yet
Pemodelan Basis Data
28 pages
Siraj
PDF
No ratings yet
Siraj
4 pages
Chapter 8 Joins and Set Operations
PDF
No ratings yet
Chapter 8 Joins and Set Operations
3 pages
DP 6 3 Solution W
PDF
No ratings yet
DP 6 3 Solution W
2 pages
Sec 6-7 Join Clauses
PDF
No ratings yet
Sec 6-7 Join Clauses
36 pages
Database Programming With SQL 6-3: Inner Versus Outer Joins Practice Activities
PDF
No ratings yet
Database Programming With SQL 6-3: Inner Versus Outer Joins Practice Activities
4 pages
Java 2
PDF
No ratings yet
Java 2
14 pages
Joins
PDF
No ratings yet
Joins
9 pages
Use DFv2.MerchantHierarchy
PDF
No ratings yet
Use DFv2.MerchantHierarchy
8 pages
Table and Integrity Constraints
PDF
No ratings yet
Table and Integrity Constraints
19 pages
DBMS Experiment - Lab 5
PDF
No ratings yet
DBMS Experiment - Lab 5
26 pages
DB Lab 12
PDF
No ratings yet
DB Lab 12
12 pages
Section 7 Quiz
PDF
100% (1)
Section 7 Quiz
7 pages
Join
PDF
No ratings yet
Join
23 pages
Mid Programare
PDF
No ratings yet
Mid Programare
18 pages
Interview Preparation Data Collection-01
PDF
No ratings yet
Interview Preparation Data Collection-01
14 pages
Section 6 Quiz
PDF
100% (1)
Section 6 Quiz
9 pages
Join, Subqueries and Set Operators - 1
PDF
No ratings yet
Join, Subqueries and Set Operators - 1
60 pages
Joins in SQL Server
PDF
No ratings yet
Joins in SQL Server
22 pages
SQL Joins QA
PDF
No ratings yet
SQL Joins QA
6 pages
Section 6 Quiz
PDF
No ratings yet
Section 6 Quiz
32 pages
SQL 2
PDF
No ratings yet
SQL 2
15 pages
Final Squeueele
PDF
No ratings yet
Final Squeueele
15 pages
SQL Joins
PDF
No ratings yet
SQL Joins
5 pages
Joins SQL Assignment 3
PDF
No ratings yet
Joins SQL Assignment 3
6 pages
SQL Cheat Sheet
PDF
No ratings yet
SQL Cheat Sheet
4 pages
Nested Queries and Join Queries: Facilities Required and Procedure A) Facilities Required To Do The Experiment
PDF
No ratings yet
Nested Queries and Join Queries: Facilities Required and Procedure A) Facilities Required To Do The Experiment
6 pages
Multiple Questions On SQL
PDF
No ratings yet
Multiple Questions On SQL
7 pages
Oracle-Base - Oracle9i Ansi - Iso SQL Support
PDF
No ratings yet
Oracle-Base - Oracle9i Ansi - Iso SQL Support
4 pages
Database Programming With SQL Section 6 Quiz
PDF
No ratings yet
Database Programming With SQL Section 6 Quiz
18 pages
Database Programming Section 6 Quiz
PDF
No ratings yet
Database Programming Section 6 Quiz
15 pages
ADB Lab Manual
PDF
No ratings yet
ADB Lab Manual
33 pages
Get Data From Multiple Tables
PDF
No ratings yet
Get Data From Multiple Tables
4 pages
Want To Display The Employee's Last Name Whose Salary Is Below 10,000 and Whose Lastname Starts With Letter K
PDF
No ratings yet
Want To Display The Employee's Last Name Whose Salary Is Below 10,000 and Whose Lastname Starts With Letter K
6 pages
DB Managment Ch7 Questions
PDF
No ratings yet
DB Managment Ch7 Questions
8 pages
University of Technology Sydney SQL-Exam-Notes 2019 Database Fundamental
PDF
No ratings yet
University of Technology Sydney SQL-Exam-Notes 2019 Database Fundamental
2 pages
SQL Topics: by Naresh Kumar B. N
PDF
No ratings yet
SQL Topics: by Naresh Kumar B. N
9 pages
SQL Set2 qns1
PDF
No ratings yet
SQL Set2 qns1
18 pages
Midterm Sem2 Enica Ileana Stefania
PDF
No ratings yet
Midterm Sem2 Enica Ileana Stefania
48 pages