1302325 s1 201 advance database systems dr.kwanchai eurviriyanukul [email protected]
TRANSCRIPT
1302325 s1 201Advance Database Systems
Dr.Kwanchai [email protected]
Course Details• Course Description• Relational database theory, object-oriented database system, distributed
database system, active database, distributed object-oriented database system, data warehouse, data mining, digital library, dynamic database system, and reasoning management database system.
• Course Objectives • After completing the course students should be able to• 1. Understand the concepts for Advance Database System and XML.• 2. Know and select tools for Advance Database Systems and XML.• 3. Able to develop programs by using the knowledge from 1. And 2.
Course Outlines
Week-1
• Lecture• Reviews of Database Management Systems– SQL and Query Evaluation
• Lab– From Spreadsheets to the Web
Week-1:Lecture
• Reviews of Database Management Systems– SQL and Query Evaluation
• Introduction• Data Modeling• SQL
Exercise
• Let’s create an E-R for the following data (using a SQL statement)
6
Create a table
Village-ER
Village-ER => Normalization?
Village-ER => Normalization?
Now we need to populate the data
Week-1-Lab
• From Spreadsheets to the Web1. Spreadsheets (MSExcel) to Relational DB
(MySQL)2. MySQL to Web (PHP)3. Web (PHP) to WebService (Google Map)
Pre-requisite
• You need to have the following applications on your machine– Your local Web server (appserv)– Your IDE (Eclipse)
• Internet
From Spreadsheets to the Web
1. Spreadsheets (MSExcel) to Relational DB (MySQL)
1. Let’s see Thai version created by my advisees.
Villages in ChiangMai
In CVS
Use MySQL workbench to create your database
Create Your Database
Output at localhost
Let’s import data from excel
Error Why?
Wrong Selection => Select your table
Now Select a file to import
Error Again
Choose the right option
Don’t forget to set your encoding
Choose the right option
Week-1-Lab
• From Spreadsheets to the Web1. Spreadsheets (MSExcel) to Relational DB
(MySQL)2. MySQL to Web (PHP)3. Web (PHP) to WebService (Google Map)
PHP Code
Output
Your turn: I want sub_district_name
1. No duplicate
Your turn: I want sub_district_name
1. No duplicate
select distinct sub_district_namefrom village;
Write Your program
Output
Fix it
• http://www.thaicreate.com/community/php-mysql-thai.html
Thai