You are on page 1of 2

DDCE, FM University BCA 4th Semester

CSL-67 :RDBMS
1. (a).Write the SQL commands to Create Table of following Structure
Table Name :- CUSTOMER_T
Field Name
Datatype & Size
Customer_ID
number(11,0)
Customer_Name
varchar2(25)
Customer_Address
varchar2(30),
Customer_City
varchar2(20),
Customer_State
varchar2(2),
Zip
varchar2(9),
(b) Write the SQL commands to Insert some sample record

Constraints
primary key
not null,

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


Table Name :- ORDER_T
Field Name
Datatype & Size
Constraints
Order_ID
NUMBER(11,0)
primary key
Order_Date
DATE
not null,
Customer_ID
NUMBER(11,0),
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
Field Name
Datatype & Size Constraints
PRODUCT_ID
INTEGER
primary key
PRODUCT_DESCRIPTION VARCHAR2(50)
PRODUCT_FINISH
VARCHAR2(20)
CHECK (PRODUCT_FINISH IN ('Cherry', 'Natural Ash',
'White Ash', 'Red Oak', 'Natural Oak', 'Walnut'))
STANDARD_PRICE
DECIMAL(6,2)
PRODUCT_LINE_ID
INTEGER
(b) Write the SQL commands to Insert some sample record
4. (a) Write the SQL commands to Create Table of following Structure

5.
6.
7.
8.
9.
10.
11.

Table Name :- ORDER_LINE_T


Field Name
Datatype & Size Constraints
ORDER_ID
NUMBER(11,0)
primary key& foreign key
PRODUCT_ID
NUMBER(11,0)
ORDERED_QUANTITY
NUMBER(11,0)
(b) Write the SQL commands to Insert some sample record
Show product id and finish for all products
Show product id and finish for all products, sort by product_line_id by ascending order
Show product id and finish for all products, sort by product_line_id by descending order
Show each product_line_id and the total number of products for the product_line_id
Show product_id and description for all products whose names contain a string of "table"
Change a product_description from 'Duplex Table Lamp' to 'Arch Table Lamp'
Show dates and how many orders received in each individual day

CSL-65 : WINDOWS PROGRAMMING


1. Discuss the steps necessary to install a Timer event and generate Random numbers.
2. Write a program to enter the value of two variables (X and Y). Find and print themaximum
value for two variables. Design form window and select all the control objects are used.
3. Write a program that allows the user to enter the RGB codes into three different
textboxes and when clicks the display color button, the background color of the form will
change according to the RGB codes. So, this program allows users to change the color
properties of the form at run time.
4. Write a program to enter the value of variable (Mark). Find the grade using If Block
statement and display the value of grade in a text box. When the value of variable (Mark)
exceed 100, write a Message Box (Wrong entry, please Re-enter the Mark). Design form
window and select all the control objects are used.
5. Design a form with four text boxes and three commands. Design the program so that the
values of num1, num2, and Symbol are entered into separate three text boxes. Write a
code to perform (add, subtract, multiply and divide) when pressing on command
(Calculate). Display the result in separate text box. The command (Clear) used to clear
values in text boxes. Click command (Exit) to end the program and return to the project
window.
6. Design a form and write code to find the summation of numbers (from 0 to 100).
7. Design a form and write code to find the summation of even numbers (from 0 to 100).
8. Design a form with one command and two text boxes. Enter the value of integer number
(N) in separate text box. Write a code program to check if the number (N) is a prime
Number or not. Display the It is not a prime number or It is a prime number in separate
text box.
9. Write a code program to design a simple calculator. This program uses a combo
boxwhich includes four operators, addition, subtraction, multiplication and division and
two list boxesincluded the integer numbers. It can perform the above four basic
calculations by changing theoperators.
10. Suppose A is a one dimension array with 10 elements is entered into listbox. Write a
program segment to find the location J such that A (J) contains the largest value in A.
Display the Largest value and the location into textboxes.
11. Write a code program to read the elements of the array T(5,3) on a row by row. Calculate
the SUM of elements in each row and stored in column 4. Print a new array T(5,4) and
the sum of all individual row sums, the cumulative sum for all rows.
12. Create a form with a picture box. Find 3 interesting pictures. Use a timer control tocycle
the pictures every 2 seconds. The form should close when the EXIT button is clicked.
13. Create a "WELCOME" form which asks the user their name, then says "Hello<name>".
The user is then given a choice (with option buttons) of translating fonts ordisplaying the
text in uppercase / lowercase and thereby accordingly the event takes place as per the
option selected. This form should stop by clicking a suitable Command Button. Interface
should be user-friendly.

You might also like