SlideShare a Scribd company logo
1 of 12
Download to read offline
The safer , easier way to help you pass any IT exams. 
Exam : 1Z1-051 
Oracle Database: SQL 
Fundamentals I 
1 / 11 
Title : 
Version : DEMO
The safer , easier way to help you pass any IT exams. 
1. View the Exhibit and examine the structure of the SALES, CUSTOMERS, PRODUCTS, and TIMES 
tables. 
The PROD_ID column is the foreign key in the SALES table, which references the PRODUCTS table. 
Similarly, the CUST_ID and TIME_ID columns are also foreign keys in the SALES table referencing the 
CUSTOMERS and TIMES tables, respectively. 
Evaluate the following CREATE TABLE command: 
CREATE TABLE new_sales(prod_id, cust_id, order_date DEFAULT SYSDATE) 
AS 
SELECT prod_id, cust_id, time_id 
FROM sales; 
Which statement is true regarding the above command? 
A. The NEW_SALES table would not get created because the DEFAULT value cannot be specified in the 
column definition. 
B. The NEW_SALES table would get created and all the NOT NULL constraints defined on the specified 
columns would be passed to the new table. 
2 / 11
The safer , easier way to help you pass any IT exams. 
C. The NEW_SALES table would not get created because the column names in the CREATE TABLE 
command and the SELECT clause do not match. 
D. The NEW_SALES table would get created and all the FOREIGN KEY constraints defined on the 
specified columns would be passed to the new table. 
Answer: B 
2. View the Exhibit to examine the description for the SALES table. 
Which views can have all DML operations performed on it? (Choose all that apply.) 
3 / 11 
A. CREATE VIEW v3 
AS SELECT * FROM SALES 
WHERE cust_id = 2034 
WITH CHECK OPTION; 
B. CREATE VIEW v1 
AS SELECT * FROM SALES 
WHERE time_id <= SYSDATE - 2*365 
WITH CHECK OPTION; 
C. CREATE VIEW v2 
AS SELECT prod_id, cust_id, time_id FROM SALES 
WHERE time_id <= SYSDATE - 2*365 
WITH CHECK OPTION; 
D. CREATE VIEW v4 
AS SELECT prod_id, cust_id, SUM(quantity_sold) FROM SALES 
WHERE time_id <= SYSDATE - 2*365 
GROUP BY prod_id, cust_id 
WITH CHECK OPTION; 
Answer: AB 
3. You need to extract details of those products in the SALES table where the PROD_ID column 
contains the string '_D123'. 
Which WHERE clause could be used in the SELECT statement to get the required output? 
A. WHERE prod_id LIKE '%_D123%' ESCAPE '_' 
B. WHERE prod_id LIKE '%_D123%' ESCAPE ''
The safer , easier way to help you pass any IT exams. 
C. WHERE prod_id LIKE '%_D123%' ESCAPE '%_' 
D. WHERE prod_id LIKE '%_D123%' ESCAPE '_' 
Answer: B 
4. Which two statements are true regarding single row functions? (Choose two.) 
A. They a ccept only a single argument. 
B. They c an be nested only to two levels. 
C. Arguments can only be column values or constants. 
D. They a lways return a single result row for every row of a queried table. 
E. They c an return a data type value different from the one that is referenced. 
Answer: DE 
5. Which SQL statements would display the value 1890.55 as $1,890.55? (Choose three .) 
A. SELECT TO_CHAR(1890.55,'$0G000D00') 
FROM DUAL; 
B. SELECT TO_CHAR(1890.55,'$9,999V99') 
FROM DUAL; 
C. SELECT TO_CHAR(1890.55,'$99,999D99') 
FROM DUAL; 
D. SELECT TO_CHAR(1890.55,'$99G999D00') 
FROM DUAL; 
E. SELECT TO_CHAR(1890.55,'$99G999D99') 
FROM DUAL; 
Answer: ADE 
6. Examine the structure of the SHIPMENTS table: 
name Null Type 
PO_ID NOT NULL NUMBER(3) 
PO_DATE NOT NULL DATE 
SHIPMENT_DATE NOT NULL DATE 
SHIPMENT_MODE VARCHAR2(30) 
SHIPMENT_COST NUMBER(8,2) 
You want to generate a report that displays the PO_ID and the penalty amount to be paid if the 
SHIPMENT_DATE is later than one month from the PO_DATE. The penalty is $20 per day. 
Evaluate the following two queries: 
SQL> SELECT po_id, CASE 
WHEN MONTHS_BETWEEN (shipment_date,po_date)>1 THEN 
4 / 11
The safer , easier way to help you pass any IT exams. 
TO_CHAR((shipment_date - po_date) * 20) ELSE 'No Penalty' END PENALTY 
FROM shipments; 
SQL>SELECT po_id, DECODE 
(MONTHS_BETWEEN (po_date,shipment_date)>1, 
TO_CHAR((shipment_date - po_date) * 20), 'No Penalty') PENALTY 
FROM shipments; 
Which statement is true regarding the above commands? 
A. Both execute successfully and give correct results. 
B. Only the first query executes successfully but gives a wrong result. 
C. Only the first query executes successfully and gives the correct result. 
D. Only the second query executes successfully but gives a wrong result. 
E. Only the second query executes successfully and gives the correct result. 
Answer: C 
7. Which two statements are true regarding the USING and ON clauses in table joins? (Choose two.) 
A. Both USING and ON clauses can be used for equijoins and nonequijoins. 
B. A maximum of one pair of columns can be joined between two tables using the ON clause. 
C. The ON clause can be used to join tables on columns that have different names but compatible data 
types. 
D. The WHERE clause can be used to apply additional conditions in SELECT statements containing the 
ON or the USING clause. 
Answer: CD 
8. View the Exhibit and examine the structure of the CUSTOMERS table. 
Which two tasks would require subqueries or joins to be executed in a single statement? (Choose two.) 
A. listing of customers who do not have a credit limit and were born before 1980 
B. finding the number of customers, in each city, whose marital status is 'married' 
C. finding the average credit limit of male customers residing in 'Tokyo' or 'Sydney' 
D. listing of those customers whose credit limit is the same as the credit limit of customers residing in the 
5 / 11
The safer , easier way to help you pass any IT exams. 
city 'Tokyo' 
E. finding the number of customers, in each city, whose credit limit is more than the average credit limit of 
all the customers 
Answer: DE 
9. Which statement is true regarding the INTERSECT operator? 
A. It ignores NULL values. 
B. Reversing the order of the intersected tables alters the result. 
C. The names of columns in all SELECT statements must be identical. 
D. The number of columns and data types must be identical for all SELECT statements in the query. 
Answer: D 
10. View the Exhibit; e xamine the structure of the PROMOTIONS table. 
Each promotion has a duration of at least seven days . 
Your manager has asked you to generate a report, which provides the weekly cost for each promotion 
done to l date. 
Which query would achieve the required result? 
A. SELECT promo_name, promo_cost/promo_end_date-promo_begin_date/7 
FROM promotions; 
B. SELECT promo_name,(promo_cost/promo_end_date-promo_begin_date)/7 
FROM promotions; 
C. SELECT promo_name, promo_cost/(promo_end_date-promo_begin_date/7) 
FROM promotions; 
D. SELECT promo_name, promo_cost/((promo_end_date-promo_begin_date)/7) 
FROM promotions; 
Answer: D 
11. View the Exhibit and examine the structure of the PRODUCTS table. 
All products have a list price. 
You issue the following command to display the total price of each product after a discount of 25% and a 
6 / 11
The safer , easier way to help you pass any IT exams. 
tax of 15% are applied on it. Freight charges of $100 have to be applied to all the products. 
SQL>SELECT prod_name, prod_list_price -(prod_list_price*(25/100)) 
+(prod_list_price -(prod_list_price*(25/100))*(15/100))+100 
AS "TOTAL PRICE" 
FROM products; 
What would be the outcome if all the parenthese s are removed from the above statement? 
A. It produces a syntax error. 
B. The result remains unchanged. 
C. The total price value would be lower than the correct value. 
D. The total price value would be higher than the correct value. 
Answer: B 
12. You need to produce a report where each customer's credit limit has been incremented by $1000. In 
the output, t he customer's last name should have the heading Name and the incremented credit limit 
should be labeled New Credit Limit. The column headings should have only the first letter of each word in 
uppercase . 
Which statement would accomplish this requirement? 
A. SELECT cust_last_name Name, cust_credit_limit + 1000 
7 / 11 
"New Credit Limit" 
FROM customers; 
B. SELECT cust_last_name AS Name, cust_credit_limit + 1000 
AS New Credit Limit 
FROM customers; 
C. SELECT cust_last_name AS "Name", cust_credit_limit + 1000 
AS "New Credit Limit" 
FROM customers; 
D. SELECT INITCAP(cust_last_name) "Name", cust_credit_limit + 1000 
INITCAP("NEW CREDIT LIMIT") 
FROM customers;
The safer , easier way to help you pass any IT exams. 
Answer: C 
13. View the Exhibit and examine the structure of the PRODUCTS table. 
You need to generate a report in the following format: 
CATEGORIES 
5MP Digital Photo Camera's category is Photo 
Y Box's category is Electronics 
Envoy Ambassador's category is Hardware 
Which two queries would give the required output? (Choose two.) 
A. SELECT prod_name q'''s category is ' prod_category CATEGORIES 
FROM products; 
B. SELECT prod_name q'['s ]'category is ' prod_category CATEGORIES 
FROM products; 
C. SELECT prod_name q''s' ' category is ' prod_category CATEGORIES 
FROM products; 
D. SELECT prod_name q'<'s >' 'category is ' prod_category CATEGORIES 
FROM products; 
Answer: CD 
14. Using the CUSTOMERS table, you need to generate a report that shows 50% of each credit 
amount in each income level. The report should NOT show any repeated credit amounts in each income 
level. 
Which query would give the required result? 
A. SELECT cust_income_level, DISTINCT cust_credit_limit * 0.50 
8 / 11 
AS "50% Credit Limit" 
FROM customers; 
B. SELECT DISTINCT cust_income_level, DISTINCT cust_credit_limit * 0.50 
AS "50% Credit Limit" 
FROM customers; 
C. SELECT DISTINCT cust_income_level ' ' cust_credit_limit * 0.50
The safer , easier way to help you pass any IT exams. 
9 / 11 
AS "50% Credit Limit" 
FROM customers; 
D. SELECT cust_income_level ' ' cust_credit_limit * 0.50 AS "50% Credit Limit" 
FROM customers; 
Answer: C 
15. View the Exhibit and examine the data in the CUSTOMERS table. 
Evaluate the following query: 
SQL> SELECT cust_name AS "NAME", cust_credit_limit/2 AS MIDPOINT,MIDPOINT+100 AS "MAX 
LOWER LIMIT" 
FROM customers; 
The above query produces an error on execution. 
What is the reason for the error? 
A. An alias cannot be used in an expression. 
B. The a lias NAME should not be enclosed with in double quotation marks . 
C. The MIDPOINT+100 expression gives an error because CUST_CREDIT_LIMIT contains NULL 
values. 
D. The a lias MIDPOINT should be enclosed with in double quotation marks for the 
CUST_CREDIT_LIMIT/2 expression . 
Answer: A 
16. Evaluate the following query: 
SQL> SELECT promo_name q'{'s start date was }' promo_begin_date 
AS "Promotion Launches" 
FROM promotions; 
What would be the outcome of the above query? 
A. It produces an error because flower braces have been used. 
B. It produces an error because the data types are not matching. 
C. It executes successfully and introduces an 's at the end of each promo_name in the output. 
D. It executes successfully and displays the literal " {'s start date was } " for each row in the output. 
Answer: C
The safer , easier way to help you pass any IT exams. 
17. View the E xhibit and examine the data in the EMPLOYEES table. 
You want to generate a report showing the total compensation paid to each employee to date. 
You issue the following query: 
SQL>SELECT ename ' joined on ' hiredate 
', the total compensation paid is ' 
TO_CHAR(ROUND(ROUND(SYSDATE-hiredate)/365) * sal + comm) 
"COMPENSATION UNTIL DATE" 
FROM employees; 
10 / 11 
What is the outcome? 
A. It generates an error because the alias is not valid. 
B. It executes successfully and gives the correct output. 
C. It executes successfully but does not give the correct output. 
D. It generates an error because the usage of the ROUND function in the expression is not valid. 
E. It generates an error because the concatenation operator can be used to combine only two items. 
Answer: C 
18. Examine the structure of the PROMOTIONS table: 
name Null Type 
PROMO_ID NOT NULL NUMBER(6) 
PROMO_NAME NOT NULL VARCHAR2(30) 
PROMO_CATEGORY NOT NULL VARCHAR2(30) 
PROMO_COST NOT NULL NUMBER(10,2) 
The management wants to see a report of unique promotion costs in each promotion category. 
Which query would achieve the required result? 
A. SELECT DISTINCT promo_cost, promo_category FROM promotions; 
B. SELECT promo_category, DISTINCT promo_cost FROM promotions; 
C. SELECT DISTINCT promo_cost, DISTINCT promo_category FROM promotions; 
D. SELECT DISTINCT promo_category, promo_cost FROM promotions ORDER BY 1;
The safer , easier way to help you pass any IT exams. 
Answer: D 
19. Evaluate the following query: 
SELECT INTERVAL '300' MONTH, 
INTERVAL '54-2' YEAR TO MONTH, 
INTERVAL '11:12:10.1234567' HOUR TO SECOND 
FROM dual; 
What is the correct output of the above query? 
A. +25-00 , +54-02, +00 11:12:10.123457 
B. +00-300, +54-02, +00 11:12:10.123457 
C. +25-00 , +00-650, +00 11:12:10.123457 
D. +00-300 , +00-650, +00 11:12:10.123457 
Answer: A 
20. Which three statements are true regarding the data types in Oracle Database 10g/11g? (Choose 
three.) 
A. Only one LONG column can be used per table. 
B. A TIMESTAMP data type column stores only time values with fractional seconds. 
C. The BLOB data type column is used to store binary data in an operating system file. 
D. The minimum column width that can be specified for a VARCHAR2 data type column is one. 
E. The value for a CHAR data type column is blank-padded to the maximum defined column width. 
Answer: ADE 
11 / 11

More Related Content

What's hot

Introduction to Salesforce validation rules new
Introduction to Salesforce validation rules newIntroduction to Salesforce validation rules new
Introduction to Salesforce validation rules new
Omprakash Saini
 
Plsql task answers
Plsql task answersPlsql task answers
Plsql task answers
Nawaz Sk
 
Querying Database Review Question
Querying Database Review QuestionQuerying Database Review Question
Querying Database Review Question
Darin Grimm
 
Practice create procedure
Practice   create procedurePractice   create procedure
Practice create procedure
cit gubbi
 
EAV in Magento
EAV in MagentoEAV in Magento
EAV in Magento
hazzaz
 

What's hot (19)

Les06
Les06Les06
Les06
 
Introduction to Salesforce validation rules new
Introduction to Salesforce validation rules newIntroduction to Salesforce validation rules new
Introduction to Salesforce validation rules new
 
Alv theory
Alv theoryAlv theory
Alv theory
 
Plsql task answers
Plsql task answersPlsql task answers
Plsql task answers
 
To excel or not?
To excel or not?To excel or not?
To excel or not?
 
Excel tutorial
Excel tutorialExcel tutorial
Excel tutorial
 
Excell vba
Excell vbaExcell vba
Excell vba
 
Procedure rol against retail raw data
Procedure rol against retail raw dataProcedure rol against retail raw data
Procedure rol against retail raw data
 
Querying Database Review Question
Querying Database Review QuestionQuerying Database Review Question
Querying Database Review Question
 
Common SQL Programming Mistakes
Common SQL Programming MistakesCommon SQL Programming Mistakes
Common SQL Programming Mistakes
 
Practice create procedure
Practice   create procedurePractice   create procedure
Practice create procedure
 
Introduction to Event Sourcing and CQRS
Introduction to Event Sourcing and CQRSIntroduction to Event Sourcing and CQRS
Introduction to Event Sourcing and CQRS
 
45 Essential SQL Interview Questions
45 Essential SQL Interview Questions45 Essential SQL Interview Questions
45 Essential SQL Interview Questions
 
Excel project chapter 08
Excel project   chapter 08Excel project   chapter 08
Excel project chapter 08
 
ADV DB SCREENSHOTS
ADV DB SCREENSHOTSADV DB SCREENSHOTS
ADV DB SCREENSHOTS
 
Lab 07
Lab 07Lab 07
Lab 07
 
Les18
Les18Les18
Les18
 
EAV in Magento
EAV in MagentoEAV in Magento
EAV in Magento
 
Sql task
Sql taskSql task
Sql task
 

Viewers also liked

Budidaya ubi cilembu (ipomoea batatas (l
Budidaya ubi cilembu (ipomoea batatas (lBudidaya ubi cilembu (ipomoea batatas (l
Budidaya ubi cilembu (ipomoea batatas (l
Dian Susanti
 
إدارة الوقت من المنظور الإسلامي والإداري
إدارة الوقت من المنظور الإسلامي والإداريإدارة الوقت من المنظور الإسلامي والإداري
إدارة الوقت من المنظور الإسلامي والإداري
Mohammad Kettani
 
Blastman General References
Blastman General ReferencesBlastman General References
Blastman General References
Joe Craig
 
SMU Student Blackboard Orientation
SMU Student Blackboard OrientationSMU Student Blackboard Orientation
SMU Student Blackboard Orientation
Ted Curran
 

Viewers also liked (18)

Suaikan
SuaikanSuaikan
Suaikan
 
Budidaya ubi cilembu (ipomoea batatas (l
Budidaya ubi cilembu (ipomoea batatas (lBudidaya ubi cilembu (ipomoea batatas (l
Budidaya ubi cilembu (ipomoea batatas (l
 
Al tawba (repentence) tagalo
Al tawba (repentence) tagaloAl tawba (repentence) tagalo
Al tawba (repentence) tagalo
 
soalan KBAT ekonomi
soalan KBAT ekonomisoalan KBAT ekonomi
soalan KBAT ekonomi
 
Reason Behind Your Birth
Reason Behind Your BirthReason Behind Your Birth
Reason Behind Your Birth
 
Profil sekolah 2014
Profil sekolah 2014Profil sekolah 2014
Profil sekolah 2014
 
إدارة الوقت من المنظور الإسلامي والإداري
إدارة الوقت من المنظور الإسلامي والإداريإدارة الوقت من المنظور الإسلامي والإداري
إدارة الوقت من المنظور الإسلامي والإداري
 
International Journal of Engineering Research and Development
International Journal of Engineering Research and DevelopmentInternational Journal of Engineering Research and Development
International Journal of Engineering Research and Development
 
A Nordic vision for 2025, Nordic TSOs Cooperation – more focused and effectiv...
A Nordic vision for 2025, Nordic TSOs Cooperation – more focused and effectiv...A Nordic vision for 2025, Nordic TSOs Cooperation – more focused and effectiv...
A Nordic vision for 2025, Nordic TSOs Cooperation – more focused and effectiv...
 
The poem
The poemThe poem
The poem
 
Institutions for Sichuan provincial govt scholarships
Institutions for Sichuan provincial govt scholarshipsInstitutions for Sichuan provincial govt scholarships
Institutions for Sichuan provincial govt scholarships
 
List of qualified athletes for Kenyan Trials for Bejing 2015
List of qualified athletes for Kenyan Trials for Bejing 2015List of qualified athletes for Kenyan Trials for Bejing 2015
List of qualified athletes for Kenyan Trials for Bejing 2015
 
Problemas estática
Problemas estáticaProblemas estática
Problemas estática
 
V center operations management suite 5.6 what's new, pricing and packaging ...
V center operations management suite 5.6   what's new, pricing and packaging ...V center operations management suite 5.6   what's new, pricing and packaging ...
V center operations management suite 5.6 what's new, pricing and packaging ...
 
Best laptops for college students 2011
Best laptops for college students 2011Best laptops for college students 2011
Best laptops for college students 2011
 
What Do We Have Today
What Do We Have TodayWhat Do We Have Today
What Do We Have Today
 
Blastman General References
Blastman General ReferencesBlastman General References
Blastman General References
 
SMU Student Blackboard Orientation
SMU Student Blackboard OrientationSMU Student Blackboard Orientation
SMU Student Blackboard Orientation
 

Similar to 1 z1 051

gratisexam.com-Oracle.BrainDumps.1z0-061.v2016-10-10.by.Laura.75q.pdf
gratisexam.com-Oracle.BrainDumps.1z0-061.v2016-10-10.by.Laura.75q.pdfgratisexam.com-Oracle.BrainDumps.1z0-061.v2016-10-10.by.Laura.75q.pdf
gratisexam.com-Oracle.BrainDumps.1z0-061.v2016-10-10.by.Laura.75q.pdf
NarReg
 
Microsoft MCSA 70-457 it exams dumps
Microsoft MCSA 70-457 it exams dumpsMicrosoft MCSA 70-457 it exams dumps
Microsoft MCSA 70-457 it exams dumps
lilylucy
 
Charles WilliamsCS362Unit 3 Discussion BoardStructured Query Langu.docx
Charles WilliamsCS362Unit 3 Discussion BoardStructured Query Langu.docxCharles WilliamsCS362Unit 3 Discussion BoardStructured Query Langu.docx
Charles WilliamsCS362Unit 3 Discussion BoardStructured Query Langu.docx
christinemaritza
 

Similar to 1 z1 051 (19)

SQL MCQ
SQL MCQSQL MCQ
SQL MCQ
 
gratisexam.com-Oracle.BrainDumps.1z0-061.v2016-10-10.by.Laura.75q.pdf
gratisexam.com-Oracle.BrainDumps.1z0-061.v2016-10-10.by.Laura.75q.pdfgratisexam.com-Oracle.BrainDumps.1z0-061.v2016-10-10.by.Laura.75q.pdf
gratisexam.com-Oracle.BrainDumps.1z0-061.v2016-10-10.by.Laura.75q.pdf
 
Bis 345-week-4-i lab-new
Bis 345-week-4-i lab-newBis 345-week-4-i lab-new
Bis 345-week-4-i lab-new
 
70 433
70 43370 433
70 433
 
Plsql
PlsqlPlsql
Plsql
 
chap 7.ppt(sql).ppt
chap 7.ppt(sql).pptchap 7.ppt(sql).ppt
chap 7.ppt(sql).ppt
 
Microsoft MCSA 70-457 it exams dumps
Microsoft MCSA 70-457 it exams dumpsMicrosoft MCSA 70-457 it exams dumps
Microsoft MCSA 70-457 it exams dumps
 
Sql xp 02
Sql xp 02Sql xp 02
Sql xp 02
 
Chap 7
Chap 7Chap 7
Chap 7
 
Da 100-questions
Da 100-questionsDa 100-questions
Da 100-questions
 
1z0 061 exam-oracle database 12c sql fundamentals
1z0 061 exam-oracle database 12c sql fundamentals1z0 061 exam-oracle database 12c sql fundamentals
1z0 061 exam-oracle database 12c sql fundamentals
 
DN 2017 | Reducing pain in data engineering | Martin Loetzsch | Project A
DN 2017 | Reducing pain in data engineering | Martin Loetzsch | Project ADN 2017 | Reducing pain in data engineering | Martin Loetzsch | Project A
DN 2017 | Reducing pain in data engineering | Martin Loetzsch | Project A
 
ADBMS ASSIGNMENT
ADBMS ASSIGNMENTADBMS ASSIGNMENT
ADBMS ASSIGNMENT
 
Charles WilliamsCS362Unit 3 Discussion BoardStructured Query Langu.docx
Charles WilliamsCS362Unit 3 Discussion BoardStructured Query Langu.docxCharles WilliamsCS362Unit 3 Discussion BoardStructured Query Langu.docx
Charles WilliamsCS362Unit 3 Discussion BoardStructured Query Langu.docx
 
My Sql concepts
My Sql conceptsMy Sql concepts
My Sql concepts
 
Solved Practice questions for Microsoft Querying Data with Transact-SQL 70-76...
Solved Practice questions for Microsoft Querying Data with Transact-SQL 70-76...Solved Practice questions for Microsoft Querying Data with Transact-SQL 70-76...
Solved Practice questions for Microsoft Querying Data with Transact-SQL 70-76...
 
Oracle Advanced Pricing (Creating a discount modifier using qualifiers)
Oracle Advanced Pricing (Creating a discount modifier using qualifiers)Oracle Advanced Pricing (Creating a discount modifier using qualifiers)
Oracle Advanced Pricing (Creating a discount modifier using qualifiers)
 
Sas interview practice question with answers
Sas interview practice question with answersSas interview practice question with answers
Sas interview practice question with answers
 
DBST 651 FINAL PART II
DBST 651 FINAL PART IIDBST 651 FINAL PART II
DBST 651 FINAL PART II
 

More from AHMED ENNAJI

Devoir surveille 1 2 bac pc 2019
Devoir surveille 1  2 bac pc 2019Devoir surveille 1  2 bac pc 2019
Devoir surveille 1 2 bac pc 2019
AHMED ENNAJI
 
Exercice sur les fonctions exponentielles pour 2 bac pc
Exercice sur les fonctions exponentielles pour 2 bac pcExercice sur les fonctions exponentielles pour 2 bac pc
Exercice sur les fonctions exponentielles pour 2 bac pc
AHMED ENNAJI
 
Devoir surveille 1 semestre2 1sm om
Devoir surveille 1 semestre2 1sm omDevoir surveille 1 semestre2 1sm om
Devoir surveille 1 semestre2 1sm om
AHMED ENNAJI
 

More from AHMED ENNAJI (20)

Discipline positive
Discipline positiveDiscipline positive
Discipline positive
 
Controle3 sur table elbilia tc1
Controle3 sur table elbilia tc1Controle3 sur table elbilia tc1
Controle3 sur table elbilia tc1
 
Controle 1sur table tc1 elbilia nnaji
Controle 1sur table tc1 elbilia nnajiControle 1sur table tc1 elbilia nnaji
Controle 1sur table tc1 elbilia nnaji
 
Controle2 sur table elbilia tc1
Controle2 sur table elbilia tc1Controle2 sur table elbilia tc1
Controle2 sur table elbilia tc1
 
Contr 1 om pc biof decembre
Contr 1 om pc biof decembreContr 1 om pc biof decembre
Contr 1 om pc biof decembre
 
Contr 2 om pc biof (janvier)2
Contr 2 om pc biof (janvier)2Contr 2 om pc biof (janvier)2
Contr 2 om pc biof (janvier)2
 
Contr 3 om pc biof (janvier)
Contr 3 om pc biof (janvier)Contr 3 om pc biof (janvier)
Contr 3 om pc biof (janvier)
 
Diagnos1
Diagnos1Diagnos1
Diagnos1
 
Serie 1espace
Serie 1espaceSerie 1espace
Serie 1espace
 
Devoir surveille 1 2 bac pc 2019
Devoir surveille 1  2 bac pc 2019Devoir surveille 1  2 bac pc 2019
Devoir surveille 1 2 bac pc 2019
 
Exercice sur les fonctions exponentielles pour 2 bac pc
Exercice sur les fonctions exponentielles pour 2 bac pcExercice sur les fonctions exponentielles pour 2 bac pc
Exercice sur les fonctions exponentielles pour 2 bac pc
 
Bac blanc3 oum
Bac blanc3 oumBac blanc3 oum
Bac blanc3 oum
 
Bac blanc 11
Bac blanc 11Bac blanc 11
Bac blanc 11
 
Examen blanc 7
Examen blanc 7Examen blanc 7
Examen blanc 7
 
Bac blanc 5
Bac blanc 5Bac blanc 5
Bac blanc 5
 
Bac blanc 6
Bac blanc 6Bac blanc 6
Bac blanc 6
 
Bac blanc 10
Bac blanc 10Bac blanc 10
Bac blanc 10
 
Bac blan 8 pc biof
Bac blan 8 pc biofBac blan 8 pc biof
Bac blan 8 pc biof
 
Exercice bac pc1
Exercice bac pc1Exercice bac pc1
Exercice bac pc1
 
Devoir surveille 1 semestre2 1sm om
Devoir surveille 1 semestre2 1sm omDevoir surveille 1 semestre2 1sm om
Devoir surveille 1 semestre2 1sm om
 

Recently uploaded

The Abortion pills for sale in Qatar@Doha [+27737758557] []Deira Dubai Kuwait
The Abortion pills for sale in Qatar@Doha [+27737758557] []Deira Dubai KuwaitThe Abortion pills for sale in Qatar@Doha [+27737758557] []Deira Dubai Kuwait
The Abortion pills for sale in Qatar@Doha [+27737758557] []Deira Dubai Kuwait
daisycvs
 
Challenges and Opportunities: A Qualitative Study on Tax Compliance in Pakistan
Challenges and Opportunities: A Qualitative Study on Tax Compliance in PakistanChallenges and Opportunities: A Qualitative Study on Tax Compliance in Pakistan
Challenges and Opportunities: A Qualitative Study on Tax Compliance in Pakistan
vineshkumarsajnani12
 
Mckinsey foundation level Handbook for Viewing
Mckinsey foundation level Handbook for ViewingMckinsey foundation level Handbook for Viewing
Mckinsey foundation level Handbook for Viewing
Nauman Safdar
 

Recently uploaded (20)

Chennai Call Gril 80022//12248 Only For Sex And High Profile Best Gril Sex Av...
Chennai Call Gril 80022//12248 Only For Sex And High Profile Best Gril Sex Av...Chennai Call Gril 80022//12248 Only For Sex And High Profile Best Gril Sex Av...
Chennai Call Gril 80022//12248 Only For Sex And High Profile Best Gril Sex Av...
 
Lundin Gold - Q1 2024 Conference Call Presentation (Revised)
Lundin Gold - Q1 2024 Conference Call Presentation (Revised)Lundin Gold - Q1 2024 Conference Call Presentation (Revised)
Lundin Gold - Q1 2024 Conference Call Presentation (Revised)
 
PARK STREET 💋 Call Girl 9827461493 Call Girls in Escort service book now
PARK STREET 💋 Call Girl 9827461493 Call Girls in  Escort service book nowPARK STREET 💋 Call Girl 9827461493 Call Girls in  Escort service book now
PARK STREET 💋 Call Girl 9827461493 Call Girls in Escort service book now
 
Buy gmail accounts.pdf buy Old Gmail Accounts
Buy gmail accounts.pdf buy Old Gmail AccountsBuy gmail accounts.pdf buy Old Gmail Accounts
Buy gmail accounts.pdf buy Old Gmail Accounts
 
The Abortion pills for sale in Qatar@Doha [+27737758557] []Deira Dubai Kuwait
The Abortion pills for sale in Qatar@Doha [+27737758557] []Deira Dubai KuwaitThe Abortion pills for sale in Qatar@Doha [+27737758557] []Deira Dubai Kuwait
The Abortion pills for sale in Qatar@Doha [+27737758557] []Deira Dubai Kuwait
 
Durg CALL GIRL ❤ 82729*64427❤ CALL GIRLS IN durg ESCORTS
Durg CALL GIRL ❤ 82729*64427❤ CALL GIRLS IN durg ESCORTSDurg CALL GIRL ❤ 82729*64427❤ CALL GIRLS IN durg ESCORTS
Durg CALL GIRL ❤ 82729*64427❤ CALL GIRLS IN durg ESCORTS
 
Challenges and Opportunities: A Qualitative Study on Tax Compliance in Pakistan
Challenges and Opportunities: A Qualitative Study on Tax Compliance in PakistanChallenges and Opportunities: A Qualitative Study on Tax Compliance in Pakistan
Challenges and Opportunities: A Qualitative Study on Tax Compliance in Pakistan
 
How to Get Started in Social Media for Art League City
How to Get Started in Social Media for Art League CityHow to Get Started in Social Media for Art League City
How to Get Started in Social Media for Art League City
 
Falcon Invoice Discounting: The best investment platform in india for investors
Falcon Invoice Discounting: The best investment platform in india for investorsFalcon Invoice Discounting: The best investment platform in india for investors
Falcon Invoice Discounting: The best investment platform in india for investors
 
Call 7737669865 Vadodara Call Girls Service at your Door Step Available All Time
Call 7737669865 Vadodara Call Girls Service at your Door Step Available All TimeCall 7737669865 Vadodara Call Girls Service at your Door Step Available All Time
Call 7737669865 Vadodara Call Girls Service at your Door Step Available All Time
 
WheelTug Short Pitch Deck 2024 | Byond Insights
WheelTug Short Pitch Deck 2024 | Byond InsightsWheelTug Short Pitch Deck 2024 | Byond Insights
WheelTug Short Pitch Deck 2024 | Byond Insights
 
Mckinsey foundation level Handbook for Viewing
Mckinsey foundation level Handbook for ViewingMckinsey foundation level Handbook for Viewing
Mckinsey foundation level Handbook for Viewing
 
Berhampur Call Girl Just Call 8084732287 Top Class Call Girl Service Available
Berhampur Call Girl Just Call 8084732287 Top Class Call Girl Service AvailableBerhampur Call Girl Just Call 8084732287 Top Class Call Girl Service Available
Berhampur Call Girl Just Call 8084732287 Top Class Call Girl Service Available
 
CROSS CULTURAL NEGOTIATION BY PANMISEM NS
CROSS CULTURAL NEGOTIATION BY PANMISEM NSCROSS CULTURAL NEGOTIATION BY PANMISEM NS
CROSS CULTURAL NEGOTIATION BY PANMISEM NS
 
Berhampur CALL GIRL❤7091819311❤CALL GIRLS IN ESCORT SERVICE WE ARE PROVIDING
Berhampur CALL GIRL❤7091819311❤CALL GIRLS IN ESCORT SERVICE WE ARE PROVIDINGBerhampur CALL GIRL❤7091819311❤CALL GIRLS IN ESCORT SERVICE WE ARE PROVIDING
Berhampur CALL GIRL❤7091819311❤CALL GIRLS IN ESCORT SERVICE WE ARE PROVIDING
 
Nashik Call Girl Just Call 7091819311 Top Class Call Girl Service Available
Nashik Call Girl Just Call 7091819311 Top Class Call Girl Service AvailableNashik Call Girl Just Call 7091819311 Top Class Call Girl Service Available
Nashik Call Girl Just Call 7091819311 Top Class Call Girl Service Available
 
Berhampur 70918*19311 CALL GIRLS IN ESCORT SERVICE WE ARE PROVIDING
Berhampur 70918*19311 CALL GIRLS IN ESCORT SERVICE WE ARE PROVIDINGBerhampur 70918*19311 CALL GIRLS IN ESCORT SERVICE WE ARE PROVIDING
Berhampur 70918*19311 CALL GIRLS IN ESCORT SERVICE WE ARE PROVIDING
 
SEO Case Study: How I Increased SEO Traffic & Ranking by 50-60% in 6 Months
SEO Case Study: How I Increased SEO Traffic & Ranking by 50-60%  in 6 MonthsSEO Case Study: How I Increased SEO Traffic & Ranking by 50-60%  in 6 Months
SEO Case Study: How I Increased SEO Traffic & Ranking by 50-60% in 6 Months
 
Unveiling Falcon Invoice Discounting: Leading the Way as India's Premier Bill...
Unveiling Falcon Invoice Discounting: Leading the Way as India's Premier Bill...Unveiling Falcon Invoice Discounting: Leading the Way as India's Premier Bill...
Unveiling Falcon Invoice Discounting: Leading the Way as India's Premier Bill...
 
Escorts in Nungambakkam Phone 8250092165 Enjoy 24/7 Escort Service Enjoy Your...
Escorts in Nungambakkam Phone 8250092165 Enjoy 24/7 Escort Service Enjoy Your...Escorts in Nungambakkam Phone 8250092165 Enjoy 24/7 Escort Service Enjoy Your...
Escorts in Nungambakkam Phone 8250092165 Enjoy 24/7 Escort Service Enjoy Your...
 

1 z1 051

  • 1.
  • 2. The safer , easier way to help you pass any IT exams. Exam : 1Z1-051 Oracle Database: SQL Fundamentals I 1 / 11 Title : Version : DEMO
  • 3. The safer , easier way to help you pass any IT exams. 1. View the Exhibit and examine the structure of the SALES, CUSTOMERS, PRODUCTS, and TIMES tables. The PROD_ID column is the foreign key in the SALES table, which references the PRODUCTS table. Similarly, the CUST_ID and TIME_ID columns are also foreign keys in the SALES table referencing the CUSTOMERS and TIMES tables, respectively. Evaluate the following CREATE TABLE command: CREATE TABLE new_sales(prod_id, cust_id, order_date DEFAULT SYSDATE) AS SELECT prod_id, cust_id, time_id FROM sales; Which statement is true regarding the above command? A. The NEW_SALES table would not get created because the DEFAULT value cannot be specified in the column definition. B. The NEW_SALES table would get created and all the NOT NULL constraints defined on the specified columns would be passed to the new table. 2 / 11
  • 4. The safer , easier way to help you pass any IT exams. C. The NEW_SALES table would not get created because the column names in the CREATE TABLE command and the SELECT clause do not match. D. The NEW_SALES table would get created and all the FOREIGN KEY constraints defined on the specified columns would be passed to the new table. Answer: B 2. View the Exhibit to examine the description for the SALES table. Which views can have all DML operations performed on it? (Choose all that apply.) 3 / 11 A. CREATE VIEW v3 AS SELECT * FROM SALES WHERE cust_id = 2034 WITH CHECK OPTION; B. CREATE VIEW v1 AS SELECT * FROM SALES WHERE time_id <= SYSDATE - 2*365 WITH CHECK OPTION; C. CREATE VIEW v2 AS SELECT prod_id, cust_id, time_id FROM SALES WHERE time_id <= SYSDATE - 2*365 WITH CHECK OPTION; D. CREATE VIEW v4 AS SELECT prod_id, cust_id, SUM(quantity_sold) FROM SALES WHERE time_id <= SYSDATE - 2*365 GROUP BY prod_id, cust_id WITH CHECK OPTION; Answer: AB 3. You need to extract details of those products in the SALES table where the PROD_ID column contains the string '_D123'. Which WHERE clause could be used in the SELECT statement to get the required output? A. WHERE prod_id LIKE '%_D123%' ESCAPE '_' B. WHERE prod_id LIKE '%_D123%' ESCAPE ''
  • 5. The safer , easier way to help you pass any IT exams. C. WHERE prod_id LIKE '%_D123%' ESCAPE '%_' D. WHERE prod_id LIKE '%_D123%' ESCAPE '_' Answer: B 4. Which two statements are true regarding single row functions? (Choose two.) A. They a ccept only a single argument. B. They c an be nested only to two levels. C. Arguments can only be column values or constants. D. They a lways return a single result row for every row of a queried table. E. They c an return a data type value different from the one that is referenced. Answer: DE 5. Which SQL statements would display the value 1890.55 as $1,890.55? (Choose three .) A. SELECT TO_CHAR(1890.55,'$0G000D00') FROM DUAL; B. SELECT TO_CHAR(1890.55,'$9,999V99') FROM DUAL; C. SELECT TO_CHAR(1890.55,'$99,999D99') FROM DUAL; D. SELECT TO_CHAR(1890.55,'$99G999D00') FROM DUAL; E. SELECT TO_CHAR(1890.55,'$99G999D99') FROM DUAL; Answer: ADE 6. Examine the structure of the SHIPMENTS table: name Null Type PO_ID NOT NULL NUMBER(3) PO_DATE NOT NULL DATE SHIPMENT_DATE NOT NULL DATE SHIPMENT_MODE VARCHAR2(30) SHIPMENT_COST NUMBER(8,2) You want to generate a report that displays the PO_ID and the penalty amount to be paid if the SHIPMENT_DATE is later than one month from the PO_DATE. The penalty is $20 per day. Evaluate the following two queries: SQL> SELECT po_id, CASE WHEN MONTHS_BETWEEN (shipment_date,po_date)>1 THEN 4 / 11
  • 6. The safer , easier way to help you pass any IT exams. TO_CHAR((shipment_date - po_date) * 20) ELSE 'No Penalty' END PENALTY FROM shipments; SQL>SELECT po_id, DECODE (MONTHS_BETWEEN (po_date,shipment_date)>1, TO_CHAR((shipment_date - po_date) * 20), 'No Penalty') PENALTY FROM shipments; Which statement is true regarding the above commands? A. Both execute successfully and give correct results. B. Only the first query executes successfully but gives a wrong result. C. Only the first query executes successfully and gives the correct result. D. Only the second query executes successfully but gives a wrong result. E. Only the second query executes successfully and gives the correct result. Answer: C 7. Which two statements are true regarding the USING and ON clauses in table joins? (Choose two.) A. Both USING and ON clauses can be used for equijoins and nonequijoins. B. A maximum of one pair of columns can be joined between two tables using the ON clause. C. The ON clause can be used to join tables on columns that have different names but compatible data types. D. The WHERE clause can be used to apply additional conditions in SELECT statements containing the ON or the USING clause. Answer: CD 8. View the Exhibit and examine the structure of the CUSTOMERS table. Which two tasks would require subqueries or joins to be executed in a single statement? (Choose two.) A. listing of customers who do not have a credit limit and were born before 1980 B. finding the number of customers, in each city, whose marital status is 'married' C. finding the average credit limit of male customers residing in 'Tokyo' or 'Sydney' D. listing of those customers whose credit limit is the same as the credit limit of customers residing in the 5 / 11
  • 7. The safer , easier way to help you pass any IT exams. city 'Tokyo' E. finding the number of customers, in each city, whose credit limit is more than the average credit limit of all the customers Answer: DE 9. Which statement is true regarding the INTERSECT operator? A. It ignores NULL values. B. Reversing the order of the intersected tables alters the result. C. The names of columns in all SELECT statements must be identical. D. The number of columns and data types must be identical for all SELECT statements in the query. Answer: D 10. View the Exhibit; e xamine the structure of the PROMOTIONS table. Each promotion has a duration of at least seven days . Your manager has asked you to generate a report, which provides the weekly cost for each promotion done to l date. Which query would achieve the required result? A. SELECT promo_name, promo_cost/promo_end_date-promo_begin_date/7 FROM promotions; B. SELECT promo_name,(promo_cost/promo_end_date-promo_begin_date)/7 FROM promotions; C. SELECT promo_name, promo_cost/(promo_end_date-promo_begin_date/7) FROM promotions; D. SELECT promo_name, promo_cost/((promo_end_date-promo_begin_date)/7) FROM promotions; Answer: D 11. View the Exhibit and examine the structure of the PRODUCTS table. All products have a list price. You issue the following command to display the total price of each product after a discount of 25% and a 6 / 11
  • 8. The safer , easier way to help you pass any IT exams. tax of 15% are applied on it. Freight charges of $100 have to be applied to all the products. SQL>SELECT prod_name, prod_list_price -(prod_list_price*(25/100)) +(prod_list_price -(prod_list_price*(25/100))*(15/100))+100 AS "TOTAL PRICE" FROM products; What would be the outcome if all the parenthese s are removed from the above statement? A. It produces a syntax error. B. The result remains unchanged. C. The total price value would be lower than the correct value. D. The total price value would be higher than the correct value. Answer: B 12. You need to produce a report where each customer's credit limit has been incremented by $1000. In the output, t he customer's last name should have the heading Name and the incremented credit limit should be labeled New Credit Limit. The column headings should have only the first letter of each word in uppercase . Which statement would accomplish this requirement? A. SELECT cust_last_name Name, cust_credit_limit + 1000 7 / 11 "New Credit Limit" FROM customers; B. SELECT cust_last_name AS Name, cust_credit_limit + 1000 AS New Credit Limit FROM customers; C. SELECT cust_last_name AS "Name", cust_credit_limit + 1000 AS "New Credit Limit" FROM customers; D. SELECT INITCAP(cust_last_name) "Name", cust_credit_limit + 1000 INITCAP("NEW CREDIT LIMIT") FROM customers;
  • 9. The safer , easier way to help you pass any IT exams. Answer: C 13. View the Exhibit and examine the structure of the PRODUCTS table. You need to generate a report in the following format: CATEGORIES 5MP Digital Photo Camera's category is Photo Y Box's category is Electronics Envoy Ambassador's category is Hardware Which two queries would give the required output? (Choose two.) A. SELECT prod_name q'''s category is ' prod_category CATEGORIES FROM products; B. SELECT prod_name q'['s ]'category is ' prod_category CATEGORIES FROM products; C. SELECT prod_name q''s' ' category is ' prod_category CATEGORIES FROM products; D. SELECT prod_name q'<'s >' 'category is ' prod_category CATEGORIES FROM products; Answer: CD 14. Using the CUSTOMERS table, you need to generate a report that shows 50% of each credit amount in each income level. The report should NOT show any repeated credit amounts in each income level. Which query would give the required result? A. SELECT cust_income_level, DISTINCT cust_credit_limit * 0.50 8 / 11 AS "50% Credit Limit" FROM customers; B. SELECT DISTINCT cust_income_level, DISTINCT cust_credit_limit * 0.50 AS "50% Credit Limit" FROM customers; C. SELECT DISTINCT cust_income_level ' ' cust_credit_limit * 0.50
  • 10. The safer , easier way to help you pass any IT exams. 9 / 11 AS "50% Credit Limit" FROM customers; D. SELECT cust_income_level ' ' cust_credit_limit * 0.50 AS "50% Credit Limit" FROM customers; Answer: C 15. View the Exhibit and examine the data in the CUSTOMERS table. Evaluate the following query: SQL> SELECT cust_name AS "NAME", cust_credit_limit/2 AS MIDPOINT,MIDPOINT+100 AS "MAX LOWER LIMIT" FROM customers; The above query produces an error on execution. What is the reason for the error? A. An alias cannot be used in an expression. B. The a lias NAME should not be enclosed with in double quotation marks . C. The MIDPOINT+100 expression gives an error because CUST_CREDIT_LIMIT contains NULL values. D. The a lias MIDPOINT should be enclosed with in double quotation marks for the CUST_CREDIT_LIMIT/2 expression . Answer: A 16. Evaluate the following query: SQL> SELECT promo_name q'{'s start date was }' promo_begin_date AS "Promotion Launches" FROM promotions; What would be the outcome of the above query? A. It produces an error because flower braces have been used. B. It produces an error because the data types are not matching. C. It executes successfully and introduces an 's at the end of each promo_name in the output. D. It executes successfully and displays the literal " {'s start date was } " for each row in the output. Answer: C
  • 11. The safer , easier way to help you pass any IT exams. 17. View the E xhibit and examine the data in the EMPLOYEES table. You want to generate a report showing the total compensation paid to each employee to date. You issue the following query: SQL>SELECT ename ' joined on ' hiredate ', the total compensation paid is ' TO_CHAR(ROUND(ROUND(SYSDATE-hiredate)/365) * sal + comm) "COMPENSATION UNTIL DATE" FROM employees; 10 / 11 What is the outcome? A. It generates an error because the alias is not valid. B. It executes successfully and gives the correct output. C. It executes successfully but does not give the correct output. D. It generates an error because the usage of the ROUND function in the expression is not valid. E. It generates an error because the concatenation operator can be used to combine only two items. Answer: C 18. Examine the structure of the PROMOTIONS table: name Null Type PROMO_ID NOT NULL NUMBER(6) PROMO_NAME NOT NULL VARCHAR2(30) PROMO_CATEGORY NOT NULL VARCHAR2(30) PROMO_COST NOT NULL NUMBER(10,2) The management wants to see a report of unique promotion costs in each promotion category. Which query would achieve the required result? A. SELECT DISTINCT promo_cost, promo_category FROM promotions; B. SELECT promo_category, DISTINCT promo_cost FROM promotions; C. SELECT DISTINCT promo_cost, DISTINCT promo_category FROM promotions; D. SELECT DISTINCT promo_category, promo_cost FROM promotions ORDER BY 1;
  • 12. The safer , easier way to help you pass any IT exams. Answer: D 19. Evaluate the following query: SELECT INTERVAL '300' MONTH, INTERVAL '54-2' YEAR TO MONTH, INTERVAL '11:12:10.1234567' HOUR TO SECOND FROM dual; What is the correct output of the above query? A. +25-00 , +54-02, +00 11:12:10.123457 B. +00-300, +54-02, +00 11:12:10.123457 C. +25-00 , +00-650, +00 11:12:10.123457 D. +00-300 , +00-650, +00 11:12:10.123457 Answer: A 20. Which three statements are true regarding the data types in Oracle Database 10g/11g? (Choose three.) A. Only one LONG column can be used per table. B. A TIMESTAMP data type column stores only time values with fractional seconds. C. The BLOB data type column is used to store binary data in an operating system file. D. The minimum column width that can be specified for a VARCHAR2 data type column is one. E. The value for a CHAR data type column is blank-padded to the maximum defined column width. Answer: ADE 11 / 11