Relational Databases Database Driven Applications Retrieving Data Changing Data Analysing Data What is a DBMS An application that holds the data manages.

Slides:



Advertisements
Similar presentations
Relational Algebra, Join and QBE Yong Choi School of Business CSUB, Bakersfield.
Advertisements

The database approach to data management provides significant advantages over the traditional file-based approach Define general data management concepts.
Management Information Systems, Sixth Edition
Chapter 10 ADO. What is ADO? ADO is a Microsoft technology ADO stands for ActiveX Data Objects ADO is a programming interface to access data in a database.
CSE 190: Internet E-Commerce Lecture 10: Data Tier.
FIRST COURSE Microsoft Access (Basics). XP Objectives Define the terms field, record, table, relational database, primary key, and foreign key. Learn.
3-1 Chapter 3 Data and Knowledge Management
Chapter 4 Relational Databases Copyright © 2012 Pearson Education, Inc. publishing as Prentice Hall 4-1.
Chapter 12 Database Connectivity with ASP.NET JavaScript, Third Edition.
CSC 2720 Building Web Applications Database and SQL.
The Relational Model Codd (1970): based on set theory Relational model: represents the database as a collection of relations (a table of values --> file)
IMS1907 Database Systems Summer Semester 2004/2005 Lecture 2 Relational DBMS Software An Overview of Microsoft Access.
Mgt 20600: IT Management & Applications Databases Tuesday April 4, 2006.
Information systems and databases Database information systems Read the textbook: Chapter 2: Information systems and databases FOR MORE INFO...
Chapter 4 Relational Databases Copyright © 2012 Pearson Education 4-1.
Microsoft Access Ervin Ha.
Phil Brewster  One of the first steps – identify the proper data types  Decide how data (in columns) should be stored and used.
Chapter 4: Organizing and Manipulating the Data in Databases
CHAPTER 9 DATABASE MANAGEMENT © Prepared By: Razif Razali.
Database Lecture # 1 By Ubaid Ullah.
5.1 © 2007 by Prentice Hall 5 Chapter Foundations of Business Intelligence: Databases and Information Management.
Chapter 5 Lecture 2. Principles of Information Systems2 Objectives Understand Data definition language (DDL) and data dictionary Learn about popular DBMSs.
Introduction –All information systems create, read, update and delete data. This data is stored in files and databases. Files are collections of similar.
ASP.NET Programming with C# and SQL Server First Edition
A CCESSING D ATABASES WITH JDBC CH 24 C S 442: A DVANCED J AVA P ROGRAMMING.
RAJIKA TANDON DATABASES CSE 781 – Database Management Systems Instructor: Dr. A. Goel.
1 Overview of Databases. 2 Content Databases Example: Access Structure Query language (SQL)
DAY 14: ACCESS CHAPTER 1 Tazin Afrin October 03,
CIS 270—Application Development II Chapter 25—Accessing Databases with JDBC.
Data-mining & Data As we used Excel that has capability to analyze data to find important information, the data-mining helps us to extract information.
Simple Database.
2005 SPRING CSMUIntroduction to Information Management1 Organizing Data John Sum Institute of Technology Management National Chung Hsing University.
Organizing Data and Information AD660 – Databases, Security, and Web Technologies Marcus Goncalves Spring 2013.
Web Services Week 8 Aims: –Using web services as front ends to databases Objectives: –Review of relational databases –Connecting to and querying databases.
File Processing Concepts – Field – combination of 1 or more characters that is the smallest unit of data to be accessed – Record – group of related fields.
Introduction to Databases Trisha Cummings. What is a database? A database is a tool for collecting and organizing information. Databases can store information.
Database, SQL, and ADO.NET- Part 1 Session 11 Mata kuliah: M0874 – Programming II Tahun: 2010.
Oleh Munawar Asikin. Principles of Information Systems, Seventh Edition 2  Database management system (DBMS): group of programs that manipulate database.
9/7/2012ISC329 Isabelle Bichindaritz1 The Relational Database Model.
Chapter 10: The Data Tier We discuss back-end data storage for Web applications, relational data, and using the MySQL database server for back-end storage.
1 Database & DBMS The data that goes into transaction processing systems (TPS), also goes to a database to be stored and processed later by decision support.
Tutorial 91 Databases A database is an organized collection of related information stored in a file on a disk A database allows companies to store information.
1 CSE 2337 Introduction to Data Management Access Book – Ch 1.
Access Review. Access Access is a database application A database is a collection of records and files organized for a particular purpose Access supports.
Visual Programing SQL Overview Section 1.
CS453: Databases and State in Web Applications (Part 2) Prof. Tom Horton.
Database Management Systems CS 420. Topics Outline 1. Introduction 2. HTML Review 3. VBScript 4. Access DBMS 5. Relational Database 6. Design Process.
Database Management Supplement 1. 2 I. The Hierarchy of Data Database File (Entity, Table) Record (info for a specific entity, Row) Field (Attribute,
A CCESSING D ATABASES WITH JDBC CH 24 C S 442: A DVANCED J AVA P ROGRAMMING.
 2001 Prentice Hall, Inc. All rights reserved. 1 Chapter 22 - SQL, MySQL, DBI and ADO Outline 22.1 Introduction 22.2 Relational Database Model 22.3 Relational.
Database Basics BCIS 3680 Enterprise Programming.
A table is a set of data elements (values) that is organized using a model of vertical columns (which are identified by their name) and horizontal rows.
Mining real world data RDBMS and SQL. Index RDBMS introduction SQL (Structured Query language)
Database Connectivity with ASP.NET. 2 Introduction Web pages commonly used to: –Gather information stored on a Web server database Most server-side scripting.
Object storage and object interoperability
ADO.NET Architecture MIS3502: Application Integration and Evaluation David Schuff Adapted from material by Arnold Kurtz, David.
Basics of JDBC Session 14.
3 1 Database Systems The Relational Database Model.
Chapter 3: Relational Databases
1 CPE 332 Introduction DBMS: Relational Database Managment Systems Instructor:Suthep Madarasmi, Ph.D. ดร. สุเทพ มาดารัศมี
Introduction to Core Database Concepts Getting started with Databases and Structure Query Language (SQL)
Rationale Databases are an integral part of an organization. Aspiring Database Developers should be able to efficiently design and implement databases.
XP Chapter 1 Succeeding in Business with Microsoft Office Access 2003: A Problem-Solving Approach 1 Level 2 Objectives: Understanding and Creating Table.
Chapter 12 Introducing Databases. Objectives What a database is and which databases are typically used with ASP.NET pages What SQL is, how it looks, and.
Management Information Systems by Prof. Park Kyung-Hye Chapter 7 (8th Week) Databases and Data Warehouses 07.
INTRODUCTION TO DATABASES (MICROSOFT ACCESS)
Created by Kamila zhakupova
Database Management  .
Chapter 10 ADO.
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:

Relational Databases Database Driven Applications Retrieving Data Changing Data Analysing Data What is a DBMS An application that holds the data manages the data allows us to access the data Access, Oracle, Sybase, MySQL Connect from VB to DBMS (Access) Using ADO/ODBC/OLEDB Can use ADO to connect to any DBMS that as an OLEDB interface

ODBC (Open Database Connectivity) is a standard Application Programming Interface (API) for accessing information from different database systems and different storage formats. The purpose of ODBC is to enable you to access a diverse selection of databases and data formats without having to learn the features and peculiarities of each. There is an ODBC driver for each popular database, which creates a database-independent environment. ODBC

OLEDB is Microsoft’s technology that allows applications to access data from multiple data providers. Any data source can be an OLE DB provider as long as the proper library routines allow low level access to the data. OLE DB is a standardized interface that allows the developer to use one set of programming tools to refer to data from any source. OLE DB

ActiveX Data Objects (ADO) is Microsoft’s latest database object model. The goal of ADO is to allow VB developers to use a standard set of objects to refer to any OLE DB source. ADO

Database -A container (usually a file or set of files) used to store organized data. Tables – A structured list of data of a specific type. Every table has a unique name. Fields –A field is a column in a table. A field contains a particular piece of information. All tables are made up of one or more fields. Fields have an associated data type. Records –Data in a table is stored in rows. The rows are called records. Database Definitions

Primary Key – A column or set or columns whose values uniquely identify every row in a table. To be a primary key a set of column or column must meet the following conditions: No two rows can have the same primary key value Every row must have a value in the Primary Key column (no Null values). Database Definitions

Customer Table

Field Record

Relationships

PK FK Primary Key – A column or set or columns whose values uniquely identify every row in a table. Foreign Key – A column in a table whose value must be listed in a primary key in another table or be null.

Schema Schema – Information about relationships and tables in a database.

What is SQL? SQL is a language designed specifically for communicating with databases. Advantages of SQL SQL is not a proprietary language. So multiple databases support SQL. Standard SQL is governed by the ANSI standards committee and I s called ANSI SQL, all major DBMS support ANSI SQL even if they have their own extensions. SQL is very powerful and also fairly simple. You will be able to perform very complex and sophisticated database operations by only knowing a few commands.

Relational Algebra Select – takes a horizontal subset of a table. Select retrieves certain rows that meet our user defined criteria. Project – takes a vertical subset of the table. Project retrieves only certain columns from a table) Join— Join allows us to pull together data from more than one table. The join forms a new table that contains the columns of both the tables. Rows are the concatenation of row from first table and row from second table.

Join

Rows in the joined table are the concatenation of row from first table and row from second table. Inner Join – only rows that have matching values in both table are included.

Outer Join Outer Join – all values from both tables included.