ISM Lab Practical File
ISM Lab Practical File
Management
2020 - 2023
Submitted by: Submitted to:
Ashchint Kaur Wade Ms. Itti Hooda
02621201720
BBA IV - A Evening
Subject Code - 212
Table of ConTenTs
SNo. Name of Practical Remarks
1 Theory About SQL
2 Q - Use the Syntax WHERE with its Operators in the Table with the Following Fields:
1. Enrollment Number (Put this as a Primary Key)
2. Student Name
3. Student Roll no.
4. Gender
5. Age
6. Marks Obtained
3 Q - Use the Syntax WHERE along with LIKE and perform the Query in the same
database as prepared in Practical 2.
1) Enrollment Number (Put this as a Primary Key)
2) Student Name
3) Student Roll no.
4) Gender
5) Age
6) Marks Obtained
4 Q - Create the database named EMPLOYEE with the following fields which are as
follows:
Employee Code
Employee Name
Employee Designation
Employee Department
Employee Salary
Date of Joining
Years of Experience
In this database, Set Employee Code as your Primary Key.
5 Q - Create the database named EMPLOYEE with the following fields which are as
follows, and Set the Employee salary in Dollars.
Employee Code
Employee Name
Employee Designation
Employee Department
Employee Salary
Date of Joining
Years of Experience
6 Q - Create the database named EMPLOYEE with the following fields which are as
follows:
Employee Code
Employee Name
Employee Designation
Employee Department
Employee Salary
Date of Joining
Years of Experience
Practical - 1
Q - Write the Steps to open MS Access. Also mention the Steps to create a database?
Answer:
Steps to open MS Access are as follows:
➔ Click on Windows
➔ Click on All Programme and then on Microsoft access
➔ Click on MS Access
Step 1: Step 2:
Step 3:
Steps to create a Database are as follows:
➔ Open MS Access
➔ Select Blank Database
➔ Enter File Name then Click on CREATE
Step 1: Step 2:
Step 3:
Q - What are the various elements and objects of a Database? What are the various ways to create tables in
database?
Answer: The various elements and objects of a database are as follows -
1. Table
A table is the primary unit of physical storage for data in a database.
When a user accesses the database, a table is usually referenced for the desired data.
Multiple tables might comprise a database, therefore a relationship might exist between tables.
Tables are used to store the data that the user needs to access.
Tables might also have constraints attached to them, which control the data allowed to be entered into
the table.
An entity from the business model is eventually converted into a database table.
3. Rows
A row of data is the collection of all the columns in a table associated with a single occurrence.
Simply speaking, a row of data is a single record in a table.
4. Data Types
A data type determines the type of data that can be stored in a database column.
The most commonly used data types are as follows:
Text
Alphanumeric - These store characters, numbers, special characters, or nearly any combination.
Numeric - These are used to store only numeric values.
Date and Time - These are used to store date and time values, which widely vary depending on the
relational database management system (RDBMS) being used.
Talking about the various ways to create Tables so there are 2 ways which are as follows:
1. Design View
Q - Write the Steps to create Table in Design View and Datasheet View?
Answer:
1. DESIGN VIEW
2. DATASHEET VIEW
Step 1: Step 2:
Step 3:
Q - Use the Syntax WHERE with its Operators in the Table with the Following Fields:
7. Enrollment Number (Put this as a Primary Key)
8. Student Name
9. Student Roll no.
10. Gender
11. Age
12. Marks Obtained
Answer: WHERE syntax is used to Filter records in a database. This Syntax is used only to fulfill a specified
conditions.Some of the Operators which can be used along with WHERE are as follows:
= Equal to
< Less than
> Greater than
<> Not equal
>= Greater than or equal
<= Less than or equal
BETWEEN Between a certain Page
LIKE Search for a pattern
IN To specify Multiple possible values
AND If the conditions in a record are separated by AND. For example:
SELECT * FROM Customers WHERE Country = ‘Germany’ and
City = ‘Berlin’;
OR If the conditions in a record are separated by OR. For Example:
SELECT * FROM Customer WHERE City= ‘Berlin’ OR City=
The practical
‘Munich’;
performed using this
NOT If the conditions in a record is not true. For Example: SELECT *
tag is as follows:
FROM Customer WHERE NOT Country= ‘Germany’;
{This operator NOT can be combined with AND and OR and
Used}
Input Output
Information System Management
Practical - 3
Q - Use the Syntax WHERE along with LIKE and perform the Query in the same database as prepared in
Practical 2.
7) Enrollment Number (Put this as a Primary Key)
8) Student Name
9) Student Roll no.
10) Gender
11) Age
12) Marks Obtained
Answer - WHERE syntax is used to Filter records in a database. This Syntax is used only to fulfill a specified
conditions.Some of the Operators which can be used along with WHERE are as follows:
= Equal to
< Less than
> Greater than
<> Not equal
>= Greater than or equal
<= Less than or equal
BETWEEN Between a certain Page
LIKE Search for a pattern
IN To specify Multiple possible values
AND If the conditions in a record are separated by AND. For example:
SELECT * FROM Customers WHERE Country = ‘Germany’ and
City = ‘Berlin’;
OR If the conditions in a record are separated by OR. For Example:
SELECT * FROM Customer WHERE City= ‘Berlin’ OR City=
‘Munich’;
NOT If the conditions in a record is not true. For Example: SELECT *
FROM Customer WHERE NOT Country= ‘Germany’;
{This operator NOT can be combined with AND and OR and
Used}
Q - Create the database named EMPLOYEE with the following fields which are as follows:
Employee Code
Employee Name
Employee Designation
Employee Department
Employee Salary
Date of Joining
Years of Experience
Q - Create the database named EMPLOYEE with the following fields which are as follows, and Set the
Employee salary in Dollars.
Employee Code
Employee Name
Employee Designation
Employee Department
Employee Salary
Date of Joining
Years of Experience
Input:
Output:
Information System Management
Practical - 6
Q - Create the database named EMPLOYEE with the following fields which are as follows:
Employee Code
Employee Name
Employee Designation
Employee Department
Employee Salary
Date of Joining
Years of Experience
Q - Create the database named EMPLOYEE with the following fields which are as follows:
Employee Code
Employee Name
Employee Designation
Employee Department
Employee Salary
Date of Joining
Years of Experience
Set the Employee Name in UPPERCASE and set the Field Size = 20
Input:
This is the edits made in the field EMPLOYEE NAME:
Q - Create the database named EMPLOYEE with the following fields which are as follows:
Employee Code
Employee Name
Employee Designation
Employee Department
Employee Salary
Date of Joining
Years of Experience
Here we have set the default value of employee Designation as Human Resource
Output:
Information System Management
Practical - 9
Q - Create the database named EMPLOYEE with the following fields which are as follows:
Employee Code
Employee Name
Employee Designation
Employee Department
Employee Salary
Date of Joining
Years of Experience
Q - Create the database named EMPLOYEE with the following fields which are as follows:
Employee Code
Employee Name
Employee Designation
Employee Department
Employee Salary
Date of Joining
Years of Experience
For the above created table use the ‘ORDER BY’ tag and arrange the database in ascending and descending
order.
Output:
Ascending Order Function:
Input:
Output:
Information System Management
Practical - 11
Q - Create the database named EMPLOYEE with the following fields which are as follows:
Employee Code
Employee Name
Employee Designation
Employee Department
Employee Salary
Date of Joining
Years of Experience
For the Above created database set the input mask for the field property for employee code and date of joining
with the input mask result.
Information System Management
Practical - 12
Q - Create the database named EMPLOYEE with the following fields which are as follows:
Employee Code
Employee Name
Employee Designation
Employee Department
Employee Salary
Date of Joining
Years of Experience
Use the Operators AND with tag WHERE in the Database and showcase the output.
Q - Create the database named EMPLOYEE with the following fields which are as follows:
Employee Code
Employee Name
Employee Designation
Employee Department
Employee Salary
Date of Joining
Years of Experience
Use the Operators OR with tag WHERE in the Database and showcase the output.
Q - Create the database named EMPLOYEE with the following fields which are as follows:
Employee Code
Employee Name
Employee Designation
Employee Department
Employee Salary
Date of Joining
Years of Experience
Use the Operators BETWEEN with tag WHERE in the Database and showcase the output.