Ism Practical File Nothing
Ism Practical File Nothing
Ism Practical File Nothing
Practical File on
INDEX
following:
a) What is primary key? Make a field
stu_roll 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_rollno and
stu_dob as a composite key. Also write
the steps for the same.
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.
Count customers who live in Sweden.
Count the customer having designation as
owner.
19. Create a table employee with the following fields: 04/03/22
Emp_id
Emp_name
Contact no.
Gender
Salary
Emp_grade
Designation
Address
Execute the following queries on the table created:
a. Display the details of the employees
b. Display the employee id of employee whose
name is supriya.
c. Display the name of the employee whose
contact no. is 98454863011.
d. Display the details of the employee whose
address is D-29, IITM, JANAKPURI.
e. Display the name of the employees whose
salary is greater than 10,000.
f. Update the employee details, set
EMP_GRADE equal to C whose salary is less
than 10000.
g. Delete the record of the employee whose
gender is male and designation is manager
h. Display the name, designation, and salary of
all the employees whose names begins with A.
i. Update the employee details; set designation to
assistant manger where designation is trainee.
20. Create a table EMPLOYEE either the following 11/03/2022
fields:
Emp_id
Emp_name
Dept_name
Salary
Add
Date of joining
Perform the following queries on it.
1. Display the dept_name and total salary of
6
Phone no
Grade
Now create another table named as BBA_M2
with the same fields. Add at least 10 records to the
table BBA_M1 (with first 10 enrollment no’s and
BBA_M2 with next 10 e_no) and then perform
the following queries on it.
Create a make table query which contains
the A grade students from BBA_M1
Append the A grade holders from
BBA_M2 to the newly created table in the
above query.
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
PRACTICAL NO.-1
Define Data, Information, Database, DBMS and RDBMS. Also describe Features of
SQL.
of data. Computer data may be processed by the computer's CPU and is stored
in files and folders on the computer's hard disk.
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
Database: A database is an organized collection of structured information, or data, typically
stored electronically in a computer system. A database is usually controlled by a database
management system (DBMS). Together, the data and the DBMS, along with the applications
that are associated with them, are referred to as a database system, often shortened to just
database.
DBMS: Database Management System (DBMS) is a software for storing and retrieving
users’ data while considering appropriate security measures. It consists of a group of
programs which manipulate the database. The DBMS accepts the request for data from an
application and instructs the operating system to provide the specific data. In large systems, a
DBMS helps users and other third-party software to store and retrieve data.
RDBMS: RDBMS is an acronym for Relational Database Management System and is a type
of database management system that stores data in a structured format
using rows and columns, making it easy to locate and access data in relation to another piece
of data in the database. While a relational database describes the type of database, a RDBMS
refers to the database software itself. It executes the queries on the data including adding,
updating, and searching for values. It can also provide a visual representation of data.
SQL
SQL FEATURES
PRACTICAL NO.-2
Give 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?
SOLUTION:
11
3. Access will open, give the name to the database and select “create” option.
4. Now you can enter data.
12
PRACTICAL NO.-3
Give the steps to create table in design view and datasheet view. Also Give the steps to
open an existing database.
Solution: -
3. Fill in the Field Name and choose the appropriate Data Type.
4. After entering the Fields, right click and select “Datasheet view” option.
13
2. A box will appear, select the file or type the name of the database and click
‘Open’.
3. Your existing file will open.
14
PRACTICAL NO.-4
Explain Field Name, Data Types, Field Size with its Description.
Field Name
A field in Microsoft Access is a piece of information related to a single person or thing. Related fields are
grouped together to form a record. In a database, where information regarding a company's employee
information is stored, a record would be the information related to a single employee.
Data Type
A field's data type determines what kind of data it can store. MS Access supports different types of data,
each with a specific purpose. The data type determines the kind of the values that users can store in any
given field. Each field can store data consisting of only a single data type.
15
Field Size
For number fields, the field size determines exactly how much disk space Access uses for each value of
the field. For text fields, the field size determines the maximum amount of disk space that Access allows for
each value of the field.
Description
You can use the Description property to provide information about objects contained in the Database
window as well as about individual table or query fields. For individual table or query fields, enter the field
description in the upper portion of table Design view or in the Field Properties property sheet in the Query
window. The maximum length is 255 characters
PRACTICAL NO.-5
ADDRESS
Insert 5 records using the design view in MS- ACCESS.
Solution:-
Steps
Create another table using data sheet view as STUDENT_COURSE with the field
name as
ID
COURSE CODE
COURSE NAME.
Insert at least 5 records using the design view in MS ACCESS.
Solution:-
17
Steps
18
PRACTICAL NO.-6
For the above created database set the following field properties:
a. Employee name should be in upper case with field size equal to 10.
Steps
1. Select the Field you want to modify. Field Properties will appear.
19
20
3. Write the ‘=Date()’ function to set the default date as current date.
4. Save the table.
21
PRACTICAL NO.-7
Solution:-
Steps
1. By Design View
Steps
23
3. Go to ‘Design’ option in the Menu Bar and click on Delete Row option.
2. By Datasheet view
Steps
24
PRACTICAL NO.-8
Create a local template of “FACULTY”, insert 5 records and perform the following
queries on faculty template table:
Steps
1. Open MS Office Access and go to Local Templates.
25
Steps
1. Go to Design view and enter Field Names.
2. Go to datasheet view and click on ‘New Faculty’ in Menu Bar. A box will appear.
26
Steps
1. Select the column you want to modify.
2. Right click on mouse button, a list will appear.
3. Select ‘Sort A to Z’ option for ascending order.
27
Steps
1. Select the column you want to modify.
2. Right click on mouse button, a list will appear.
3. Select ‘Sort Z to A’ option for descending order.
d. Generate report for: All faculty category and faculty by department category.
Steps
1. Go to ‘Reports’ option in the Menu bar.
2. Select the list-down option.
3. Select the “All Faculty” option to make report on all faculty.
28
Steps
1. Go to ‘Reports’ option in the Menu bar.
2. Select the list-down option.
3. Select the “Faculty by Department” option to make report on all faculty.
PRACTICAL NO.-9
Make S_id as the primary key and apply the following validations:
Steps
1. Select the field you want to add primary key.
30
31
PRACTICAL NO.- 10
Emp_name
Emp-dob
For the above created database set the input mask for the field property for
Emp_ssn and Emp_dob
using the input mask wizard.
Solution:
Steps
1. Save the table as “EMPLOYEE”, then go to Design view and set Field names.
2. Select the Field you want to modify. Field Properties will appear.
3. Go to ‘Input Mask’ and click on the three dots inside Input Mask. A box will appear.
33
4. Select the ‘Short Date’ option and click Next, then finish the process.
5. Now save the table and enter the data in Datasheet view.
6. Inputs will display as in the same format as you chose in setting Input Mask.
7. Repeat the same process with another Field.
34
PRACTICAL N0.- 11
St_course
St_add
St_contact
Add at least 10 records in the table.
A. What is primary key? Make a field stu_roll as the primary key in the table. Also
write down the steps for the same.
A primary key is the column or columns that contain values that uniquely identify each
row in a table. A database table must have a primary key for Optima to insert, update,
restore, or delete data from a database table. Optima uses primary keys that are defined to
the database.
Steps
Select the field you want to add primary key.
36
B. What is a composite key? In the table student details make stu_rollno and stu_dob
as a composite key. Also write the steps for the same.
A composite key is made by the combination of two or more columns in a table that can
be used to uniquely identify each row in the table when the columns are combined
uniqueness of a row is guaranteed, but when it is taken individually it does not guarantee
uniqueness, or it can also be understood as a primary key made by the combination of
two or more attributes to uniquely identify every row in a table.
Steps
Select the fields you want to add the composite key.
37
38
PRACTICAL NO.-12
Write steps to put password on the database and convert it into the required format.
Steps
2. Select the file, then click on list down and select ‘Open Exclusive’ option.
39
5. Write down the password you want to set under password and verify and click OK to
set the password.
6. Now whenever you will open the file, you have to enter the password first.
Steps
2. A dialogue box will appear, you have to write the password you have already set and
click OK.
40
41
PRACTICAL NO.-13
Solution
Steps
1. Select the Field you want to apply input mask. Field Properties will appear.
2. Go to Input Mask in Field Properties and click on three dots. A dialogue box will
appear.
42
4. You can see the format in which your data will appear, click NEXT and then FINISH.
43
PRACTICAL NO.- 14
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
Acc_type
DO_opening
Transaction_type
Balance
Account_H_name
Transaction_ID
Enter 15 records in the table and perform the following queries on it:
44
Steps
1. Go to Create tab in Menu Bar and select ‘Query Wizard’.
2. A dialogue box will appear, select ‘simple query wizard’ and click OK.
45
46
Steps
1. Go to Query Wizard option in Create tab.
47
Display the Acc_no, Acc_type, Account_H_name and balance are less than
10,000.
Steps
1. Go to Query Wizard option in Create Tab.
48
3. Type the ‘<10000’ in criteria section in Balance Field and run it.
PRACTICAL NO.- 15
49
Steps
1. Go to Query Wizard in the Create Tab.
2. A dialogue box will appear, select ‘simple query wizard’ and click
OK.
50
Steps
1. Go to Query Wizard option in Create Tab.
51
2. A dialogue box will appear, select ‘Simple Query Wizard’ and click
NEXT.
52
5. Go to Field Properties, list down the Sort section under Name head,
select Ascending order and run it.
Display the name along with the marks where marks are greater than
60
Steps
1. Go to Query Wizard option in Create Tab.
2. A dialogue box will appear, select ‘Simple Query Wizard’ and click
NEXT.
53
5. Field Properties will appear, select the Marks column and go to criteria.
6. Write ‘>60’ to show marks greater than 60 and run it.
54
Display the name of students whose name starts with letter ‘A’.
Steps
1. Go to Create Wizard option in Create Tab.
2. A dialogue box will appear, select ‘Simple Query Wizard’ and click
NEXT.
55
Steps
1. Go to Create Wizard option in Create Tab.
2. A dialogue box will appear, select ‘Simple Query Wizard’ and click
NEXT.
56
3. Drag all Fields, click NEXT and then Finish to modify the table.
4. Go to Field Properties, write ‘Delhi’ in Criteria under City head and run
it.
Steps
1. Go to Create Wizard option in Create Tab.
2. A dialogue box will appear, select ‘Simple Query Wizard’ and click
NEXT.
57
3. Drag all Fields, click NEXT and then Finish to modify the table.
4. Go to Field Properties, write ‘>10’ in Criteria under Age head and run it.
Practical-16
Name
Marks
Steps
1. Go to Create Wizard option in Create Tab.
2. A dialogue box will appear, select ‘Simple Query Wizard’ and click
NEXT.
3. Drag all Fields, click NEXT and then Finish to modify the table.
59
Display the name and S_no of those students who have scored marks
equal to 95
Steps
2. A dialogue box will appear, select ‘Simple Query Wizard’ and click
NEXT.
60
3. Drag all Fields, click NEXT and then Finish to modify the table.
4. Go to Field Properties, write ‘>10’ in Criteria under Age head and run it.
Display the names and marks of all those students who have scored marks
between 75 and 90.
Steps
61
2. A dialogue box will appear, select ‘Simple Query Wizard’ and click
NEXT.
3. Drag all Fields, click NEXT and then Finish to modify the table.
62
Practical-17
Practical-18
64
Create the following table CUSTOMER having the columns, data types.
Field Name Data Type
Customer_ID Number
Customer_Name Text
Designation Text
City Text
CountryText
Phone Number
Insert the data into table Customer. And apply the queries:
Display customer details having designation Sales Representative.
Practical-19
65
66
d. Display the details of the employee whose address is D-29, IITM, JANAKPURI.
e. Display the name of the employees whose salary is greater than 10,000.
f. Update the employee details, set EMP_GRADE equal to C whose salary is less
than 10000.
g. Delete the record of the employee whose gender is male and designation is
manager.
h. Display the name, designation, and salary of all the employees whose names
begins with A.
67
Practical-20
Create a table EMPLOYEE either the following fields:
Emp_id
Emp_name
Dept_name
Salary
Add
68
Date of joining
4. Delete the record of the employee whose name begins with S or salary
>10000
69
6. Update the record of the employee, set salary to 15000 where Dept_name is
IT.
Practical-21
70
SQL
Practical-22
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:
71
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.
Steps
Go to database tools in the Menu bar.
72
A dialogue box will appear, select all tables and click Add.
A dialogue box will appear, click on create new and list down the tables you
want.
73
One-to-One Relationship
One-to-Many Relationship
74
Practial-23
E1
E2
75
1. Create a make table query which contains the A grade students from
BBA_E1.
2. Append the A grade holders from BBA_E2 to the newly created table in the
above query.
76
Practical-24
Create two tables EMPLOYEE and DEPARTMENT with the following fields:
1. EMPLOYEE
F_NAME
L_NAME
E_ID
DOB
ADDRESS
SALARY
2. DEPARTMENT
D_NO
D_NAME
MGR_NO
MGR-DOJ
Create the forms for the employee as well as the dept table in tabular form
and write the steps to create the forms. Also provide the suitable title to
both the forms and insert the page no’s to it.
Steps
In the “Create” ribbon, in the forms group, click on “More Forms”
option and then select “FORM WIZARD”.
77
Transfer all the “Available fields” to the “Selected fields” column and
then click on “Next”.
Another dialogue box will appear, select “Tabular” for the form to
appear in tabular form. And then click on Next.
78
Another dialogue box will appear, write the suitable title for your form
and then click on “Finish”.
For editing the form, right click on the “VIEW” button and then select
“Layout View”.
79
Practical-27
Enroll
Student Course
Has
Password
User id
Login
80
Practical-28
Create an ER Diagram for Airlines Reservation system.
Flight Distance()
From To
Coordinates
Location
81
Practical-29
Email
Has Department
Phone Employee
Has Role
Name
Has
Name Description
Username
Login
Password
82
Practical-30
Create an ER Diagram for Library Management System.
User id Password
Book id
Book Name
Has
Member Name
Member id Borrow
Member
83