Introduction To DBMS: Friday, March 14, 2008
Introduction To DBMS: Friday, March 14, 2008
ASP.NET
http://sdetu/courses/sdetc101/
Lecture 12
Friday, March 14, 2008
Story So Far…
What is Object?
What is class?
Goal is to provide way to store and retrieve data in an efficient and convenient
manner.
Airlines
Universities
Finance
Manufacturing
Human resources
Sales…
• One to Many
• Many to Many
Candidate Key
Any key or minimum set of keys that could be a primary key is called a
candidate key.
14 March 2008 ASP.NET 11
Keys…
Composite Keys
Sometimes it requires more than one attribute to uniquely
identify an entity.
Foreign Keys
An attribute that appears as a nonprimary key attribute in one
relation and as a primary key attribute (or part of a primary
key) in another relation.
LastName
Hansen
Svendson
Pettersen
The Data Definition Language (DDL) part of SQL permits database tables
to be created or deleted.
We can also define indexes (keys), specify links between tables, and
impose constraints between database tables.
The most important DDL statements in SQL are: