Akash ISM Lab File
Akash ISM Lab File
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
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.
Emp_id
Emp_name
Dept_name
Salary
Add
Date of joining
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’.
Assignment 2
Answer.
Step 1: Open MS Access
Assignment 3
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
Assignment 5
Create table using datasheet view as STUDENT_COURSE with the field name as
ID
COURSE CODE
COURSE NAME.
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
Step 1: Select the records which you want to delete. Options will open. Click on
‘Delete Record’
Step 1: Select the field which you want to delete. Options will open. Click on
‘Delete Column’
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.
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.
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.
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
OUTPUT
OUTPUT
4. Display the acc no, acc type, account H_name and balance where balance is
greater than 5000.
OUTPUT
Assignment 12
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’.
Assignment 13
Emp_id
Emp_name
Dept_name
Salary
Add
Date of joining
Table: Employee
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
14. Display the name of the employee whose contact no. is 98454863011.
16. Display the name of the employees whose salary is greater than 10,000.
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.
21. Display the employee id, name, salary and designation for the
employees whereemp_grade is A.
Solution
Table: Employee
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.
QUERY2: Find the details of the employee working in the same dept.