28-Jan-16db.ppt Relational Database Concepts. 28-Jan-16db.ppt relational database example contain tables tables contain records (rows) records are broken.

Slides:



Advertisements
Similar presentations
DB glossary (focus on typical SQL RDBMS, not XQuery or SPARQL)
Advertisements

Chapter 7 © 2013 Pearson Education, Inc. Publishing as Prentice Hall 1 Modern Database Management 11 th Edition Jeffrey A. Hoffer, V. Ramesh, Heikki Topi.
Relational Terminology. Normalization A method where data items are grouped together to better accommodate business changes Provides a method for representing.
Fundamentals, Design, and Implementation, 9/e Chapter 11 Managing Databases with SQL Server 2000.
FIRST COURSE Microsoft Access (Basics). XP Objectives Define the terms field, record, table, relational database, primary key, and foreign key. Learn.
CSC 2720 Building Web Applications Database and SQL.
Terms - data,information, file record, table, row, column, transaction, concurrency Concepts - data integrity, data redundancy, Type of databases – single-user,
Introduction –All information systems create, read, update and delete data. This data is stored in files and databases. Files are collections of similar.
Oracle Data Block Oracle Concepts Manual. Oracle Rows Oracle Concepts Manual.
Learningcomputer.com SQL Server 2008 – Entity Relationships in a Database.
Introduction to SQL Steve Perry
RELATIONSHIPS Generally there are two main database types: flat-file and relational.
SQL Server 7.0 Maintaining Referential Integrity.
SQL pepper. Why SQL File I/O is a great deal of code Optimal file organization and indexing is critical and a great deal of code and theory implementation.
SQL pepper. Why SQL File I/O is a great deal of code Optimal file organization and indexing is critical and a great deal of code and theory implementation.
WEEK 11 Database Design. TABLE INSTANCE CHARTS Create Tables.
1 Intro to JOINs SQL INNER JOIN SQL OUTER JOIN SQL FULL JOIN SQL CROSS JOIN Intro to VIEWs Simple VIEWs Considerations about VIEWs VIEWs as filters ALTER.
Relational Databases Database Driven Applications Retrieving Data Changing Data Analysing Data What is a DBMS An application that holds the data manages.
1 Client/Server Databases and the Oracle Relational Database.
SQL Server Indexes Indexes. Overview Indexes are used to help speed search results in a database. A careful use of indexes can greatly improve search.
1 Outline  What is a Primary Key?  AutoNumber primary keys  Single-field primary keys  Composite-field primary key  About Foreign Keys  Database.
® Microsoft Access 2010 Tutorial 9 Using Action Queries and Advanced Table Relationships.
One Customer has Many Pets; One Pet as One Customer, so Customer ID goes on Pet Table. One Pet has many Visits, but only one Visit refers.
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.
Access Review. Access Access is a database application A database is a collection of records and files organized for a particular purpose Access supports.
SQL Basic. What is SQL? SQL (pronounced "ess-que-el") stands for Structured Query Language. SQL is used to communicate with a database.
Database revision.
Relational Theory and Design
SQL LANGUAGE and Relational Data Model TUTORIAL Prof: Dr. Shu-Ching Chen TA: Hsin-Yu Ha.
Indexes and Views Unit 7.
PowerBuilder Online Courses - by Prasad Bodepudi Database Painter Primary & Foreign Keys Extended Attributes PowerBuilder System Tables Database Profiles.
Database Management Supplement 1. 2 I. The Hierarchy of Data Database File (Entity, Table) Record (info for a specific entity, Row) Field (Attribute,
Planning & Creating a Database By Ms. Naira Microsoft Access.
Constraints Lesson 8. Skills Matrix Constraints Domain Integrity: A domain refers to a column in a table. Domain integrity includes data types, rules,
CTFS Workshop Shameema Esufali Asian data coordinator and technical resource for the network
John Ykema, Director of Sales & Marketing. Agenda  Understanding the NEW Tool  Table JOINS & Database Views  Building your first report  Charts and.
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.
(SQL - Structured Query Language)
Learningcomputer.com SQL Server 2008 –Views, Functions and Stored Procedures.
INFANL01-3 ANALYSE 3 WEEK 3 March 2015 Institute voor Communication, Media en Informatietechnology.
CS130 Visual Basic Project 4 Lecture Fall New topics in project 4 Database, file (table), records, fields. Application that contains menus, submenus,
Chapter 3: Relational Databases
Howard Paul. Sequential Access Index Files and Data File Random Access.
IMS 4212: Constraints & Triggers 1 Dr. Lawrence West, Management Dept., University of Central Florida Stored Procedures in SQL Server.
Table Structures and Indexing. The concept of indexing If you were asked to search for the name “Adam Wilbert” in a phonebook, you would go directly to.
Query Optimization Cases. D. ChristozovINF 280 DB Systems Query Optimization: Cases 2 Executable Block 1 Algorithm using Indices (if available) Temporary.
Quiz Which of the following is not a mandatory characteristic of a relation? Rows are not ordered (Not required) Each row is a unique There is a.
® Microsoft Access 2010 Tutorial 9 Using Action Queries and Advanced Table Relationships.
INFORMATION TECHNOLOGY DATABASE MANAGEMENT. A database is a collection of information organized to provide efficient retrieval. The collected information.
1 Database Fundamentals Introduction to SQL. 2 SQL Overview Structured Query Language The standard for relational database management systems (RDBMS)
Copyright © 2016 Pearson Education, Inc. CHAPTER 7: ADVANCED SQL (PART I) Modern Database Management 12 th Edition Jeff Hoffer, Ramesh Venkataraman, Heikki.
SQL Basics Review Reviewing what we’ve learned so far…….
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 20: ACCESS CHAPTERS 5, 6, 7 Larry Reaves October 28,
Indexes By Adrienne Watt.
© 2016, Mike Murach & Associates, Inc.
SQL Server 2000 and Access 2000 limits
Applied CyberInfrastructure Concepts Fall 2017
Database Management  .
Databases and Information Management
Poor Naming Standards.
Normalization Referential Integrity
Optimistic Concurrency Internals
The PROCESS of Queries John Deardurff
The PROCESS of Queries John Deardurff Website: ThatAwesomeTrainer.com
Data Management Innovations 2017 High level overview of DB
The PROCESS of Queries John Deardurff
Chapter 11 Managing Databases with SQL Server 2000
SQL Server Fundamentals for Beginners
Tutorial 9 Using Action Queries and Advanced Table Relationships
Presentation transcript:

28-Jan-16db.ppt Relational Database Concepts

28-Jan-16db.ppt relational database example contain tables tables contain records (rows) records are broken into columns (fields) PK_ID Quote FK_Sources 1I don’t like that man; I must get to know him better. 4 2I wish I had an answer to that because I'm tired of answering that question. 1 3Right is right, even if everyone is against it, and wrong is wrong, even if everyone is for it. 3 4People are just as happy as they make up their minds to be. 4

28-Jan-16db.ppt first design for the MyQuotes database PK_ID QuoteBody QuoteSource 1I don’t like that man; I must get to know him better. Abraham Lincoln 2I wish I had an answer to that because I'm tired of answering that question. Yogi Berra 3Right is right, even if everyone is against it, and wrong is wrong, even if everyone is for it. William Penn 4People are just as happy as they make up their minds to be. Abe Lincoln Quotes table: Are records 1 and 4 from the same source?

28-Jan-16db.ppt a better design for the MyQuotes database PK_ID Quote FK_Sources 1I don’t like that man; I must get to know him better. 4 2I wish I had an answer to that because I'm tired of answering that question. 1 3Right is right, even if everyone is against it, and wrong is wrong, even if everyone is for it. 3 4People are just as happy as they make up their minds to be. 4 PK_SourceID Source 1Yogi Berra 2Mark Twain 3William Penn 4Abraham Lincoln Quotes1 table:Sources1 table: SELECT Quotes1.QuoteBody, Quotes1.FK_SourceID, Sources1.PK_SourceID, Sources1.SourceBody FROM Quotes1, Sources1 WHERE Quotes1.FK_SourceID=Sources1.PK_SourceID

28-Jan-16db.ppt “inner join” SQL statement SELECT Quotes1.QuoteBody, Quotes1.FK_SourceID, Sources1.PK_SourceID, Sources1.SourceBody FROM Quotes1, Sources1 WHERE Quotes1.FK_SourceID=Sources1.PK_SourceID theAnswer = myResultSet.getString(1) + " " + myResultSet.getString(4); “join” because it gets data from two different tables “inner” because each table only returns matching records

28-Jan-16db.ppt tables represent “relationships” one to one relationship (1 table) a table of Persons may directly contain the social security number one to many relationship (2 tables) a table of Sources a table of Quotes each Quotes record points to one Sources record many to many relationship (3 tables) a table of Persons a table of Skills a table of Person-Skills for each skill that a person has, there is a record here for each person that has a skill, there is a record here

28-Jan-16db.ppt Relational Database Concepts Relationships Contraints Triggers Stored procedures Tables Rows (Records) Columns (Fields) Views Indexes Clustered indexes Non-clustered indexes Keys Primary keys Composite keys Foreign keys Locking optimistic pessimistic Isolation Levels (for transactions) gets complicated!

28-Jan-16db.ppt the end of this PowerPoint file Hooray!