is331-quizlet-import

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

1/33

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 7:25 PM on 4/27/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

34 Terms

1
New cards

HAVING Clause

Filters groups after GROUP BY is applied; it can filter on aggregated results like COUNT or SUM.

2
New cards

LEFT JOIN

Returns all rows from the left table and matched rows from the right, with unmatched rows from the right as NULL.

3
New cards

WITH Clause (CTE)

Creates a temporary named result set that can be reused in the next query; acts like a named subquery.

4
New cards

COUNT(column) Function

Returns the number of non-NULL values in a column. COUNT(*) counts all rows including NULLs.

5
New cards

FOR XML AUTO

Converts a query result set into an XML document, with element names derived from table and column names.

6
New cards

UNION vs. UNION ALL

UNION removes duplicate rows; UNION ALL keeps all rows including duplicates and is faster.

7
New cards

ORDER BY Clause

Sorts results in descending order when using 'ORDER BY col DESC'; ASC is the default direction.

8
New cards

LIKE Operator '%10%'

Matches any string containing '10' anywhere since the % wildcard represents zero or more characters.

9
New cards

1NF Requirements

All attributes must be atomic and there cannot be repeating groups; each row must be unique.

10
New cards

Partial Dependency

Occurs when a non-key attribute depends on only part of a composite primary key, violating 2NF.

11
New cards

Moving from 2NF to 3NF

Transitive dependencies must be eliminated, where a non-key attribute determines another non-key attribute.

12
New cards

BCNF Violation

Occurs when a non-prime attribute determines part of a candidate key; every determinant must be a candidate key in BCNF.

13
New cards

Transitive Dependency Example

If StudentID determines ZipCode and ZipCode determines City, City is transitively dependent on StudentID.

14
New cards

Functional Dependency

Occurs when the value of one attribute uniquely determines another attribute's value, written as A → B.

15
New cards

PL/SQL Block Sections

Includes DECLARE (variables), BEGIN (logic/statements), and END; EXCEPTION is optional.

16
New cards

Guaranteed PL/SQL Loop Execution

A basic LOOP…END LOOP with EXIT WHEN condition checks after the first iteration.

17
New cards

Cursor in PL/SQL

Points to a SQL query result set and allows row-by-row processing by OPEN, FETCH, and CLOSE.

18
New cards

Variable Declaration in PL/SQL

Syntax: v_name VARCHAR2(50); in the DECLARE section, e.g., v_sal NUMBER(8,2).

19
New cards

%ROWTYPE in PL/SQL

Declares a variable with the same structure as an entire table row, e.g., v_emp employees%ROWTYPE.

20
New cards

Raising User-Defined Exception in PL/SQL

Use RAISE exception_name to transfer control to the EXCEPTION block.

21
New cards

ACID in Transactions

Stands for Atomicity, Consistency, Isolation, Durability; properties ensuring reliable transaction processing.

22
New cards

ROLLBACK Statement

Undoes all changes made since the last COMMIT or SAVEPOINT, reverting the database to its previous state.

23
New cards

READ COMMITTED Isolation Level

Prevents dirty reads but allows non-repeatable reads; reads only committed data.

24
New cards

Dirty Read Definition

Occurs when a transaction reads uncommitted changes made by another transaction.

25
New cards

Deadlock in Database

Occurs when two transactions each hold a lock the other needs and both wait indefinitely; DBMS resolves by killing one.

26
New cards

Star Schema in Data Warehousing

A central fact table surrounded by denormalized dimension tables, optimized for fast analytical queries.

27
New cards

Snowflake Schema vs. Star Schema

Dimension tables in the snowflake schema are further normalized into sub-dimension tables.

28
New cards

OLTP vs. OLAP

OLTP handles frequent short transactions; OLAP supports complex analytical queries on large historic data.

29
New cards

ETL Process

Extract, Transform, Load; a process for moving data from source systems into a data warehouse.

30
New cards

Fact Table in Data Warehouse

Contains numeric measures and foreign keys that reference dimension tables for context.

31
New cards

VIEW in SQL

A virtual table defined by a stored SELECT query that runs the underlying query each time it's accessed.

32
New cards

Benefits of Using a VIEW

Simplifies complex queries and restricts column-level access for security, hiding sensitive columns.

33
New cards

WITH CHECK OPTION in Updatable View

Ensures INSERT or UPDATE through the view satisfies its WHERE clause, rejecting non-compliant rows.

34
New cards

Removing a VIEW from Database

Use DROP VIEW view_name; the underlying base tables remain unaffected.