Nic Shulver Chris Introduction to databases Introduction Storage Temporary and Permanent Unstructured.

Slides:



Advertisements
Similar presentations
CIT 613: Relational Database Development using SQL Introduction to SQL.
Advertisements

Nic Shulver, Introduction to SQL Topics covered Structured Query Language What can it do? Advantages of SQL Why bother with SQL?
Databases Chapter Distinguish between the physical and logical view of data Describe how data is organized: characters, fields, records, tables,
3-1 Chapter 3 Data and Knowledge Management
Introduction to Databases CIS 5.2. Where would you find info about yourself stored in a computer? College Physician’s office Library Grocery Store Dentist’s.
Getting Started (Excerpts) Chapter One DAVID M. KROENKE’S DATABASE CONCEPTS, 2 nd Edition.
A Guide to SQL, Seventh Edition. Objectives Understand the concepts and terminology associated with relational databases Create and run SQL commands in.
Chapter 4: Database Management. Databases Before the Use of Computers Data kept in books, ledgers, card files, folders, and file cabinets Long response.
Getting Started Chapter One DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 5 th Edition.
Getting Started Chapter One DATABASE CONCEPTS, 7th Edition
CSC 2720 Building Web Applications Database and SQL.
Why Databases.
Using SQL for online databases A very quick introduction to SQL Data and tables Normalisation Relational databases The Structured Query Language Using.
Dale Roberts 1 Department of Computer and Information Science, School of Science, IUPUI Dale Roberts, Lecturer Computer Science, IUPUI
Getting Started Chapter One DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 6 th Edition.
ACCESS CHAPTER 1. OBJECTIVES Tables Queries Forms Reports Primary and Foreign Keys Relationship.
CHAPTER 9 DATABASE MANAGEMENT © Prepared By: Razif Razali.
Computing for Bioinformatics Introduction to databases What is a database? Database system components Data types DBMS architectures DBMS systems available.
Database Lecture # 1 By Ubaid Ullah.
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,
ASP.NET Programming with C# and SQL Server First Edition
1 Overview of Databases. 2 Content Databases Example: Access Structure Query language (SQL)
Introduction to SQL Steve Perry
Databases. Database A database is an organized collection of related data.
IE 423 – Design of Decision Support Systems Data modeling and database development.
MET280: Computing for Bioinformatics Introduction to databases What is a database? Not a spreadsheet. Data types and uses DBMS (DataBase Management System)
NMED 3850 A Advanced Online Design January 12, 2010 V. Mahadevan.
Database Fred Durao What is a database? A database is any organized collection of data. Some examples of databases you may encounter in.
1 Copyright © 2004, Oracle. All rights reserved. Introduction.
“INTRODUCTION TO DATABASE AND SQL”. Outlines 2  Introduction To Database  Database Concepts  Database Properties  What is Database Management System.
Instructor: Dema Alorini Database Fundamentals IS 422 Section: 7|1.
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.
Component 4: Introduction to Information and Computer Science Unit 6a Databases and SQL.
Introduction to Database Tonga Institute of Higher Education NOS 215.
Introduction to Oracle In June 1970,Dr E.F.Codd’s a published A paper entitled A relational model of Data for large shared data banks. This relational.
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.
1 Ch. 1: Sharing Knowledge and Success  Oracle is an Object-Relational Database (ORDBMS).  RDBMS allows you to put the data in, keep the data, get it.
Nic Shulver, Introduction to SQL Topics covered Structured Query Language What can it do? Advantages of SQL Why bother with SQL?
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,
Getting Started Chapter One DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 4 th Edition.
CS453: Databases and State in Web Applications (Part 2) Prof. Tom Horton.
Database Management Systems (DBMS)
Introduction to Information and Computer Science
CIT 613: Relational Database Development using SQL Introduction to SQL DeSiaMorePowered by DeSiaMore 1.
Databases Chapter Copyright © 2011 by The McGraw-Hill Companies, Inc. All rights reserved.
Instructor: Pavlos Pavlikas1 How Data is Stored Chapter 8.
A Guide to SQL, Eighth Edition Chapter Six Updating Data.
ECMM6018 Enterprise Networking For Electronic Commerce Tutorial 6 CGI/Perl and databases.
Introduction to Databases Angela Clark University of South Alabama.
Relational Database Systems Bartosz Zagorowicz. Flat Databases  Originally databases were flat.  All information was stored in a long text file, called.
Introduction to Core Database Concepts Getting started with Databases and Structure Query Language (SQL)
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
Introduction to Oracle. Before Computerized Database Organization use a set of data files to store each individual data. – The file contains individual.
Fundamental of Database Systems
“Introduction To Database and SQL”
Databases and SQL Databases SQL Rev 1.5
ICT Database Lesson 1 What is a Database?.
“Introduction To Database and SQL”
Introduction to Database Management System
Database.
Structured Query Language
DATABASES WHAT IS A DATABASE?
Getting Started Chapter One DATABASE CONCEPTS, 5th Edition
Getting Started Chapter One DATABASE CONCEPTS, 4th Edition
Database SQL.
Lecuter-1.
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:

Nic Shulver Chris Introduction to databases Introduction Storage Temporary and Permanent Unstructured and Structured Ways to structure information Simple databases Relationships, example relationship Some Database Terminology SQL – Structured Query Language

Nic Shulver Chris Introduction to databases Storage – Temporary and Permanent Many applications store information for later use Storage may be temporary or permanent Permanent storage is usually in the form of a file (e.g. a plain text file) stored on a physical disc drive Many applications add, modify and retrieve information from structured data stores, often called databases

Nic Shulver Chris Introduction to databases Storage – Unstructured and Structured Unstructured information (e.g. the stream of words in a speech) is easy to store in a plain text file Structured information (name, occupation, date of birth, eye colour – for a set of people) is easy to store in a database What is the advantage of using a database? (The personal information could be stored in a text file, after all.)

Nic Shulver Chris Introduction to databases Ways to structure information A lot of collected data is repetitive in form Data may be repetitive in content, too For example, if we have the following information for 15 people; [Age in years], [Name], [Height in metres] then we have 15 records of 3 fields, in this format; [whole number], [text], [fractional number]

Nic Shulver Chris Introduction to databases More example information Here is some simple information: Danny DeVito(USA), Hugh Jackman (Australia), Halle Berry(USA), Patrick Stewart (UK), … This kind of information has a simple structure or format We can put the information into a table

Nic Shulver Chris Introduction to databases Table (with repeated information) No.First NameLast NameOrigin 1DannyDeVitoUnited States of America 2ArnoldSchwarzeneggerAustria 3HalleBerryUnited States of America 4PatrickStewartUnited Kingdom 5KarismaKapoorIndia 6HughJackmanAustralia 7AlecGuinnessUnited Kingdom 8JackNicholsonUnited States of America 9KylieMinogueAustralia

Nic Shulver Chris Introduction to databases Table (no repeated information) No.First NameLast NameOrigin 1DannyDeVito1 2ArnoldSchwarzenegger2 3HalleBerry1 4PatrickStewart3 5KarismaKapoor5 6HughJackman4 7AlecGuinness3 8JackNicholson1 9KylieMinogue4 No.Country Name 1 United States of America 2 Austria 3 United Kingdom 4 Australia 5 India This is an example of a simple one-to-many relationship.

Nic Shulver Chris Introduction to databases Table (with repeated information) No.First Name Last NameOriginFilms 1DannyDeVitoUnited States of America Batman Returns Twins 2ArnoldSchwarzeneggerAustriaTerminator True Lies Twins

Nic Shulver Chris Introduction to databases Tables (repeated information) No.First NameLast NameOrigin 1DannyDeVito1 2ArnoldSchwarzenegger2 No.Country Name 1United States of America 2Austria 3United Kingdom 4Australia 5India This is an example of several linked tables No.Films 1Batman Returns 2Terminator 1Hook 1Twins 2

Nic Shulver Chris Introduction to databases Repeated Information The previous example does not solve the problem What about the other actors/actresses in the films? Databases can soon get complicated Need to think carefully about structure before you start – may be difficult later on DSA will only need simple structures in DB

Nic Shulver Chris Introduction to databases Some Database Terminology Rows and Columns Broad view of the table – each row is a record, each column is a set of fields This is analogous to a spreadsheet view Records and Fields Detailed view of the information Each record (entry) in the database is made up of fields, possibly with some fields from joined tables

Nic Shulver Chris Introduction to databases Relationships and Joins Tables may be joined together – this is very powerful but can get complex Database systems which allow join relationships are known as Relational Databases (see RDSD) To build, use and maintain joins between tables, it is often easiest to use tools built into database programs (e.g. MS Access, SQLyog)

Nic Shulver Chris Introduction to databases SQL – Structured Query Language Structured Query Language is the language of databases It is very widely used in industry – look for mySQL, PL/SQL, SQLplus, Oracle SQL and so on We can use little chunks of SQL in our applications to ask a database for information (i.e query the database)

Nic Shulver Chris Introduction to databases Structured Query Language Structured Query Language (SQL), is a set of commands that all programs and users may use to access data within databases Application programs and tools often allow users to access SQL databases without directly using SQL, but these applications in turn must use SQL when executing the user’s request

Nic Shulver Chris Introduction to databases History of SQL In June 1970 in the Association of Computer Machinery (ACM) journal, Communications of the ACM published the paper, “A Relational Model of Data for large Shared Data Banks,” by Dr. E. F. Codd Codd’s model is the definitive model for relational database management systems (RDBMS) IBM Corporation, Inc. developed Structured English Query Language(SEQUEL) using Codd’s model SEQUEL later became SQL, the standard RDBMS language

Nic Shulver Chris Introduction to databases What can it do? SQL provides commands for a variety of tasks including: querying data, inserting, updating, and deleting rows in a table, creating, replacing, altering, and dropping objects, controlling access to the database and its objects, guaranteeing database consistency and integrity.

Nic Shulver Chris Introduction to databases Conclusion We need to store some information in a structured way Simple tables are conceptually simple Relational databases provide a powerful and convenient way to store data Structured Query Language provides us with a way to interact with databases