DAY 9: DATABASES Rohit February 17, 2016 1.

Slides:



Advertisements
Similar presentations
Brian Alderman | MCT, CEO / Founder of MicroTechPoint Pete Harris | Microsoft Senior Content Publisher.
Advertisements

Maintenance Modifying the data –Add records –Delete records –Update records Modifying the design –Add fields into tables –Remove fields from a table –Change.
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.
1004INT Information Systems Week 10 Databases as Business Tools.
Chapter 4 Relational Databases Copyright © 2012 Pearson Education, Inc. publishing as Prentice Hall 4-1.
1 Chapter 2 Reviewing Tables and Queries. 2 Chapter Objectives Identify the steps required to develop an Access application Specify the characteristics.
Databases and Database Management Systems
Information Storage and Retrieval CS French Chapter 3.
Chapter 4 Relational Databases Copyright © 2012 Pearson Education 4-1.
Database Software Application
MS Access 2007 IT User Services - University of Delaware.
Databases. Objectives Define what a database is. Understand the difference between a flat and relational database Design and create a relational database.
DAY 21: MICROSOFT ACCESS – CHAPTER 5 MICROSOFT ACCESS – CHAPTER 6 MICROSOFT ACCESS – CHAPTER 7 Akhila Kondai October 30, 2013.
Chapter 5 Database Processing.
Database Lecture # 1 By Ubaid Ullah.
Unit 18: Database Modelling
CPS120: Introduction to Computer Science Information Systems: Database Management Nell Dale John Lewis.
DATABASE MANAGEMENT SYSTEMS BASIC CONCEPTS 1. What is a database? A database is a collection of data which can be used: alone, or alone, or combined /
DATABASE MANAGEMENT SYSTEMS BASIC CONCEPTS 1. What is a database? A database is a collection of data which can be used: alone, or alone, or combined /
1 Advanced Computer Programming Databases. Overview What is a database? Database Basics Database Components Data Models Normalization Database Design.
DAY 15: ACCESS CHAPTER 2 Larry Reaves October 7,
MICROSOFT ACCESS 2007 BTA – Spring What is Access?  Microsoft Access is a database management system…this means that it contains database information.
MS Access Database Connection. Database? A database is a program that stores data and records in a structured and queryable format. The tools that are.
2440: 141 Web Site Administration Database Management Using SQL Professor: Enoch E. Damson.
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.
Chapter 15: Using LINQ to Access Data in C# Programs.
Databases. Database A database is an organized collection of related data.
Computer Science 101 Database Concepts. Database Collection of related data Models real world “universe” Reflects changes Specific purposes and audience.
CSC 240 (Blum)1 Introduction to Database. CSC 240 (Blum)2 Data versus Information When people distinguish between data and information, –Data is simply.
CTFS Workshop Shameema Esufali Suzanne Lao Data coordinators and technical resources for the network
GUS: 0262 Fundamentals of GIS Lecture Presentation 3: Relational Data Model Jeremy Mennis Department of Geography and Urban Studies Temple University.
Relational Databases (MS Access)
DAY 12: DATABASE CONCEPT Tazin Afrin September 26,
Copyright © Curt Hill The Relational Model of Database Basic organization and terms.
Access Chapter 2: Relational Database Objectives Design data Create tables Understand table relationships Understand data types, key, & field properties.
CS 1308 Computer Literacy and the Internet
M1G Introduction to Database Development 5. Doing more with queries.
ITGS Databases.
Access Review. Access Access is a database application A database is a collection of records and files organized for a particular purpose Access supports.
Database revision.
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,
Unit 5 Advanced Databases The Purpose and features of a relational database.
Database Management Supplement 1. 2 I. The Hierarchy of Data Database File (Entity, Table) Record (info for a specific entity, Row) Field (Attribute,
Database and Information Management Chapter 9 – Computers: Understanding Technology, 3 rd edition.
Lesson 2: Designing a Database and Creating Tables.
DAY 9: DATABASES Rohit September 21,
Use of ICT in Data Management AS Applied ICT. Back to Contents Back to Contents.
Planning & Creating a Database By Ms. Naira Microsoft Access.
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.
Instructor: Pavlos Pavlikas1 How Data is Stored Chapter 8.
Chapter 13.3: Databases Invitation to Computer Science, Java Version, Second Edition.
Connecting (relating) Data Tables to get Custom Records (Queries) Database Basics.
Chapter 3: Relational Databases
Introduction to Core Database Concepts Getting started with Databases and Structure Query Language (SQL)
MICROSOFT ACCESS – CHAPTER 5 MICROSOFT ACCESS – CHAPTER 6 MICROSOFT ACCESS – CHAPTER 7 Sravanthi Lakkimsety Mar 14,2016.
Copyright © it’sLearning 365. All rights reserved. DATABASE CONCEPTS Understanding Databases Start …
SQL Basics Review Reviewing what we’ve learned so far…….
Database Presentation BIM, Mrs. Bailey. **Database Notes** Use new sheet of paper! Microsoft Access - known as a database management system or DBMS Database.
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.
DAY 14: DATABASES RAHUL KAVI February 25,
CompSci 280 S Introduction to Software Development
Prepared By: Bobby Wan Microsoft Access Prepared By: Bobby Wan
Databases Key Revision Points.
Chapter 4 Relational Databases
Microsoft Access 2003 Illustrated Complete
Database Management  .
Databases A brief introduction….
MS Access Database Connection
PHP and MySQL.
Databases and Information Management
Presentation transcript:

DAY 9: DATABASES Rohit February 17,

DATABASES A database is an organized collection of data There are many types of databases –Flat File –XML –Workbooks –Relational –Key-Value Store 2

POPULAR DROP-OUT BILLIONAIRES (IMPORTANCE OF COMPUTER SKILLS) 3

WHY LEARN THESE SKILLS? Database skills are an essential part of basic computer skills like Programming.Programming Limitless possibilities with a 800$ computer from the comfort of home (consume or produce). Create own website/blog (commercial, personal). Computer skills like Programming, Database Management, Blogging are like culinary skills. Business Plan competition. 4

WHERE ARE DATABASES USED? Storing bank records, corporate data, etc. Storing login credentials for websites/blogs. Store content of popular websites like Flickr.com, YouTube.com, etc. Store content of popular services like Netflix, Instagram,Pandora, iTunes, Spotify, Game Center (iOS), App Store, Play Store (Android App Store). 5

WHERE ARE DATABASES USED? 6 Source: oracle.com

RELATIONAL DATABASES Access is a relational database –A relational database is a collection of data items organized as a set of formally described tables from which data can be accessed easily –In addition to table definitions, there are also relationships between tables 7

RECORDS AND FIELDS REVIEW A single entry in a table is called a “record” –A record (row) is one or more pieces of data about a single entity Each piece of data in a record is a “field” (column). A table definition lists all the fields the records in that table have –The definition can define default values for fields –Some fields are required for each record, others are optional 8

KEYS Each table has to have a “primary key”. This is a field, or a combination of fields that will be unique to each record Keys allow you to identify a particular record You can use the key in other tables to reference the record 9

INDEXES Indexes are an ordering of a key or other field that is computed on creation and kept up to date as the database is updated By using the index, the database software is able to quickly retrieve the record given the field value 10

RELATIONSHIPS By including a the key from one table as a field in a different table, we create a relationship between the two tables This allows us to link the data between two tables In the second table, the field is known as a “foreign key” 11

EXAMPLE Two tables: People, PhoneNumbers –People: id, first_name, last_name, birthdate –PhoneNumbers: id, country_code, area_code, number, person_id PhoneNumbers.person_id would hold the same value as People.id for phone numbers that belong to the given person 12

CASCADING If the records with the foreign key are only used as an extension of the original table, you may want to cascade updates and/or deletes –Deletes: If the original record is deleted, the foreign key record is deleted –Updates: If the key of the original record is changed, the foreign key is updated to match 13

PLANNING DATABASES Define what tables you need Define what fields belong in each table Define what data types each field should be Define default values for each field Choose between required and optional 14

NORMALIZATION Normalization is a process of organizing fields and tables to minimize redundancy of data –DRY (don’t repeat yourself) –If you repeat yourself, when you need to make a change you have to change it everywhere or you will have problems 15

SQL SQL is structured query language SQL is how Access interacts with data under the hood INSERT INTO ‘table’ (‘field1’, ‘field2’) VALUES (‘value1’, ‘value2’) UPDATE ‘table’ SET ‘field1’ = ‘value1’ WHERE ‘field2’ = ‘value2’ DELETE FROM ‘table’ WHERE ‘field’ = ‘value’ SELECT ‘field1’ FROM ‘table’ WHERE ‘field2’ = ‘value’ 16

COMMON EXCEL ISSUES Switch Row/Column Merge (but not center) Relative/Absolute/Mixed References 17