CSC 2720 Building Web Applications Database and SQL.

Slides:



Advertisements
Similar presentations
Management Information Systems, Sixth Edition
Advertisements

A Guide to SQL, Seventh Edition. Objectives Understand the concepts and terminology associated with relational databases Create and run SQL commands in.
Chapter 4 Relational Databases Copyright © 2012 Pearson Education, Inc. publishing as Prentice Hall 4-1.
INTEGRITY Enforcing integrity in Oracle. Oracle Tables mrobbert owner granted access.
Data at the Core of the Enterprise. Objectives  Define of database systems  Introduce data modeling and SQL  Discuss emerging requirements of database.
Chapter 4 Relational Databases Copyright © 2012 Pearson Education 4-1.
DAT702.  Standard Query Language  Ability to access and manipulate databases ◦ Retrieve data ◦ Insert, delete, update records ◦ Create and set permissions.
Introduction To Databases IDIA 618 Fall 2014 Bridget M. Blodgett.
Database Lecture # 1 By Ubaid Ullah.
Information storage: Introduction of database 10/7/2004 Xiangming Mu.
Introduction –All information systems create, read, update and delete data. This data is stored in files and databases. Files are collections of similar.
Copyright © 2003 by Prentice Hall Module 4 Database Management Systems 1.What is a database? Data hierarchy and data organization Field, record, file,
6-1 DATABASE FUNDAMENTALS Information is everywhere in an organization Information is stored in databases –Database – maintains information about various.
ASP.NET Programming with C# and SQL Server First Edition
PHP Programming with MySQL Slide 8-1 CHAPTER 8 Working with Databases and MySQL.
1 Overview of Databases. 2 Content Databases Example: Access Structure Query language (SQL)
Chapter 1 Overview of Database Concepts Oracle 10g: SQL
Database Technical Session By: Prof. Adarsh Patel.
Introduction to SQL Steve Perry
STORING ORGANIZATIONAL INFORMATION— DATABASES CIS 429—Chapter 7.
Web Services Week 8 Aims: –Using web services as front ends to databases Objectives: –Review of relational databases –Connecting to and querying databases.
CHAPTER 8: MANAGING DATA RESOURCES. File Organization Terms Field: group of characters that represent something Record: group of related fields File:
Constraints  Constraints are used to enforce rules at table level.  Constraints prevent the deletion of a table if there is dependencies.  The following.
Lecture 2 An Overview of Relational Database IST 318 – DB Admin.
Chapter 7 Working with Databases and MySQL PHP Programming with MySQL 2 nd Edition.
Introduction to SEQUEL. What is SEQUEL? Acronym for Structural English Query Language Acronym for Structural English Query Language Standard language.
Databases and Statistical Databases Session 4 Mark Viney Australian Bureau of Statistics 5 June 2007.
CSC 2720 Building Web Applications Database and SQL.
Database Fred Durao What is a database? A database is any organized collection of data. Some examples of databases you may encounter in.
Relational Databases. Database Large collection of data in an organised format to allow access and control DBMS Database Management System - Special software.
Using Special Operators (LIKE and IN)
1 Structured Query Language (SQL). 2 Contents SQL – I SQL – II SQL – III SQL – IV.
7 1 Chapter 7 Introduction to Structured Query Language (SQL) Database Systems: Design, Implementation, and Management, Seventh Edition, Rob and Coronel.
Instructor: Dema Alorini Database Fundamentals IS 422 Section: 7|1.
Chapter 1Introduction to Oracle9i: SQL1 Chapter 1 Overview of Database Concepts.
Database Management System (DBMS) an Introduction DeSiaMore 1.
CS 1308 Computer Literacy and the Internet
6.1 © 2010 by Prentice Hall 6 Chapter Foundations of Business Intelligence: Databases and Information Management.
1 Introduction to Oracle Chapter 1. 2 Before Databases Information was kept in files: Each field describes one piece of information about student Fields.
1 DBS201: Introduction to Structure Query Language (SQL) Lecture 1.
Advanced Database CS-426 Week 1 - Introduction. Database Management System DBMS contains information about a particular enterprise Collection of interrelated.
Creating and Maintaining Geographic Databases. Outline Definitions Characteristics of DBMS Types of database Relational model SQL Spatial databases.
Course FAQ’s I do not have any knowledge on SQL concepts or Database Testing. Will this course helps me to get through all the concepts? What kind of.
SQL Jan 20,2014. DBMS Stores data as records, tables etc. Accepts data and stores that data for later use Uses query languages for searching, sorting,
Programming Logic and Design Fourth Edition, Comprehensive Chapter 16 Using Relational Databases.
CS453: Databases and State in Web Applications (Part 2) Prof. Tom Horton.
Database Management Supplement 1. 2 I. The Hierarchy of Data Database File (Entity, Table) Record (info for a specific entity, Row) Field (Attribute,
BSA206 Database Management Systems Lecture 2: Introduction to Oracle / Overview of Database Concepts.
Distribution of Marks For Second Semester Internal Sessional Evaluation External Evaluation Assignment /Project QuizzesClass Attendance Mid-Term Test Total.
Chapter 3: Relational Databases
SQL Introduction to database and SQL. Chapter 1: Databases and Database Users 6 Introduction to Databases Databases touch all aspects of our lives. Examples:
LM 5 Introduction to SQL MISM 4135 Instructor: Dr. Lei Li.
Introduction to Core Database Concepts Getting started with Databases and Structure Query Language (SQL)
uses of DB systems DB environment DB structure Codd’s rules current common RDBMs implementations.
1 Section 1 - Introduction to SQL u SQL is an abbreviation for Structured Query Language. u It is generally pronounced “Sequel” u SQL is a unified language.
Introduction to Database Programming with Python Gary Stewart
Management Information Systems by Prof. Park Kyung-Hye Chapter 7 (8th Week) Databases and Data Warehouses 07.
Web Systems & Technologies
Client/Server Databases and the Oracle 10g Relational Database
Introduction To Database Systems
Chapter 4 Relational Databases
CS1222 Using Relational Databases and SQL
Database Management  .
Databases and Information Management
Chapter 8 Working with Databases and MySQL
Database.
مقدمة في قواعد البيانات
Databases and Information Management
DATABASE Purpose of database
INTRODUCTION A Database system is basically a computer based record keeping system. The collection of data, usually referred to as the database, contains.
Presentation transcript:

CSC 2720 Building Web Applications Database and SQL

Database and DBMS  Database – Structured collection of records or data  Database Management System (DBMS) – Specialized software for managing databases  Relational Database – A type of database in which data are organized as related tables  Most widely used type of databases

Advantages of using DBMS  Efficient Data Access  Support multiple users and Data Security  Protect access to data in which only authorized users can access the data  Concurrent Access  Support mechanisms to allow multiple users to safely read/write the data. (e.g., record locking)  Transaction  Crash Recovery

Advantages of using DBMS  Standardized query language for defining and manipulating data  Network accessible DBMS Web App (Java Servlet) Web App (PHP) Web App (ASP.NET) Stand alone App (Java / C++ / C ) Database Management Tools SQL

Introduction to Relational Database  Data are stored in tables (a.k.a. relations). ItemIDNamePriceQuantity Coffee Soy Milk Tea Row / Record Column / Field / Attribute  A table has a name.  A field has a name and a type.  Besides some standard types, different DBMS (e.g., Oracle and MySQL) may also have their own specific types.

Characteristics of a Table  A field is said to contain a null value when it contains nothing at all.  When defining a table, we can set whether a field can contain a null value or not.  Keys are special fields that serve a specific purpose within a table.  A Primary key is a field (or combination of fields) that uniquely identifies a record within a table.  A Foreign key is the field that is used to establish a relationship between a pair of tables.A foreign key has to be a primary key of another table.  Row orders are not important.

Structured Query Language (SQL)  A standardized language that can be used to build, modify, maintain and manipulate a database  SQL supported by different DBMS may vary slightly.  With SQL, you can  Create/delete a database  Create/delete tables in a database  Retrieve data from a database  Insert new records in a database  Delete records from a database  Update records in a database

SQL (con't)  SQL is case insensitive  Multiple statements are separated by semicolon  Important commands for manipulating data  SELECT - extracts data from a database table  UPDATE - updates data in a database table  DELETE - deletes data from a database table  INSERT INTO - inserts new data into a database table  Important commands for manipulating table  CREATE TABLE - creates a new database table  ALTER TABLE - alters (changes) a database table  DROP TABLE - deletes a database table  Examples: SQL Tutorial at W3Schools 