Use LEFT and RIGHT arrow keys to navigate between flashcards;
Use UP and DOWN arrow keys to flip the card;
H to show hint;
A reads text to speech;
14 Cards in this Set
- Front
- Back
- 3rd side (hint)
What relational model use? Why? |
Tables Represent collection of related data values |
|
|
What do you call the number of attributes? |
Degree or arity |
|
|
Why is a domain a set of atomic values? |
Each value is indivisible as far as the relational model is concerned |
|
|
Does tuples have a particular order? |
False |
True or False |
|
Each entity in an entity type need to be identified uniquely |
Each entity in an entity type need to be identified uniquely |
|
|
Give an example one or more attributes that can be used as an entity identifier? |
In grade we have (student#, course#) |
|
|
What is a super key? |
Key attributes + other attributes of relation |
|
|
Give an example of a super key in BANK |
CustomerName, SIN |
|
|
Relations are Values |
Relations are Values |
|
|
Relvars are variables |
Relvars are variables |
|
|
Create a code that find the name and age of all employee who earn more than $50000 per year Create a code that update their salary to $55000 |
SELECT Name, Age FROM Employees WHERE Salary > 50000; UPDATE Employees SET Salary = 55000 WHERE EmployeeID = 1; |
|
|
What do we use to determine how to implement user request |
Optimization |
|
|
How would you optimize a Banking system to search for an account numbers |
Creat an INDEX ind_Account_Number on Account (Account_number) SELECT * FROM Accounts WHERE Account _Number = '123456789'; |
|
|
What is Catalog? |
Collection of metadata that describes the database object (tables, views, functions) |
|