Professional Documents
Culture Documents
MIS Final Labs
MIS Final Labs
MIS Final Labs
Submitted by
SHEHZAD AHMAD
20PWIND0648
Submitted to
Engr. Imad
Objectives:
The objectives of this lab are as follows:
To learn about the basic interface of MS Access.
To learn how to create a database in MS Access.
Options in MS Access:
The are a wide range of tools available in MS Access. Some of these are explained briefly below.
Create Tools:
The create tools contain the following options shown and discussed below.
Tools Function
Table Table is used to generate new tables in which data in stored.
Table Design The table design tool provides different tools for making changes in table.
Queries The query tools are used to create, view, modify and analyze data.
Form is used to create new forms. Forms are linked to data and show its
Form
information.
Form Design Form design allows us to modify the form and make changes in it.
Blank Form Blank form generates a blank form.
Reports are used to create a summary of the data and provide a brief and
Report
easily understandable information about data.
Macros are used to save and apply formulas and calculations which cannot be
Macros
done directly.
External Data:
External data tools allow us to import data from other files and add it into the database or export
our data to other file types.
From here, we can export our data to MS Excel file, Text File, and we can also convert it to PDF
format. We can also merge our data to MS WORD.
Import and link option allows us to import data from another source and incorporate it into the
database.
Lab 2 Introduction of Data types in MS Access
In this lab, we'll delve into the world of data types in Microsoft Access. Data types are the
backbone of any database, as they determine how your data is stored, processed, and displayed.
We'll start by exploring the various data types available in Access, such as text, number,
date/time, currency, and more. We have learn the purpose and appropriate use cases for each data type, as
well as how to choose the right data type for your specific needs.
We'll also explore the concept of data validation, which helps ensure the integrity of your data by
enforcing specific rules and constraints. We have learn how to use data validation tools in Access to
prevent errors and maintain high-quality data.
Database:
The database that is created in this lab is shown below.
Conclusion:
By the end of this lab, we have a deep understanding of data types in Microsoft Access and be
able to apply this knowledge to design and manage our own database systems effectively.
Lab 3 Introduction to Tables in MS Access with design view
Introduction
In this lab, we'll dive into the fundamental building blocks of any database: tables. Tables are the
foundation upon which we have stored and organized our data, and understanding how to create and
manage them is essential for successful database development.
We'll start by exploring the design view of tables in Microsoft Access, which allows you to define
the structure and properties of your data. We have learnt how to create new tables, specify the necessary
fields, and set appropriate data types for each field.
One of the key aspects we'll cover is the concept of primary keys. Primary keys are unique
identifiers for each record in a table, and they play a crucial role in maintaining data integrity and
enabling efficient data retrieval. We have learnt how to designate primary keys and understand their
importance in database design.
As we progress through the lab, we have have the opportunity to create sample tables and
experiment with different table design features. This includes setting field properties, such as default
values, input masks, and validation rules, to ensure the quality and consistency of your data.
We'll also discuss the importance of table relationships and how they can be established in
Access. By understanding how tables can be linked together, we have be able to create more complex and
powerful database systems that can handle a wide range of data-related tasks.
By the end of this lab, we have have a solid understanding of table design in Microsoft Access.
We have be able to create and manage tables efficiently, ensuring that your data is organized, accessible,
and secure.
Lab 4 Introduction to Relational Database and its types
Procedure:
To create a relational database in MS Access, follow these steps:
Fig.4.2Save database
Fig.4.4Create Table
5. Create the fields that you want to include in the table, and set the data types for each
field.
Fig.4.5 Data
6. Choose a primary key for the table, which will uniquely identify each record in the table.
7. Save the table by giving it a name and clicking "Save".
8. Repeat steps 4-7 to create additional tables as needed for your database.
To create relationships between tables in MS Access, follow these steps:
1. Open the database that you want to create relationships in.
2. In the "Database Tools" tab, click on "Relationships" to open the "Relationships"
window.
Fig.4.7Create Relationship
Fig.4.8Relationship Tables
4. Click and drag the primary key field from one table to the foreign key field in the other
table.
Fig.4.91-1 Relation
5. Choose the type of relationship you want to create (one-to-one, one-to-many, or many-to-
many) and click "Create".
6. Save the relationship by giving it a name and clicking "OK".
Fig.4.10Create database
Fig.4.11Create Table
3. Create the fields that you want to include in the table, and set the data types for each
field.
Fig.4.12 Data
4. Choose a primary key for the table, which will uniquely identify each record in the table.
5. Save the table by giving it a name and clicking "Save".
6. Repeat steps 4-7 to create additional tables as needed for your database.
To create relationships between tables in MS Access, follow these steps:
1. Open the database that you want to create relationships in.
2. In the "Database Tools" tab, click on "Relationships" to open the "Relationships"
window.
Fig.4.14Create Relationship
Fig.4.15Relationship Tables
4. Click and drag the primary key field from one table to the foreign key field in the other
table.
5. Choose the type of relationship you want to create (one-to-one, one-to-many, or many-to-
many) and click "Create".
Fig.4.161-many Relation
Conclusion:
In conclusion, relational databases are an important tool for managing data in today's business
environment. MS Access is a popular relational database management system that supports one-
to-one, one-to-many, and many-to-many relationships between tables. While it has several
advantages, it is not suitable for all applications and has some limitations that should be
considered before implementing it in a business setting.
Lab 5 Creating queries in MS Access
In this lab, we'll focus on the power of queries in Microsoft Access, which are the backbone of data
retrieval and manipulation.
Queries are essentially the "search engines" of your database, allowing you to extract, filter, and analyze
data based on specific criteria. We'll start by exploring the different types of queries available in Access,
such as:
1. Select queries: These queries are used to retrieve data from one or more tables based on specified
criteria.
2. Parameter queries: These queries allow you to prompt the user for input, creating dynamic and user-
friendly data retrieval.
3. Action queries: These queries are used to perform operations like inserting, updating, or deleting data
in your database.
As we delve into the lab, we have have the opportunity to create your own queries and experiment with
the various query features and functions. We have learn how to build complex queries using logical
operators, wildcards, and advanced filtering techniques.
We'll also discuss the importance of query optimization, as this can significantly improve the performance
of your database. We have learn strategies for optimizing queries, such as using indexed fields, limiting
the number of returned records, and leveraging built-in Access functions.
Additionally, we'll explore the concept of query design, which allows you to create more sophisticated
and visually appealing queries. We have learn how to use query design tools, such as the query designer,
to create queries that are both efficient and easy to understand.
By the end of this lab, we have have a strong grasp of how to create, customize, and optimize queries in
Microsoft Access. This knowledge will empower you to extract and manipulate data with ease, and will
be a crucial skill as you continue to work with databases.
Lab 6 Types of queries in MS access
In this final lab, we'll delve deeper into the various types of queries available in Microsoft Access and
explore their specific use cases.
We'll start by revisiting the types of queries we covered in the previous lab, and then expand our
understanding by examining additional query types, including:
1. Crosstab queries: These queries transform data from a row-based format into a column-based format,
making it easier to analyze and visualize.
2. Append queries: These queries are used to add new records to an existing table, combining data from
multiple sources.
3. Make-table queries: These queries create a new table based on the results of a query, allowing you to
store the output for further analysis.
4. Delete queries: These queries are used to remove records from a table based on specified criteria.
5. Update queries: These queries allow you to modify the values of existing records in a table.
As we explore each of these query types, we have have the opportunity to create sample queries and
understand their practical applications. We have learn how to use the query design tools to build complex
queries that can handle a wide range of data-related tasks.
We'll also discuss the importance of query planning and optimization, as this can significantly impact the
performance and efficiency of your database system. We have learn techniques for identifying and
addressing query bottlenecks, ensuring that your queries run quickly and effectively.
By the end of this lab, we have have a comprehensive understanding of the different types of queries
available in Microsoft Access. We have be able to select the appropriate query type for your specific data
management needs and leverage the full power of the Access query engine.
Lab 7 Creating forms in MS Access
In this lab, we will explore the process of creating forms in Microsoft Access. Forms are an essential
component of database applications, allowing users to interact with the data in a more user-friendly and
intuitive manner.
Understanding Forms in MS Access:
Forms are database objects that provide a graphical interface for data entry, viewing, and manipulation.
They can be designed to display data from one or more tables, as well as perform various operations on
the data.
By the end of this lab, you will have a thorough understanding of creating and customizing forms in
Microsoft Access, enabling you to build more user-friendly and efficient database applications.
Lab 8 Introduction to SAP and Enterprise System
In this lab, we will provide an overview of SAP (Systems, Applications, and Products) and explore the
concept of enterprise systems.
1. Understanding SAP:
Introduction to SAP as a leading enterprise resource planning (ERP) software provider.
Brief history and evolution of SAP as a dominant player in the enterprise software market.
Overview of the key modules and functionalities offered by SAP, such as finance, human resources,
logistics, and more.
2. Enterprise Systems:
Defining enterprise systems and their importance in modern business environments.
Characteristics of enterprise systems, including integration, data centralization, and cross-functional
capabilities.
Advantages of implementing enterprise systems, such as improved data management, process
optimization, and enhanced decision-making.
By the end of this lab, you will have a comprehensive understanding of SAP as a leading enterprise
system, its architecture, implementation process, and the broader enterprise software landscape.
Lab 9 Formatting the data entry Forms
In this lab, we will focus on the process of formatting data entry forms in Microsoft Access to enhance the
user experience and improve data quality.
By the end of this lab, you will have developed the skills to effectively format and enhance data entry
forms in Microsoft Access, creating a more user-friendly and efficient data management experience for
your application's users.
Lab 10 Creating Reports in MS Access
In this lab, we will explore the process of creating reports in Microsoft Access, which are essential for
presenting and communicating data in a structured and visually appealing manner.
By the end of this lab, you will have gained the skills to create and customize reports in Microsoft Access,
enabling you to effectively present and communicate data within your database applications.
Lab 11 Introduction to SQL and installation of MySQL
workbench
In this lab, we will introduce SQL (Structured Query Language) and guide you through the installation
process of MySQL Workbench, a popular SQL development and administration tool.
1. Understanding SQL:
Definition and purpose of SQL as a standard language for managing and manipulating relational
databases.
Overview of the main SQL statement types, such as SELECT, INSERT, UPDATE, and DELETE.
Importance of SQL in the context of database management and data-driven applications.
By the end of this lab, you will have installed MySQL Workbench, connected to a MySQL database, and
gained a fundamental understanding of SQL syntax and basic data manipulation commands. This will
serve as a foundation for the more advanced SQL topics covered in the next lab.
Lab 12 SQL basics and commands
In this lab, we will delve deeper into SQL basics and explore various SQL commands and their usage.
3. SQL Clauses:
Explore additional SQL clauses, such as ORDER BY, GROUP BY, and HAVING.
Use the ORDER BY clause to sort the query results in ascending or descending order.
Understand the purpose of the GROUP BY clause and its use in aggregate functions (e.g., SUM, AVG,
COUNT).
Leverage the HAVING clause to filter grouped data based on conditions.
4. SQL Joins:
Introduce the concept of table relationships and the need for SQL joins.
Demonstrate the usage of different join types, such as INNER JOIN, LEFT JOIN, RIGHT JOIN, and
FULL JOIN.
Understand the syntax and application of these join types in complex queries.
6. SQL Subqueries:
Introduce the concept of subqueries and their purpose in SQL.
Demonstrate the usage of subqueries within the WHERE, SELECT, and FROM clauses.
Understand the differences between correlated and uncorrelated subqueries.
7. SQL Functions:
Explore various SQL functions, including string functions (e.g., CONCAT, SUBSTR, REPLACE),
numeric functions (e.g., ABS, ROUND, SQRT), and date/time functions (e.g., DATE, YEAR, MONTH).
Learn how to apply these functions within SQL queries to perform data transformations and
calculations.
By the end of this lab, you will have a solid understanding of SQL basics, including data types, common
SQL statements (SELECT, INSERT, UPDATE, DELETE), clauses, joins, subqueries, and functions. This
knowledge will serve as a foundation for more advanced SQL concepts and database management tasks.