Slide 1 Chapter 01 Managing Student Type Information.

Slides:



Advertisements
Similar presentations
Copyright © 2003 Pearson Education, Inc. Slide 8-1 The Web Wizards Guide to PHP by David Lash.
Advertisements

Database Basics. What is Access? Database management system Computer-based equivalent of a manual database Makes it easy to organize and update information.
DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall 8-1 David M. Kroenke’s Chapter Eight: Database Redesign Database Processing:
DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall 11-1 David M. Kroenke’s Chapter Eleven: Managing Databases with SQL Server.
Quick-and-dirty.  Commands end in a semi-colon ◦ If you forget, another prompt line shows up  Either continue the command or…  End it with a semi-colon.
Fundamentals, Design, and Implementation, 9/e Chapter 11 Managing Databases with SQL Server 2000.
ISP 121 Week 1 Introduction to Databases. ISP 121, Winter Why a database and not a spreadsheet? You have too many separate files or too much data.
Creating a Blank Database 1. Open up Microsoft Access 2. Click on Blank document button 3. On the right panel, Specify the location for saving your database.
Murali Mani SQL DDL and Oracle utilities. Murali Mani Datatypes in SQL INT (or) INTEGER FLOAT (or) REAL DECIMAL (n, m) CHAR (n) VARCHAR (n) DATE, TIME.
A Guide to MySQL 3. 2 Objectives Start MySQL and learn how to use the MySQL Reference Manual Create a database Change (activate) a database Create tables.
Using ERWin to model your data Supplied by Computer Associates as part of AllFusion.
DAT702.  Standard Query Language  Ability to access and manipulate databases ◦ Retrieve data ◦ Insert, delete, update records ◦ Create and set permissions.
Access Tutorial 8 Sharing, Integrating, and Analyzing Data
Using ER/Studio.
Access Tutorial 10 Automating Tasks with Macros
A Guide to SQL, Eighth Edition Chapter Three Creating Tables.
© 2002 by Prentice Hall 1 David M. Kroenke Database Processing Eighth Edition Chapter 13 Managing Databases with SQL Server 2000.
LSP 121 Week 1 Intro to Databases. Welcome to LSP 121 Quantitative Reasoning and Technological Literacy II Continuation of quantitative data concepts.
Databases in Visual Studio. Database in VisualStudio An MS SQL database are built in Visual studio The Name can be something like ”(localdb)\Projects”
Web Server Administration Chapter 7 Installing and Testing a Programming Environment.
1 Working with MS SQL Server Textbook Chapter 14.
© FPT SOFTWARE – TRAINING MATERIAL – Internal use 04e-BM/NS/HDCV/FSOFT v2/3 Working with MSSQL Server Code:G0-C# Version: 1.0 Author: Pham Trung Hai CTD.
Deanery of Business & Computer Sciences SQL Structured Query Language Implementation Lecture – 8 Database Technology Level I.
ISM 4212 Lab Creating DB Tables 02 copyright Lars Paul Linden 2007.
Presentation title Speaker’s name. Presentation title Speaker’s name.
DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall 11-1 David M. Kroenke’s Chapter Eleven: Managing Databases with SQL Server.
Slide 1 Chapter 7 – Part 1 Data Definition Language & Data Manipulation Language.
Quick guide on making PowerPoint slides  PowerPoint is a presentation program  A PowerPoint slideshow is a stack of slides being presented one after.
U:/msu/course/cse/103 Day 06, Slide 1 CSE students: Do not log in yet. Review Day 6 in your textbook. Think about.
Access Manual 2 By Dhawala Kovuri Elham S.Khorasani Ismail Guneydas.
SQL Basics. 5/27/2016Chapter 32 of 19 Naming SQL commands are NOT case sensitive SQL commands are NOT case sensitive But user identifier names ARE case.
A Guide to MySQL 3. 2 Introduction  Structured Query Language (SQL): Popular and widely used language for retrieving and manipulating database data Developed.
Unit 5, Lesson 1 Working with Databases. Objectives Identify the parts of the Access screen. Identify the parts of the Access screen. Understand the purpose.
1 SQL - II Data Constraints –Applying data constraints Types of data constraints –I/O constraints The PRIMARY KEY constraints The FOREIGN KEY constraints.
SQL Structured Query Language. Aims  To introduce the implementation of a Physical design using SQL.  To introduce SQL Data Definition Language (DDL).
Oracle Data Integrator Data Quality (Integrity Control)
Task #1 Create a relational database on computers in computer classroom 308, using MySQL server and any client. Create the same database, using MS Access.
Managing Database With Oracle Replacement for Ch10 COP 4708.
McGraw-Hill Career Education© 2008 by the McGraw-Hill Companies, Inc. All Rights Reserved. Concept 1 Database – Organized collection of related information.
SQL constrains and keys. SORTED RESULTS Sort the results by a specified criterion SELECT columns FROM tables WHERE predicates ORDER BY column ASC/DESC;
[Presentation Title] – Edit this footer by clicking on “View” tab,  “Slide Master” button  this slide’s layout [Date] Changing... Leading... Learning...
1 Working with MS SQL Server Beginning ASP.NET in C# and VB Chapter 12.
SSMS SQL Server Management System. SQL Server Microsoft SQL Server is a Relational Database Management System (RDBMS) Relational Database Management System.
Backup Tables in SQL Server. Backup table method Cape_Codd database is used in this example 1.Righ click the database that contains the table you want.
Exploring Office 2003 Vol 1 2/e - Grauer and Barber 1 Committed to Shaping the Next Generation of IT Experts. Chapter 4: Advanced Features: Tables, Styles,
David M. Kroenke and David J. Auer Database Processing Fundamentals, Design, and Implementation Appendix E: Getting Started with MySQL Workbench Data Modeling.
Creating E/R Diagrams with SQL Server Management Studio, Writing SQL Queries D0ncho Minkov Telerik School Academy schoolacademy.telerik.com Technical Trainer.
Slide 1 Insert your own content.. Slide 2 Insert your own content.
Agenda for Today  DATABASE Definition What is DBMS? Types Of Database Most Popular Primary Database  SQL Definition What is SQL Server? Versions Of SQL.
©NIIT BCP and DTS Implementing Stored Procedures Lesson 2A / Slide 1 of 23 Objectives In this lesson, you will learn to: Perform bulk copy using the BCP.
3 A Guide to MySQL.
ICT Essential Skills.
Y.-H. Chen International College Ming-Chuan University Fall, 2004
COP 4540 Database Management
Developing Forms and Subforms.
Storing Images Connect to the server using the correct username and password. $conn = mysql_connect(“yourserver”, “joeuser”, “yourpass”); Create the database.
SQL MODELER - OPEN There are Three Ways to open the SQL Modeler
Working with table in MS WORD
Teaching slides Chapter 8.
Slide 1 Insert your own content.. Slide 1 Insert your own content.
Access Tutorial 8 Sharing, Integrating, and Analyzing Data
DATABASE SQL= Structure Query Language مبادئ قواعد بيانات
SQL Code for Byrnetube video
Slide 1 Insert your own content.. Slide 1 Insert your own content.
Slide 1 Insert your own content.. Slide 1 Insert your own content.
Rob Gleasure robgleasure.com
Structured Query Language Path from Unorganized to Organized….
SQL (Structured Query Language)
Presentation transcript:

Slide 1 Chapter 01 Managing Student Type Information

Slide 2 Content I. Managing Student Type Information Problem II. Solution

Slide 3  At SaigonTech, there are three types of students: urban, suburb, province.  Each student type has its amount of discount fee, the urban student will be discounted 0% of tuition, the suburb student is 5% and the province student is 10%.  SaigonTech college wants to store all information about its student types. Student TypeDiscountNotes Urban0%The urban student is not discounted. Suburb5%The suburb student is discounted 5% of tuition. Province10%The province student is discounted 10% of tuition. I. Managing Student Type Information Problem

Slide 4 II. Solution 1. Logical Design 2. Physical Design 3. Implementation

Slide 5 1. Logical Design

Slide 6 2. Physical Design

Slide 7 3. Implementation 3.1 Using GUI mode 3.2 Using Console mode

Slide Using GUI mode Creating Database Creating Table Inserting Data Testing – Checking the inserted data

Slide Creating Database Create a database named STUDENT_INFO  Right click on Databases group in the Object Explorer panel  Choose New Database  Database Name: STUDENT_INFO

Slide Creating a new table Creating Columns Setting data type Setting primary key Creating Table

Slide Creating a new table Create a table named STUDENT_TYPE  Right click on the Tables group  Choose New Table  In the Properties panel, type the table name: STUDENT_TYPE

Slide 12 Create columns for table STUDENT_TYPE: STUDENT_TYPE_ID, STUDENT_TYPE_NAME, DISCOUNT, NOTES Creating Columns

Slide 13 Choose appropriate data type for each column: STUDENT_TYPE_ID: int; STUDENT_TYPE_NAME : varchar(50); DISCOUNT: numeric(18,2); NOTES: text Setting data type

Slide 14 Click on the Set Primary Key button Setting primary key

Slide Inserting Data Opening Table Inserting Data

Slide Opening Table Right click on the STUDENT_TYPE table  Choose Open Table

Slide Inserting Data Insert Data Here

Slide Testing – Checking the inserted data Open the STUDENT_TYPE table again to check data

Slide Using Console mode Creating a new query tab Creating database Creating table Inserting data Testing – Checking the inserted data

Slide Creating a new query tab  Click on the New Query button

Slide 21  Use database master and SQL command: Create database STUDENT_INFO Creating database

Slide 22 CREATE TABLE STUDENT_TYPE ( STUDENT_TYPE_IDint NOT NULL, SUTDENT_TYPE_NAMEvarchar(50) NULL, DISCOUNTnumeric(18,2) NULL, NOTEStext NULL, CONSTRAINT STUDENT_TYPEPK PRIMARY KEY (STUDENT_TYPE_ID); Creating table

Slide Inserting data INSERT INTO STUDENT_TYPE (STUDENT_TYPE_ID, STUDENT_TYPE_NAME, DISCOUNT, NOTES) VALUES (1, ‘Urban’, 0, ‘The urban student is not discounted.’); INSERT INTO STUDENT_TYPE (STUDENT_TYPE_ID, STUDENT_TYPE_NAME, DISCOUNT, NOTES) VALUES (2, ‘Suburb’, 0.05, ‘The suburb student is discounted 5% of tuition.’); INSERT INTO STUDENT_TYPE (STUDENT_TYPE_ID, STUDENT_TYPE_NAME, DISCOUNT, NOTES) VALUES (3, ‘Province’, 0.1, ‘The province student is discounted 10% of tuition.’);

Slide Testing – Checking the inserted data Select * from STUDENT_TYPE

Slide 25