Ãp Ãp Ãp Ãp Ãp Ãp Ãp Ãp Ãp

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 5

BCA-4th

Subject:- DBMS

ASSIGNMENT 2                                                                     

1. Explain the following commands:

a)      LIST

b)      DISPLAY

c)      LOCATE

d)      EDIT

e)      BROWSE

f)        DELETE

g)      RECALL

h)      PACK

2. Create a database that contain the following fields: emp_id, emp_name, emp_sal, dept_no
, dept_name, job_type,city

            Execute the following queries:

 Display the name and id of the employes whose salary is >20000.


 Display the name and id for the employees whose annual salary >50000.
 Display details of the employ who is manager and lives in jaipur.
 Display the employees of department 4.
 List the city, id and name of employees who live in jaipur or Jodhpur.
 List only the record number of employees whose salary < 50000
 List the first record of employee of sales department
 Display the details of the employees whose first name or middle name is ‘kumar’.
 Save all the records which you entered to a text file and they should not be displayed on
console.
 Display the structure of database.
 Edit the database created by you but the employee name should be in read only mode.
 Edit the salary of the employee and make sure that salary should not be less than 4000.
 Edit the database created by you such that only one specified field can be modified and
the rest will be in read only mode.

ASSIGNMENT – 3                                              

1. Increase salary of all the employee of department no 3 by 1000 and change their
department to 33 for employee database created by you in last assignment.
2. Delete all the records from a database except first 5 records.
3. Delete first 5 records from a database.
4. Delete first record of a employee whose city is “Delhi”.
5. Add a new field of memo data type to your database.
6. Add more data to memo field without using edit /change/browse command.
7. Save the list of all those file whose name start with c on d drive.
8. Sort student records on the basis of their name .If students have same name than sort on
the basis of their father name but in descending order.
9. Sort the records of a database except first 6 records.
10. Sort first 5 records of the database.

1.  Create database with following fields

Rno, First Name, Last Name, Sub1, Sub2, Sub3

2. Create a report as follows

UNIVESITY

Rno          Name         Sub1       Sub2       Sub3         Total       Per

.
.

                                                     Maximum percentage    …………

                                                      Minimum percentage      …………

Date:

        

3. Modify above report to display division also.

4. Design a database for salesman having following fields

Name, Product_No, Quantity_Sold, Month

Create a report which show grouping according to month and for each moth further
grouping must be done on the basis of salesman name. Also display sale done by each
salesman for each month.

5. Design addresses labels.

 Assignment-6 

1. Write a command to display date with given message in following format

Date of Birth is: 01 January 1990

2. Write a command to display your name in upper case. Also find length of your name.
3. Accept two values from user and display their addition, subtraction, multiplication,
division and modulus.
4. From the salesman database created by you previously display name and month of sales
man who sold more than 15 quantities.
5. From the salesman database find out total quantity sold in month of feb.
6. Write a command which will display size of array created by you
7. Write a command which will display total number of columns in a 2d array
8. Write a command which will display position number of “k” in string “lucky institute”.
Save the search string in a variable
9. Write a command which will display “luck” from string “lucky”.
10. Write a command which will count total no of occurrence of “I” in “institute”.

Assignment-7 

1. Write a program which will print table of a number n.


2. Write a program which will display only name and phone number of those students who
have failed in exam.
3. Write a program which will print following series
 10, 20, 30, 40……….n
 2, 4, 6, 8, 10………...n
 1, 2, 3, 4,6, 7,8,9,11……….n
4. Write a program which will read two variables and provide option for addition           
subtraction, multiplication, division and mod. Type of operation to be performed depends
on user input.
5. Write a program which will add all the number entered by user and stops when 0 is
entered.
6. Write a program which will accept name of student and display record of that student.
7. Write a program which will append a row in table created by you. Accept all the column
values from user.
8. Write a program which will accept record no from user and display that record.

FOXPRO LAB

Assignment 1
1. What is database
2. What is database management system
3. Define table,record and field
4. What is FOXPRO

Assignment-4

1. What is indexing?
2. Create two indexes on father name and phone no field of student database.
3. Using indexing on father name display all the records.
4. Create index on name and father name field of student database.
5. Add two records to the database and show use of reindexing.
6. What is the Difference between independent compound index file and structural
compound index file.
7. Explain creation and working of compound index file and structural compound index file.
8. Describe use of find and seek command with example.

You might also like