0% found this document useful (0 votes)
73 views

ISM Lab Practical File

The document outlines an information system management practical file submitted by Ashchint Kaur Wade. It contains 14 questions related to creating databases in MS Access with different fields, data types, primary keys, relationships etc. and performing queries using SQL syntax like WHERE, LIKE, BETWEEN, AND and OR operators. The practical file aims to teach skills related to designing databases, creating tables, inserting records, and querying data using SQL.

Uploaded by

BHANU
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
73 views

ISM Lab Practical File

The document outlines an information system management practical file submitted by Ashchint Kaur Wade. It contains 14 questions related to creating databases in MS Access with different fields, data types, primary keys, relationships etc. and performing queries using SQL syntax like WHERE, LIKE, BETWEEN, AND and OR operators. The practical file aims to teach skills related to designing databases, creating tables, inserting records, and querying data using SQL.

Uploaded by

BHANU
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 25

Information System

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

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


7 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
8 Q - Create the database named EMPLOYEE with the following fields which are as
follows and Put the Default Value of Employee Department as HR.
 Employee Code
 Employee Name
 Employee Designation
 Employee Department
 Employee Salary
 Date of Joining
 Years of Experience
9 Q - Create the database named EMPLOYEE with the following fields which are as
follows and then Set the Date of Joining as Current date by default.
 Employee Code
 Employee Name
 Employee Designation
 Employee Department
 Employee Salary
 Date of Joining
 Years of Experience
10 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.
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.
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.
13 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.
14 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.
Information System Management
Practical File

Practical - 1

Q - What do you mean by Data, Information, DBMS, RDBMS and Database?


Answer:
1. Data refers to facts and statistics collected together for reference or analysis.
2. Information: It is processed, organized and structured data. It provides context for data and enables the
decision making process.
3. DBMS: This refers to Database Management System which means security and appropriate
management of data based on constraints and other stuff.
4. RDBMS: This refers to A relational database management system (RDBMS) is a collection of programs
and capabilities that enable IT teams and others to create, update, administer and otherwise interact
with a relational database.
5. Database: A database is an organized collection of structured information, or data, typically stored
electronically in a computer system.

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.

The various Data Tables are as follows”

 Data tables store most of the data found in a database.


 Join tables are tables used to create a relationship between two tables that would otherwise be
unrelated.
 Subset tables contain a subset of data from a data table.
 Validation tables, often referred to as code tables, are used to validate data entered into other database
tables.
2. Columns

 A column, or field, is a specific category of information that exists in a table.


 A column is to a table what an attribute is to an entity.
 A column represents one related part of a table and is the smallest logical structure of storage in a
database.
 Each column in a table is assigned a data type.
 The assigned data type determines what type of values that can populate a column.

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

2. Data sheet View

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


Answer: The various features of SQL are as follows -
1. Can contain SQL Procedural Language statements and features which support the implementation
of control-flow logic around traditional static and dynamic SQL statements.
2. Are easy to implement, because they use a simple high-level, strongly typed language.
3. SQL functions are more reliable than equivalent external functions.
4. Support input parameters.
5. SQL scalar functions return a scalar value.
6. SQL table functions return a table result set.
7. Support a simple, but powerful condition and error-handling model.
8. Allow you to easily access the SQLSTATE and SQLCODE values as special variables.
9. Reside in the database and are automatically backed up and restored as part of backup and restore
operations.
10. Can be invoked wherever expressions in an SQL statement are supported.
11. Support nested functions calls to other SQL functions or functions implemented in other languages.
12. Support recursion (when dynamic SQL is used in compiled functions).
13. Can be invoked from triggers.

Q - Write the Steps to create Table in Design View and Datasheet View?
Answer:

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

2. 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
Q - What do you mean by Data Types, Field Name, Field Size and Description?
Answer:
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.
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 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.

Q - Write the steps to open an Existing Database?


Answer:
Step 1: Open MS Access
Step 2: Click on the OPEN RECENT DATABASE which is found on the right side
Step 3: Select the Required database

Step 1: Step 2:

Step 3:

Q - What are the various Data Types in Database?


Answer:
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 organise 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.

Q - Write Steps to create, open and save a Database?


Answer:
The steps to create a database are as follows:
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:
1. On the File tab, click Open.
2. In the Open dialog box, browse to the database that you want to open.
3. 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.
Information System Management
Practical - 2

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}

Practical Performed is as follows:


Input Output
Information System Management
Practical - 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.

The Output of the following practical:


Information System Management
Practical - 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
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

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


Input:
Output:
Delete the Record

Delete the Column


Information System Management
Practical - 7

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:

Output: The changes can be seen in the Employee Name Column


Information System Management
Practical - 8

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

Put the Default Value of Employee Department as HR.


Input:

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

Set the Date of Joining as Current date by default.


Input:

Here we see we have set the default value as DATE ().


Output:
Information System Management
Practical - 10

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.

Descending Order Function:


Input:

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.

Steps to Use the Operator:


1. Create a Database
2. Click on Query Wizard from Create tab and create
a query for some fields already included in your
database
3. Then click on Home tab and click on View and go
to SQL view
4. Put the query and then go to design tab and click
on RUN

Below is the output when operator AND is used


along tag WHERE.
Information System Management
Practical - 13

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.

Steps to Use the Operator:


a) Create a Database
b) Click on Query Wizard from
Create tab and create a query
for some fields already
included in your database
c) Then click on Home tab and
click on View and go to SQL
view
d) Put the query and then go to
design tab and click on RUN

Below is the output when operator


OR is used along tag WHERE.
Information System Management
Practical - 14

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.

Steps to Use the Operator:


1. Create a Database
2. Click on Query Wizard from Create tab
and create a query for some fields
already included in your database
3. Then click on Home tab and click on
View and go to SQL view
4. Put the query and then go to design tab
and click on RUN

Below is the output when operator


BETWEEN is used along tag WHERE.

You might also like