Download presentation
Presentation is loading. Please wait.
1
Introduction to Database Systems
Computer Science & Engineering Introduction to Database Systems This lecture will cover the use of some basic functions provided by EXCEL. We will be explore how these functions work and how they can be used to solve problems.
2
Database Terms Data Information A collection of numbers and text
Information Meaning derived from the data SSN:
3
What is a database? Examples of computer databases
A large collection of data stored in a well-defined structure You can think of a database as An electronic filing system A repository for large amounts of information Example of a paper database Telephone book Examples of computer databases Ohio State stores student information in a database Insurance companies store policy holder information in a database Your employer stores your information in a database
4
Database Software How do I create a database?
Purchase the software We will use MS Access 2010, but there are many database software products Oracle Sybase SQL Server How do I access information in the database? Purchase a Database Management System (DBMS) A DBMS is a collection of programs that enable you to enter, organize, and select data in a database. We will use MS Access 2013, but there are many database management software products
5
Steps when setting up a Database
The design should be initially created schematically, and then the database should be created using the chosen database software
6
1. Decide what information you will store in the database
Research Papers database First Name Charge Amount Last Name Charge Date Address Payment Amount City Payment Type State Payment Date Zip Code Home Phone This database is a very simplistic one. Most databases you create will be much more complex.
7
2. Create the layout of the database
What tables do you need in your database? What is a table? An entity used to organize information by categories of like information
8
Research Papers Database Tables
Client Stores client information Charges Stores client charges information Payments Stores client payment information PaymentMethod Stores the payment method Credit Card Cash Check
9
2. Create the layout of the database
What fields do you need in your database? What is a field? An attribute (piece of information) of the table/entity. How will you set them up? Divide Tables into Inseparable Fields Address as 1 field – 17 Main St. New York, New York 10002 Address as 4 fields Street Address - 17 Main St. City - New York State - New York Zip code – 10002
10
Research Papers Database
Table Name: Client Fields: Client ID First Name Last Name Address City State Zip Code Home Phone Charges Charge Amount Charge Date Payments Payment Amount Payment Type Payment Date PaymentMethod MethodID MethodType
11
2. Create the layout of the database
Fields contain field types/data types and field properties What is a field Type/Data Type? Defines the type of information that can be stored. i.e. text, numbers, dates, etc. What is a field Property? Field size Input Mask Validity Default Value
12
Research Papers Database
Table Name: Client Field Type/ Data Type Properties Fields: Client ID Text 5 Characters long Primary Key First Name 25 Characters long Last Name 50 Characters long Address 60 Characters long City State 2 Characters long Default Value Zip Code Home Phone 10 Characters long Input Mask Charges Field Type Charge Amount Currency None Charge Date Date Input Mast Payments Payment Amount Payment Type Payment Date PaymentMethod MethodID MethodType 20 Characters long
13
2. Create the layout of the database
What will be the primary key for each table? A field, or a collection of fields, whose values uniquely identify each record in a table
14
Research Papers Database
Table Name: Client Field Type/ Data Type Properties Fields: Client ID Text 5 Characters long Primary Key First Name 25 Characters long Last Name 50 Characters long Address 60 Characters long City State 2 Characters long Default Value Zip Code Home Phone 10 Characters long Input Mask Charges Field Type Charge Amount Currency None Charge Date Date Input Mast Payments Payment Amount Payment Type Payment Date PaymentMethod MethodID MethodType 20 Characters long
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.