INFORMATION MANAGEMENT

0.0(0)
studied byStudied by 7 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/24

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

25 Terms

1
New cards

The ______ Statement is used to create a database.

CREATE DATABASE

2
New cards

The ________ Statement is used to create tables to store data.

CREATE TABLE

3
New cards

The SQL ________ command is used to modify the definition (structure) of a table by modifying the definition of its columns

ALTER TABLE

4
New cards

The SQL _____ command is used to change the name of the table or a database object.

RENAME

5
New cards

This command can delete an index, table or

view.

DROP

6
New cards

Using the ______ command, all the records in a database are deleted, but the database structure is maintained.

TRUNCATE

7
New cards

A subset of SQL used to manipulate and manage data within database tables.

Data Manipulation Language (DML)

8
New cards

A command used to insert new records (rows) into a table.

INSERT Statement

9
New cards

Used to modify existing records in a table.

UPDATE Statement

10
New cards

Removes existing rows from a table based on a condition.

DELETE Statement

11
New cards

the process of improving the efficiency of database queries to ensure they run faster and use fewer system resources.

Query Optimization

12
New cards

A query approach where the user specifies how the database should retrieve the data, not just what data is needed.

Procedural Query

13
New cards

A query approach where the user specifies what data is needed, without describing how to get it (e.g., SQL SELECT).

Declarative Query

14
New cards

What is the difference between Procedural and Declarative Queries

  • Declarative Query: Focuses on what data is needed (e.g., SQL SELECT).

  • Procedural Query: Focuses on how to retrieve data step by step (e.g., Relational Algebra).

15
New cards

A procedural query language used in relational databases. It defines a set of operations that take relations (tables) as input and return a new relation as output.

Relational Algebra

16
New cards

An operation to select rows (tuples) that satisfy a given condition.

Select/Selection (σ) sigma

17
New cards

An operation to display specific columns from a relation.

Projection (π) pi

18
New cards

A virtual table in SQL that displays data from one or more tables based on a query. They do not store data; they show results dynamically when queried.

View

19
New cards

Types of SQL Joins

  • INNER JOIN

  • LEFT JOIN (LEFT OUTER JOIN)

  • RIGHT JOIN (RIGHT OUTER JOIN)

  • FULL JOIN (FULL OUTER JOIN)

20
New cards

Ensures that relationships between tables remain consistent, typically enforced using foreign keys.

Referential Integrity

21
New cards

When a referenced record is deleted, all dependent records are automatically deleted.

ON DELETE CASCADE

22
New cards

When a referenced record is updated, all dependent records are automatically updated.

ON UPDATE CASCADE

23
New cards

When a referenced record is deleted, foreign key values are set to NULL.

SET NULL

24
New cards

Prevents deletion or update of a referenced record if dependent records exist.

RESTRICT

25
New cards

Same as RESTRICT; no change is allowed if it would break referential integrity.

NO ACTION