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

Business Data Processing System Practical Questions

The document provides a series of questions related to creating and querying tables in a business data processing system, including creating tables to store employee, person, catalog, and recruitment data with various attributes and relationships, entering data into the tables, and writing queries to retrieve, filter, sort, and group data according to specified criteria. Questions cover tasks like defining primary and foreign keys, joining tables, sorting results, and setting validation rules when creating tables.

Uploaded by

gramana10
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
386 views

Business Data Processing System Practical Questions

The document provides a series of questions related to creating and querying tables in a business data processing system, including creating tables to store employee, person, catalog, and recruitment data with various attributes and relationships, entering data into the tables, and writing queries to retrieve, filter, sort, and group data according to specified criteria. Questions cover tasks like defining primary and foreign keys, joining tables, sorting results, and setting validation rules when creating tables.

Uploaded by

gramana10
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 4

Business data processing system

B.com ii year
Practical questions

1. Create an employee table with the following details:


Employee Name BASIC HRA GROSS PAY

Assume all constraints, enter the data and calculate da, hra, gross pay.

2. Create a table named person with name and age as attributes. Enter the data for 10
rows?
a) Modify the structure of the table to add a new column “Address”.
b) Make the name and address as primary key for the table.

3. Create two tables EMPLOYEE and DEPARTMENT with the following details?
EMPLOYEE
Employee# Name Job HireDate Salary Dept No

DEPARTMENT
Dpt No Name Location
a) Make Employee No and Department No the Primary keys for EMPLOYEE and
DEPARTMENT tables respectively.
b) Make Dept No of employee table, the foreign key for the DEEPARTMENT table.
c) Display the details of Employees, whose salary is grater than Rs.5000.
d) Display the name of places, where different employees are working.

4. Create the CATALOG table with the following fields?


CATALOG
ISBN Title Author name Publisher Year
Price

Create queries as per the following specifications:


a) Get the details of all the books whose price between 1000 & 1500
b) Get the details of all the books whose price between 1000 & 1500 in descending
order of the prices.
c) Get the details of all the books whose stock level is zero.

5. Use the table of question No.4, create queries as per the following specifications?
a) Get the details of all books whose year of publishing in 2005.
b) Get the details of all books whose year of publishing in 2002 or 2005.
c) Get the details of all books whose year of publishing is between 2000 and 2005.

6. Illustrate the use of append query?

7. Consider the following tables?


EMPLOYEE
Employee # Name Job HireDate Salary Dept No

DEPATRMENT
Dpt No Name Location
Enter relevant data and create queries as per the following specifications:
a) Display name and location of the department, where ALLEN is working.
b) Display number and name of all employees who earn more than 2600 in
alphabetical order by name?
c) Write a query that will accept a given job title and displays all rows according to
that title.
8. Consider the following table:
EMPLOYEE
Employee # Name Job HireDate Salary Dept No

DEPATRMENT
Dpt No Name Location
a. Write a query to duplicate the EMPLOYEE table.
b. Calculate the total compensation expense for each department for one year
c. Find the department no where more than one clerk is working

9. Creat a database named Recruitment with the tables Application, interview and
Recruitment. The structure of the tables are given below:

Application
FieldName Data Type Validation Rules/Constraints
Cand Id AutoNumber Primary Key
Name Text (20)
Qualification Text (20) MCA or Msc (CS) or BE or ME
Appl_Date Date Between May 15th to june 30th 2005
Date of Birth Date Between 1st January 1980 And 31st March
1985
Percentage Number Between 70 and 100

Interview
FieldName Data Type Validation Rules/Constraints
Intv Id Auto Number
Cand Id Auto Foreign Key to Can_Id of Applications table
Numbeer
Intv Marks Number Between 1 and 100

Recruitment
FieldName Data Type Validation Rules/Constraints
Recruit Id Text (7)
Intv Id Aito Number
Join Date Date >Current date+1 month and
<Current Date+2 months
Post Text (25)
Recruited

Set the validation rules, while creating the tables and enter data into it:

10. Using the table from Question 9, perform the following operations:
a. create a simple query named Interview List to select only the Cand_id from the
Applications table with the candidates having above 70% and with the qulicatins as
MCA or MSc (CS).
b. From the Interview Table, Select only the Intv_id having Intv_Marks og more than
70, who are to be recruited for posts.

c. Create a look up field for Post_Recruited having the Values Software Engineer,
system Engineer, support Incharge, senior Manager.

You might also like