Introduction to Database SEM I, AY 2012-13 Department of Information Technology Salalah College of Technology Chapter No.1.

Slides:



Advertisements
Similar presentations
Irwin/McGraw-Hill Copyright © 2000 The McGraw-Hill Companies. All Rights reserved Whitten Bentley DittmanSYSTEMS ANALYSIS AND DESIGN METHODS5th Edition.
Advertisements

©Silberschatz, Korth and Sudarshan4.1Database System Concepts Lecture-1 Database system,CSE-313, P.B. Dr. M. A. Kashem Associate. Professor. CSE, DUET,
Prentice Hall, Database Systems Week 1 Introduction By Zekrullah Popal.
Management Information Systems, Sixth Edition
©Silberschatz, Korth and Sudarshan1.1Database System Concepts Chapter 1: Introduction Purpose of Database Systems View of Data Data Models Data Definition.
ETEC 100 Information Technology
91.309/310 Database I & II Prof. Cindy Chen. What is a database? A database is a very large, integrated collection of data. A database management system.
Your Interactive Guide to the Digital World Discovering Computers 2012 Chapter 10 Managing a Database.
Database Management: Getting Data Together Chapter 14.
1 Introduction The Database Environment. 2 Web Links Google General Database Search Database News Access Forums Google Database Books O’Reilly Books Oracle.
©Silberschatz, Korth and Sudarshan1.1Database System Concepts Chapter 1: Introduction Purpose of Database Systems View of Data Data Models Data Definition.
Living in a Digital World Discovering Computers 2010.
Discovering Computers Fundamentals, 2011 Edition Living in a Digital World.
Access Lecture 1 Database Overview and Creating Tables Create an Employee Table.
Chapter 1: The Database Environment
An Introduction to Database Management Systems R. Nakatsu.
COMPUTING FOR BUSINESS AND ECONOMICS-III. Lecture no.6 COURSE INSTRUCTOR- Ms. Tehseen SEMESTER- Summer 2010.
Database System Concepts, 5th Ed. ©Silberschatz, Korth and Sudarshan See for conditions on re-usewww.db-book.com Chapter 1: Introduction.
Irwin/McGraw-Hill Copyright © 2000 The McGraw-Hill Companies. All Rights reserved Whitten Bentley DittmanSYSTEMS ANALYSIS AND DESIGN METHODS5th Edition.
5.1 © 2007 by Prentice Hall 5 Chapter Foundations of Business Intelligence: Databases and Information Management.
ADVANCED DATABASES WITH ORACLE 11g FOR ADDB7311 LEARNING UNIT 1 of 7.
Introduction to Databases
Discovering Computers Fundamentals, 2012 Edition Your Interactive Guide to the Digital World.
Module Title? DBMS Introduction to Database Management System.
© Paradigm Publishing Inc. 9-1 Chapter 9 Database and Information Management.
Objectives Overview Define the term, database, and explain how a database interacts with data and information Define the term, data integrity, and describe.
1 INTRODUCTION TO DATABASE MANAGEMENT SYSTEM L E C T U R E
MIS 385/MBA 664 Systems Implementation with DBMS/ Database Management Dave Salisbury ( )
Organizing Data and Information AD660 – Databases, Security, and Web Technologies Marcus Goncalves Spring 2013.
© Paradigm Publishing Inc. 9-1 Chapter 9 Database and Information Management.
Database Management.
Architecture for a Database System
Lecturer: Gareth Jones. How does a relational database organise data? What are the principles of a database management system? What are the principal.
Discovering Computers Fundamentals Fifth Edition Chapter 9 Database Management.
Objectives Overview Define the term, database, and explain how a database interacts with data and information Describe the qualities of valuable information.
DAY 12: DATABASE CONCEPT Tazin Afrin September 26,
Oleh Munawar Asikin. Principles of Information Systems, Seventh Edition 2  Database management system (DBMS): group of programs that manipulate database.
Database Design and Management CPTG /23/2015Chapter 12 of 38 Functions of a Database Store data Store data School: student records, class schedules,
Chapter 1 Chapter 1: The Database Environment Modern Database Management 8 th Edition Jeffrey A. Hoffer, Mary B. Prescott, Fred R. McFadden © 2007 by Prentice.
CHAPTER 3 DATABASES AND DATA WAREHOUSES. 2 OPENING CASE STUDY Chrysler Spins a Competitive Advantage with Supply Chain Management Software Chapter 2 –
Chapter 1 1 Lecture # 1 & 2 Chapter # 1 Databases and Database Users Muhammad Emran Database Systems.
6.1 © 2010 by Prentice Hall 6 Chapter Foundations of Business Intelligence: Databases and Information Management.
DAY 14: MICROSOFT ACCESS – CHAPTER 1 Madhuri Siddula October 1, 2015.
Data resource management
1 Database Systems Instructor: Nasir Minhas Assistant Professor UIIT PMAS-AAUR
GLOBEX INFOTEK Copyright © 2013 Dr. Emelda Ntinglet-DavisSYSTEMS ANALYSIS AND DESIGN METHODSINTRODUCTORY SESSION EFFECTIVE DATABASE DESIGN for BEGINNERS.
Mr.Prasad Sawant, MIT Pune India Introduction to DBMS.
1 Chapter 9 Database Management. Objectives Overview Define the term, database, and explain how a database interacts with data and information Describe.
King saud university Introduction to Database Systems (Chapter 1: Databases and Database Users)
3-1 Modeling Basic Entities DBMS Create Sort Search Addition Deletion Modification Create Sort Search Addition Deletion Modification DBMS is a Software.
ASET 1 Amity School of Engineering & Technology B. Tech. (CSE/IT), III Semester Database Management Systems Jitendra Rajpurohit.
Fundamentals of Information Systems, Sixth Edition Chapter 3 Database Systems, Data Centers, and Business Intelligence.
Chapter 1: Introduction. 1.2 Database Management System (DBMS) DBMS contains information about a particular enterprise Collection of interrelated data.
Databases Salihu Ibrahim Dasuki (PhD) CSC102 INTRODUCTION TO COMPUTER SCIENCE.
©Silberschatz, Korth and Sudarshan 1.1 Database System Concepts قواعد البيانات Data Base قواعد البيانات CCS 402 Mr. Nedal hayajneh E- mail
CSCI-235 Micro-Computers in Science Databases. Database Concepts Data is any unorganized text, graphics, sounds, or videos A database is a collection.
Management Information Systems by Prof. Park Kyung-Hye Chapter 7 (8th Week) Databases and Data Warehouses 07.
Introduction To DBMS.
Chapter 1: Introduction
Chapter 1: Introduction
Unit 1: INTRODUCTION Database system, Characteristics Database Users
Chapter 1: Introduction
Chapter Ten Managing a Database.
Chapter 1: Introduction
Chapter 1: Introduction
Chapter 1: Introduction
Chapter 1: Introduction
Terms: Data: Database: Database Management System: INTRODUCTION
Chapter 1: Introduction
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:

Introduction to Database SEM I, AY Department of Information Technology Salalah College of Technology Chapter No.1

Chapter 1 - Basic Design Principles in Database (T1) - Identify Data Rules and Integration(T4) - Indentify Primary and Other Keys(T9) 2

Basic Design Principles in Databases Data, Database, DBMS: Examples, Applications, Types, Benefits, Database Environment. 3

Data, Information, & Knowledge Definition(s): Both information and data are types of knowledge. Data can be in the form of numbers, characters, symbols, or even pictures. A collection of these data which conveys some meaningful idea is information. Explanation: The raw input is data and it has no significance when it exists in that form. When data is collated or organized into something meaningful, it gains significance. This meaningful organization is information. 4

General Definitions The smallest data item that computers support is called a bit, short for "binary digit." It can assume one of two values, 0, or off, and 1, or on. A Character is letter, digit, or special character (such as $, ?, *, or even a blank space). A set of related characters is called a field or column. A collection of related field is called a record. It is sometimes known as a tupple or row. They include the individuals IDnumber, name, address, etc. A collection of related records is a file. A table is a collection of rows and columns. 5

Before the database management approach, organizations relied on file processing systems to organize, store, and process data files. End users criticized file processing because the data is stored in many different files and each organized in a different way. Each file was specialized to be used with a specific application. File processing was bulky, costly and nonflexible when it came to supplying needed data accurately and promptly. File Processing Systems 6

Disadvantages: 1. Program-Data Dependence: File descriptions are stored within each application program that accesses a given file. 2. Duplication of Data: Applications are developed independently in file processing systems. Duplication is wasteful as it requires additional storage space and changes in one file must be made manually in all files. 3. Limited data sharing: Each application has its own private files with little opportunity to share data outside their own applications. 4. Lengthy Development Times: Each new application requires the developer to start from scratch by designing new file formats and descriptions 5. Integrity Problem: The problem of integrity is the problem of ensuring that the data in the database is accentuate. 6. Excessive Program Maintenance: The preceding factors create a heavy program maintenance load. 7

Database Definition(s): 1.A database consists of an organized collection of data for one or more uses, typically in digital form. 2.Data stored in computer-readable form, usually indexed or sorted in a logical order by which users can find a particular item of data they need. References:

Database Management System Definition: A database management system (DBMS) is a system that allows to build and maintain databases, as well as to utilize their data and retrieve information from it. A DBMS consists of software that operates databases, providing storage, access, security, backup and other facilities to meet needed requirements. Examples of some commonly used DBMS are MySQL, PostgreSQL, Microsoft Access, SQL Server, Oracle, Sybase, etc. 9

Database Applications Databases almost touch all aspects of our lives. Database Applications: – Banking: all transactions – Airlines: reservations, schedules – Universities: registration, grades – Sales: customers, products, purchases – Online retailers: order tracking, customized recommendations – Manufacturing: production, inventory, orders, supply chain – Human resources: employee records, salaries, tax deductions 10

Common Types of DBMS 1.Centralized Databases 2.Personal computer Databases 3.Client/server Databases 4.Distributed Databases 11

Benefits of Database  Minimal data redundancy  Consistency of data  Integration of data  Sharing of data  Ease of application development  Uniform security, privacy, and integrity controls  Data accessibility and responsiveness  Data independence  Reduced program maintenance. 12

Components of Database Environment 1. Computer-aided software engineering (CASE) tools. Automated tools used to design databases and application programs 2. Repository. Centralized storehouse for all data definitions, data relationships, screen and report formats. 3. Database Management System (DBMS). Commercial software system used to define, create, maintain, and provide controlled access to database and repository. 4. Database. An organized collection of related data, to meet the information needs of multiple users. 5. Applications programs. Computer programs used to create and maintain database and provide information to users. 6. User Interface. Languages, menus, and other facilities by which users interact with the system components 7. Data Administrators. Persons responsible for the overall information resources. 8. System Developers. System Analysts and Programmers who design new application programs 9. End Users. Persons who add, delete, and modify data in the database and who request and receive information from it. 13

Data Rules Analysis (T4) Data Rules Analysis, Data Type, Data Types in Databases. 14

Data Rules Analysis Definition : Data rules can be used to measure all of the important data quality conditions that need to be analyzed. Some common questions to establish effective data rules analysis: What data is involved? What type of data is involved? Are there any conditions involved with data? (range, values, length etc.) Are there known ‘qualities' about the data to consider? Suitability and limitations. 15

Data Type Definition 1: A data type is a type of data. Definition 2: A data storage format that can contain a specific type or range of values. Data types in Databases: Data types are also used by database applications. The fields within a database table or object often require a specific type of data to be input. 16

Basic Data Types (MS Access) Data TypesDescriptions Text Support characters up to 255 characters MemoUsed for long notes or descriptive text Number: It further include many types Byte Stores numbers from 0 to 255 (no fractions). Integer Stores numbers from –32,768 to 32,767 (no fractions). Long Integer (Default) Stores numbers from –2,147,483,648 to 2,147,483,647 (no fractions). Single For negative values. Decimal precision is 7. Size 4 bytes. Double For negative values. Decimal precision is 15. Size 8 bytes. Decimal Stores numbers from –10^28–1 through 10^28–1, DP 28, 12 Byt. Date/TimeFor date & time CurrencyFor money to maintain accuracy AutoNumberLong Integer (Incremental) Yes/No (Boolean)0/1, yes/no, true/false purposes, single bit 17

Exercise - 1 Open DBMS (MS Access) Create your own database named ‘EX_DB’ Create TABLE with the following fields and data types: Save your table as ‘TBL_Employee’. Input sample data in your table. FieldsData TypeDescription E_IDAuto Number Employee ID E_NameChar(30) Employee Name E_AgeNumber(Byte) Employee Age E_Salary Number(Currency) Salary E_Nationality Char(20) Nationality E_ Char(20) Address 18

Database Keys (T9) Primary, Foreign, Candidate, Alternate, and Composite Keys. 19

Database Keys What is Key? Key is a set of one or more columns whose combined values are unique among all the occurrences of the given table. A key is a relational means of specifying uniqueness. Types of keys: Primary Key Foreign Key Composite Key Candidate Key Alternate Key 20

Definitions: Types of Keys Primary Key: The attribute or combination of attributes that uniquely identifies a row or record. Foreign Key: an attribute or combination of attribute in a table whose value match a primary key in another table. Composite Key: A primary key that consists of two or more attributes is known as composite key Candidate Key: is a column in a table which has the ability to become a primary key. Alternate Key: Any of the candidate keys that is not part of the primary key is called an alternate key. 21

Exercise - 2 Analyze provided fields and choose suitable data types. Create table. Setup up Primary Key. Save your table as ‘TBL_STUDENT’. FieldsDescription ST_IDStudent ID ST_NAMEStudent Name ST_FAMILYFamily Name ST_AGEAge ST_MOBILEMobile Number ST_ Address ST_REGIONRegions (e.g. Dhofar) 22