bd Lesson 1: Introduction
Sukanya Suranauwarat
Graduate Schoo! of Applied Statistics, NIDA
16101 Date Design and Mamogemen!: Practical Agroch
= Instructor's Information
Instructor: Sukanya Suranauwarat
Email: sukanya@as.nida.ac.th
Phone: 02-727-3051
Room: 1323
Secretary: Khun Wimon
de
paeoutine
1 Instructor's Information
« Initial Terminology
= Topics Covered
= Setup
vert is a Database?
= A.usually large collection of data organized especially
{or rapid search and retrieval (as by a computer)
— Merriam-Webster
1 Adatabase is an organized collection of data
— Wikipedia
slidei What is a Relational Database? ae Alternative Terminology
na elatorldlaboe, dla stored in table
+ Atablohes a name anda eolectn of colina
ce
oa] et a7 a
= Each table column has a name and data type
ow
Customer table
* Operational vs. Analytical Databases + What is a DBMS?
Operational database ' ADBMS (Database Management System) fs software
* Supports day-to-day operational business needs Used forthe following purpose
= Contains operational (transactional) information. = creation of databases
+ Example: soles transactions
«= insertion, retrieval, update, and deletion of the data in
the database
= Analytical database
= maintenance of databases
+= Supports analytical business tasks.
+ Contains analytical information + Examples of relational DBMS software:
samples: usage pattems, sols trends, etc + Oracle, MySQL, Microsoft SOL Server, PostgreSQL,
+ Brame 98 pater Hes trends, et IBM DB2, and Teradata.
+ Derived from operational information.
+ Otten associated with data warehousing= What is SQL? = What is SQL? (2)
‘= SQL is an abbreviation for Structured Query Language '= SQL is adopted as a standard by ANSI and ISO
= Developed at IBM by Dr. E.F. Cod in 19708 ‘standards bodies.
+ Often pronounced “Sequel” ' Database vendors now lead the standard by extending
= SQL is the language used to communicate with a SQL. to meet the needs of business.
felational DBMS software, = There are some differences between how SQL is
«= Used to perform tasks such as retrieve data from a implemented in each database product
database, of update data on a database
= SQL is declarative, not procedural
= Describe what you want, don't specify steps
How is SQL used? igelnteractive SQL: Example
= Interactive SQL Pa atoms = ——
+ SQL is used to interact directly with the database [ine canna
offen using a vendor supplied interface —a
= Example, Oracle SQL Developer, MySQL pees Soe
Workbench, pgAdmin, Mcrosot SQL Server base
Management Studio, Toad, Te
+ Embedded SOL =" mans
+ SQL is embedded in another programming language 1
+ The programmers who created the program put SQL SS
slatementsn the code, along with he programming Bea
language used to creat the loge and flow ofthe bate
application
det! ste+ Embedded SQL: Example ae Database System Architecture
ora enact, arom meer '= Database system: A computer-based system that
eaerasa cr a enables effcient interaction between users and
Schrnact endless information stored in a database.
* Topics Covered + Topics Covered (2)
+ Sl * Database Design
Prcmnreaen fssocraet care 2 Getting Data trom the Internet
[eee tere ey + Database Programming
Fiat ore] tate a + Database Backup and Recovery
pew tes Oe
er ers Fee + Transactions
1 inser 1 siren 1 nevone Query Executton
+ poate + BoP + Query Optimization
+ NoSL (WongoDB)= Recommended Textbooks = Grading Policy
* AFist Course in Database Systems (Sr eon by Uman and = Homework: 10%
dm ‘
+ Database Systems: The Complete Book 2nd eaton) by Garcia = Project: 20%
Mina, Uiran, ane Wider = Migterm: 35%
+ Databace Systems: ecucton to Databases and Data = Final: 35%
Warehouses (1st eiton) ay Juke Vibsky, and Nestarov
+ Database Design, Applicaton Development, and Administration
(6th edition by Mannino
+ Database Management Systems (i edtion) by Ramakishran Note: Grading policy is subject to change!!!
‘and Gotko
1 Fundamentas of
Navathe
ase Systems (6h ection) by Elmar and
System Gonceps (Gt alton) by Stoerschatz, Korn,
rsh
maese :
1 In this class, we will use MySQL, which is one of the
most widely used open source RDBMS in the world.
= MySQL is currently owned by Oracle Corporation.
1» MySQL uses a clientserver model which means that the
‘database typically runs on a server and the data is
accessed over a network by clients
= Demo: Setup MySQL Server & MySQL Workbench
slide 19