Ism Lab File
Ism Lab File
INFORMATION SYSTEM
MANAGEMENT
2020 - 2023
To create table in design view and datasheet view by Field Name, Data Type Field Size
4 and Description
What do you mean by Field Name, Data type, Field size and Description.
5
Introduce various data types in Database (One line description of each with example).
Create a student database with a table STUDENT_DETAILS containing the field name
as
• ID
7 • FIRST NAME
• LAST NAME
• AGE
• ADDRESS
Insert 5 records using the design view in MS-ACCESS.
Write steps to create a database, save the database and open the database.
Create a student database with S1 as table containing the field names as
8 SERIAL NO, ENROLLMENT NO, NAME, AGE and ADDRESS. Insert at least 10
records using the design view in MS ACCESS.
9 Define data type and explain the various data types available in MS-ACCESS
35
CREATE AN EMPOYEE DATABASE WITH VARIOUS FIELDS USING
LOOKUP WIZARD
11 Create an EMPOYEE database with the following fields as
➢ Emp_code
➢ Emp_ssn
➢ Emp_name
➢ DOB
➢ Emp_design
➢ Emp_dept
➢ DOJ
➢ E_SAL
➢ Years of experience
For the above created database set the following fields properties:
1. Employee names should be in upper case with field size equal to10
2. Set the default value of Emp_dept as HR.
3. Date of joining should be set to the current date by default
4. E_SAL should be in dollars.
Use Lookup Wizard.
A. What is a primary key? Make a field stu_id as the primary key in the table. Also
write down the steps for the same.
B. What is a composite key? In the table STUDENT_DETAILS, make stu_roll no
and st_dob as a composite key also write the steps for the same.
35
MAKE S_ID AS THE PRIMARY KEY AND APPLY THE FOLLOWING
VALIDATIONS:
1. S_NAME SHOULD START WITH A AND END WITH M.
2. S_COURSE CAN HAVE ONLY BBA OR MBA AS ITS VALUES.
3. S_MARKS, IT CAN BE NULL OR SHOULD BE > 50.
4. S_DOB SHOULD BE LESS THAN THE CURRENT DATE.
5. ENTER AT LEAST 10 ENTRIES IN THE TABLE.
14 Write steps to put password on the database and convert it into the required format.
15 Create a company database with the following table EMP_DETAILS with the fields as:
EMP_ID
EMP_NAME
EMP_DESIGNATION
And make EMP_ID as the primary key.
Create another table as DEPT_DETAILS with the fields as:
DEPT_ID
DEPT_NAME
DEPT_LOCATION
Also create a table as PROJECTS with fields as:
P_ID
P_NAME
Designate primary key in both the fields.
Establish a relationship between the table EMP-DETAILS AND
DEPT_DETAILS AS 1:1, 1: M and M: 1. Also enforce referential integrity
constraint on it and write down the steps for the same.
To implement set operations like Union intersection, Union all, minus operation.
16 To Explain in brief about the query object in MS-ACCESS 2007. Write steps to execute
queries using the query wizard. Create an ACCOUNT table with the following fields:
• Acc no
• Act type
• Do_opening
• Transaction_type
• Balance
• Account H_name
• Transaction ID
Enter 12 records in the table and perform the following queries on it.
• Display the acc no in ascending order.
• Display the details of account where acc no is 675.
• Display the details of where acc no is 675 and name is AJAY.
35
DISPLAY THE ACC NO, ACC TYPE, ACCOUNT H_NAME AND BALANCE
WHERE BALANCE IS GREATER THAN 5000.
19 Create the following table CUSTOMER having the columns, data types.
Insert the data into table Customer. And apply the queries:
35
20 CREATE A TABLE EMPLOYEE EITHER THE FOLLOWING FIELDS:
• EMP_ID
• EMP_NAME
• DEPT_NAME
• SALARY
• ADD
• DATE OF JOINING
35
2.FIND THE DETAILS OF THE EMPLOYEE WORKING IN THE SAME DEPT.
24 Create a database named as RESULT MANAGEMENT with the following table and
the fields.
1.Student_details:
• R_no
• Name
• Course_ name
• Dob
• Marks
• Address
• Attendance
Course name field will have values as economics or pdcs. Enter 5 records.
Create a report named as RESULT_REPORT using the report wizard which shows the
marks obtained by students in different courses. The report should have the following:
• Student name, course name and marks.
• Provide a suitable title to the report which should be right aligned with a
suitable logo and date and time at the extreme right of the report.
35
Create a report as ATTENDANCE_REPORT using reports in MS-ACCESS.
Department field will have values as ‘HR’, “Marketing’ and ‘Finance’. Enter 5 records.
Create a report named as PAYROLL_REPORT using the report wizard which shows the
salary of employees in different departments. The report should have the following:
• Emp_no, Employee Name, Department, Designation and Salary.
• Provide a suitable title to the report which should be right aligned with a
suitable logo and date and time at the extreme right of the report.
• The report should be grouped according to the department.
35
Practical - 1
Q -What do you mean by data, information, DBMS, RDBMS and database?
Answer:
Data
Data, information, knowledge, and wisdom are closely related concepts, but each
has its role concerning the other, and each term has its meaning. According to a
common view, Data are collected and analyzed; data only becomes information
suitable for making decisions once it has been analyzed in some fashion. One can
say that the extent to which a set of data is informative to someone depends on the
extent to which it is unexpected by that person.
Information
Information is processed, organized and structured data. It provides context for data
and enables decision making process. For example, a single customer’s sale at a
restaurant is data – this becomes information when the business is able to identify
the most popular or least popular dish.
DBMS
A database management system (or DBMS) is essentially nothing more than a
computerized data-keeping system. Users of the system are given facilities to
perform several kinds of operations on such a system for either manipulation of the
data in the database or the management of the database structure itself.
RDBMS
The software used to store, manage, query, and retrieve data stored in a relational
database is called a relational database management system (RDBMS). The RDBMS
provides an interface between users and applications and the database, as well as
administrative functions for managing data storage, access, and performance.
Database
In computing, a database is an organized collection of data stored and accessed
electronically. Small databases can be stored on a file system, while large databases
are hosted on computer or cloud storage. The design of databases spans formal
techniques and practical considerations including data modeling, efficient data
representation and storage, query languages, security and privacy of sensitive data,
and distributed computing issues including supporting concurrent access and fault
tolerance.
35
Practical –2
Q - Write steps to open Microsoft access. Also mention the steps to
create a database
STEPS -
1. Click on windows.
35
STEPS TO CREATE A DATABASE
STEPS-
1. Open MS access.
35
Practical - 3
Q - What are the various features of Structured Query Language (SQL)?
35
Practical - 4
Q - To create table in design view and datasheet view by Field Name,
Data Type Field Size and Description:
Ans:-
Steps to create a database:
• Open MS ACCESS
• Select blank database
• Provide 'file name' and then click on create.
DESIGN VIEW
Step 1: Click on ‘View’
Step 2: Select ‘Design View’. The datasheet will open.
Step 3: Enter ‘Field Name’ and ‘Data Type’, as per the data.
DATASHEET VIEW
Step 1: Click on ‘View’
Step 2: Select ‘Datasheet View’. The datasheet will open.
Step 3: Create table based on given data
35
Practical - 5
Q: What do you mean by Data Types, Field Name, Field Size and Description?
Answer :
Data type: A data type is a type of data. Data type is a data storage format that
can contain a specific type or range of values. When computer programs store
data in variables, each variable must be assigned a specific data type.
35
Practical –6
Q: Write steps to open an existing database?
STEPS-
1. Open MS Access
35
Practical -7
Q - Introduce various data types in
Database (One line description of each with
example). Create a student database with a
table STUDENT_DETAILS containing the
field name as
• ID
• FIRST NAME
• LAST NAME
• AGE
• ADDRESS
Insert 5 records using the design view in MS-ACCESS.
ANSWER:-
DESIGN VIEW :
DATASHEET VIEW :
Practical
-8
Q- Write Steps to create, open
and save a Database?
Ans:-
The steps to create a database are as follows:
35
1) On the File tab, click New, and then click Blank Database.
2) Type a file name in the File Name box. To change the location of the file from
the default, click Browse for a location to put your database (next to the File
Name box), browse to the new location, and then click OK.
3) Click Create.
4) Access creates the database with an empty table named Table1, and then opens
Table1 in Datasheet view. The cursor is placed in the first empty cell in the
Click to Add column.
5) Begin typing to add data, or you can paste data from another source, as
described in the section Copy data from another source into an Access table.
35
Practical –9
Q - Define data type and explain the various data types available in MS-
ACCESS.
ANS:-
A database data type refers to the format of data storage that can hold a distinct type
or range of values. When computer programs store data in variables, each variable
must be designated a distinct data type.
The various data types in database are as follows:
Integer – is a whole number that can have a positive, negative or zero value. It
cannot be a fraction nor can have decimal places. It is commonly used in
programming especially for increasing values. Addition, subtraction and
multiplication of two integers results to an integer. But division of two
integers may result to an integer or a decimal. The resulting decimal can be
rounded off or truncated to produce an integer.
Character – refers to any number, letter, space, or symbol that can be entered
in a computer. Each character occupies one byte of space.
String – is used to represent text. It is composed of a set of characters that can
have spaces and numbers. Strings are enclosed in quotation marks to identify
the data as string and not a variable name nor a number.
Floating Point Number – is a number that contains decimals. Numbers that
contain fractions are also considered as floating-point numbers.
Array – contains a group of elements which can be of the same data type like
an integer or string. It is used to organize data for easier sorting and searching
of related set of values.
Varchar – as the name implies is variable character as the memory storage
has variable length. Each character occupies one byte of space plus 2 bytes for
length information.
35
35
Practical -10
Q - Create a database named EMPLOYEE with the following fields as
EMPLOYEE NAME, EMPLOYEE CODE, EMPLOYEE DESIGNATION,
EMPLOYEE DEPARTMENT, DATE OF JOINING and YEAR OF
EXPERIENCE. Delete any two records as well as fields from the table to show the
output.
ANS:-
Output-
35
Delete any 2 records and any 2 fields from the Database.
35
Practical –11
Q - Create an EMPOYEE database with the following fields as
➢ Emp_code
➢ Emp_name
➢ Emp_design
➢ Emp_dept
➢ DOJ
➢ E_SAL
➢ Years of experience
For the above created database set the following fields properties:
i Employee names should be in upper case with field size equal to 20
ii Set the default value of Emp_dept as HR.
iii Date of joining should be set to the current date by default
iv E_SAL should be in dollars.
Use Lookup Wizard.
ANS:-
In this database, Set Employee Code as your Primary Key.
Output-
35
Output-
Output-
35
Output-
35
Practical –12
Q - Create a database named as STUDENT DATABASE. With a table
STUDENT_DETAILS with the given fields as
St_id
St_roll no.
St_name
St_age
St_course
St_add
St_contact
Add at least 10 records in the table. Answer the following:
What is a primary key? Make a field stu_id as the primary key in the table. Also write down the
steps for the same.
What is a composite key? In the table STUDENT_DETAILS, make stu_roll no and st_dob as a
composite key also write the steps for the same.
ANS:-Primary key:- A column or group of columns in a table which helps us to uniquely identifies
every row in that table is called a primary key. This DBMS can't be a duplicate. The same value can't
appear more than once in the table.
DESIGN VIEW :
35
DATASHEET VIEW:
Composite key: A key that has more than one attributes is known as composite key.
It is also known as compound key.
STEP2Click on INDEXES.
35
Practical -13
Q - Create a table as STUDENT_DETAILS with the following fields
S_id
S_name
S_course
S_marks
S DOB
Make S_id as the primary key and apply the following validations:
i S_name should start with A and end with M.
ii S_course can have only BBA OR MBA as its values.
iii S_marks, it can be NULL or should be > 50.
iv S_dob should be less than the current date.
Enter at least 10 entries in the table.
ANS:- DESIGN VIEW:
DATASHEET VIEW:
35
Practical -14
Q - Write steps to put password on the database and convert it into the required format.
ANSWER:-
STEPS-
2. Select the required database and convert it into the required format.
4. Click on file.
35
5. Click on info.
35
Practical -15
Q - Create a company database with the following table EMP_DETAILS with the fields as:
➔ EMP_ID
➔ EMP_NAME
➔ EMP_DESIGNATION
➔ And make EMP_ID as the primary key.
Create another table as DEPT_DETAILS with the fields as:
DEPT_ID
DEPT_NAME
DEPT_LOCATION
Also create a table as PROJECTS with fields as:
P_ID
P_NAME
Designate primary key in both the fields.
Establish a relationship between the table EMP-DETAILS AND DEPT_DETAILS AS 1:1, 1: M and M:
1. Also enforce referential integrity constraint on it and write down the steps for the same.
ANSWER:-
1) Emp details : 2) DEPT details :
4) REFERAL INTEGRITY
35
Practical -16
Q - To Explain in brief about the query object in MS-ACCESS 2007. Write steps to execute queries
using the query wizard. Create an ACCOUNT table with the following fields:
ACC NO
Act type
Do_opening
Transaction_type
Balance
Account H_name
Transaction ID
Enter 12 records in the table and perform the following queries on it.
Display the acc no in ascending order.
Display the details of account where acc no is 675.
Display the details of where acc no is 675 and name is AJAY.
Display the acc no, acc type, account H_name and balance where balance is greater than 5000.
implement Views and Indexes.
ANS:- : A query is a request for data results, and for action on data. You can use a query to answer a
simple question, to perform calculations, to combine data from different tables, or even to add, change,
or delete table data.
As tables grow, they can have hundreds of thousands of records, which makes it
impossible for the user to pick out specific records from that table.
With a query you can apply a filter to the table's data, so that you only get the
information that you want.
Queries that you use to retrieve data from a table or to make calculations are called
select queries.
Queries that add, change, or delete data are called action queries.
You can also use a query to supply data for a form or report.
In a well-designed database, the data that you want to present by using a form or
report is often located in several different tables.
35
Display the details of account where acc no is 675
35
Practical -17
Q - Create a table named as STUDENT with the following fields as:
• S_no
• Name
• City
• Age
Execute the following queries after entering 10 records in the table.
• Display all the details of the given table
• Display the names in alphabetical order
• Display the name of students whose name starts with letter ‘A’.
• Display the details of students who live in ‘Delhi’.
ANS:-
DATASHEET VIEW: Display the names in alphabetical order
Display the name along with the marks where marks are greater than 60 & whose name starts with
letter ‘A’.
35
Practical -18
Q - Create a table named as STUDENT_MARKS with the following fields as:
S_no
Name
Marks
Execute the following queries after entering 10 records in the table.
Display the S_no of those students whose names starts with L and ends with A or marks< 70.
Display the name and Sno of those students who have scored marks = to 95.
Display the names and marks of all those students who have scored marks between 75 and 90.
Display the S_no of those students whose names starts with L and ends with A or marks< 70 .
35
Display the name and Sno of those students who have scored marks = to 95.
Display the names and marks of all those students who have scored marks between 75 and 90
Practical -19
Q - Create the following table CUSTOMER having the columns, data types.
35
Field Name - Data Type
Customer_ID - Number
Customer_Name - Text
Designation - Text
City - Text
Country - Text
Phone - Number
Insert the data into table Customer. And apply the queries:
35
Show details of the customer whose name is Victoria
35
35
Practical -20
Q - Create a table EMPLOYEE either the following fields:
• Emp_id
• Emp_name
• Dept_name
• Salary
• Add
• Date of joining
Update the record of the employee, set salary to 15000 where Dept_name is IT.
ANS:-
Delete the record of the employees whose Dept_name is HR and salary >10000
35
Delete the record of the employee whose name begins with S or salary >10000
Update the record of the employees, set Dept_name = IT where Dept_name is PRODUCTION.
Update the record of the employee, set salary to 15000 where Dept_name is IT
35
Practical -21
Q - Create a table employee with the following fields:
Emp_id, Emp_name, Contact no, Gender, Salary, Emp_grade,
Designation, Address
35
Details of the employee whose address is C-29, MSI, JANAKPURI:
Delete the record of the employee whose gender is male and designation is manager :
35
Practical -22
Q - Create a table employee with the following fields:
Emp_id
Emp_name
Dept_name
Salary
Address
Dob
1. Find the employee ids of the employees having same salary.
2. Find the details of the employee working in the same dept. find employee id, emp-name of the
employee having same dob.
ANS:- EMPLOYEE DATABASE:
35
35
Practical -23
Q - Create 2 tables as EMPLOYEE and DEPARTMENT with the following table structure. Employee
should have the following fields:
F_name
L_name
E_id
Dob
Add
Salary
D_no ()
The fields for dept table are:
Dept_no
D_name
Mgr_no
Mgr_doj
Perform the following queries on it:
Select the employee’s f_name, d_no and d_name from the above table.
Select the f_name, l_name and add of the employee who works in the research dept.
Select the f_name, l_name, d_no, d_name for all the employees having salary>10000 .
ANS:- DATASHEET VIEW:
DEPARTMENT DATABASE:
35
1) SELECT F_NAME, D_NO AND D_NAME:
2) Select the f_name, l_name and add of the employee who works in the research dept:
3) Select the f_name, l_name, d_no, d_name for all the employees having salary>10000:
35
Practical –24
Q - Create a database named as RESULT MANAGEMENT with the following table and the fields.
1.Student_details:
• R_no
• Name
• Course_ name
• Dob
• Marks
• Address
• Attendance
Course name field will have values as economics or pdcs. Enter 5 records.
Create a report named as RESULT_REPORT using the report wizard which shows the marks obtained by
students in different courses. The report should have the following:
Student name, course name and marks.
Provide a suitable title to the report which should be right aligned with a suitable logo and date
and time at the extreme right of the report.
In the current report add another column as R_NO
The report should be grouped according to the course name.
Create a report as ATTENDANCE_REPORT using reports in MS-ACCESS.
35
BASIC LAYOUT:
35
Practical –25
Q - Create a database named as PAYROLL_MANAGEMENT with the following table and the fields.
o Employee:
o Emp_no
o Ename
o Department
o Designation
o Salary
Department field will have values as ‘HR’, “Marketing’ and ‘Finance’. Enter 5 records. Create a report
named as PAYROLL_REPORT using the report wizard which shows the salary of employees in different
departments. The report should have the following:
• Emp_no, Employee Name, Department, Designation and Salary.
• Provide a suitable title to the report which should be right aligned with a suitable logo and
date and time at the extreme right of the report.
• The report should be grouped according to the department.
Emp_no, Employee Name, Department, Designation and Salary. Provide a suitable title to the
report which should be right aligned with a suitable logo and date and time at the extreme right of
the report.
35
FINAL REPORT:
35
Practical –26
Q - Create an ER Diagram for Student Management System.
ANSWER:-
35