What is a Database By: Cristian Dubon.

Slides:



Advertisements
Similar presentations
Database management system (DBMS)  a DBMS allows users and other software to store and retrieve data in a structured way  controls the organization,
Advertisements

Relational Algebra, Join and QBE Yong Choi School of Business CSUB, Bakersfield.
Virtual training week 4 structured query language (SQL)
Concepts of Database Management Sixth Edition
Concepts of Database Management Seventh Edition
Accounting System Design
Introduction to Structured Query Language (SQL)
Midterm Review Lecture 14b. 14 Lectures So Far 1.Introduction 2.The Relational Model 3.Disks and Files 4.Relational Algebra 5.File Org, Indexes 6.Relational.
Databases Chapter Distinguish between the physical and logical view of data Describe how data is organized: characters, fields, records, tables,
12 CHAPTER DATABASES Databases are the key to accessing information throughout our lives. Used in hospitals, grocery stores, schools, department stores,
Introduction to Structured Query Language (SQL)
30-Jun-15 SQL A Brief Introduction. SQL SQL is Structured Query Language Some people pronounce SQL as “sequel” Other people insist that only “ess-cue-ell”
Introduction to Structured Query Language (SQL)
1 Chapter 2 Reviewing Tables and Queries. 2 Chapter Objectives Identify the steps required to develop an Access application Specify the characteristics.
Concepts of Database Management Sixth Edition
DATABASES AND SQL. Introduction Relation: Relation means table(data is arranged in rows and columns) Domain : A domain is a pool of values appearing in.
INFORMATION TECHNOLOGY IN BUSINESS AND SOCIETY SESSION 16 – SQL SEAN J. TAYLOR.
IST Databases and DBMSs Todd S. Bacastow January 2005.
Concepts of Database Management, Fifth Edition
Database Lecture # 1 By Ubaid Ullah.
CPS120: Introduction to Computer Science Information Systems: Database Management Nell Dale John Lewis.
Copyright © 2003 by Prentice Hall Module 4 Database Management Systems 1.What is a database? Data hierarchy and data organization Field, record, file,
Copyright © 2003 by Prentice Hall Computers: Tools for an Information Age Chapter 13 Database Management Systems: Getting Data Together.
ASP.NET Programming with C# and SQL Server First Edition
M Taimoor Khan Course Objectives 1) Basic Concepts 2) Tools 3) Database architecture and design 4) Flow of data (DFDs)
CPS120: Introduction to Computer Science Lecture 19 Introduction to SQL.
Concepts of Database Management Seventh Edition
Introduction to Databases Trisha Cummings. What is a database? A database is a tool for collecting and organizing information. Databases can store information.
Structure Query Language SQL. Database Terminology Employee ID 3 3 Last name Small First name Tony 5 5 Smith James
Using Special Operators (LIKE and IN)
Concepts of Database Management Seventh Edition
Copyright © 2015 McGraw-Hill Education. All rights reserved. No reproduction or distribution without the prior written consent of McGraw-Hill Education.
DataBase Management System What is DBMS Purpose of DBMS Data Abstraction Data Definition Language Data Manipulation Language Data Models Data Keys Relationships.
Visual C# 2012 How to Program © by Pearson Education, Inc. All Rights Reserved.
6 1 Lecture 8: Introduction to Structured Query Language (SQL) J. S. Chou, P.E., Ph.D.
Concepts of Database Management Eighth Edition Chapter 3 The Relational Model 2: SQL.
Database Systems Design, Implementation, and Management Coronel | Morris 11e ©2015 Cengage Learning. All Rights Reserved. May not be scanned, copied or.
+ Information Systems and Databases 2.2 Organisation.
Database Fundamental & Design by A.Surasit Samaisut Copyrights : All Rights Reserved.
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,
AL-MAAREFA COLLEGE FOR SCIENCE AND TECHNOLOGY INFO 232: DATABASE SYSTEMS CHAPTER 7 (Part II) INTRODUCTION TO STRUCTURED QUERY LANGUAGE (SQL) Instructor.
Database Management Supplement 1. 2 I. The Hierarchy of Data Database File (Entity, Table) Record (info for a specific entity, Row) Field (Attribute,
SqlExam1Review.ppt EXAM - 1. SQL stands for -- Structured Query Language Putting a manual database on a computer ensures? Data is more current Data is.
1 2 Concepts of Database Management, 4 th Edition, Pratt & Adamski Chapter 2 The Relational Model 1: Introduction, QBE, and Relational Algebra.
(SQL - Structured Query Language)
Chapter 3: Relational Databases
IS2803 Developing Multimedia Applications for Business (Part 2) Lecture 5: SQL I Rob Gleasure robgleasure.com.
7 1 Database Systems: Design, Implementation, & Management, 7 th Edition, Rob & Coronel 7.6 Advanced Select Queries SQL provides useful functions that.
SQL: Structured Query Language It enables to create and operate on relational databases, which are sets of related information stored in tables. It is.
LM 5 Introduction to SQL MISM 4135 Instructor: Dr. Lei Li.
MICROSOFT ACCESS – CHAPTER 5 MICROSOFT ACCESS – CHAPTER 6 MICROSOFT ACCESS – CHAPTER 7 Sravanthi Lakkimsety Mar 14,2016.
 CONACT UC:  Magnific training   
LECTURE TWO Introduction to Databases: Data models Relational database concepts Introduction to DDL & DML.
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.
Concepts of Database Management, Fifth Edition Chapter 3: The Relational Model 2: SQL.
Understanding Core Database Concepts Lesson 1. Objectives.
Databases and DBMSs Todd S. Bacastow January
Fundamentals of DBMS Notes-1.
SQL Query Getting to the data ……..
Prepared by : Moshira M. Ali CS490 Coordinator Arab Open University
Quiz Questions Q.1 An entity set that does not have sufficient attributes to form a primary key is a (A) strong entity set. (B) weak entity set. (C) simple.
SQL 101.
Database.
SQL Fundamentals in Three Hours
Contents Preface I Introduction Lesson Objectives I-2
Relational Database Design
DATABASES WHAT IS A DATABASE?
Understanding Core Database Concepts
Shelly Cashman: Microsoft Access 2016
Presentation transcript:

What is a Database By: Cristian Dubon

What is a Database? The definition of a database is an ordered compilation of records or information that is accumulated in a computer system. Databases are intended to offer a structured system for filing, sorting, managing, and retrieving information electronically.

Advancements In Databases The term “data base” started being used around 1964 by worker in military information systems. The idea of shared applications and data by multiple users at once was great for efficiency. Early database data structure classes worked off of punch cards. When magnetic tape was introduced it advanced the technology but it wasn’t till the RAM-based data structures such as arrays, tables and lists that database truly showed the effect it would have on information storage and distribution. Most databases today are large hard drives, or servers, run by a program called a database management system, that dictates how information is filed, managed, sorted, and retrieved.

Types of Databases The hierarchical model database is a tree like structure that branches into other folders, each child data has only one parent data, the way most computer operating system display folders to users. Each link is nested to keep data organized on the same level. The defining feature of a network model is that a record is stored with a link to other records allowing the branches to overlap, here a child data can have more than one parent data, working like a shortcut on you desktop. These two models are not as flexible or fast in the retrieval of data because the search follows a trickle down pattern.

Types of Databases The relational model is the most commonly used database model and an exceptionally potent tool. The relational database model is based on a table that is organized by rows, or records, and columns, or fields, with a special field reserved for the key. The key field serves as the identifying marker for data, with the possibility that a unique field can act as a primary key. A table can have many records and each record can have many fields. This model is designed to allow data to be processed with eight mathematical operations, that fall into two categories, set operations and relational operations, as well as combining the operations. The set operations are union, difference, intersection and Cartesian product, leaving the operations join, projection, selection and division, as the relational operations.

Relational Databases The set operations act on sets of rows to produce a new set of rows, determining which rows from the input appear in the output. The union and intersection operations do just as they would in math when you say A union B or A intersection B. Union takes to two or more tables with related fields and combines the tables together to get a new table that consist of all rows with no duplicates entries. Intersection takes two or more related tables and extracts only the rows that the tables have in common and outputs a new table. The different operation can extract all of the rows from the first table that are not included in the second table producing a new table of either A-B or B-A, depending on which rows are to be excluded from the new table, remember the tables have to consist of the same fields. The Cartesian product operation is a process that merges all rows in the two tables, for example two tables of three rows resulted in a table of nine rows. However unlike the other operation this operation requires the fields are not related.

Relational Databases The relational operations work differently from the set operations. The projection operation can extract columns from one or more tables. The selection operation can extract rows from one or more tables. So, one operation act vertical on tables while the other acts horizontally on tables. The join operation literally takes two tables that have at least one field in common and merges the tables around that one common field, outputting a well organized table that gives more data than either table alone. The division operation extracts the rows from a table that match values in the columns of the second table, but returns only the columns that do not exist in the second table. Remember that the new tables themselves can have operations used on them.1

Before Building A Database Databases are built based on an entity-relationship model in order to understand the conditions that govern the data you want to place in the database and how it should be arranged. An entity is a real-world object or thing. The relation must be found between them its either one-to-one, one-to-many, or many-to-many. In a many-to-many relation, M objects have a relation with N objects; the number of associations between entities is called cardinality. From this an unnormalized form is obtained, a table in which items that appear more than once have not been removed.

Before Building A Database This table is then divided into smaller, simpler tables and primary and foreign key are decided on to allow interaction between tables. In a relational database, a value is called functionally dependent if that value determines values in other columns. In the second normal form, the table is divided so that values in other columns are functionally dependent on the primary key. In the third normal form, a table is divided so that a value is not determined by any non-primary key. In a relational database, a value is called transitively dependent if that value determines values in other columns indirectly, which is part of functionally dependent operation. In the third normal form, the table is divided so that transitively dependent values are removed.

Structured Query Language (SQL) This is done using a Structured Query Language (SQL) also called sequel SQL’s has three distinct types of commands, data definition language (DDL), data manipulation language (DML), and data control Language (DCL). The DDL commands that SQL creates the framework of a database, creates a table within a database, as well as changing and deleting tables. The DML commands allow for manipulation of data, like inserting, deleting, and updating data in tables. It also has commands that allow you to search for data. The DCL commands offers the ability to control a database so that no data conflicts do not happen as multiply user enter data.

The SQL statement Syntax CREATE TABLE. The syntax inside a table depends on the kind of database being used. When a table is created the column names must be given, a primary key or foreign key is given to each column. Constraints such as amount or types of character to be in a certain row may have to be given to prevent data conflict later on. The INSERT, UPDATE, and DELETE statement do as they describe to data from tables made by the CREATE TABLE statement, considering that any of the database’s constraints are not violated. Next is the view table that is viewed by a user of the database. It was created by extracting data from the selected tables. This table is derived from these selected tables that are called base tables. Structured Query Language use basic data search functions in the form of query-type statements as input. To search for a certain set of tables, commands like select, from, where, group by, having, and so on are used. In these statement comparison operators like less than (<), greater than (>), equal to (=), not equal to (<>), less than or equal to (<=), greater than or equal to (>=), and between x and y. Logical operators such as like, and, or and not are used to create more complex comparison statements. There are also conditions that let you search for pattern matching using wildcard characters. Such as * to search all, _ plus a letter before or after to retrieve matches with two characters that start or end with a specific letter, % plus a letter before or after to retrieve matches with any number of characters that start or end with a specific letter, and is null if you are looking for empty records. Aggregate functions or set functions like maximum and minimum values, number of items, and sum, are used to collect and output new tables.