























































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!
























































UNIVERSITY of GREENWICH
entities in the business environment relationships (or associations) among those entities attributes (properties) of both the entities and their relationships
A primary key uniquely identifies a record in a table. It should be UNIQUE (not duplicated) Data from records is depending on primary key given a ‘LecturerId’ we can find their FirstName, LastName and Email Notations: depicted with a HASH #, underlined , a prefix /suffix PK Accessing records via Primary Key
1 Elena Popa [email protected] 2 Markus Wolf [email protected] 5 Peter Smith [email protected] Primary key Unique
COMP1821 1 15/09/2019 Software Engineering COMP1549 2 15/09/2019 Programming COMP1765 5 07/01/2020 Introduction to compilers COMP1471 1 15//01/2020 Enterprise Systems etc etc etc etc
FOREIGN KEY is used to RELATE tables Relationships
1 Elena Popa [email protected] 2 Markus Wolf [email protected] 5 Peter Smith [email protected]
COMP1821 1 15/09/2019 Software Engineering COMP1549 2 15/09/2019 Programming COMP1765 5 07/01/2020 Introduction to compilers COMP1471 1 15//01/2020 Enterprise Systems etc etc etc etc
Relationships
1 Elena Popa [email protected] 2 Markus Wolf [email protected] 5 Peter Smith [email protected] You can enforce a constraint, it requires a related record, REFERENTIAL INTEGRITY means that the references between tables are correct
UNIVERSITY of GREENWICH
SQL a standard language for storing, manipulating and retrieving data in databases. an abbreviation for Structured Query Language. Pronounced as the letters ‘S-Q-L’, or as ‘See-Quel’. Something of a misleading name as its is not just a query language. SQL is easy to learn The statements are made up of a small set of descriptive English words. SQL is very powerful complex and sophisticated operations can be performed by cleverly using the simple language elements.