0% found this document useful (0 votes)
56 views43 pages

Akash ISM Lab File

The document outlines the assignments completed by a student for their Information Systems Management lab practical file. It includes 14 assignments on various Microsoft Access topics like creating databases and tables, inserting records, setting field properties, and performing queries. The assignments involve hands-on practice in creating databases for students, employees, and accounts, and writing queries to filter, sort, update and delete records in the tables.

Uploaded by

Devyank Singh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
56 views43 pages

Akash ISM Lab File

The document outlines the assignments completed by a student for their Information Systems Management lab practical file. It includes 14 assignments on various Microsoft Access topics like creating databases and tables, inserting records, setting field properties, and performing queries. The assignments involve hands-on practice in creating databases for students, employees, and accounts, and writing queries to filter, sort, update and delete records in the tables.

Uploaded by

Devyank Singh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 43

MAHARAJA SURAJMAL INSTITUTE

Department of Business Administration


INFORMATIONS SYSTEM MANAGEMENTLAB
PRACTICAL FILE

Submitted By: Submitted to:


Akash Ghosh Mr.Ajay Phogat
03421201721 (Assistant Professor)
BBA(G)
Semester 5th
ISM LAB INDEX

S.No ASSIGNMENT DATE


1 Write steps to Open Microsoft Access. Write 28 Aug 2023
steps to create a database.
2. Write steps to open an existing database 4 Sept 2023
3. Write steps to create table in design view and 6 Sept 2023
datasheet view.
4. What are the various data types in Database (One 11 Sept 2023
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.

5. Create a table using datasheet view as 13 Sept 2023


STUDENT_COURSE with the field name as
 ID
 COURSE CODE
 COURSE NAME.

Enter records.

6. Define data type and explain the various data 18 Sept 2023
types available in MS-ACCESS. Create a database
DB1 with a table T1 with the following fields as:
 ST_NO.
 ST_ID
 ST_NAME
 ST_ADD
 ST_PHONE NO.
 ST_HOBBIES

In the design view and add at least 10 records in


the table.
7. Create a database named EMPLOYEE with the 20 Sept 2023
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.

8. Create an EMPOYEE database with the following 25 Sept 2023


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.

9. Create a table as STUDENT_DETAILS with the 11 Oct 2023


following fields

 S_id
 S_name
 S_course
 S_marks
 S_dob
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.
Enter at least 10 entries in the table.

10. Write steps to put password on the database and 16 Oct 2023
convert it into the required format.

11. Explain in brief about the query object in MS- 25 Oct 2023
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.
1. Display the acc no in ascending order.
2. Display the details of account where acc no
is 675.
3. Display the details of where acc no is 675
and name is Ajay.
4. Display the acc no, acc type, account
H_name and balance where balance is
greater than 5000.

12. Create a table named as STUDENT with the 6 Nov 2023


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 along with the
marks where marks are greater
than 60
 Display the name of students
whose name starts with letter
‘A’.
 Display the details of students
who live in ‘Delhi’.
 Display the details of students
who are older than 10 years.

13. Create a table EMPLOYEE either the following 20 Nov 2023


fields:

 Emp_id
 Emp_name
 Dept_name
 Salary
 Add
 Date of joining

Perform the following queries on it.

1. Delete the records of the employee


whose Emp_id is 101
2. Delete the record of the employees
whose Dept_name is HR and salary
>10000
3. Delete the record of the employee
whose name begins with S or salary
>10000
4. Update the record of the employees,
set Dept_name = IT where
Dept_name is PRODUCTION.
5. Update the record of the employee,
set salary to 15000 where Dept_name
is IT.

14 Create a table employee with the following fields: 29 Nov 2023


 Emp_id, Emp_name, Contact
no, Gender, Salary,
Emp_grade, Designation,
Address

Execute the following queries on the table


created:
1. Display the details of the employees

2. Display the employee id of employee


whose name is reeya.

3. Display the name of the employee


whose contact no. is 98454863011.

4. Display the details of the employee


whose address is JANAKPURI.

5. Display the name of the employees


whose salary is greater than 10,000.

6. Update the employee details, set


EMP_GRADE equal to C whose
salary is less than 10000.

7. Delete the record of the employee


whose gender is male and
designation is manager

8. Display the name, designation, and


salary of all the employees whose
names begins with A.

9. Update the employee details; set


designation to assistant manager
where designation is trainee.

10. Display the employee id, name,


salary and designation for the
employees whereemp_grade is A.

15. Create a table employee with the following fields: 6 Dec 2023
 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.

Assignment 1
Write steps to Open Microsoft Access. Write steps to create a database. What are the various
elements/objects of a database? What are the various ways to create tables in database?

Answer.
Steps to open MS- Access:
STEP-1: Click on ‘Windows’.

STEP-2: Click on ‘All Programmes’. In ‘All programmes’ click on ‘Microsoft Office’.

STEP-3: Click on ‘MS Access’


STEPS TO CREATE DATABASE
STEP-1: Open MS Access

STEP-2: Select blank database


STEP-3: Enter file name and then click create.

Assignment 2

Write steps to open an existing database?

Answer.
Step 1: Open MS Access

Step 2: On the right side there is a 'open recent database '


Step 3: Select the required database file.

Assignment 3

Write steps to create table in design view and datasheet view.


Answer.
Steps to create 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 on the basis of given data
Assignment 4

What are the 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. 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.
Step 4: Click on ‘View’
Step 5: Select ‘Datasheet View’. The datasheet will open.
Step 6: Create table on the basis of given data
TABLE 1: STUDENT_DETAILS

Assignment 5
Create table using datasheet view as STUDENT_COURSE with the field name as

 ID
 COURSE CODE
 COURSE NAME.

Answer. 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.
Step 4: Click on ‘View’
Step 5: Select ‘Datasheet View’. The datasheet will open.
Step 6: Create table on the basis of given data

TABLE 2: STUDENT_COURSE
Assignment 6

Define data type and explain the various data types available in MS-ACCESS.
Create a database DB1 with a table T1 with the following fields as:
 ST_NO.
 ST_ID
 ST_NAME
 ST_ADD
 ST_PHONE NO.
 ST_HOBBIES
In the design view and add at least 10 records in the table.
Answer.
VARIOUS DATA TYPES IN DATABASE

Data Type Use For Size

Text Text or combinations of text and Up to 255 characters. Microsoft Access


numbers, such as addresses. only stores the characters entered in a
Also numbers that do not field; it does not store space characters
for unused positions in a Text field. To
require calculations, such as
control the maximum number of
phone numbers, part numbers,
characters that can be entered, set the
or postal codes.
FieldSize property.

Lengthy text and numbers, such


Memo Up to 64,000 characters.
as notes or descriptions.

Numeric data to be used for


mathematical calculations,
except calculations involving 1, 2, 4, or 8 bytes. 16 bytes for
Number
money (use Currency type). Set Replication ID (GUID) only.
the FieldSize property to define
the specific Number type.

Date/Time Dates and times. 8 bytes.

Currency values. Use the


Currency data type to prevent
rounding off during
Currency 8 bytes.
calculations. Accurate to 15
digits to the left of the decimal
point and 4 digits to the right.

Unique sequential or random


4 bytes. 16 bytes for Replication ID
AutoNumber numbers automatically inserted
(GUID) only.
when a record is added.
Assignment 7

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.
DELETING 2 RECORDS

Step 1: Select the records which you want to delete. Options will open. Click on
‘Delete Record’

Step 2: A dialogue will open, asking for confirmation.


Step 3: Click on ‘Yes’
Final output

DELETING TWO FIELDS:

Step 1: Select the field which you want to delete. Options will open. Click on
‘Delete Column’

Step 2: A dialogue will open, asking for confirmation.


Step 3: Click on ‘Yes’
FINAL OUTPUT

DELETE from Table_name where NAME=”RAVI”;

Assignment 8
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:
5. Employee names should be in upper case with field size equal to10
6. Set the default value of Emp_dept as HR.
7. Date of joining should be set to the current date by default
8. E_SAL should be in dollars.
Use Lookup Wizard.

Answer.

1. Employee names should be in upper case with field size equal to 10

Step 1: Open ‘General’ in ‘Design view’.


Step 2: Enter “10” in ‘Field size’. As given in question.
Step 3: Enter “>” in ‘Format’, for upper case
2. Set the default value of Emp_dept as HR.
Step 1: Open ‘General Wizard’ in ‘Design View’.
Step 2: Type ‘HR’ in ‘Default value’

3. Date of joining should be set to the current date by default


Step 1: Open ‘General Wizard’ in ‘Design View’
Step 2: Type ‘=Date()’ in ‘Default value’. For entering current date as
default
4. E_SAL should be in dollars.
Step 1: Open ‘Design View’
Step 2: Select currency in data type of E_SAL
Step 3: In format property select the values with dollar sign

Output (final)

Assignment 9
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:
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.
Enter at least 10 entries in the table.

ANSWER.

Set ‘S_id’ as primary key


1. S_name should start with A and end with M.

Step 1: In design view, select S_name


Step 2: Enter “A*M” in Validation Rule, for applying the validation.

2. S_course can have only BBA OR MBA as its values.

Step 1: In design view, select S_course


Step 2: Enter “BBA Or MBA” in Validation Rule, for applying the validation.

3. S_marks, it can be NULL or should be > 50.

Step 1: In design view, select S_marks


Step 2: Enter “Is NULL or >50” in Validation Rule, for applying the validation.
4. S_dob should be less than the current date.

Step 1: In design view, select S_dob.


Step 2: Enter “<2/13/2019” in Validation Rule, for applying the validation.

FINAL OUTPUT
Assignment 10

Write steps to put password on the database and convert it into the required
format.

Answer.
1. Choose Open from the Office menu.

2. Open Database in Exclusive mode.


3. Select encrypt with password from database tools.

4. Entre the password and select ok.


Assignment 11

11. 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.
1. Display the acc_no in ascending order.

OUTPUT

2. Display the details of account where acc no is 675.

OUTPUT

3. Display the details of where acc no is 675 and name is AJAY.

OUTPUT
4. Display the acc no, acc type, account H_name and balance where balance is
greater than 5000.

OUTPUT

Assignment 12

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 along with the marks where marks are greater than 60
 Display the name of students whose name starts with letter ‘A’.
 Display the details of students who live in ‘Delhi’.
 Display the details of students who are older than 10 years.
Answer.
Table: Student
 Display all the details of the given table

 Display the names in alphabetical order

 Display the name along with the marks where marks are greater than 60

 Display the name of students whose name starts with letter ‘A’.
 Display the details of students who live in ‘Delhi’.

 Display the details of students who are older than 10 years.

Assignment 13

Create a table EMPLOYEE either the following fields:

 Emp_id
 Emp_name
 Dept_name
 Salary
 Add
 Date of joining

Perform the following queries on it.

6. Delete the records of the employee whose Emp_id is 101


7. Delete the record of the employees whose Dept_name is HR and salary >10000
8. Delete the record of the employee whose name begins with S or salary >10000
9. Update the record of the employees, set Dept_name = IT where Dept_name is
PRODUCTION.
10. Update the record of the employee, set salary to 15000 where Dept_name is IT.
Answer.

Table: Employee

1. Delete the records of the employee whose Emp_id is 101

2. Delete the record of the employees whose Dept_name is HR and salary >10000

3. Delete the record of the employee whose name begins with S or salary >10000
4. Update the record of the employees, set Dept_name = IT where Dept_name is
PRODUCTION.

(Note: 2 new records were added in the main table to execute query)

5. Update the record of the employee, set salary to 15000 where Dept_name is IT.
Assignment 14

Create a table employee with the following fields:


 Emp_id, Emp_name, Contact no, Gender, Salary, Emp_grade,
Designation, Address

Execute the following queries on the table created:

12. Display the details of the employees

13. Display the employee id of employee whose name is reeya.

14. Display the name of the employee whose contact no. is 98454863011.

15. Display the details of the employee whose address is JANAKPURI.

16. Display the name of the employees whose salary is greater than 10,000.

17. Update the employee details, set EMP_GRADE equal to C whose


salary is less than 10000.

18. Delete the record of the employee whose gender is male and
designation is manager
19. Display the name, designation, and salary of all the employees whose
names begins with A.

20. Update the employee details; set designation to assistant manager


where designation is trainee.

21. Display the employee id, name, salary and designation for the
employees whereemp_grade is A.

Solution

1. SELECT * FROM EMPLOYEE;

2. SELECT EMP_ID FROM EMPLOYEE WHERE NAME=”REEYA”;

3. SELECT NAME FROM EMPLOYEE WHERE


CONTACT=98454863011;

4. SELECT * FROM EMPLOYEE WHERE


ADDRESS=”JANAKPURI”;

5. SELECT NAME FROM EMPLOYEE WHERE SALARY>10000;

6. UPDATE EMPLOYEE SET EMP_GRADE=”C” WHERE


SALARY<10000;

7. DELETE FROM EMPLOYEE WHERE GENDER=”MALE” AND


DESIGNATION=”MANAGER”;

8. SELECT NAME, DESIGNATION, SALARY FROM EMPLOYEE


WHERE NAME LIKE ”A*”;

9. UPDATE EMPLOYEE SET DESIGNATION=”ASSISTANT


MANAGER” WHERE DESIGNATION=”TRAINEE”;

10. SELECT EMP_ID, NAME, SALARY, DESIGNATION FROM


EMPLOYEE WHERE EMP_GRADE=”A”;
Answer.

Table: Employee

1. Display the details of the employees.

2. Display the employee id of employee whose name is supriya.


3. Display the name of the employee whose contact no. is 98454863011.

4. Display the details of the employee whose address is D-29, IITM, JANAKPURI.

5. Display the name of the employees whose salary is greater than 10,000.
6. Update the employee details, set EMP_GRADE equal to C whose salary is less than
10000.

CLICK ‘YES’.

7. Delete the record of the employee whose gender is male and designation is manager.
8. Display the name, designation, and salary of all the employees whose names begins
with A.

9. Update the employee details; set designation to assistant manger where designation
is trainee.
Assignment 15
Create a table employee with the following fields:
 Emp_id
 Emp_name
 Dept_name
 Salary
 Address
 Dob
3. Find the employee ids of the employees having same salary.
4. Find the details of the employee working in the same dept.

Find employee id, emp-name of the employee having same dob.


ANS. STEP 1: CREATE THE REQUIRED DATABASE.
QUERY1: Find the employee ids of the employees having same salary.

QUERY2: Find the details of the employee working in the same dept.

QUERY3:Find employee id, emp-name of the employee having same dob.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy