Save
Busy. Please wait.
Log in with Clever
or

show password
Forgot Password?

Don't have an account?  Sign up 
Sign up using Clever
or

Username is available taken
show password

Your email address is only used to allow you to reset your password. See our Privacy Policy and Terms of Service.


Already a StudyStack user? Log In

Reset Password
Enter the associated with your account, and we'll email you a link to reset your password.

Question

What is a database?
click to flip
focusNode
Didn't know it?
click below
 
Knew it?
click below
Don't know

Question

In the Relational Model, data is stored in
Remaining cards (50)
Know
0:00
Embed Code - If you would like this activity on your web page, copy the script below and paste it into your web page.

  Normal Size     Small Size show me how

COP4710Midterm

QuestionAnswer
What is a database? A collection of data items related to some enterprise.
In the Relational Model, data is stored in Tables
The word "Relational" refers to __________, while a "Relation" is a __________. set-based mathematics from which tables are derived; a table
Physical data independence means Data is isolated from the underlying hardware by high level abstractions.
If a table contains two attributes that are each unique on their own, and either one could serve as a primary key, these attributes are called Candidate keys
Every table must have a Primary Key
Rows in a relational table need not be unique; there can be duplicate rows in a tabl False
"Tuple" is the mathematical name that is analogous to a Row
The mathematically-based framework of Codd's Relational Model is called a "__________ Data Model". The data-structure-based framework of Bachman's Network Database is called a "__________ Data Model". Conceptual, Physical
Which of the following is not part of Peter Chen's Entity Relationship model? Primary Keys
In a one-to-many (1:M) relationship, the entity on the "many" side is the child
An ID-Dependent Entity is An entity whose identifier (key) contains the identifier of another entity.
"One-to-one", "one-to-many", and "many-to-many" (or 1:1, 1:M, and M:M) are examples of cardinality ratios
A table in a database is equivalent to a(n) _____ in an ER Diagram, and a row or tuple is equivalent to a(n) _____. Entity Class, Entity Instance
All ID-dependent entities are weak, but not all weak entities are ID-dependent True
An advantage in expressing a data model as an ER diagram is that ER diagrams are very uniform in their notation and all database designers use identical standards in producing ER diagrams. False
Mandatory Participation means The minimum cardinality of a relationship is one or more
A relationship name in an ER diagram can be different depending on the direction you read the relationship. True
We have to determine foreign keys when building an ER diagram. False
A Composite Identifier or Composite Key is An Identifier or Key that is made up of more than one attribute.
A mandatory participation constraint (meaning there is a required participation between one entity and another) always indicates that an entity is weak. False
In SQL, how do you select a column named "FirstName" from a table named "Employee"? SELECT FirstName FROM Employee
In SQL, how do you select all the columns from a table named "Employee"? SELECT * FROM Employee
In SQL, how do you select all the rows from a table named "Employee" where the value of the column "FirstName" is "John"? SELECT * FROM Employee WHERE FirstName = 'John'
What SQL statement is used to return only different values from a table, eliminating duplicates? SELECT DISTINCT
With SQL, how can you return all the rows from a table named "Employee" sorted in descending order by FirstName? SELECT * FROM Employee ORDER BY FirstName DESC
In SQL, how do you list all the rows of the Employee table and Dependent table that match on the EmployeeId attribute? SELECT * FROM Employee JOIN Dependent ON Employee.EmployeeId = Dependent.EmployeeId
What query would we use to select all the employees from the Employee table whose first name is the same as his last name? SELECT * FROM Employee WHERE FirstName = LastName
What is the difference between an INNER JOIN and a LEFT JOIN? Remember that "JOIN" is the same as "INNER JOIN". The INNER JOIN returns only the rows in which the join attributes match, and the LEFT JOIN returns all of the rows of the left table, along with the rows of the right table in which the join attributes match.
In SQL, how do you add a new row to the table named 'Employee'? INSERT INTO Employee (empNo, fName, lName) VALUES (245, 'Bill', 'Jones');
In SQL, how do you change the value of an attribute in an existing row? UPDATE Employee SET DeptNum = 200 WHERE EmpNum = 493;
In SQL, how do you delete a row from a table? DELETE FROM Employee WHERE EmpNum = 449;
In DDL (Data Definition Language) you can do these three major types of tasks (among other things): CREATE ALTER DROP
The primary purpose of the Subtype/Supertype relationship is to Eliminate type-inappropriate nulls
To implement a Many-to-Many relationship in a relational database, you do this: Add an intersection table between the two tables. The intersection table will contain a foreign key to each of the two tables being linked.
The relational model does not directly support many-to-many relationships. True
The hallmark of an ID-dependent entity is that it has the identifier (key) of another entity as part of its own identifier.
The Association data pattern is similar to a ______ relationship, but with the addition of extra attributes in the ______ table which transforms it to an association table. many-to-many, intersection
Is a foreign key always the key of another table? (Answer True=Yes; False=No) False
If we want to record multiple e-mail addresses for each person in our Contact table, which data pattern would we use? Multivalued attribute pattern
Referential Integrity means: assuring that the connections between tables remain valid
Aggregate functions work with groups of rows
The WHERE clause filters _____ , while the HAVING clause filters _____ . individual rows, groups
WHERE and HAVING are similar because both are filters
A correlated subquery is executed each time the outer query reads a row from a table
If a SQL statement contains a GROUP BY clause, then the SELECT clause can contain onl the GROUP BY attribute plus aggregate functions
n a SQL query containing a GROUP BY clause, filtering of individual rows occurs before filtering and sorting of groups. True
A subquery can appear in a SQL statement wherever a _____ can appear. set of values
A correlated subquery can often be replaced by a join
Referential Integrity means a foreign key value in a child table always has a matching primary key value in a parent table.
a "Cascading Delete" is Deleting a row in a parent table automatically deletes any corresponding rows linked by a foreign key in the child table, thereby preventing orphans.
Created by: ohmsy
 

 



Voices

Use these flashcards to help memorize information. Look at the large card and try to recall what is on the other side. Then click the card to flip it. If you knew the answer, click the green Know box. Otherwise, click the red Don't know box.

When you've placed seven or more cards in the Don't know box, click "retry" to try those cards again.

If you've accidentally put the card in the wrong box, just click on the card to take it out of the box.

You can also use your keyboard to move the cards as follows:

If you are logged in to your account, this website will remember which cards you know and don't know so that they are in the same box the next time you log in.

When you need a break, try one of the other activities listed below the flashcards like Matching, Snowman, or Hungry Bug. Although it may feel like you're playing a game, your brain is still making more connections with the information to help you out.

To see how well you know the information, try the Quiz or Test activity.

Pass complete!
"Know" box contains:
Time elapsed:
Retries:
restart all cards