Review Doing it all over again

  • 160 views
Uploaded on

 

  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
160
On Slideshare
0
From Embeds
0
Number of Embeds
0

Actions

Shares
Downloads
1
Comments
0
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. Review Doing it all over again
  • 2. What We Covered
    • Database basics and terminology
    • Database Design and Normalization
    • SQL
    • ADO and XML (briefly)
  • 3. Database Basics
    • A database stores information relevant to some business need
    • A Relational database, stores that information in tables that are related to each other by means of certain “Key” fields
    • A Relational Database Management System (RDMS) is software that manages relational databases
  • 4. Some Major RDMSs
    • SQL Server (Microsoft)
    • Oracle
    • MySql (Open Source)
    • DB2 (IBM)
  • 5. Database Design
    • The Design process is a long and complex
      • First you must understand the purpose of the database
      • Next gather requirements
      • Thirdly identity potential attributes (fields) and entities
      • Next define the entities and their attributes
      • Next define the relations between the entities
      • Finally evaluate the design for normalization
  • 6. Keys
    • Every table should have a Primary Key
    • A primary key uniquely identifies a row. It cannot ever repeat in its own table
    • Tables are related by copying a primary key from one table into another table. The primary key in the second table is a “Foreign Key.” It can repeat in the second table as many times as needed
  • 7. Relations
    • There are three kinds of relations
      • One to one (rare)
      • One to many (what you want 99% of the time)
      • Many to Many (Must always be resolved into a one to many by creating a linking table)
  • 8.
    • Course and student have a many to many relationship
    • Section becomes the linking table which reduces the many to many to two one to many relations
  • 9. Some Normalization hints
    • Never list several items in one field
    • If you find yourself number columns like Track1, track2, etc. , you need a new table
    • If anything in a table depends on another field in the table that is not the key, you need another table
  • 10. Building the Database
    • Building the Database requires knowing the Specific DBMS you are using and its data types and file systems
  • 11. SQL
    • SQL is the language relational database use for everything they do, including creating database objects, retrieving data, and manipulating data
  • 12. Basic SQL Examples
    • SELECT * FROM Customer
    • UPDATE Customer SET Lastname=“Smith” WHERE CustomerID=345
    • INSERT INTO Customer(Lastname, Phone) VALUES (“Smith”, “2065456677”)
  • 13. ADO
    • ADO is a set of tools Microsoft created to create applications which connect to databases.
    • There are other tools for creating Database applications such as PHP, or Java
  • 14. XML
    • Xml has become the universal language for transporting data between separate applications
    • It is operating system, database and application neutral
    • Increasingly Databases are incorporating xml as a native datatype
  • 15. What Next
    • A deeper sense of SQL (ITC 222)
    • ADO Programming (ITC 172, ITC 224)
    • Web Database with PHP (ITC 280)
    • Database Administration and Development with SQL Server 2005 (ITC 224 and ITC 226)