a. Explain the support required for storing semi-structured data in a relational database QUESTION 1 a, data in a database b. Describe two exon

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
3.
QUESTION 1
relational database
a.
d: Briefly describe row level locking and table level locking and commeit on tie pros
and cons
e. of applying these types of locks.
threats:
Ransomware.
SQL injection.
An employee leaving the company.
Brute-force password attacks.
An employee making mistakes while entering data.
A hacker intercepting data sent over the internet.
QUESTION 2
Use these two tables below to answer the following questions.
Figurel (table name: Customers)
PersonID
LastName
FirstName Age
Mahama
Nana
Kwaku
Frimpong
23
2.
Akua
Donkor
3.
Figure2 (table name: Orders)
OrderID
OrderNumber
PersonID
77895
1.
3.
44678
22456
3.
2.
24562
4.
1.
Assume that the sample table: Customers has over 2000 rows of data.
Figure 2 also displays sample data in the location table.
Write MySQL statement that can be used to create table Customers with PersonID being
a.
auto increment.
b. Write MYSQL statement to make PersonID in Orders table field a foreign key and alu
updates that happens in the parent table to reflect in the child table
Transcribed Image Text:3. QUESTION 1 relational database a. d: Briefly describe row level locking and table level locking and commeit on tie pros and cons e. of applying these types of locks. threats: Ransomware. SQL injection. An employee leaving the company. Brute-force password attacks. An employee making mistakes while entering data. A hacker intercepting data sent over the internet. QUESTION 2 Use these two tables below to answer the following questions. Figurel (table name: Customers) PersonID LastName FirstName Age Mahama Nana Kwaku Frimpong 23 2. Akua Donkor 3. Figure2 (table name: Orders) OrderID OrderNumber PersonID 77895 1. 3. 44678 22456 3. 2. 24562 4. 1. Assume that the sample table: Customers has over 2000 rows of data. Figure 2 also displays sample data in the location table. Write MySQL statement that can be used to create table Customers with PersonID being a. auto increment. b. Write MYSQL statement to make PersonID in Orders table field a foreign key and alu updates that happens in the parent table to reflect in the child table
write the result.
1. Write MySQL statement to rename Orders table to Orders detar
Suppose you have the following table:
Employees (empID, lastName, firstName, salary)
indicates any given value):
SELECT * FROM Employees
WHERE firstName = ? AND lastName = ?
SELECT * FROM Employees WHERE lastName = ?
SELECT empID FROM Employees ORDER BY salary
Suppose there are four indexes as follows:
Index1 (empID)
Index2 (firstName)
Index3 (lastName)
Index4 (salary)
g. There is a need to improve the performance of all three of the above queries. Select two
indexes from the above list that if built and available will result in an improved
performance being obtained for all the above queries. Explain your answer.
h. Describe three disadvantages of using indexes.
QUESTION 3
a For each of the following transaction control terms, write a single sentence (no need for
extended responses, examples or diagrams) explaining the key concent
i Cascaded rollback
ii Optimistic locking
iii Pessimistic locking
iv Checkpoint
a.
modules they are studying, and results of assessments for those modult
students (studID, name, course)
modules (modNbr, title, credits)
results (studID*, modNbr*, date, grade)
Consider the following query:
SELECT M.title, S.name
FROM students S, modules M, results R
WHERE S.studID = R.studID
AND M.modNbr = R.modNbr
2.
Transcribed Image Text:write the result. 1. Write MySQL statement to rename Orders table to Orders detar Suppose you have the following table: Employees (empID, lastName, firstName, salary) indicates any given value): SELECT * FROM Employees WHERE firstName = ? AND lastName = ? SELECT * FROM Employees WHERE lastName = ? SELECT empID FROM Employees ORDER BY salary Suppose there are four indexes as follows: Index1 (empID) Index2 (firstName) Index3 (lastName) Index4 (salary) g. There is a need to improve the performance of all three of the above queries. Select two indexes from the above list that if built and available will result in an improved performance being obtained for all the above queries. Explain your answer. h. Describe three disadvantages of using indexes. QUESTION 3 a For each of the following transaction control terms, write a single sentence (no need for extended responses, examples or diagrams) explaining the key concent i Cascaded rollback ii Optimistic locking iii Pessimistic locking iv Checkpoint a. modules they are studying, and results of assessments for those modult students (studID, name, course) modules (modNbr, title, credits) results (studID*, modNbr*, date, grade) Consider the following query: SELECT M.title, S.name FROM students S, modules M, results R WHERE S.studID = R.studID AND M.modNbr = R.modNbr 2.
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Database Environment
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education