CSCI 466 pt.2

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

1/21

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 3:19 AM on 10/9/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

22 Terms

1
New cards

An attribute or set of attributes within one relation that matches the candidate key of some other relation is called a what?

foreign key

2
New cards

What part of the DBMS handles database instance data?

DML

3
New cards

What part of the DBMS changes the relation schema?

DDL

4
New cards

The set of allowable values for an attribute in a relational database schema is called what?

Domain

5
New cards

The Entity Integrity Rule states:

The primary key must be unique and cannot be NULL

6
New cards

A Tuple is

Another name for a "row" in a relation.

7
New cards

What must be true of a table in First Normal Form?

No duplicate groups

8
New cards

Assuming a relation is already in First Normal Form, what needs to be true for it to be in Second Normal Form?

No partial key dependencies

9
New cards

Assuming a relation is already in Second Normal Form, what need to be true for it to also be in Third Normal form?

No transitive dependencies

10
New cards

Set up the table R(ID, Name, Description). ID should be a number and the primary key. Name and Description will both be strings.

CREATE TABLE R (

ID INT PRIMARY

KEY, Name VARCHAR(256), Description VARCHAR(256));

11
New cards

Add a row into the R table with ID=1, a name of "Anakin SKywalker" and a Description of "Good guy".

INSERT INTO R VALUES(1, 'Anakin Skywalker', 'Good guy');

12
New cards

Change the name to "Darth Vader" and the Description to "Luke's father" to ID 1.

UPDATE R SET Name='Darth Vader',Description='Luke's father' WHERE ID=1;

13
New cards

Remove the entry you made about Darth Vader.

DELETE FROM R WHERE ID=1;

14
New cards

Get rid of the table completely

DROP TABLE R;

15
New cards

An attribute or set of attributes that uniquely identify a tuple is called at

Super Key

16
New cards

a "minimum" set of attributes that uniquely identify a tuple

Candidate Key

17
New cards

One set of chosen candidate keys that uniquely identify a tuple

Primary Key

18
New cards

What does DDL stand for?

Data Definition Language

19
New cards

What does DML stand for?

Data Manipulation Language

20
New cards

Name one difference between "Update table" and "Alter table".

Alter table works with DDL to change columns of table. Update works with the DML to change the actual data in the columns.

21
New cards

The "Select" statement works with the DML or the DDL?

DML

22
New cards

Name one difference between "Drop" and "Delete" table?

Delete keeps the schema and removes the instance data in the table. Drop deletes everything, including the schema.