Chapter 6 & 7 SQL Databases

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/39

flashcard set

Earn XP

Description and Tags

For Quiz 6 and 7 SQL Database Chapter from Modern Database Management Textbook

Last updated 10:49 PM on 5/5/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

40 Terms

1
New cards

What is a join in relational databases?

A relational operation where two or more tables with a common domain combine into a single table/view.

2
New cards

What is an equi-join?

A join where the condition is based on equality between values in the common columns, which appear redundantly in the result table.

3
New cards

example of an equi-join SQL query.

SELECT Customer_T.CustomerID, Order_T.CustomerID, CustomerName, OrderID FROM Customer_T, Order_T WHERE Customer_T.CustomerID = Order_T.CustomerID ORDER BY OrderID.

4
New cards

What is an inner join?

Matches primary and foreign keys and only returns rows from each table that have matching rows in the other.

5
New cards

What is a natural inner-join?

An equi-join where one of the duplicate columns is eliminated in the result table.

6
New cards

What is an outer join?

A join where rows that don’t have common columns are included in the result table regardless.

7
New cards

What is a union join?

Includes all data from each table that was joined.

8
New cards

Left outer join

Causes rows from the first-mentioned table to appear even if there is no corresponding data in the second table.

9
New cards

What is a self join?

Involves tables that implement 1-many unary relationships.

10
New cards

What is a subquery?

Placing an inner query (SELECT statement) inside an outer query, usually placed in the WHERE or HAVING clause of the outer query.

11
New cards

What is a noncorrelated subquery?

A subquery that does not depend on data from the outer query and is executed once for the entire outer query.

12
New cards

What is a correlated subquery?

A subquery that makes use of data from the outer query and is executed once for each row returned by the outer query.

13
New cards

List one way to improve query efficiency related to subqueries.

Limit the number of subqueries; try to make everything done in a single query if possible.

14
New cards

Example of reducing network traffic in SQL ?

Instead of SELECT *, identify the specific attributes in the SELECT clause.

15
New cards

What can be done if data needs to be used multiple times in a database?

Make a separate query and store it as a view.

16
New cards

Client/Server Architectures

A networked computing model where processes are distributed between clients and servers.

17
New cards

Client

A workstation (PC, smartphone, tablet) that requests and uses a service provided by a server.

18
New cards

Server

A powerful computer (PC/mini/mainframe) that provides a service; for DBMS, this is a database server, and for the Internet, it is a Web server.

19
New cards

Application Logic Components

Consists of the GUI interface (presentation logic), procedures/functions/programs (processing logic), and DBMS activities (storage logic).

20
New cards

Application Partitioning

The process of placing portions of application code in different locations such as the client and server after it is written to improve performance and balance workloads.

21
New cards

Fat client

A client PC responsible for processing presentation logic, extensive application and business rules logic, and many DBMS functions.

22
New cards

Thin client

An application where the client accessing the application primarily provides user interfaces and limited application processing, usually with little or no local data storage.

23
New cards

Two-tier client-server environment

An environment where processing logic can reside at the client (fat client), server (thin client), or both (distributed environment).

24
New cards

Three-tier and n-tier architectures

Client-server environments where the processing logic resides at the application server or Web server.

25
New cards

Database server

The component that hosts the DBMS; examples include Oracle, SQL Server, Informix, MS Access, and MySql.

26
New cards

Web server

A component that receives and responds to browser requests using the HTTP protocol, such as Apache or Internet Information Services (IIS).

27
New cards

Application server

Software building blocks for creating dynamic Web sites, such as MS ASP.NET framework, Java EE, or PHP.

28
New cards

Web browser

A client program like Internet Explorer, Mozilla Firefox, Apple Safari, or Google Chrome that sends Web requests and receives Web pages.

29
New cards

Stored Procedures

Compiled SQL statements that improve performance, reduce network traffic, and enhance security, though they are proprietary and time-consuming to program.

30
New cards

Concurrency Control

The process of managing simultaneous operations against a database to maintain data integrity and prevent interference in a multi-user environment.

31
New cards

Lost update problem

A problem in multi-user environments where simultaneous access to data causes updates to cancel each other out.

32
New cards

Serializability

A concurrency control technique where one transaction must be finished before another one starts.

33
New cards

Locking Mechanisms

The most common method of achieving serialization where data retrieved for updating is locked so no other user can update it until it is unlocked.

34
New cards

Shared lock

A lock type that permits reading but no updates; used to prevent other users from placing an exclusive lock on the record.

35
New cards

Exclusive lock

A lock type that permits no access to the record; used when a transaction is preparing to update data.

36
New cards

Deadlock

An impasse that occurs when two or more transactions have locked common resources and each is waiting for the other to release their lock.

37
New cards

Two-phase locking protocol

A deadlock prevention method that involves a "growing phase" for acquiring locks and a "shrinking phase" for releasing them.

38
New cards

Versioning

An optimistic approach to concurrency control that creates a new version of a record during an update rather than using locks.

39
New cards

Database Security

The protection of data against accidental or intentional loss, destruction, or misuse.

40
New cards

Loss of confidentiality

A security threat specifically involving the loss of corporate data, as opposed to the loss of privacy which involves personal data.