0% found this document useful (1 vote)
242 views

Ism Lab File

This document provides an index of assignments related to information system management for the years 2020-2023. The assignments cover topics like introduction to databases and SQL, creating tables and inserting records in MS Access, defining data types, creating relationships between tables, implementing queries, views and indexes. Some assignments require creating databases with multiple tables and fields, setting field properties, inserting records, and performing queries like selecting, updating, deleting records.

Uploaded by

Aniket Singh
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (1 vote)
242 views

Ism Lab File

This document provides an index of assignments related to information system management for the years 2020-2023. The assignments cover topics like introduction to databases and SQL, creating tables and inserting records in MS Access, defining data types, creating relationships between tables, implementing queries, views and indexes. Some assignments require creating databases with multiple tables and fields, setting field properties, inserting records, and performing queries like selecting, updating, deleting records.

Uploaded by

Aniket Singh
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 51

0

INFORMATION SYSTEM
MANAGEMENT
2020 - 2023

SUBMITTED BY- ANIKET SINGH SUBMITTED TO – Ms. ITTI HOODA


E ROLL NO – 01221201720 SUBJECT CODE – 212
BBA (G) IV – A SHIFT – II (EVENING)
INDEX

S NO. Assignment Name Signature

1 To introduce DBMS and RDBMS.

2 To Create the Database using MS Access

3 To understand various features of SQL

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

To write Steps to open an existing database


6

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

Create a database named EMPLOYEE with the following fields as


EMPLOYEE NAME, EMPLOYEE CODE, EMPLOYEE DESIGNATION,
10 EMPLOYEE DEPARTMENT, DATE OF JOINING and YEAR OF
EXPERIENCE. Delete any two records as well as fields from the table to show the
output.

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.

12 Create a database named as STUDENT DATABASE. With a table


STUDENT_DETAILS with the given fields as
o St_id
o St_roll no.
o St_name
o St_age
o St_dob
o St_course
o St_add
o St_contact
o St_phone no.
Add at least 10 records in the table. Answer the following:

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.

13 Create a table as STUDENT_DETAILS with the following fields


➢ S_id
➢ S_name
➢ S_course
➢ S_marks
➢ S DOB

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.

IMPLEMENT VIEWS AND INDEXES.

17 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’.
18 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 less than 70
• Display the name and S_no of those students who have scored marks
equal to 95
• Display the names and marks of all those students who have scored
marks between 75 and 90.

19 Create the following table CUSTOMER having the columns, data types.

Field Name Data Type


Customer_IDNumber
Customer_Name Text
Designation Text
City Text
Country Text
Phone Number

Insert the data into table Customer. And apply the queries:

• Display customer details having designation Sales Representative


• Retrieve customer who is living in Canada
• Show details of the customer whose name is Victoria
• Show detail of the customer who lives in Sweden.
• Show detail of the customer who is owner.

35
20 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.

O DELETE THE RECORDS OF THE EMPLOYEE WHOSE EMP_ID IS 101


O DELETE THE RECORD OF THE EMPLOYEES WHOSE DEPT_NAME
IS HR AND SALARY >10000
O DELETE THE RECORD OF THE EMPLOYEE WHOSE NAME BEGINS
WITH S OR SALARY >10000
O UPDATE THE RECORD OF THE EMPLOYEES, SET DEPT_NAME = IT
WHERE DEPT_NAME IS PRODUCTION.
O UPDATE THE RECORD OF THE EMPLOYEE, SET SALARY TO 15000
WHERE DEPT_NAME IS IT.

21 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:1. Display the
details of the employees2. Display the employee id of employee whose name is supriya.
3. Display the name of the employee whose contact no. is 98454863011.

1. Display the details of the employee whose address is C-29, MSI,


JANAKPURI.
2. Display the name of the employees whose salary is greater than
10,000.Update the employee details, set EMP_GRADE equal to C whose
salary is less than 10000.
3. Delete the record of the employee whose gender is male and designation is
manager
4. Display the name, designation, and salary of all the employees whose
names begins with A.
5. Update the employee details; set designation to assistant manger where
designation is trainee.
6. Display the employee id, name, salary and designation for the employees
where emp_grade is A.

22 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.

35
2.FIND THE DETAILS OF THE EMPLOYEE WORKING IN THE SAME DEPT.

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

23 Create 2 tables as EMPLOYEE and DEPARTMENT with the following table


structure. Employee should have the following fields:
1. F_name
2. L_name
3. E_id
4. Dob
5. Add
6. Salary
7. 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

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.

• In the current report add another column as R_NO


• The report should be grouped according to the course name.

35
Create a report as ATTENDANCE_REPORT using reports in MS-ACCESS.

25 Create a database named as PAYROLL_MANAGEMENT with the following table and


the fields.
2.Employee:
• Emp_no
• Ename
• Department
• Designation
• 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.

26 Create an ER Diagram for Student Management System.

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 TO OPEN MS ACCESS

STEPS -
1. Click on windows.

2. Type access on the search bar

35
STEPS TO CREATE A DATABASE

STEPS-
1. Open MS access.

2. Select blank database.

3. Enter the file name and then create.

35
Practical - 3
Q - What are the various features of Structured Query Language (SQL)?

ANS:-The various features of SQL are as follows –

I. Can contain SQL Procedural Language statements and features which


support the implementation of control-flow logic around traditional static and
dynamic SQL statements.
II. Are easy to implement, because they use a simple high-level, strongly typed
language.
III. SQL functions are more reliable than equivalent external functions.
IV. Support input parameters.
V. SQL scalar functions return a scalar value.
VI. SQL table functions return a table result set.
VII. Support a simple, but powerful condition and error-handling model.
VIII. Allow you to easily access the SQLSTATE and SQLCODE values as special
variables.
IX. Reside in the database and are automatically backed up and restored as part
of backup and restore operations.
X. Can be invoked wherever expressions in an SQL statement are supported.
XI. Support nested functions calls to other SQL functions or functions
implemented in other languages.
XII. Support recursion (when dynamic SQL is used in compiled functions).
XIII. Can be invoked from triggers.

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.

Field name: A field name in Microsoft Access is a piece of information related


to a single person or thing. Related fields are grouped together to form a record.
Field Size: The space for each record in the table. It can be adjusted with the help
of “field size property” of the “number fields” in the table. The size of the record
field which stores the text data can be changed.

Description: This is a property that is used to provide information about objects


contained in the Database window as well as about individual table or query
fields. For a database object, click Properties on the view menu and enter the
description text in the Description box.

35
Practical –6
Q: Write steps to open an existing database?
STEPS-
1. Open MS Access

2. On the left, click on ‘open’ and select ‘recent’

3. Select the required database file.

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.

Steps to Open a Database:

I. On the File tab, click Open.


II. In the Open dialog box, browse to the database that you want to open.
III. Click Open to open the database for shared access in a multi - user
environment so that you and other users can read and write to the database.

Steps to Save a Database are as follows:

1) Open the database or database object.


2) On the File tab, click Save As.
3) Do one of the following steps:
• To save a database in a different format, click Save Database As.
• To save a database object in a different format, click Save Object As.

Create a student database with S1 as table containing the field names as


SERIAL NO, ENROLLMENT NO, NAME, AGE and ADDRESS. Insert at least 10
records using the design view in MS ACCESS.

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:-

In this database, Set Employee Code as your Primary Key.

Output-

35
Delete any 2 records and any 2 fields from the Database.

For deleting record-

For deleting field-

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-

Set Employee Name in UPPERCASE and set the Field Size = 20

35
Output-

Put the Default Value of Employee Department as HR.

Output-

Set the Date of Joining as Current date by default.

35
Output-

Set the Employee salary in Dollars.

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.

 Rules for defining Primary key:


 Two rows can't have the same primary key value
 It must for every row to have a primary key value.
 The primary key field cannot be null.
Step1:-Click on ‘view’ option then select ‘design view’

Step2:- select st_id and then click on primary key

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.

STEP1Click on VIEW then Click on DESIGN VIEW.

STEP2Click on INDEXES.

STEP3Enter the field you want to make COMPOSITE KEY

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-

1. Click on open and select a folder.

2. Select the required database and convert it into the required format.

3. Choose open exclusive

4. Click on file.

35
5. Click on info.

6. Click on encrypt with password.

7. Now add the password, verify it and save it.

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 :

3) Relationship between emp details and dept details: (1:M,M:1,M:M)

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.

Display the accn ascending order:

35
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

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’.

Display the details of students who live in ‘Delhi’.

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.

ANS:- DATASHEET VIEW:

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:

• Display customer details having designation Sales Representative


• Retrieve customer who is living in Canada
• Show details of the customer whose name is Victoria
• Show detail of the customer who is owner.
ANS:-

Display customer details having designation Sales Representative.

Retrieve customer who is living in Canada

35
Show details of the customer whose name is Victoria

Show detail of the customer who is owner

35
35
Practical -20
Q - 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.

o Delete the records of the employee whose Emp_id is 101


o Delete the record of the employees whose Dept_name is HR and salary >10000
o Delete the record of the employee whose name begins with S or salary >10000
o 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.
ANS:-

Delete the records of the employee whose Emp_id is 101

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

Execute the following queries on the table created:

 Display the details of the employees


 Display the employee id of employee whose name is supriya
 Display the name of the employee whose contact no. is 98454863011.
 Display the details of the employee whose address is C-29, MSI, JANAKPURI.
 Display the name of the employees whose salary is greater than 10,000.
 Delete the record of the employee whose gender is male and designation is manager

ANS:- DATASHEET VIEW:

EMPLOYEE WHOSE NAME IS SUPRIYA:

Employee whose contact no. Is 98454863011:

35
Details of the employee whose address is C-29, MSI, JANAKPURI:

Name of the employees whose salary is greater than 10,000:

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:

1) EMPLOYEE HAING SAME SALARY:

2) WHERE EMPLOYEE HAVING SAME DOB :

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:

EMPLOYEE DATA BASE:

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.

ANS:- RESULT MANAGEMENT DATABASE:

35
BASIC LAYOUT:

In the current report add another column as R_NO :

The report should be grouped according to the course name.

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.

ANS:- PAYROLL MANAGEMENT DATABASE

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

You might also like