Database Lecture # 1 By Ubaid Ullah.

Slides:



Advertisements
Similar presentations
What is a Database By: Cristian Dubon.
Advertisements

Basic SQL Introduction Presented by: Madhuri Bhogadi.
Accounting System Design
Brian Alderman | MCT, CEO / Founder of MicroTechPoint Pete Harris | Microsoft Senior Content Publisher.
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”
Chapter 4 Relational Databases Copyright © 2012 Pearson Education, Inc. publishing as Prentice Hall 4-1.
IMS1907 Database Systems Summer Semester 2004/2005 Lecture 2 Relational DBMS Software An Overview of Microsoft Access.
Working with SQL and PL/SQL/ Session 1 / 1 of 27 SQL Server Architecture.
Chapter 4 Relational Databases Copyright © 2012 Pearson Education 4-1.
DAT702.  Standard Query Language  Ability to access and manipulate databases ◦ Retrieve data ◦ Insert, delete, update records ◦ Create and set permissions.
Database Management System Lecture 2 Introduction to Database management.
Chapter 9 SQL and RDBMS Part C. SQL Copyright 2005 Radian Publishing Co.
Chapter 5 Lecture 2. Principles of Information Systems2 Objectives Understand Data definition language (DDL) and data dictionary Learn about popular DBMSs.
ASP.NET Programming with C# and SQL Server First Edition
 SQL stands for Structured Query Language.  SQL lets you access and manipulate databases.  SQL is an ANSI (American National Standards Institute) standard.
Module Title? DBMS Introduction to Database Management System.
I Copyright © 2004, Oracle. All rights reserved. Introduction.
Database Technical Session By: Prof. Adarsh Patel.
Introduction to SQL Steve Perry
1 INTRODUCTION TO DATABASE MANAGEMENT SYSTEM L E C T U R E
CIS 103 — Applied Computer Technology Last Edited: September 17, 2010 by C.Herbert Using Database Management Systems.
© 2007 by Prentice Hall (Hoffer, Prescott & McFadden) 1 Introduction to SQL.
© 2009 Pearson Education, Inc. Publishing as Prentice Hall 1 UNIT 6: Chapter 7: Introduction to SQL Modern Database Management 9 th Edition Jeffrey A.
CPS120: Introduction to Computer Science Lecture 19 Introduction to SQL.
Relational Databases Database Driven Applications Retrieving Data Changing Data Analysing Data What is a DBMS An application that holds the data manages.
DAY 12: DATABASE CONCEPT Tazin Afrin September 26,
SQL SQL Server : Overview SQL : Overview Types of SQL Database : Creation Tables : Creation & Manipulation Data : Creation & Manipulation Data : Retrieving.
“INTRODUCTION TO DATABASE AND SQL”. Outlines 2  Introduction To Database  Database Concepts  Database Properties  What is Database Management System.
Lecture2: Database Environment Prepared by L. Nouf Almujally 1 Ref. Chapter2 Lecture2.
SQL: DDL. SQL Statements DDL - data definition language –Defining and modifying data structures (metadata): database, tables, views, etc. DML - data manipulation.
MySQL Database Management Systems Universitas Muhammadiyah Surakarta Yogiek Indra Kurniawan.
6 1 Lecture 8: Introduction to Structured Query Language (SQL) J. S. Chou, P.E., Ph.D.
© 2009 Pearson Education, Inc. Publishing as Prentice Hall 1 Chapter 7 (Part a): Introduction to SQL Modern Database Management 9 th Edition Jeffrey A.
SQL Fundamentals  SQL: Structured Query Language is a simple and powerful language used to create, access, and manipulate data and structure in the database.
Creating and Maintaining Geographic Databases. Outline Definitions Characteristics of DBMS Types of database Relational model SQL Spatial databases.
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.
Chapter 4 Constraints Oracle 10g: SQL. Oracle 10g: SQL 2 Objectives Explain the purpose of constraints in a table Distinguish among PRIMARY KEY, FOREIGN.
Database Fundamental & Design by A.Surasit Samaisut Copyrights : All Rights Reserved.
Visual Programing SQL Overview Section 1.
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,
Database Basics BCIS 3680 Enterprise Programming.
Session 1 Module 1: Introduction to Data Integrity
SQL.. AN OVERVIEW lecture3 1. Overview of SQL 2  Query: allow questions to be asked of the data and display only the information required. It can include.
Relational Database Management System(RDBMS) Structured Query Language(SQL)
Distribution of Marks For Second Semester Internal Sessional Evaluation External Evaluation Assignment /Project QuizzesClass Attendance Mid-Term Test Total.
Chapter 3: Relational Databases
SQL Introduction to database and SQL. Chapter 1: Databases and Database Users 6 Introduction to Databases Databases touch all aspects of our lives. Examples:
CSC314 DAY 8 Introduction to SQL 1. Chapter 6 © 2013 Pearson Education, Inc. Publishing as Prentice Hall SQL OVERVIEW  Structured Query Language  The.
Introduction to Core Database Concepts Getting started with Databases and Structure Query Language (SQL)
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.
Agenda for Today  DATABASE Definition What is DBMS? Types Of Database Most Popular Primary Database  SQL Definition What is SQL Server? Versions Of SQL.
SQL. Structured Query Language ( SQL is a language of database, it includes database creation, deletion, fetching rows and modifying rows etc. ) SQL is.
Fundamentals of DBMS Notes-1.
“Introduction To Database and SQL”
The Basics of Data Manipulation
Introduction to Structured Query Language(SQL)
Introduction To Database Systems
Chapter 4 Relational Databases
Database Management  .
“Introduction To Database and SQL”
Lecturer: Mukhtar Mohamed Ali “Hakaale”
Database.
The Basics of Data Manipulation
Structured Query Language
SQL .. An overview lecture3.
DATABASE Purpose of database
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:

Database Lecture # 1 By Ubaid Ullah

Today Topics Database Introduction Database Management System Popular RDBMS What is SQL? Why SQL? SQL Commands (DML, DCL, DDL) What is table? What is field? What is record or row? What is column? What is NULL value? SQL Constraints Commonly used Constraints

Database Introduction A database is a collection of data organized in a particular way. A database is stored as a file or a set of files on magnetic disk or tape, optical disk, or some other secondary storage device A relational database uses the concept of linked two-dimensional tables which comprise of rows and columns

Database Management System (DBMS) A Database Management System (DBMS), is a software program that enables the creation and management of databases. Most of today's database systems are referred to as a Relational Database Management System (RDBMS), because of their ability to store related data across multiple tables

Popular RDBMS Some of the more popular relational database management systems include: Microsoft Access Filemaker Microsoft SQL Server MySQL Oracle

What is SQL? SQL is Structured Query Language, which is a computer language for storing, manipulating and retrieving data stored in relational database. SQL is an ANSI (American National Standards Institute) standard. All relational database management systems like MySQL, MS Access, Oracle, Sybase, Informix, postgres and SQL Server use SQL as standard database language.

Why SQL? Allows users to access data in relational database management systems. Allows users to describe the data. Allows users to define the data in database and manipulate that data. Allows to embed within other languages using SQL modules, libraries & pre-compilers. Allows users to create and drop databases and tables. Allows users to create view, stored procedure, functions in a database. Allows users to set permissions on tables, procedures, and views

SQL Commands The standard SQL commands to interact with relational databases are CREATE, SELECT, INSERT, UPDATE, DELETE and DROP. These commands can be classified into groups based on their nature: DDL - Data Definition Language DML - Data Manipulation Language DCL - Data Control Language

DDL - Data Definition Language Command Description CREATE Creates a new table, a view of a table, or other object in database ALTER Modifies an existing database object, such as a table. DROP Deletes an entire table, a view of a table or other object in the database.

DML - Data Manipulation Language Command Description SELECT Retrieves certain records from one or more tables INSERT Creates a record UPDATE Modifies records DELETE Deletes records

DCL - Data Control Language Command Description GRANT Gives a privilege to user REVOKE Takes back privileges granted from user

What is table? The data in RDBMS is stored in database objects called tables. The table is a collection of related data entries and it consists of columns and rows. A table is the most common and simplest form of data storage in a relational database

What is field? Every table is broken up into smaller entities called fields. The fields in the CUSTOMERS table consist of ID, NAME, AGE, ADDRESS and SALARY. A field is a column in a table that is designed to maintain specific information about every record in the table

What is record or row? A record, also called a row of data, is each individual entry that exists in a table A record is a horizontal entity in a table

What is column? A column is a vertical entity in a table that contains all information associated with a specific field in a table. A column in the CUSTOMERS table is ADDRESS, which represents location description 

What is NULL value? A NULL value in a table is a value in a field that appears to be blank, which means a field with a NULL value is a field with no value It is very important to understand that a NULL value is different than a zero value or a field that contains spaces A field with a NULL value is one that has been left blank during record creation

SQL Constraints Constraints are the rules enforced on data columns on table These are used to limit the type of data that can go into a table This ensures the accuracy and reliability of the data in the database Constraints could be column level or table level Column level constraints are applied only to one column where as table level constraints are applied to the whole table

Commonly used Constraints NOT NULL Constraint: Ensures that a column cannot have NULL value. DEFAULT Constraint: Provides a default value for a column when none is specified. UNIQUE Constraint: Ensures that all values in a column are different. PRIMARY Key: Uniquely identified each rows/records in a database table. FOREIGN Key: Uniquely identified a rows/records in any another database table. CHECK Constraint: The CHECK constraint ensures that all values in a column satisfy certain conditions. INDEX: Use to create and retrieve data from the database very quickly

Review Database Introduction Database Management System Popular RDBMS What is SQL? Why SQL? SQL Commands (DML, DCL, DDL) What is table? What is field? What is record or row? What is column? What is NULL value? SQL Constraints Commonly used Constraints