28
# 1 CS 105 Databases Introduction What is a database? What is a front-end? What does open source mean? How do you pronounce SQL? CS 105 Spring 2010

# 1# 1 CS 105 Databases Introduction What is a database? What is a front-end? What does open source mean? How do you pronounce SQL? CS 105 Spring 2010

Embed Size (px)

Citation preview

Page 1: # 1# 1 CS 105 Databases Introduction What is a database? What is a front-end? What does open source mean? How do you pronounce SQL? CS 105 Spring 2010

# 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

Page 2: # 1# 1 CS 105 Databases 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

Page 3: # 1# 1 CS 105 Databases Introduction What is a database? What is a front-end? What does open source mean? How do you pronounce SQL? CS 105 Spring 2010

# 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!!

Page 4: # 1# 1 CS 105 Databases Introduction What is a database? What is a front-end? What does open source mean? How do you pronounce SQL? CS 105 Spring 2010

# 4CS 105 Spring 2010

What does a database look like?

• A database is a container to store data in an organized fashion

Page 5: # 1# 1 CS 105 Databases Introduction What is a database? What is a front-end? What does open source mean? How do you pronounce SQL? CS 105 Spring 2010

# 5CS 105 Spring 2010

What does a table look like?

Page 6: # 1# 1 CS 105 Databases Introduction What is a database? What is a front-end? What does open source mean? How do you pronounce SQL? CS 105 Spring 2010

# 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

Page 7: # 1# 1 CS 105 Databases Introduction What is a database? What is a front-end? What does open source mean? How do you pronounce SQL? CS 105 Spring 2010

# 7CS 105 Spring 2010

Tables: Datasheet View Tables: Datasheet View

Field (column) Names

• The columns of a table correspond to fields

Page 8: # 1# 1 CS 105 Databases Introduction What is a database? What is a front-end? What does open source mean? How do you pronounce SQL? CS 105 Spring 2010

# 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.

Page 9: # 1# 1 CS 105 Databases Introduction What is a database? What is a front-end? What does open source mean? How do you pronounce SQL? CS 105 Spring 2010

# 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

Page 10: # 1# 1 CS 105 Databases Introduction What is a database? What is a front-end? What does open source mean? How do you pronounce SQL? CS 105 Spring 2010

# 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

Page 11: # 1# 1 CS 105 Databases Introduction What is a database? What is a front-end? What does open source mean? How do you pronounce SQL? CS 105 Spring 2010

# 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.

Page 12: # 1# 1 CS 105 Databases Introduction What is a database? What is a front-end? What does open source mean? How do you pronounce SQL? CS 105 Spring 2010

# 12CS 105 Spring 2010

What is a front-end?

A UNIX environment— not very user-friendly.

Unix view of a directory:

Page 13: # 1# 1 CS 105 Databases Introduction What is a database? What is a front-end? What does open source mean? How do you pronounce SQL? CS 105 Spring 2010

# 13CS 105 Spring 2010

Windows view of the same directory

Page 14: # 1# 1 CS 105 Databases Introduction What is a database? What is a front-end? What does open source mean? How do you pronounce SQL? CS 105 Spring 2010

# 14CS 105 Spring 2010

Editing a file in a Unix environment

Page 15: # 1# 1 CS 105 Databases Introduction What is a database? What is a front-end? What does open source mean? How do you pronounce SQL? CS 105 Spring 2010

# 15CS 105 Spring 2010

Editing the same file in FrontPage

Page 16: # 1# 1 CS 105 Databases Introduction What is a database? What is a front-end? What does open source mean? How do you pronounce SQL? CS 105 Spring 2010

# 16CS 105 Spring 2010

Thunderbird front-end for email

Page 17: # 1# 1 CS 105 Databases Introduction What is a database? What is a front-end? What does open source mean? How do you pronounce SQL? CS 105 Spring 2010

# 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.

Page 18: # 1# 1 CS 105 Databases Introduction What is a database? What is a front-end? What does open source mean? How do you pronounce SQL? CS 105 Spring 2010

# 18CS 105 Spring 2010

Login

Page 19: # 1# 1 CS 105 Databases Introduction What is a database? What is a front-end? What does open source mean? How do you pronounce SQL? CS 105 Spring 2010

# 19CS 105 Spring 2010

SQLyog

To download the software, login to Compass and you can click on the icon for it.

Page 20: # 1# 1 CS 105 Databases Introduction What is a database? What is a front-end? What does open source mean? How do you pronounce SQL? CS 105 Spring 2010

# 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.

Page 21: # 1# 1 CS 105 Databases Introduction What is a database? What is a front-end? What does open source mean? How do you pronounce SQL? CS 105 Spring 2010

# 21CS 105 Spring 2010

Tables of student scores

Page 22: # 1# 1 CS 105 Databases Introduction What is a database? What is a front-end? What does open source mean? How do you pronounce SQL? CS 105 Spring 2010

# 22CS 105 Spring 2010

You can pull out individual student scores on a FORM (one record at at

time)

Page 23: # 1# 1 CS 105 Databases Introduction What is a database? What is a front-end? What does open source mean? How do you pronounce SQL? CS 105 Spring 2010

# 23CS 105 Spring 2010

Example of a form from the Internet

The user sees the form and not the underlying tables

Page 24: # 1# 1 CS 105 Databases Introduction What is a database? What is a front-end? What does open source mean? How do you pronounce SQL? CS 105 Spring 2010

# 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

Page 25: # 1# 1 CS 105 Databases Introduction What is a database? What is a front-end? What does open source mean? How do you pronounce SQL? CS 105 Spring 2010

# 25CS 105 Spring 2010

Input Mask, Form: Online Shopping

Page 26: # 1# 1 CS 105 Databases Introduction What is a database? What is a front-end? What does open source mean? How do you pronounce SQL? CS 105 Spring 2010

# 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

Page 27: # 1# 1 CS 105 Databases Introduction What is a database? What is a front-end? What does open source mean? How do you pronounce SQL? CS 105 Spring 2010

# 27CS 105 Spring 2010

Sample Internet Report -- UIUC

http://www.dmi.uiuc.edu/stuenr/index.htm#class

Page 28: # 1# 1 CS 105 Databases Introduction What is a database? What is a front-end? What does open source mean? How do you pronounce SQL? CS 105 Spring 2010

# 28CS 105 Spring 2010

To summarize

• What is a database?

• What is a front-end??

• How do you pronounce SQL?