Shared Flashcard Set

Details

Data Management Foundations
MySQL
35
Computer Science
Undergraduate 2
06/16/2024

Additional Computer Science Flashcards

 


 

Cards

Term
Unique
Definition

1-

each attribute value describes at most one entity instance

Term
Not Unique
Definition

M-

associated with many

Term
Singular
Definition

-1

each entity instance has at most one attribute value

Term
Plural
Definition

-M

can have many

Term

 

 

Required

Definition

 

-(1)

 

 

has atleast one

Term

 

 

Optional

Definition

 

 

-(0)

 

 

 

an entity instance may have no attribute value

Term
[image]
Definition

Unique, Singular, Required

Not Unique, Singular, Required

Not Unique, Singular, Optional

Not Unique, Singular, Optional

Term
1(1)
Definition
Cardinality of the identifying entity
Term
A diamond indicates an
Definition
identifying relationship
Term
Which data type will store 6.250 as a numeric value without loss of information?
Definition
DECIMAL
Term
Which role is responsible for translating table requirements in a logical database structure?
Definition
Database administrator
Term
The Employees table contains repeat entries in the JobTitle column, as many employees share the same job title. Which code snippet ensures that a query will list each job title once, independent of how many times it appears in the JobTitle column?
Definition

SELECT DISTINCT JobTitle
FROM Employees;

This code uses the DISTINCT keyword, which ensures that each job title is listed only once in the query results.

Term
Which SQL command will delete all rows from the Movie table?
Definition
DELETE FROM Movie;
Term

Which constraint must a primary key adhere to?


a) The data must refer to values in another table.
b) The data type must be numeric.
c) The key must consist of only one column.
d) The data values must be unique.

Definition
d
Term
Logical design specifies
Definition
tables, columns, and keys.
Term
Physical design affects query performance but never affects
Definition
query results.
Term
Select all records where the City column has the value "Berlin".
Definition
SELECT * FROM Customers WHERE City = 'Berlin';
Term
Select all records from the Customers table, sort the result alphabetically by the column City.
Definition
SELECT * FROM Customers ORDER BY City;
Term
Select all records from the Customers table, sort the result reversed alphabetically by the column City.
Definition

SELECT *
FROM Customers
ORDER BY City DESC;

Term
reversed alphabetically keyword
Definition
DESC
Term
Data
Definition
a collection of facts, figures, and statistics
Term
Field
Definition
a unit of data that represents a single category of information
Term
Record
Definition
a collection of related data fields that represent a single entity within a data structure
Term
File
Definition
a collection of related records that are stored together on a computer or other digital storage device
Term
relations
Definition
logical constructs composed of rows (tuples) and columns (attributes)
Term
crow's foot notation
Definition
depicts cardinality as a circle (zero), a short line (one), or three short lines (many)
Term
The _______ is always next to the entity. The _______ is always further from the entity.
Definition
maximum,minimum
Term
The _______ ___ must be unique and non-NULL, and should be stable, simple, and meaningless.
Definition
primary key
Term
artificial key
Definition
a single-column primary key created by the database designer when no suitable single-column or composite primary key exists.
Term
artificial key values
Definition
integers, generated automatically by the database as new rows are inserted to the table
Term
When a primary key employs more than one column, it is also called a
Definition
composite key
Term
What relationship does this represent:
A single order can include more than one product. On the other hand, a single product can appear on many orders.
Definition
many-to-many
Term
Does an INNER JOIN include NULL?
Definition
No
Term
From the following rules:

A person's name does not include any information.
The name of a person may be changed through a legal procedure.
Every person has a name.
Many people can have the same name.
A name may be long and hard to type.

Which properties does the Name attribute have?

unique/not unique
stable/not stable
simple/not simple
meaningless
required
Definition
required - Every person must have a name.

meaningless - A person's name does not include descriptive information.
Term
Table
Definition
A structured list of data of a specific type.
Supporting users have an ad free experience!