Database development (MIS 533) MBS in Management Information Systems and Managerial Accounting Systems (2007 / 2008) Fergal Carton Business Information Systems
MBS (MIMAS) / MIS533 / Database development Last week More examples of databases Using data entry controls: field types Cuisine de France: requirements analysis Northwind example: Product & Category tables Homework –How many field types in Access? –Cuisine de France: draw out list(s) of products
MBS (MIMAS) / MIS533 / Database development This week Homework Basics of data organisation Data structures and database definition Normalisation: 1NF Requirements analysis Modelling techniques Northwind: Supplier table Modelling exercise
MBS (MIMAS) / MIS533 / Database development How many data types in Access? Answer = 9
MBS (MIMAS) / MIS533 / Database development Cuisine de France: product categories French Bread Baguette Half Baguette Petit pains Bouchons Batard Couronne Traditional Bread McNamees fruit soda bread Irish soda bread White Split Wholemeal tin loaf Bloomers Gourmet Bread Flavour (Cranberry, Rosemary, Sunflower, Honey, Sundried Tomato) Bread type (see above) Confectionery Apple pastry Donut Double chocolate muffin Cherry and almond croquante Almond slice Blackforest gateaux Strawberry gateaux
MBS (MIMAS) / MIS533 / Database development Basics of data Organisation: DATA HIERARCHY (four categories) Fields = represent a single data item Records = made up of a related set of fields describing one instance of an entity File / Table = a set of related records - as many as instances (occurrence) in the set Database = a collection of related tables
MBS (MIMAS) / MIS533 / Database development Example of data structure NameFirst nameTelephone SamprasPete HealyMargaret ClintonBill Henry Thierry Fields Records Table
MBS (MIMAS) / MIS533 / Database development "A collection of interrelated data stored together with controlled redundancy, to serve one or more applications in an optimal fashion; the data is stored so that it is independent of the application programs which use it; a common and controlled approach is used in adding new data and in modifying existing data within the database." Database: Definition.
MBS (MIMAS) / MIS533 / Database development Data : Suppliers
MBS (MIMAS) / MIS533 / Database development Data : Products
MBS (MIMAS) / MIS533 / Database development Data : Categories
MBS (MIMAS) / MIS533 / Database development Normalisation: 1NF The intersection of every column and record contains one, and only one, value
MBS (MIMAS) / MIS533 / Database development Normalisation Quantity of packages in unitPackage dimensions Product as sold Package Quantity of packages in unit Weight of package
MBS (MIMAS) / MIS533 / Database development Normalisation: 1NF
MBS (MIMAS) / MIS533 / Database development Keeping data types clean Clarity Flexibility – room to develop Reporting Ability to compute eg. cost price per item Handle exceptions: eg. partial delivery
MBS (MIMAS) / MIS533 / Database development Building a model Functional decomposition Data Flow Diagram –Context diagram –Processes –Data Flow –Data store –External entities
MBS (MIMAS) / MIS533 / Database development Example :
MBS (MIMAS) / MIS533 / Database development Functional decomposition
MBS (MIMAS) / MIS533 / Database development Example : Input : –Flight details (eg. SNN-BVA, 8 Oct, 10.35) –Credit card details (eg. VISA no, Expiry date) Process : –Confirms price (eg. EUR 79) –Makes reservation & processes payment Output : –Reservation reference (eg.CGHKCA)
MBS (MIMAS) / MIS533 / Database development Data Flow Diagram Flight details Lists options Confirm price Book now Outward Inward Makes Reservation & payment Credit card Reservation Stores Flight details
MBS (MIMAS) / MIS533 / Database development Context diagram On-line reservation system Passengers Flight Operations Flight Schedule Flight reservation Reservation # Accounts Payment € Timetable Seat availability Reservations Seat prices
MBS (MIMAS) / MIS533 / Database development Cuisine de France Selling fresh bread to service stations Describe customer requirements How these requirements can be met? What processes will the business need? What information flows are required?