SlideShare a Scribd company logo
1 of 18
For any Homework related queries, Call us at : - +1 678 648 4277
You can mail us at : - info@databasehomeworkhelp.com or
reach us at : - https://www.databasehomeworkhelp.com/
Q1. Consider the following instance of the relation PAPER(ID, TYPE, AREA,
CITATION)
ID TYPE AREA CITATION
145 JOURNAL MACHINE LEARNING 567
146 JOURNAL MACHINE LEARNING 167
1446 CONFERENCE MACHINE LEARNING 43
986
CONFERENCE NETWORKING 343
66 CONFERENCE BLOCK CHAIN 243
databasehomeworkhelp.com
Which of the following values will be present in all the tuples selected by the following
query:
SELECT 'CITATION' FROM PAPER WHERE CITATION>200
a) 567
b) CITATION
c) 43
d) 167
Answer b) CITATION
Q2. Consider the following instance of the relation PAPER(ID, TYPE, AREA,
CITATION)
databasehomeworkhelp.com
ID TYPE AREA CITATION
145 JOURNAL MACHINE LEARNING 567
146 JOURNAL MACHINE LEARNING 167
1446 CONFERENCE MACHINE LEARNING 43
986
CONFERENCE NETWORKING 343
66 CONFERENCE BLOCK CHAIN 243
databasehomeworkhelp.com
Select the correct query that displays the following output:
ID
72
73
723
33
databasehomeworkhelp.com
a) SELECT ID/2 AS ID FROM PAPER WHERE AREA LIKE "%%"
b) SELECT ID/2 AS ID FROM PAPER WHERE AREA LIKE "%“
c) SELECT ID-73 AS ID FROM PAPER WHERE AREA LIKE "%_%"
d) SELECT ID-73 AS ID FROM PAPER WHERE AREA LIKE "%%“
Answer a) SELECT ID/2 AS ID FROM PAPER WHERE AREA LIKE "%%"
Q3. Consider the following instance of the relation MAINTENANCE(WORK, DAYS,
CHARGE, TEAM)
WORK DAYS CHARGE TEAM
EXT. PAINT 7 100000 5
INT. PAINT 7 100000 8
FLOOR 1 5000 3
databasehomeworkhelp.com
EXT. PAINT 7 50000 2
WALL REPAIR 10 80000 8
How many tuples will be returned by the following query: SELECT AVG(CHARGE)
FROM MAINTENANCE GROUP BY DAYS
a) 1
b) 2
c) 3
d) 4
Answer c) 3
Q4. Consider the following instance of the relation MAINTENANCE (WORK,
DAYS, CHARGE, TEAM).
databasehomeworkhelp.com
2
WORK DAYS CHARGE TEAM
EXT. PAINT 7 100000 5
INT. PAINT 7 100000 8
FLOOR 1 5000 3
EXT. PAINT 7 50000 2
WALL REPAIR 10 80000 8
databasehomeworkhelp.com
Which of the following queries will produce the following output (ordered):
WORK TEAM
WALL REPAIR 8
EXT. PAINT 5
INT. PAINT 8
a) SELECT WORK, TEAM FROM MAINTENANCE WHERE CHARGE>50000
ORDER
BY DAYS DESC, TEAM
b) SELECT WORK, TEAM FROM MAINTENANCE WHERE CHARGE>50000
ORDER
BY DAYS DESC, TEAM DESC
c) SELECT WORK, TEAM FROM MAINTENANCE WHERE CHARGE>50000
ORDER
databasehomeworkhelp.com
BY DAYS, TEAM
d) SELECT WORK, TEAM FROM MAINTENANCE WHERE CHARGE>50000
ORDER BY DAYS, TEAM DESC
Answer a) SELECT WORK, TEAM FROM MAINTENANCE WHERE
CHARGE>50000 ORDER
Q5. Consider the following schema. Primary keys are underlined.
Employees(E_name, E_street, E_city)
BankAccount(Ac_number, Branch_name, Balance)
AccountUser(E_name, Ac_number)
Which is the correct SQL command to create the table AccountUser having two
foreign keys E_name and Ac_number
a) CREATE TABLE AccountUser {
E_name VARCHAR(20),
Ac_number NUMERIC(12, 2),
PRIMARY EKY (E_name, Ac_number),
FOREIGN KEY(E_name) REFERENCES Employees,
FOREIGN KEY(Ac_number) REFERENCES BankAccount);
databasehomeworkhelp.com
b) CREATE TABLE AccountUser {
E_name VARCHAR(20),
Ac_number NUMERIC(12, 2),
PRIMARY EKY(E_name),
FOREIGN KEY(E_name) REFERENCES Employees,
FOREIGN KEY(Ac_number) REFERENCES BankAccount);
c) CREATE TABLE AccountUser {
E_name VARCHAR(20) PRIMARY KEY,
Ac_number NUMERIC(12, 2) PRIMARY KEY,
FOREIGN KEY(E_name) REFERENCES Employees,
FOREIGN KEY(Ac_number) REFERENCES BankAccount);
d) CREATE TABLE AccountUser {
E_name VARCHAR(20),
Ac_number NUMERIC(12, 2),
PRIMARY EKY (E_name, Ac_number),
FOREIGN KEY Employees(E_name),
FOREIGN KEY BankAccount (Ac_number));
Answer a)
databasehomeworkhelp.com
Q6. Identify the correct SQL command(s) to create a new record for the Faculty
table as given below. Primary key is underlined in the schema.
Faculty_name Department Degree
Charline B English M.A.
a) INSERT INTO FACULTY VALUES('Charline B', 'English', 'M.A.');
b) INSERT INTO FACULTY VALUE("Charline B", "English", "M.A.");
c) INSERT INTO FACULTY VALUE('Charline B', 'English', 'M.A.');
d) INSERT INTO FACULTY (Faculty_name, Department, Degree)
VALUES('Charline B', 'English', 'M.A.');
Answer a), d)
databasehomeworkhelp.com
Q7. A role Admin has the privilege of select, insert, update and delete on all tables of
database. A new role Users is created and the following statement is executed.
grant Admin to Users;
Which rights will Users inherit?
a) Only select
b) Only select and delete
c) Only select, and update but not delete
d) All rights - select, insert, delete, and update
Answer d) All rights - select, insert, delete, and update
Q8. Consider the following instance of Employee Details (EmpName, Branch,
Address, Salary) relation.
databasehomeworkhelp.com
EmpName Branch Salary
Address
Raja
Priyanka
Kolkata Kolkata 10000
Mumbai Hyderabad 12000
Arindam Bangalore Kolkata 15000
Rumki Hyderabad Hyderabad 20000
Sumit Hyderabad Bangalore 10000
Sandip Mumbai Mumbai 15000
databasehomeworkhelp.com
a) SELECT * FROM Employee Details WHERE Branch=Address OR Salary>=
15000;
b) SELECT * FROM Employee Details WHERE Branch=Address AND
Salary>= 15000;
c) (SELECT * FROM EmployeeDetails WHERE Branch=Address) UNION
(SELECT *
FROM Employee Details WHERE Salary>=15000);
d) (SELECT * FROM Employee Details WHERE Branch=Address) INTERSECT
(SELECT * FROM EmployeeDetails WHERE Salary>=15000);
Answer a) , c)
Q9. Consider the following instance of Employee Details(EmpName, Branch,
Address, Salary) relation.
databasehomeworkhelp.com
EmpName Branch Address Salary
Raja Kolkata Kolkata 10000
Priyanka Mumbai Hyderabad 12000
Arindam Bangalore Kolkata 15000
Rumki Hyderabad Hyderabad 20000
Sumit Hyderabad Bangalore 10000
Sandip Mumbai Mumbai 15000
databasehomeworkhelp.com
Identify the correct SQL command that creates a view as EmployeeSalaryDetails in
which columns EmpName and Salary for the tuples where the second character of
EmpName is 'r' and the Salary is atleast 15000.
a) CREATE VIEW Employee SalaryDetails(EmpName, Salary) ON
SELECT EmpName, Salary FROM EmployeeDetails
WHERE EmpName LIKE '%r%' AND Salary>= 15000;
b) CREATE VIEW EmployeeSalaryDetails(EmpName, Salary) ON
SELECT EmpName, Salary FROM EmployeeDetails
WHERE EmpName LIKE '_r%' AND Salary>15000;
c) CREATE VIEW EmployeeSalary Details(EmpName, Salary) AS
SELECT EmpName, Salary FROM EmployeeDetails
WHERE EmpName LIKE '_r%' AND Salary>= 15000;
d) CREATE VIEW EmployeeSalaryDetails(EmpName, Salary) AS
SELECT EmpName, Salary FROM EmployeeDetails
WHERE EmpName LIKE '_r%' AND Salary>15000;
Answer c)
databasehomeworkhelp.com
Q10. Consider the given relational schema: Employee Details(EmpName, Branch,
Address, Salary) Identify the correct statement to find the EmpName, Branch and Salary
of all tuples in which Salary is greater than or equal to the average Salary of all
employees or Salary is between 15000 and 20000 including 15000 and 20000.
a) SELECT EmpName, Branch, Salary
FROM Employee Details
WHERE Salary>=(SELECT AVG(Salary) from EmployeeDetails)
OR Salary LIKE(15000, 20000);
b) SELECT EmpName, Branch, Salary
FROM Employee Details
WHERE Salary>=(SELECT AVG(Salary) from EmployeeDetails)
OR Salary IN(15000, 20000);
c) SELECT EmpName, Branch, Salary
FROM Employee Details
WHERE Salary>=(SELECT AVG(Salary) from EmployeeDetails)
OR Salary AS(15000, 20000);
d) SELECT EmpName, Branch, Salary
FROM Employee Details
WHERE Salary>=(SELECT AVG(Salary) from EmployeeDetails)
OR Salary BETWEEN 15000 AND 20000;
Answer c)
databasehomeworkhelp.com

More Related Content

Similar to Database Homework Help

Data Exploration with Apache Drill: Day 2
Data Exploration with Apache Drill: Day 2Data Exploration with Apache Drill: Day 2
Data Exploration with Apache Drill: Day 2Charles Givre
 
Class 12 computer sample paper with answers
Class 12 computer sample paper with answersClass 12 computer sample paper with answers
Class 12 computer sample paper with answersdebarghyamukherjee60
 
Page 5 of 7Delete this text and type your name hereThis fi.docx
Page 5 of 7Delete this text and type your name hereThis fi.docxPage 5 of 7Delete this text and type your name hereThis fi.docx
Page 5 of 7Delete this text and type your name hereThis fi.docxalfred4lewis58146
 
Sqlforetltesting 130712042826-phpapp01
Sqlforetltesting 130712042826-phpapp01Sqlforetltesting 130712042826-phpapp01
Sqlforetltesting 130712042826-phpapp01Gyanendra Kumar
 
Oracle tips and tricks
Oracle tips and tricksOracle tips and tricks
Oracle tips and tricksYanli Liu
 
PerlApp2Postgresql (2)
PerlApp2Postgresql (2)PerlApp2Postgresql (2)
PerlApp2Postgresql (2)Jerome Eteve
 
famous placement papers
famous placement papersfamous placement papers
famous placement papersRamanujam Ramu
 
Database management system file
Database management system fileDatabase management system file
Database management system fileAnkit Dixit
 
SQL Performance Tuning and New Features in Oracle 19c
SQL Performance Tuning and New Features in Oracle 19cSQL Performance Tuning and New Features in Oracle 19c
SQL Performance Tuning and New Features in Oracle 19cRachelBarker26
 
Plsql task
Plsql taskPlsql task
Plsql taskNawaz Sk
 
12. Basic SQL Queries (2).pptx
12. Basic SQL Queries  (2).pptx12. Basic SQL Queries  (2).pptx
12. Basic SQL Queries (2).pptxSabrinaShanta2
 

Similar to Database Homework Help (20)

Data Exploration with Apache Drill: Day 2
Data Exploration with Apache Drill: Day 2Data Exploration with Apache Drill: Day 2
Data Exploration with Apache Drill: Day 2
 
Dbms lab Manual
Dbms lab ManualDbms lab Manual
Dbms lab Manual
 
Class 12 computer sample paper with answers
Class 12 computer sample paper with answersClass 12 computer sample paper with answers
Class 12 computer sample paper with answers
 
Clauses
ClausesClauses
Clauses
 
Page 5 of 7Delete this text and type your name hereThis fi.docx
Page 5 of 7Delete this text and type your name hereThis fi.docxPage 5 of 7Delete this text and type your name hereThis fi.docx
Page 5 of 7Delete this text and type your name hereThis fi.docx
 
Sqlforetltesting 130712042826-phpapp01
Sqlforetltesting 130712042826-phpapp01Sqlforetltesting 130712042826-phpapp01
Sqlforetltesting 130712042826-phpapp01
 
SQL for ETL Testing
SQL for ETL TestingSQL for ETL Testing
SQL for ETL Testing
 
Oracle tips and tricks
Oracle tips and tricksOracle tips and tricks
Oracle tips and tricks
 
PerlApp2Postgresql (2)
PerlApp2Postgresql (2)PerlApp2Postgresql (2)
PerlApp2Postgresql (2)
 
famous placement papers
famous placement papersfamous placement papers
famous placement papers
 
70433 Dumps DB
70433 Dumps DB70433 Dumps DB
70433 Dumps DB
 
Database management system file
Database management system fileDatabase management system file
Database management system file
 
SQL Performance Tuning and New Features in Oracle 19c
SQL Performance Tuning and New Features in Oracle 19cSQL Performance Tuning and New Features in Oracle 19c
SQL Performance Tuning and New Features in Oracle 19c
 
SQL (1).pptx
SQL (1).pptxSQL (1).pptx
SQL (1).pptx
 
Plsql task
Plsql taskPlsql task
Plsql task
 
12. Basic SQL Queries (2).pptx
12. Basic SQL Queries  (2).pptx12. Basic SQL Queries  (2).pptx
12. Basic SQL Queries (2).pptx
 
Les06
Les06Les06
Les06
 
Beg sql
Beg sqlBeg sql
Beg sql
 
Beg sql
Beg sqlBeg sql
Beg sql
 
70 433
70 43370 433
70 433
 

More from Database Homework Help

Introduction To Database Security.pptx
Introduction To Database Security.pptxIntroduction To Database Security.pptx
Introduction To Database Security.pptxDatabase Homework Help
 
Database and Systems Integration Technologies.pptx
Database and Systems Integration Technologies.pptxDatabase and Systems Integration Technologies.pptx
Database and Systems Integration Technologies.pptxDatabase Homework Help
 
Database and Systems Integration Technologies (2).pptx
Database and Systems Integration Technologies (2).pptxDatabase and Systems Integration Technologies (2).pptx
Database and Systems Integration Technologies (2).pptxDatabase Homework Help
 
Database and Systems Integration Technologies.pptx
Database and Systems Integration Technologies.pptxDatabase and Systems Integration Technologies.pptx
Database and Systems Integration Technologies.pptxDatabase Homework Help
 
Database and Systems Integration Technologies.pptx
Database and Systems Integration Technologies.pptxDatabase and Systems Integration Technologies.pptx
Database and Systems Integration Technologies.pptxDatabase Homework Help
 
databasehomeworkhelp.com_ Database System Assignment Help (1).pptx
databasehomeworkhelp.com_ Database System Assignment Help (1).pptxdatabasehomeworkhelp.com_ Database System Assignment Help (1).pptx
databasehomeworkhelp.com_ Database System Assignment Help (1).pptxDatabase Homework Help
 
databasehomeworkhelp.com_Database Homework Help.pptx
databasehomeworkhelp.com_Database Homework Help.pptxdatabasehomeworkhelp.com_Database Homework Help.pptx
databasehomeworkhelp.com_Database Homework Help.pptxDatabase Homework Help
 

More from Database Homework Help (17)

Database System.pptx
Database System.pptxDatabase System.pptx
Database System.pptx
 
Database Homework Help
Database Homework HelpDatabase Homework Help
Database Homework Help
 
Database Homework Help
Database Homework HelpDatabase Homework Help
Database Homework Help
 
Introduction To Database Security.pptx
Introduction To Database Security.pptxIntroduction To Database Security.pptx
Introduction To Database Security.pptx
 
Introduction To Database Design.pptx
Introduction To Database Design.pptxIntroduction To Database Design.pptx
Introduction To Database Design.pptx
 
Database and Systems Integration Technologies.pptx
Database and Systems Integration Technologies.pptxDatabase and Systems Integration Technologies.pptx
Database and Systems Integration Technologies.pptx
 
Database and Systems Integration Technologies (2).pptx
Database and Systems Integration Technologies (2).pptxDatabase and Systems Integration Technologies (2).pptx
Database and Systems Integration Technologies (2).pptx
 
Database and Systems Integration Technologies.pptx
Database and Systems Integration Technologies.pptxDatabase and Systems Integration Technologies.pptx
Database and Systems Integration Technologies.pptx
 
Database and Systems Integration Technologies.pptx
Database and Systems Integration Technologies.pptxDatabase and Systems Integration Technologies.pptx
Database and Systems Integration Technologies.pptx
 
Database Systems Assignment Help
Database Systems Assignment HelpDatabase Systems Assignment Help
Database Systems Assignment Help
 
databasehomeworkhelp.com_ Database System Assignment Help (1).pptx
databasehomeworkhelp.com_ Database System Assignment Help (1).pptxdatabasehomeworkhelp.com_ Database System Assignment Help (1).pptx
databasehomeworkhelp.com_ Database System Assignment Help (1).pptx
 
databasehomeworkhelp.com_Database Homework Help.pptx
databasehomeworkhelp.com_Database Homework Help.pptxdatabasehomeworkhelp.com_Database Homework Help.pptx
databasehomeworkhelp.com_Database Homework Help.pptx
 
Instant DBMS Assignment Help
Instant DBMS Assignment HelpInstant DBMS Assignment Help
Instant DBMS Assignment Help
 
Database Homework Help
Database Homework HelpDatabase Homework Help
Database Homework Help
 
Database Homework Help
Database Homework HelpDatabase Homework Help
Database Homework Help
 
Instant DBMS Homework Help
Instant DBMS Homework HelpInstant DBMS Homework Help
Instant DBMS Homework Help
 
Database Management Assignment Help
Database Management Assignment Help Database Management Assignment Help
Database Management Assignment Help
 

Recently uploaded

How to Add a Tool Tip to a Field in Odoo 17
How to Add a Tool Tip to a Field in Odoo 17How to Add a Tool Tip to a Field in Odoo 17
How to Add a Tool Tip to a Field in Odoo 17Celine George
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Pooja Bhuva
 
OSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsOSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsSandeep D Chaudhary
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxPooja Bhuva
 
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSSpellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSAnaAcapella
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...Nguyen Thanh Tu Collection
 
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lessonQUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lessonhttgc7rh9c
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxannathomasp01
 
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxPooja Bhuva
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxDr. Ravikiran H M Gowda
 
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...EADTU
 
UGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdf
UGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdfUGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdf
UGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdfNirmal Dwivedi
 
Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111GangaMaiya1
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and ModificationsMJDuyan
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...Nguyen Thanh Tu Collection
 
Simple, Complex, and Compound Sentences Exercises.pdf
Simple, Complex, and Compound Sentences Exercises.pdfSimple, Complex, and Compound Sentences Exercises.pdf
Simple, Complex, and Compound Sentences Exercises.pdfstareducators107
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSCeline George
 
Play hard learn harder: The Serious Business of Play
Play hard learn harder:  The Serious Business of PlayPlay hard learn harder:  The Serious Business of Play
Play hard learn harder: The Serious Business of PlayPooky Knightsmith
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17Celine George
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17Celine George
 

Recently uploaded (20)

How to Add a Tool Tip to a Field in Odoo 17
How to Add a Tool Tip to a Field in Odoo 17How to Add a Tool Tip to a Field in Odoo 17
How to Add a Tool Tip to a Field in Odoo 17
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
OSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsOSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & Systems
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
 
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSSpellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lessonQUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
 
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
 
UGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdf
UGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdfUGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdf
UGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdf
 
Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Simple, Complex, and Compound Sentences Exercises.pdf
Simple, Complex, and Compound Sentences Exercises.pdfSimple, Complex, and Compound Sentences Exercises.pdf
Simple, Complex, and Compound Sentences Exercises.pdf
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
Play hard learn harder: The Serious Business of Play
Play hard learn harder:  The Serious Business of PlayPlay hard learn harder:  The Serious Business of Play
Play hard learn harder: The Serious Business of Play
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17
 

Database Homework Help

  • 1. For any Homework related queries, Call us at : - +1 678 648 4277 You can mail us at : - info@databasehomeworkhelp.com or reach us at : - https://www.databasehomeworkhelp.com/
  • 2. Q1. Consider the following instance of the relation PAPER(ID, TYPE, AREA, CITATION) ID TYPE AREA CITATION 145 JOURNAL MACHINE LEARNING 567 146 JOURNAL MACHINE LEARNING 167 1446 CONFERENCE MACHINE LEARNING 43 986 CONFERENCE NETWORKING 343 66 CONFERENCE BLOCK CHAIN 243 databasehomeworkhelp.com
  • 3. Which of the following values will be present in all the tuples selected by the following query: SELECT 'CITATION' FROM PAPER WHERE CITATION>200 a) 567 b) CITATION c) 43 d) 167 Answer b) CITATION Q2. Consider the following instance of the relation PAPER(ID, TYPE, AREA, CITATION) databasehomeworkhelp.com
  • 4. ID TYPE AREA CITATION 145 JOURNAL MACHINE LEARNING 567 146 JOURNAL MACHINE LEARNING 167 1446 CONFERENCE MACHINE LEARNING 43 986 CONFERENCE NETWORKING 343 66 CONFERENCE BLOCK CHAIN 243 databasehomeworkhelp.com
  • 5. Select the correct query that displays the following output: ID 72 73 723 33 databasehomeworkhelp.com
  • 6. a) SELECT ID/2 AS ID FROM PAPER WHERE AREA LIKE "%%" b) SELECT ID/2 AS ID FROM PAPER WHERE AREA LIKE "%“ c) SELECT ID-73 AS ID FROM PAPER WHERE AREA LIKE "%_%" d) SELECT ID-73 AS ID FROM PAPER WHERE AREA LIKE "%%“ Answer a) SELECT ID/2 AS ID FROM PAPER WHERE AREA LIKE "%%" Q3. Consider the following instance of the relation MAINTENANCE(WORK, DAYS, CHARGE, TEAM) WORK DAYS CHARGE TEAM EXT. PAINT 7 100000 5 INT. PAINT 7 100000 8 FLOOR 1 5000 3 databasehomeworkhelp.com
  • 7. EXT. PAINT 7 50000 2 WALL REPAIR 10 80000 8 How many tuples will be returned by the following query: SELECT AVG(CHARGE) FROM MAINTENANCE GROUP BY DAYS a) 1 b) 2 c) 3 d) 4 Answer c) 3 Q4. Consider the following instance of the relation MAINTENANCE (WORK, DAYS, CHARGE, TEAM). databasehomeworkhelp.com
  • 8. 2 WORK DAYS CHARGE TEAM EXT. PAINT 7 100000 5 INT. PAINT 7 100000 8 FLOOR 1 5000 3 EXT. PAINT 7 50000 2 WALL REPAIR 10 80000 8 databasehomeworkhelp.com
  • 9. Which of the following queries will produce the following output (ordered): WORK TEAM WALL REPAIR 8 EXT. PAINT 5 INT. PAINT 8 a) SELECT WORK, TEAM FROM MAINTENANCE WHERE CHARGE>50000 ORDER BY DAYS DESC, TEAM b) SELECT WORK, TEAM FROM MAINTENANCE WHERE CHARGE>50000 ORDER BY DAYS DESC, TEAM DESC c) SELECT WORK, TEAM FROM MAINTENANCE WHERE CHARGE>50000 ORDER databasehomeworkhelp.com
  • 10. BY DAYS, TEAM d) SELECT WORK, TEAM FROM MAINTENANCE WHERE CHARGE>50000 ORDER BY DAYS, TEAM DESC Answer a) SELECT WORK, TEAM FROM MAINTENANCE WHERE CHARGE>50000 ORDER Q5. Consider the following schema. Primary keys are underlined. Employees(E_name, E_street, E_city) BankAccount(Ac_number, Branch_name, Balance) AccountUser(E_name, Ac_number) Which is the correct SQL command to create the table AccountUser having two foreign keys E_name and Ac_number a) CREATE TABLE AccountUser { E_name VARCHAR(20), Ac_number NUMERIC(12, 2), PRIMARY EKY (E_name, Ac_number), FOREIGN KEY(E_name) REFERENCES Employees, FOREIGN KEY(Ac_number) REFERENCES BankAccount); databasehomeworkhelp.com
  • 11. b) CREATE TABLE AccountUser { E_name VARCHAR(20), Ac_number NUMERIC(12, 2), PRIMARY EKY(E_name), FOREIGN KEY(E_name) REFERENCES Employees, FOREIGN KEY(Ac_number) REFERENCES BankAccount); c) CREATE TABLE AccountUser { E_name VARCHAR(20) PRIMARY KEY, Ac_number NUMERIC(12, 2) PRIMARY KEY, FOREIGN KEY(E_name) REFERENCES Employees, FOREIGN KEY(Ac_number) REFERENCES BankAccount); d) CREATE TABLE AccountUser { E_name VARCHAR(20), Ac_number NUMERIC(12, 2), PRIMARY EKY (E_name, Ac_number), FOREIGN KEY Employees(E_name), FOREIGN KEY BankAccount (Ac_number)); Answer a) databasehomeworkhelp.com
  • 12. Q6. Identify the correct SQL command(s) to create a new record for the Faculty table as given below. Primary key is underlined in the schema. Faculty_name Department Degree Charline B English M.A. a) INSERT INTO FACULTY VALUES('Charline B', 'English', 'M.A.'); b) INSERT INTO FACULTY VALUE("Charline B", "English", "M.A."); c) INSERT INTO FACULTY VALUE('Charline B', 'English', 'M.A.'); d) INSERT INTO FACULTY (Faculty_name, Department, Degree) VALUES('Charline B', 'English', 'M.A.'); Answer a), d) databasehomeworkhelp.com
  • 13. Q7. A role Admin has the privilege of select, insert, update and delete on all tables of database. A new role Users is created and the following statement is executed. grant Admin to Users; Which rights will Users inherit? a) Only select b) Only select and delete c) Only select, and update but not delete d) All rights - select, insert, delete, and update Answer d) All rights - select, insert, delete, and update Q8. Consider the following instance of Employee Details (EmpName, Branch, Address, Salary) relation. databasehomeworkhelp.com
  • 14. EmpName Branch Salary Address Raja Priyanka Kolkata Kolkata 10000 Mumbai Hyderabad 12000 Arindam Bangalore Kolkata 15000 Rumki Hyderabad Hyderabad 20000 Sumit Hyderabad Bangalore 10000 Sandip Mumbai Mumbai 15000 databasehomeworkhelp.com
  • 15. a) SELECT * FROM Employee Details WHERE Branch=Address OR Salary>= 15000; b) SELECT * FROM Employee Details WHERE Branch=Address AND Salary>= 15000; c) (SELECT * FROM EmployeeDetails WHERE Branch=Address) UNION (SELECT * FROM Employee Details WHERE Salary>=15000); d) (SELECT * FROM Employee Details WHERE Branch=Address) INTERSECT (SELECT * FROM EmployeeDetails WHERE Salary>=15000); Answer a) , c) Q9. Consider the following instance of Employee Details(EmpName, Branch, Address, Salary) relation. databasehomeworkhelp.com
  • 16. EmpName Branch Address Salary Raja Kolkata Kolkata 10000 Priyanka Mumbai Hyderabad 12000 Arindam Bangalore Kolkata 15000 Rumki Hyderabad Hyderabad 20000 Sumit Hyderabad Bangalore 10000 Sandip Mumbai Mumbai 15000 databasehomeworkhelp.com
  • 17. Identify the correct SQL command that creates a view as EmployeeSalaryDetails in which columns EmpName and Salary for the tuples where the second character of EmpName is 'r' and the Salary is atleast 15000. a) CREATE VIEW Employee SalaryDetails(EmpName, Salary) ON SELECT EmpName, Salary FROM EmployeeDetails WHERE EmpName LIKE '%r%' AND Salary>= 15000; b) CREATE VIEW EmployeeSalaryDetails(EmpName, Salary) ON SELECT EmpName, Salary FROM EmployeeDetails WHERE EmpName LIKE '_r%' AND Salary>15000; c) CREATE VIEW EmployeeSalary Details(EmpName, Salary) AS SELECT EmpName, Salary FROM EmployeeDetails WHERE EmpName LIKE '_r%' AND Salary>= 15000; d) CREATE VIEW EmployeeSalaryDetails(EmpName, Salary) AS SELECT EmpName, Salary FROM EmployeeDetails WHERE EmpName LIKE '_r%' AND Salary>15000; Answer c) databasehomeworkhelp.com
  • 18. Q10. Consider the given relational schema: Employee Details(EmpName, Branch, Address, Salary) Identify the correct statement to find the EmpName, Branch and Salary of all tuples in which Salary is greater than or equal to the average Salary of all employees or Salary is between 15000 and 20000 including 15000 and 20000. a) SELECT EmpName, Branch, Salary FROM Employee Details WHERE Salary>=(SELECT AVG(Salary) from EmployeeDetails) OR Salary LIKE(15000, 20000); b) SELECT EmpName, Branch, Salary FROM Employee Details WHERE Salary>=(SELECT AVG(Salary) from EmployeeDetails) OR Salary IN(15000, 20000); c) SELECT EmpName, Branch, Salary FROM Employee Details WHERE Salary>=(SELECT AVG(Salary) from EmployeeDetails) OR Salary AS(15000, 20000); d) SELECT EmpName, Branch, Salary FROM Employee Details WHERE Salary>=(SELECT AVG(Salary) from EmployeeDetails) OR Salary BETWEEN 15000 AND 20000; Answer c) databasehomeworkhelp.com