Test 2 Notes Flashcards
When converting an entity diagram into a relational schema, rule 1 states that….
Every entity is converted into a table.
When converting an entity diagram into a relational schema, rule 2 states that….
All relationships are represented by placing foreign keys into tables.
In the tables the identifiers become…….. and the attributes become ……..
- Primary Keys
- Columns
In a 1:1 relationship where do you place the foreign key?
The foreign Key can be placed in one table or the other.
In a 1:N relationship where do you place the foreign key?
The foreign key must be placed into the N(Child) side of the relationship.
When converting a N:M relationship what must you do?
You must make a new intersection table.
In SQL the CREATE key does what?
Creates objects.
In SQL the ALTER key does what?
Modifies objects.
In SQL the DROP key does what?
Deletes objects.
In SQL the TRUNCATE key does what?
Deletes table data.
In SQL the INT key holds what?
Whole Numbers.
In SQL the VARChar() key holds what?
Strings
In SQL the CONSTRAINT key does what?
Adds attributes, and creates composite, foreign, and primary keys.
In SQL the INSERT key does what?
Adds new data
Which Element follows after the SELECT keyword?
Column