Database Management. ICT5 Database Administration (DBA) The DBA’s tasks will include the following: 1. The design of the database. After the initial design,

Slides:



Advertisements
Similar presentations
How data is stored. Data can be stored in paper-based systems including: Reference books Dictionaries Encyclopaedias Directories Index Files Filing systems.
Advertisements

Organisation Of Data (1) Database Theory
Your Interactive Guide to the Digital World Discovering Computers 2012 Chapter 10 Managing a Database.
Database Management: Getting Data Together Chapter 14.
3-1 Chapter 3 Data and Knowledge Management
Living in a Digital World Discovering Computers 2010.
Concepts of Database Management Sixth Edition
Chapter 14 The Second Component: The Database.
A Guide to MySQL 7. 2 Objectives Understand, define, and drop views Recognize the benefits of using views Use a view to update data Grant and revoke users’
BUSINESS DRIVEN TECHNOLOGY
A Guide to SQL, Seventh Edition. Objectives Understand, create, and drop views Recognize the benefits of using views Grant and revoke user’s database.
Databases and Database Management Systems
Unit  Candidates should have an understanding of how organizations use ICT, including  sequential file systems (batch processing e.g. payroll);
Mgt 20600: IT Management & Applications Databases Tuesday April 4, 2006.
Relational Databases What is a relational database? What would we use one for? What do they look like? How can we describe them? How can you create one?
Information systems and databases Database information systems Read the textbook: Chapter 2: Information systems and databases FOR MORE INFO...
Chapter 9: Creating Database Conventions & Standards MCITP Administrator: Microsoft SQL Server 2005 Database Server Infrastructure Design Study Guide (70-443)
Software Development Unit 2 Databases What is a database? A collection of data organised in a manner that allows access, retrieval and use of that data.
DATABASE MANAGEMENT SYSTEM ARCHITECTURE
2.3 Organising Data for Effective Retrieval
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 /
Introduction –All information systems create, read, update and delete data. This data is stored in files and databases. Files are collections of similar.
Copyright © 2003 by Prentice Hall Module 4 Database Management Systems 1.What is a database? Data hierarchy and data organization Field, record, file,
Discovering Computers Fundamentals, 2012 Edition Your Interactive Guide to the Digital World.
6-1 DATABASE FUNDAMENTALS Information is everywhere in an organization Information is stored in databases –Database – maintains information about various.
Copyright © 2003 by Prentice Hall Computers: Tools for an Information Age Chapter 13 Database Management Systems: Getting Data Together.
Objectives Overview Define the term, database, and explain how a database interacts with data and information Define the term, data integrity, and describe.
DAY 14: ACCESS CHAPTER 1 Tazin Afrin October 03,
Concepts of Database Management, Fifth Edition Chapter 4: The Relational Model 3: Advanced Topics.
STORING ORGANIZATIONAL INFORMATION— DATABASES CIS 429—Chapter 7.
Chapter 15: Using LINQ to Access Data in C# Programs.
Chapter 1 In-lab Quiz Next week
Chapter 7: Database Systems Succeeding with Technology: Second Edition.
Microsoft Access 2003 Define some key Access terminology: Field – A single characteristic or attribute of a person, place, object, event, or idea. Record.
The protection of the DB against intentional or unintentional threats using computer-based or non- computer-based controls. Database Security – Part 2.
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.
Information: Policy, Strategy and Systems Module Overview
Chapter 6 Database Administration
Storing Organizational Information - Databases
8 8 Chapter 8 The University Lab: Conceptual Design Verification, Logical Design, and Implementation Database Systems: Design, Implementation, and Management.
Views In some cases, it is not desirable for all users to see the entire logical model (that is, all the actual relations stored in the database.) In some.
Database Management System (DBMS) an Introduction DeSiaMore 1.
CHAPTER 3 DATABASES AND DATA WAREHOUSES. 2 OPENING CASE STUDY Chrysler Spins a Competitive Advantage with Supply Chain Management Software Chapter 2 –
INFORMATION MANAGEMENT Unit 2 SO 4 Explain the advantages of using a database approach compared to using traditional file processing; Advantages including.
Lesson Overview 3.1 Components of the DBMS 3.1 Components of the DBMS 3.2 Components of The Database Application 3.2 Components of The Database Application.
Databases Unit 3_6. Flat File Databases One table containing data Data must be entered as a whole each time e.g. customer name and address each time (data.
INFO1408 Database Design Concepts Week 15: Introduction to Database Management Systems.
1 Introduction to Oracle Chapter 1. 2 Before Databases Information was kept in files: Each field describes one piece of information about student Fields.
DATABASE MANAGEMENT SYSTEM ARCHITECTURE
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 Systems. Role and Advantages of the DBMS Improved data sharing Improved data security Better data integration Minimized data inconsistency Improved.
Database Management Supplement 1. 2 I. The Hierarchy of Data Database File (Entity, Table) Record (info for a specific entity, Row) Field (Attribute,
Database Management Systems (DBMS)
Use of ICT in Data Management AS Applied ICT. Back to Contents Back to Contents.
Flat Files Relational Databases
Session 1 Module 1: Introduction to Data Integrity
1 Chapter 9 Database Management. Objectives Overview Define the term, database, and explain how a database interacts with data and information Describe.
Mining real world data RDBMS and SQL. Index RDBMS introduction SQL (Structured Query language)
CIS 250 Advanced Computer Applications Database Management Systems.
UNIVERSITI TENAGA NASIONAL “Generates Professionals” MODULE 5 : Part 1 INTRODUCTION TO DATABASE.
Description and exemplification use of a Data Dictionary. A data dictionary is a catalogue of all data items in a system. The data dictionary stores details.
NOTE: To change the image on this slide, select the picture and delete it. Then click the Pictures icon in the placeholder to insert your own image. DATABASE.
Learners Support Publications www. lsp4you.com Database Users and Administrator.
GCSE ICT How data is stored. How is data stored? Data can be stored in paper-based systems including: –Reference books –Dictionaries –Encyclopaedias –Directories.
1 Management Information Systems M Agung Ali Fikri, SE. MM.
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.
LEC-8 SQL. Indexes The CREATE INDEX statement is used to create indexes in tables. Indexes allow the database application to find data fast; without reading.
Data Integrity & Indexes / Session 1/ 1 of 37 Session 1 Module 1: Introduction to Data Integrity Module 2: Introduction to Indexes.
Presentation transcript:

Database Management

ICT5 Database Administration (DBA) The DBA’s tasks will include the following: 1. The design of the database. After the initial design, the DBA must monitor performance and, if problems surface, changes must be made to the database structure. 2. Keeping users informed of changes in the database structure that will affect them e.g. if the size or format of a particular field is altered or additional fields added.

ICT5 DBA (continued) 3. Maintenance of the data dictionary for the database and responsibility for establishing conventions for naming tables, columns, indexes and so on. 4. Implementing access privileges for all users specifying which items can be accessed and/or changed by each user. 5. Allocating passwords to each user 6. Providing training to users in how to access and use the database

ICT5 The data dictionary The data dictionary is a ‘database about the database’. It will contain information such as: Which tables and columns are included in the present structure; The names of the current tables and columns; The characteristics of each item of data, such as its length and data type; Any restrictions on the value of certain columns; The meaning of any data fields that are not self-evident; e.g. a field such as ‘course type’; The relationships between items of data; Which programs access which items of data, and whether they merely read the data or change it

ICT5 Database Management System (DBMS) The DBMS is an application program that provides an interface between the operating system and the user in order to make access to the data as simple as possible. It has several other functions as well, and these are described below. 1. Data storage, retrieval and update The DBMS must allow users to store, retrieve and update information as easily as possible, without having to be aware of the internal structure of the database. 2. Creation and maintenance of the data dictionary 3. Managing the facilities for sharing the database The DBMS has to ensure that problems do not arise when two people simultaneously access a record and try to update it. 4. Backup and recovery The DBMS must provide the ability to recover the database in the event of system failure. 5. Security The DBMS must handle password allocation and checking, and the ‘view’ of the database that a given user is allowed.

ICT5 Querying the database Different database systems all have their own way of performing queries to extract data. However all perform similar functions, allowing the user to: Combine into one table the information from two or more related tables Select the fields to be shown in the ‘Answer’ table Specify criteria for searching on e.g. find the names and addresses of all club members whose subscriptions are due Save the query so that it can be executed whenever necessary Save the ‘Answer’ table so that it can be displayed or used as the basis for a report or a “mail shot”, for example

ICT5 Querying the database e.g. Query by Example from the Northwind Database

ICT5 Structured Query Language (SQL) The basic retrieval facility in SQL is the select statement, which consists of three clauses in the general form select.... from.... where.... The select clause specifies columns to be extracted from the table(s) or relation(s) in the from clause. The where clause specifies the condition that must be met for items to be selected.

ICT5 SQL Example For example, to find all the female students in the STUDENTS table seen before, we could enter: SELECT tblStudents.StudentID, tblStudents.Surname, tblStudents.Forename, tblStudents.DateOfBirth, tblStudents.Sex FROM tblStudents WHERE (((tblStudents.Sex)="F"));

ICT5 Querying the database e.g. Query by Example from the Northwind Database in SQL view SELECT [Product List].ProductID, [Product List].ProductName FROM Products AS [Product List] WHERE ((([Product List].Discontinued)=No)) ORDER BY [Product List].ProductName;

ICT5 Querying the database e.g. A more complicated query from Northwind Database SELECT DISTINCTROW Orders.ShipName, Orders.ShipAddress, Orders.ShipCity, Orders.ShipRegion, Orders.ShipPostalCode, Orders.ShipCountry, Orders.CustomerID, Customers.CompanyName, Customers.Address, Customers.City, Customers.Region, Customers.PostalCode, Customers.Country, [FirstName] & " " & [LastName] AS Salesperson, Orders.OrderID, Orders.OrderDate, Orders.RequiredDate, Orders.ShippedDate, Shippers.CompanyName, [Order Details].ProductID, Products.ProductName, [Order Details].UnitPrice, [Order Details].Quantity, [Order Details].Discount, CCur([Order Details].[UnitPrice]*[Quantity]*(1-[Discount])/100)*100 AS ExtendedPrice, Orders.Freight FROM Shippers INNER JOIN (Products INNER JOIN ((Employees INNER JOIN (Customers INNER JOIN Orders ON Customers.CustomerID = Orders.CustomerID) ON Employees.EmployeeID = Orders.EmployeeID) INNER JOIN [Order Details] ON Orders.OrderID = [Order Details].OrderID) ON Products.ProductID = [Order Details].ProductID) ON Shippers.ShipperID = Orders.ShipVia;

ICT5 Using indexes A DBMS will allow the application developer to create an index for any field in the database, whether or not that field is unique. All the indexes are then held in memory while the database is open to allow fast retrieval of data.

ICT5 Indexes – example For example, suppose the following records were added in the sequence shown by the record number: Record #Student ID SurnameFirstname 15321BatesJoseph 21963ScullyAnne 34218ChatterjeeSara 43727FidlerLillian 52858DeaconMichael If the Student ID field is indexed, the index will have entries as follows: Student ID Record #

ICT5 Why index? Indexing a particular field will speed up access to data, but will slow down record updating since every time an indexed field is changed, the index entry will have to be changed as well. When a new record is added, all indexes have to be updated. It makes sense, in general, to index any foreign keys in a table, and any fields like surname or department that you frequently need in alphabetical order in a report. It is also a good idea to index fields that you often use in a query criteria; e.g. to quickly find all club members whose subscriptions are overdue, the Due Date field needs to be indexed. Indexed fields other than the primary key field are known as secondary keys.

ICT5 Client-Server Database Modern databases often have to operate on a network This would be a client / server operation DMBS server software processes requests from DBMS client software on network workstations Process results can be sent from server to client for further processing if required

ICT5 Client-server database advantages An expensive resource available to large number of users Client stations can, with permission, update the server database Consistency is maintained because only one copy of database (on server) Client sends query, server does processing, results returned to client Communications time between server and client is minimised because only results are sent back to client Appropriate programs and report formats can be held on client workstations for particular departments