You are on page 1of 2

DDCE, F.M.

UNIVERSITY
MCA 2nd Semester LAB Assignment
L-205: Data Structures Using C++ Laboratory
1. Write
a.
b.
2. Write
a.
b.

C++ programs to implement the following using an array.


Stack ADT
Queue ADT
C++ programs to implement the following using a singly linked list.
Stack ADT
Queue ADT

3. Write a C++ program to implement circular queue ADT using an array.


4. Write a C++ Program to Implement Sparse Matrix
5. Write
a.
b.
c.

C++ programs for implementing the following sorting methods:


Quick sort
Merge sort
Heap sort

L-206

DBMS (Oracle) laboratory

1. (a).Write the SQL commands to Create Table of following Structure


Field Name
Customer_ID
Customer_Name
Customer_Address
Customer_City
Customer_State
Zip

Table Name :- CUSTOMER_T


Datatype & Size
Constraints
number(11,0)
primary key
varchar2(25)
not null,
varchar2(30),
varchar2(20),
varchar2(2),
varchar2(9),

(b) Write the SQL commands to Insert some sample record

2. (a)Write the SQL commands to Create Table of following Structure


Field Name
Order_ID
Order_Date
Customer_ID

Table Name :- ORDER_T


Datatype & Size
NUMBER(11,0)
DATE
NUMBER(11,0),

Constraints
primary key
not null,
foreign key

(b) Write the SQL commands to Insert some sample record

3.

(a) Write the SQL commands to Create Table of following Structure


Table Name :- PRODUCT_T

4.

Field Name

Datatype &
Size

Constraints

PRODUCT_ID

INTEGER

primary key

PRODUCT_DESCRIPTION

VARCHAR2(50)

PRODUCT_FINISH

VARCHAR2(20)

STANDARD_PRICE

DECIMAL(6,2)

PRODUCT_LINE_ID

INTEGER

CHECK
(PRODUCT_FINISH
IN ('Cherry',
'Natural Ash',
'White Ash', 'Red
Oak', 'Natural Oak',
'Walnut'))

(b) Write the SQL commands to Insert some sample record


(a) Write the SQL commands to Create Table of following Structure
Table Name :- ORDER_LINE_T
Field Name

Datatype &
Size

ORDER_ID

NUMBER(11,0)

PRODUCT_ID

NUMBER(11,0)

ORDERED_QUANTITY

NUMBER(11,0)

Constraints

primary key & foreign key

(b) Write the SQL commands to Insert some sample record


5. Show product id and finish for all products
6. Show product id and finish for all products, sort by product_line_id by
ascending order
7. Show product id and finish for all products, sort by product_line_id by
descending order
8. Show each product_line_id and the total number of products for the
product_line_id
9. Show product_id and description for all products whose names contain a
string of "table"
10. Change a product_description from 'Duplex Table Lamp' to 'Arch Table
Lamp'
11. Show dates and how many orders received in each individual day

THE LAB RECORD MUST BE HAND WRITTEN ON SINGLE SIDE OF PAGE WITH
PROPER DETAILS LIKE PAPER CODE, SUBJECT,EXAM. ROLL NO, SIGNATURE etc.

You might also like