Alimullah __________________________Miyan
Lecture 1: Intro
By Imran Mahmud Email: striker.imran@gmail.com
IUBAT
Agenda
WHAT IS A DATABASE What is the purpose of a database system; Understand the difference between data and
IUBAT
Agenda(2)
Data entry E-R Diagram Case Study
IUBAT
What is a Database?
A database is any organized collection of data. Some examples of databases you may encounter in your daily life are:
a telephone book T.V. Guide airline reservation system motor vehicle registration records papers in your filing cabinet files on your computer hard drive.
IUBAT
IUBAT
What is information?
Information is data that have been organized and communicated in a meaningful manner. Data is converted into information, and information is converted into knowledge. Knowledge; information evaluated and organized so that it can be used purposefully.
IUBAT
Is to transform
Data
Information
Knowledge
Action
IUBAT
Types of Databases
Non-relational databases
The data in a non-relational database, however, is limited to that program and cannot be extracted and applied to a number of other software programs, or other database files within a school or administrative system. The data can only be "copied and pasted. Example: a spread sheet
Relational databases
It is developed based on a database model that provides for logical connections among files (known as tables) by including identifying data from one table in another table
IUBAT
Some Definitions
A File: A group or collection of similar records, like Student
file, Admission File. A field: one category of information, i.e., Name, Address, Semester Grade, Academic topic A record: one piece of data, i.e., one student's information, a recipe, a test question
IUBAT
Relational database
Collection of information organized in tables Tables are also relations
through shared fieldscommon fields Fields are also columns or attributes A set of attributes comprises a record Records are also rows or tuples Tables are related through common fields designated as primary and foreign keys Allow us to find, update, and delete data quickly and help to ensure accuracy
10
IUBAT
11
IUBAT
Database Software
MS- Access Oracle SQL Server MySQL
13
IUBAT
Data Entry
Image 1: Data Entry Hardware
Barcode scanners
USB or Wireless attached to a Palm or Pocket PC
Pocket PC
Wi-Fi 802.11g, Bluetooth Wireless networks (real-time on demand systems)
Mobile
Image source: Image.google.com
14 IUBAT
E-R Model
The E/R model allows us to sketch the design of a
database informally. Designs are pictures called entity-relationship diagrams. Fairly mechanical ways to convert E/R diagrams to real implementations like relational databases exist.
15
IUBAT
Entity Sets
Entity = thing or object. Attribute = property of an entity set.
Generally, all entities in a set have the same properties. Attributes are simple values, e.g. integers or character
strings.
16
IUBAT
Example
Name ID Address
Student
Entity set Student has three attributes, ID,name and Address. Each Student entity has values for these three attributes, e.g. (20106, Imran, Dhaka)
17 IUBAT
Relationship
A relationship connects two or more entity sets. It is represented by a diamond, with lines to each of
SI
Student
Admitted
Course
Date
system software for the prospective students. In that software , prospective students will send their name, address and CGPA to a specific number via SMS. That SMS will be saved into IUBAT database. There must be another database in IUBAT server which will contain all the scholarship information. Software will match the CGPA of the student and scholarship criteria and send them another SMS about their eligibility of scholarship.
19
IUBAT
Tutorial 1( Contd.)
20
IUBAT
21
IUBAT
Relational table
Table 3: Eligibility
22
IUBAT
Tutorial 2
23
IUBAT
http://www.immibd.com
24
IUBAT
Question????
25
IUBAT