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

Assignment 1

The document outlines a lab assignment for BCA 2nd year students focusing on Oracle database tasks. It includes creating and manipulating a 'client' table, inserting data, and performing various SQL operations such as renaming, deleting, and querying data. Additionally, it specifies the creation of two new tables, 'Station' and 'State', with defined fields and constraints.

Uploaded by

moujhuri.patra
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

Assignment 1

The document outlines a lab assignment for BCA 2nd year students focusing on Oracle database tasks. It includes creating and manipulating a 'client' table, inserting data, and performing various SQL operations such as renaming, deleting, and querying data. Additionally, it specifies the creation of two new tables, 'Station' and 'State', with defined fields and constraints.

Uploaded by

moujhuri.patra
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

DATABASE LAB (ORACLE)

Code: BCAC491

LAB ASSIGNMENT I BCA 2nd YEAR

Student Name……………………………… Roll No…………

Problem Problem Description Signature &


No.
Date
1. Create the following table.

Table Name: client


Column name Data type Size

client_no Varchar2 3

name Varchar2 20

city Varchar2 15

state Varchar2 15

pincode Number 7

2. Show the table structure.

3. Insert the following values in the table.


Client_no Name City State Pincode

C01 Ivan Bombay Maharashtra 400054

C02 Vandana Madras Tamilnadu 780001

C03 Basu Bombay Maharashtra 400056

C04 Ravi Delhi 100001

C05 Ajay Bombay Maharashtra 400050

4. Show all the values of the table client.


5. Show only the client_no and name of the table client.
6. Add a field “telephone” of size=8 in the table client.

1
Problem Problem Description Signature &
No.
Date
7. Insert the following values for the telephone field of each client.

Client_no Telephone

C01 8440256384

C02 8904562233

C03 9825467897

C04 9475869312

C05 8456238971

8. Delete the row from the table client where the column state holds the value „Tamilnadu‟.

9. Rename the table client to client_master.

10. List all the clients who are located in „Bombay‟.

11. Change the telephone number of client „c01‟ to 9435582569.

12. Eliminate the duplicate state description when retrieving data from the state column of table
client_master
13. Find the names of all clients having „a‟ as the second letter in their names.

14. Find out the clients who stay in a city whose first letter is „D‟.

15. A column balance_due with number datatype and range (7,2) to the table client_master.

17. Find out the list of clients whose balance_due is greater than 2000.

18. Find out the list of clients whose pincode is either the value 400054 or 400056.

19. Find out the client_no and city of clients whose name is either “ivan” or “Vandana” or
“Ravi”.

2
Problem Problem Description Signature &
No.
Date

20.
Create the following tables.
Fill the tables with suitable

Table:Station

Field name Description Datatype Size constraints


Id Id of station Number 2 References station(id)
Month Month number Number 2 Check between 1 and
12
Temp Temperature Number 3
Rain Rain fall Number 3

Table:State

Field name Description Datatype Size constraints


Id Id of station Number 2 Primary
key
City City name Varchar2 20
State State name Varchar2 5

Submission Date: 07/03/2025

You might also like