730 likes | 828 Vues
Learn about database transactions, ACID test, SQL, CRUD operations, and ER modeling. Understand cardinality's role in database transactions and normalization principles.
E N D
Database Design and Programming (part 2) Relational Databases Fall 2013 MKTG 455
Lecture overview • Transactions • ACID test • Intro to SQL • CRUD • ER Modeling • Normalization
ACID TEST A CID
ACID TEST Atomic Consistent Isolated Durable
ACID TEST Atomic (all or nothing) Consistent Isolated Durable
ACID TEST Atomic (all or nothing) Consistent (follows all other rules) Isolated Durable
ACID TEST Atomic (all or nothing) Consistent (follows all other rules) Isolated (locked data) Durable
ACID TEST Atomic (all or nothing) Consistent (follows all other rules) Isolated (locked data) Durable (guaranteed)
introduction to SQL Structured Query Language
Database vs. DBMS Database Management Systems Oracle SQL Server MySQL Postgre SQL MS Access DB2
declarative language “I want all the books more than $40”
declarative language “I want all the books more than $40”
2 questions • What’s the point
2 questions • What’s the point
2 questions • What’s the point • What do you already have?
2 questions • What’s the point • What do you already have?
issue singular or plural
ER Models Entity Relationship Modeling
Choose a naming convention Camel Case lastName Pascal LastName Underscore last_name
first normal form “Each of your columns in each of your tables should contain one value (and only one value) and have no repeating groups”