0% found this document useful (0 votes)
33 views3 pages

Ms Access Assignment

The document outlines a series of assignments focused on creating and managing databases using MS Access. It includes tasks such as creating tables for students, hotels, employees, vehicles, and sales orders, as well as performing queries and generating reports. Each assignment specifies the required fields, data types, and constraints to be applied, along with instructions for inserting records and applying relationships between tables.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
33 views3 pages

Ms Access Assignment

The document outlines a series of assignments focused on creating and managing databases using MS Access. It includes tasks such as creating tables for students, hotels, employees, vehicles, and sales orders, as well as performing queries and generating reports. Each assignment specifies the required fields, data types, and constraints to be applied, along with instructions for inserting records and applying relationships between tables.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Access Assignments

Assignment -1.1

a) Create a studentDB and save the database in D:/<yourname>/MS_ACCESS.


b) Create a table with fields – RollNumber, FirstName, LastName, MiddleInitial, Address, City, State, ZipCode
c) Save the table as Students.
d) Insert total 5 records here.

Assignment -1.2

a) Create a table HotelBooked with the following fields:


(hotelName, city, roomNo, Price, dateFrom, guestName, occupied, Email, citizenshipProof)
b) Create a database hotelDB in D:/<yourname>/MS_ACCESS.
c) Insert five records.

Assignment -2.1

Create a table of employee having columns Empcode, EmpName, DeptName, CompNumber,


CompPassword, BasicSalary, HRA, DA and Grosssalary. Insert 5 records and apply the field properties as follows :

a) Insert an autonumber field as Empcode and populate it.


b) For DeptName use Caption as “Enter Dept Name”.
c) Name of Employee is a ‘Required Field’. Field size is 80.
d) Take default Deptname as ‘Computer’.
e) Input Mask for Password column.
f) DA =HRA+100 (calculated field).
g) Gross=Basic+HRA+DA as calculated field.

Insert new records and check all properties applied are working properly.

Assignment -2.2

Create a table Vehicle, with the following fields:


(RegistrationNo, OwnerName, Manufacturer, Color, costPrice, sellingPrice, QtyInStock , DOO(Description : Date Of
Order), DOD(Description : Date Of Delivery)
a) costPrice is between 1000 and 45000.Apply validation rule and validation text. Default value of price is
15000.
b) Manufacturer name ends with Inc.
c) Color field will accept values Silky Silver, Solid Fire Red, Magma Grey. Apply validation rule.
d) Apply input mask for registration number field as WB023567.
e) QtyInStock accept values 10, 20, 30.
f) DOO is less than today’s date. Date of order should be entered in format dd-mm-yyyy.
g) DOD is between 12/5/2021 and 29/7/2021.
h) DOD is more than DOO.

Assignment-3.1.

a) Create two tables – Employee and Department with the given column structure.

Employee (EmpID, EmpName, DepartmentId)


Department (DepartmentId, DeptName)
Apply the required Foreign Key and Primary Key Structure.

b) Create two tables – Student and Course with the given column structure.

Student (StudentID, StuName, StuAddress, ContactNo, CourseID)


Course (CourseId, CourseName, Duration, Fees)
1
Apply the required Foreign Key and Primary Key Structure.

Assignment -3.2

Design and create Employee Database. The tables are

Employee (EmpID, EmpName, DtofBirth, Gender, Address, DtofJoin, DeptId)


Department (DeptId, DeptName, NofEmployee, LocationID)
Location (LocationID, Address, City, Pincode)
Create relationship and insert at least 5 records in each table

Assignment -3.3

Design and create a complete Sales Order Database. The tables are

Items (ItemID, ItemName, UnitPrice, UnitQty, Stock)


CustomerDetail (CustomerID,CustomerName, Address, ContactNo)
ClerkDetail (ClearkID, ClerkName, ClAddress, ClContactNo)
SalesOrderInfo (OrderID, OrderDate, ItemID, UnitSold, Price, TotalCost [Unitsoid*Price], CustomerID,
ClerkID)
Create relationship and insert at least 5 records in each table and 10 records in SalesOrderInfo table.

Apply Cascade update and cascade delete in assignment no 3.2.

Assignment - 4.1

a) Write a query on Sales Order Database to fetch the OrderId, OrderDate, CustomerName, ClerkName,
ItemName, unitSold ,Price and TotalCost.
b) Sort them by Orderdate.
c) Try to find out the sales detail for a single Item ( a particular item)
d) Find out all sales detail where unit sold more than 10.

Assignment - 4.2

a) Write a query on Employee Database to fetch EmpID, EmpName, DeptName, LocationID and City.
b) Display the names of female employees.
c) Display the names of employee working in Delhi or in Mumbai.
d) Display the names of employee working in Kolkata and in HRD department.

Assignment - 4.3

Create bookstore database and apply primary key and foreign key constraint.
Book( booktitle, authorCode, Publisher, pubDate, Price, ISBN, copyright)
Publisher(pubID, pubName,URL)
Author(authorID, authorFname, authorLname )
Perform following queries:
a) List all the authors having last name starts with M.
b) List all books having ISBN number which includes 135 and 072.
c) List all books which were published after 2008.
d) List all Microsoft books with price less than Rs 100.
e) List all of the books whose title contains Excel 2007 and that are published by Wiley.
f) Update price of the book by decreasing its value by 12.43%.

Assignment -5.1

Create a Student Database. Tables are

StudentInfo (StudentID, StuName, FatherName, Address, StuClass, Section)


StudentMarks(StudentID, English, Bengali, Maths, Science,Total)
2
Create relationship and insert at least 5 records in each table. Do not enter any value in Total field. Create the
queries using both design and SQL view.

a) Create a Select query to display StudentID, StuName, StuClass, Section


b) Create a Select query to display the students who score above 80 in Maths.
c) Create an Update query to update the value of total (= English+ Bengali+ Maths+ Science) in
StudentMarks table.
d) Create a Parameterized query on StudentMarks table to fetch record for a particular student.

Assignment -5.2

An organization ABC maintains a database EmpDependent to record the following details about its
employees and their dependents.
EMPLOYEE(adhaarNo, Name, Address, Department, EmpID)
DEPENDENT(EmpID, dependentName, Relationship, noOfDependent)
Use the database to answer the following SQL queries:
a) Find the names of employees with their dependent names.
b) Find employee details working in a department, say, ‘PRODUCTION’.
c) Find names of employees working in a department, say, ‘SALES’ and having exactly two dependents.

Assignment - 6

a) Create simple, multiple item and split form on students database. Insert, update and delete data through the
simple form you have created.
b) Add Buttons on the student information form for Insert ,Save new Record, Quit Application and Go to first Row.
c) Create a Form on the query based on Employee and Department (assignment no 3.1(a)). The fields are EmpID,
EmpName, DeptName.
i. Apply a logo and date time.
ii. Give appropriate color to the fields and labels.
iii. Change the font size and font color for fields
iv. Change the background color.

Assignment -7

a) Create report to display Department wise Employee list (assignment no 3.2)


b) Create report to display list of Items whose stock is below 10(assignment no 3.3).
c) Create a report based on the table StudentMarks (assignment no 5.1) to display subject wise maximum.
d) Create a student mark sheet.

Assignment-8

Create a table of CarInfo having column carID, CarType, CarColor, CarNumber, SaleValue, and City. Insert
10 entries.

a) Add a column called zipcode at the end.


b) Move the column city and zip in between carNumber and SalesValue.
c) Rename Zip to pincode.
d) Filter the all entry where carType is “Alto”.
e) Sort the data in descending order of CarColor.
f) Export the data to Car.xlsx saved at D: Drive
g) Create table Teacher( TeacherId, Tname, DOJ(Date OF Joining), salary, age, email) in Excel. Import
the Teacher table from excel file and save it as TeacherInfo.

Assignment -9

Create two tables –Teachers( TeacherId, Tname, TAddress,ClassTeacher) and Student (StudentID, SName, Sclass,
TeacherId). In Student table make a lookup column for teacherId. Make another lookup column by value on the Sclass
Column.

You might also like