

module 4
Presentation
•
Computers
•
University
•
Practice Problem
•
Medium
Carlos Theran
Used 2+ times
FREE Resource
25 Slides • 25 Questions
1
2
3
4
Multiple Choice
Which of the following best describes a view in MySQL?
A copy of the data stored in a table
A logical window into the data stored in underlying tables
A physical backup of the database
A temporary table created for each query
5
6
Open Ended
Explain two important benefits of using views in a database system.
7
8
Multiple Select
Which of the following are true about views in SQL? Select all that apply.
Views do not duplicate data
Views always display current data when opened
Only one view can be created per table
The name of a view can be used similarly to a table name
9
10
Fill in the Blanks
11
12
Open Ended
Given the table 'Students' and the view 'data_science_students', what would be the result of the query: SELECT * FROM data_science_students?
13
14
Multiple Choice
Which SQL command would you use to remove the view 'data_science_students' from the database?
DELETE VIEW data_science_students;
REMOVE VIEW data_science_students;
DROP VIEW data_science_students;
ERASE VIEW data_science_students;
15
16
Multiple Choice
What is the main purpose of using indexes in a database?
To increase the speed of retrieving data
To store more data
To ensure data security
To reduce the size of the database
17
18
Multiple Choice
Which of the following is a primary benefit of creating indexes in a relational database system?
Improving database performance
Increasing storage requirements
Reducing data redundancy
Enhancing user interface design
19
Multiple Choice
Which SQL command is used to delete an index from a table?
REMOVE INDEX
DELETE INDEX
DROP INDEX
CLEAR INDEX
20
Open Ended
Explain the difference between a single-field index and a multiple-field (composite) index in SQL.
21
22
23
Fill in the Blanks
24
25
Multiple Select
Select all statements that are true about how indexes affect query performance.
Indexes speed up data retrieval in large tables.
Indexes always reduce the size of the database.
Indexes require processing resources to maintain.
Without indexes, queries may require a full table scan.
26
27
Open Ended
Describe a scenario where using a composite index would be more beneficial than a single-field index.
28
29
Multiple Choice
Which SQL command would you use to view all indexes on the Employees table?
SHOW INDEX FROM Employees;
SELECT INDEXES FROM Employees;
LIST INDEXES ON Employees;
DISPLAY INDEXES Employees;
30
31
Open Ended
Explain the importance of physical security in database management and provide two examples of how it can be implemented.
32
33
Multiple Select
Which of the following statements about entity integrity and referential integrity is/are correct? Select all that apply.
Entity integrity ensures primary keys cannot be null.
Referential integrity ensures foreign keys match primary keys in another table.
Entity integrity allows duplicate primary keys.
Referential integrity is not related to foreign keys.
34
35
Fill in the Blanks
36
37
Open Ended
Given the table definitions for Departments and Employees, how does the FOREIGN KEY constraint help maintain data integrity between these tables?
38
39
Multiple Choice
What will happen if you try to insert an employee with a dept_id that does not exist in the Departments table?
The insertion will fail due to referential integrity rules.
The employee will be added with a null dept_id.
The employee will be added, but the dept_id will be ignored.
The insertion will succeed without any errors.
40
41
Fill in the Blanks
Type answer...
42
43
Multiple Select
Which of the following operations can be performed using the SQL ALTER TABLE command?
Adding and removing tables
Adding and removing fields
Creating and dropping indexes
All of the above
44
Multiple Choice
Which SQL command would you use to change the datatype of an existing column in a table?
MODIFY column_name datatype
ADD column_name datatype
DROP COLUMN column_name
RENAME COLUMN old_name TO new_name
45
46
47
Open Ended
Explain the difference between INNER JOIN and LEFT JOIN in SQL. Provide an example scenario where each would be used.
48
49
Open Ended
What steps should you take if you encounter orphan records when trying to enforce referential integrity?
50
Multiple Choice
Which of the following is a benefit of creating indexes in a relational database system?
Improves database performance
Increases data redundancy
Slows down query processing
Reduces data security
Show answer
Auto Play
Slide 1 / 50
SLIDE
Similar Resources on Wayground
42 questions
DATA STRUCTURE
Presentation
•
University
46 questions
KONFLIK-KONFLIK DI BERBAGAI DUNIA
Presentation
•
University
45 questions
N334 IC Regulation part two
Presentation
•
University
49 questions
1.4 Logic Gate & Simple Logic Circuit
Presentation
•
University
46 questions
DCS2101 - Week 9 (Queues)
Presentation
•
University
46 questions
Writing Essays - The development of a paragraph
Presentation
•
University
40 questions
Chapter 6: SDLC
Presentation
•
University
42 questions
CYBER THINK QUEST
Presentation
•
University
Popular Resources on Wayground
20 questions
STAAR Review Quiz #3
Quiz
•
8th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
6 questions
Marshmallow Farm Quiz
Quiz
•
2nd - 5th Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
20 questions
Inferences
Quiz
•
4th Grade
19 questions
Classifying Quadrilaterals
Quiz
•
3rd Grade
12 questions
What makes Nebraska's government unique?
Quiz
•
4th - 5th Grade