MEIE3284 Lecture 03
MEIE3284 Lecture 03
2
Tutorial
Put True or False
1. A bill of materials identifies the steps needed to
produce a product.
2. Product routing is the list of materials and
quantities needed to produce a product.
3. Under a make-to-stock strategy, the production
process is triggered by a customer order.
4. Under a make-to-stock strategy, the production
process is triggered by a need to increase inventory.
5. In the production process, a production order is
used to track the progress of the order.
3
Tutorial
Put True or False
6. A bill of materials identifies the steps needed to
produce a product.
7. In the production process, a planned order is used
to track the progress of the order.
8. In the production process, a planned order is used
to request that the company produce a specified
quantity of goods.
9. When using an ES, paper documents are a critical
means of capturing and storing data generated
during process steps.
4
Tutorial
Put True or False
10. The planned order is created by production department.
11. The planned order is created by the warehouse department.
12. The production order is created by the warehouse
department.
13. Planned order provides written authorization to the shop
floor to produce the stated quantity of products.
14. Examples of process manufacturing are furniture and
computers.
15. Examples of discrete manufacturing are oil and gas.
16. MRP was introduced to fix the capacity problem of MRP II.
5
Tutorial
MRP Problem
Assume that you are the manager of a shop that
assembles industrial robots. You have just received an
order of 50 units, which are to be shipped at the start of
week 8. Information concerning the robot structure, lead
times, and on-hand inventory is given in the following
table.
6
Lead Time On-Hand
Item Components
(Weeks) Inventory
Robot 2 15 A(2), B(1), C(4)
A 1 10 E(3), D(1)
B 2 5 D(2), F(3)
C 2 65 E(2), D(2)
D 1 20 -
E 1 10 -
F 2 30 -
8
Net Material Requirements Plan for Component A
Beg.
Item: A(2) LT = 1 wk. 1 2 3 4 5 6 7 8
Inv.
Gross requirements 70
Scheduled receipts
Projected on hand 10 10 10 10 10 10 10
Net requirements 60
Planned order receipt 60
Planned order release 60
9
Net Material Requirements Plan for Components C and E
10
The Relational Database Model
11
What is a Database?
• A database can be thought of as a computerized filing
cabinet. This filing cabinet electronically stores data
defined and “filed” by users within the organization
that maintains the database.
12
What is a Database?
● A database is information that is set up for easy
access, management and updating.
● Computer databases typically store aggregations of
data records or files that contain information, such as
sales transactions, customer data, financials and
product information.
● Databases are used for storing, maintaining and
accessing any sort of data.
● Databases can be thought of as an organized
collection of information.
13
Database Development Process
14
Database Development Process
• It is important that the database design considers the
following aspects:
₋ A specific data item can be reached easily.
₋ The database can respond to the user’s different questions
easily.
₋ The database occupies minimum storage space.
₋ The database contains no unnecessary data.
₋ Data can be added and updated easily without causing
mistakes.
15
What is a Database Model?
16
Evolution of Database Models
● Databases were first created in the 1960s.
● Hierarchical databases were among the early models.
They have tree schemas with a root directory of
records linked to several subdirectories.
17
Evolution of Database Models
Hierarchical Database Model Example
18
Evolution of Database Models
• Network database models
were also among the first
models.
• The network model builds on
the hierarchical model by
allowing many-to-many
relationships between linked
records, implying multiple
parent records.
19
Evolution of Database Models
Network Database Model Examples
20
Evolution of Database Models
● Relational databases were developed in the 1970s.
● Relational databases are comprised of tables.
● Information is placed into predefined categories in
those tables.
● Each table has columns with at least one data
category, and rows that have a certain data instance
for the categories which are defined in the columns.
21
Evolution of Database Models
Relational Database Model Example
22
Evolution of Database Models
Object-Oriented Database Model
● Object-oriented databases came in the 1980s.
Data is organized and stored as
objects, which are self-
contained units that contain
both data and the operations
or methods that can be
performed on that data. This
allows for the efficient
representation and
management of complex data
structures and relationships.
23
What is Database Management System?
● The database system has both hardware and software
components.
● Hardware is the physical storage medium for the data
(hard disk, tape, etc.).
● The software is the medium through which the user
accesses the physically stored data. This software is
called the database management system (DBMS).
● The DBMS allows the user to store, retrieve, and
update data without having particular knowledge
about the physical location of data or how related
data are stored.
24
Types of Database Management Systems
25
Enterprise Database
● A large database that runs on one or more servers and
may have client users spread throughout many
locations.
● It must be capable of handling a large quantity of
transactions and the execution must be in real-time.
● For example, a transaction involving an ATM debit
should be recorded in the time frame of seconds. It
uses sophisticated security measures and can allow
different levels of access by client users.
● Oracle (Oracle Corporation) and DB2 (IBM) are
typically used for these applications.
26
Workgroup Database
● Workgroup database typically runs on one server and
distributes information to several client machines
running on the same local area network.
● The level of transaction processing is much lower than
that of an enterprise database, but the DBMS must be
capable of handling multiple clients who are
independently generating transactions that change the
contents of one or more databases running
concurrently on the DBMS.
● Microsoft’s SQL Server, which supports client-server
architecture, is a popular choice for workgroup
applications.
27 /
Personal Database
● Personal database runs on a single personal computer.
● It has a lower transaction handling rate and is not
designed with sophisticated administrative tools for
setting levels of security.
● The LibreBase DBMS is a good example of a personal
database.
● LibreBase is used in exercises throughout this course
because it is suitable for demonstrating all the concepts
presented and it is easily available to PC users.
LibreBase MS Access
28
LibreBase
● However, LibreBase is not just standalone DBMS, it
can also be used as an interface to connect to both
workgroup and enterprise databases seamlessly.
● This connection is possible through using the
structured query language (SQL).
● LibreBase provides an implementation of the
relational database management system (RDMS).
29 /
What is a Relational Database?
● A relational database can be seen as a set of tables
linked together.
30
Tables in Relational Database
31
Tables in Relational Database
● Tables are constructed of rows and columns, and we
usually use these terms in referring to a table
structure.
● A row represents a single entity, or instance of the
entity set.
● A row is sometimes referred to as a record, which is a
term carried over from a period when computer
information was maintained in a file structure.
● A column represents the attributes of the entity set.
Sometimes columns are referred to as fields.
32
Tables in Relational Database
33
Tables in Relational Database
34
Field Types Requirement
● To construct a table in a relational database, you
need to define your attributes or fields by selecting
a representative title and a suitable data type.
● The following slides provide information about the
different data types in RDMS and LibreBase.
● When values are entered into the table, the DBMS
will not allow the user to enter data into an
attribute field that does not conform to the data
type of that attribute.
35
Data Types in RDMS Tables
● Relational database management systems support a
variety of data types.
● Typical data types are:
‒ Numeric
‒ Character or text
‒ Date/Time
‒ Logical
‒ Binary
36
Numeric Data Types
• This is used for dealing with numerical data. They
include the following types:
‒ Small integer of 5 digits (SMALLINT)
‒ Integer of 10 digits (INTEGER)
‒ Tiny integer (TINYINT)
‒ Bigint (BIGINT)
‒ Decimal (DECIMAL)
‒ Float (FLOAT)
‒ Real (REAL)
‒ Double (DOUBLE)
‒ Number (NUMERIC)
37
Character or Text Data
● Character or text data are represented as an
alphanumeric string.
● The length of the string is indicated in parentheses
following the type designation, as in CHAR(10).
● Alternatively, VARCHAR type can be used in case the
text data size can vary from one entity to another.
● Memo (LONGVARCHAR) can be used for long text
with variable size.
● VARCHAR_IGNORECASE is used whenever the
capital/small letters are dealt with as the same.
38
Date and Time Data Types
39
Logical Data
40 /
Binary Data
41 /
Key Attributes
• To maintain the integrity of a database, certain
attributes of each table are designated as key
attributes.
• In any table, a key attribute is labeled in LibreBase as
a “Primary Key”
• Any table can have only one primary key.
• When a table is created, it is necessary to declare the
attribute(s) that will be the primary key.
• When data are retrieved from the table, the primary
key can be used to ensure that the retrieved data set
is unique.
42
Primary Key Example
For example, in the VENDOR Table, the VENDOR_ID is unique. The
VENDOR_ID attribute, assigned to the vendor by the database user,
will always refer to one and only one vendor. It may occur that two
vendors will have the same names, causing confusion when the
computer must differentiate between them. No such confusion exists
when a unique number or alphanumeric code is assigned to each
vendor in order to differentiate between them. The primary key for
the PURCHASE_ORDER table is the PO_NUMBER. Only one purchase
order number is assigned to a purchase order, and that number is
unique to that purchase order.
43
Primary Key Entry
● When a column is designated as a key attribute, any
row of the table must have an entry in that column to
ensure the integrity of the table and its references.
● This means that no “null” values are allowed. A null
value refers to the absence of a value; it does not refer
to a value of zero. For example, the RELEASE_DATE of
PO_NUMBER 2596 in the PURCHASE_ORDER table is a
null value.
44
Related Tables
● Related tables are linked to each other by having
attribute fields in common. For example, the table
PURCHASE_ORDER is related to the table PO_DETAIL by
the attribute PO_NUMBER.
45 /
Foreign Key
● Unlike a primary key, a foreign key may have duplicate
instances.
● However, the foreign key in one table must be related
to a primary key in another table.
● Otherwise, the reference between tables could not
be guaranteed to be unique.
46 /
Referential Integrity
47 /
SQL vs. NoSQL Database Systems
● In today’s database technology, there is a
classification of database management systems
depending on whether the structured query language
(SQL) is used or not.
● Relational databases and SQL come hand-in-hand,
while in modern cloud databases, non-relational
databases that do not use SQL are widely used,
especially in internet applications.
● Watch the following video to know the difference
between SQL and NoSQL database systems.
https://www.youtube.com/watch?v=jh14LlMHyds&list=PPSV
48 /
References
• Thomas Boucher and Ali Yalçin, “Design of
Industrial Information Systems.” Elsevier,
2006. ISBN: 978-0-12-370492-4. (Chapter 2)
49