# 1# 1 cs 105 databases introduction what is a database? what is a front-end? what does open source...
TRANSCRIPT
# 1
CS 105Databases Introduction
CS 105Databases Introduction
What is a database?
What is a front-end?
What does open source mean?
How do you pronounce SQL?
CS 105 Spring 2010
# 2CS 105 Spring 2010
Our favorite online databases
• ESPN Major League Baseball Statistics
• Internet Movie Database
# 3CS 105 Spring 2010
What Is a Database?
• Database: a collection of information like a phone book or UIDirect or an address book
or• A database is a collection of objects such
as tables, queries, forms, and reports
• READ in Computer Concepts about databases!!
# 4CS 105 Spring 2010
What does a database look like?
• A database is a container to store data in an organized fashion
# 5CS 105 Spring 2010
What does a table look like?
# 6CS 105 Spring 2010
Tables Tables
• Data is organized into tables • The rows of a table correspond to records-- each record is an individual entry, a
row
# 7CS 105 Spring 2010
Tables: Datasheet View Tables: Datasheet View
Field (column) Names
• The columns of a table correspond to fields
# 8CS 105 Spring 2010
Sequel? Essquell? Yes, SQL
• SQL (pronounced "ess-que-el" or "seequel") stands for Structured Query Language.
• SQL is the standard language to communicate with relational database management systems.
• SQL statements are used to perform tasks such as update data in a database, or retrieve data from a database.
# 9CS 105 Spring 2010
Database—misusing the word
• MySQL is a database management system--DBMS
• SQLyog is a GUI—a graphical user interface or front-end for MySQL
• The word “Database” refers to the data itself, not the software than manages the data
# 10CS 105 Spring 2010
Where they are
• MySQL is a database management system--DBMS
SQLyog is a GUI—a graphical user interface or front-end for MySQL
# 11CS 105 Spring 2010
And now to appearance--GUI
• Unix is user-friendly; it's just a little particular about which users it is friendly to.
• Your Concepts Book has more about operating systems and appearance.
# 12CS 105 Spring 2010
What is a front-end?
A UNIX environment— not very user-friendly.
Unix view of a directory:
# 13CS 105 Spring 2010
Windows view of the same directory
# 14CS 105 Spring 2010
Editing a file in a Unix environment
# 15CS 105 Spring 2010
Editing the same file in FrontPage
# 16CS 105 Spring 2010
Thunderbird front-end for email
# 17CS 105 Spring 2010
What is MySQL?
• MySQL is the most popular Open Source SQL database management system, is developed and provided by MySQL AB—a “virtual” company that began in Sweden and hopes to make money from providing services.
• READ about Open Source in Computer Concepts
Licenses and copyright laws are part of our world. They are vital to both legal and illegal use of computers.
# 18CS 105 Spring 2010
Login
# 19CS 105 Spring 2010
SQLyog
To download the software, login to Compass and you can click on the icon for it.
# 20CS 105 Spring 2010
Standard Database ObjectsStandard Database Objects
Each of these objects must have a unique name
We can do these in SQLyog:• Table: Used to store and manipulate data.• Query: Used to retrieve information.
We can do these in other DBMS front-ends:• Form: Used to view one record of data.• Report: Used to present, calculate,
summarize, and print table data.
# 21CS 105 Spring 2010
Tables of student scores
# 22CS 105 Spring 2010
You can pull out individual student scores on a FORM (one record at at
time)
# 23CS 105 Spring 2010
Example of a form from the Internet
The user sees the form and not the underlying tables
# 24CS 105 Spring 2010
What good are forms?
Lets you view one record at a time
Customizes the display.Prevents errorHides data from viewer
Allows you to useInput Masks and guide data entry
# 25CS 105 Spring 2010
Input Mask, Form: Online Shopping
# 26CS 105 Spring 2010
A report: • An on-screen or printed display of
organized data from a table or query• May contain text, data, graphics,
borders, colors.• Examples include--depending on the
DBMS you are using-- sales summaries, invoices, mailing labels, personal address books, inventory listings
# 27CS 105 Spring 2010
Sample Internet Report -- UIUC
http://www.dmi.uiuc.edu/stuenr/index.htm#class
# 28CS 105 Spring 2010
To summarize
• What is a database?
• What is a front-end??
• How do you pronounce SQL?