0% found this document useful (0 votes)
17 views7 pages

On Child Labour

Child labour

Uploaded by

guptaasunny773
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views7 pages

On Child Labour

Child labour

Uploaded by

guptaasunny773
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

Assignment-III

DATABASE MANAGEMENT SYSYTEM


[UBA23302T]

DONE BY: SUNNY GUPTA

REG NO. : RA2351001030093

BBA 3rd SEMESTER SECTION:-B

SUBMITTED TO: TRIPTI AG.

C:\Users\sunnykr>sqlplus

SQL*Plus: Release 21.0.0.0.0 - Production on Tue Oct 1 18:31:04 2024

Version 21.3.0.0.0

Copyright (c) 1982, 2021, Oracle. All rights reserved.

Enter user-name: system

Enter password:

Last Successful login time: Mon Sep 30 2024 22:47:40 +05:30

Connected to:

Oracle Database 21c Express Edition Release 21.0.0.0.0 - Production

Version 21.3.0.0.0
SQL> create table client_master12(

2 client_no varchar(6),

3 name varchar(20),

4 city varchar(20),

5 pincode int,

6 state varchar(20),

7 baldue int);

Table created.

SQL> insert into client_master12(client_no, name, city, pincode, state, baldue) values
('c00001', 'mohit', 'mumbai', 400054, 'maharashtra', 15000);

1 row created.

SQL> insert into client_master12(client_no, name, city, pincode, state, baldue) values
('c00002', 'mamta', 'madras', 780001, 'tamil nadu', 0);

1 row created.

SQL> insert into client_master12(client_no, name, city, pincode, state, baldue) values
('c00003', 'chhaya', 'mumbai', 400057, 'maharashtra', 5000);

1 row created.

SQL> insert into client_master12(client_no, name, city, pincode, state, baldue) values
('c00004', 'ashwini', 'bangalore', 560001, 'karnataka', 0);

1 row created.

SQL> insert into client_master12(client_no, name, city, pincode, state, baldue) values
('c00005', 'hanshal', 'mumbai', 400060, 'maharashtra', 2000);

1 row created.

SQL> insert into client_master12(client_no, name, city, pincode, state, baldue) values
('c00006', 'deepak', 'mamglor', 560050, 'karnataka', 0);

1 row created.

SQL> commit;

Commit complete.
SQL> describe client_master12;

Name Null? Type

----------------------------------------- -------- ----------------------------

CLIENT_NO VARCHAR2(6)

NAME VARCHAR2(20)

CITY VARCHAR2(20)

PINCODE NUMBER(38)

STATE VARCHAR2(20)

BALDUE NUMBER(38)

SQL> select* from client_master12;

CLIENT NAME CITY PINCODE STATE

------ -------------------- -------------------- ---------- --------------------

BALDUE

----------

c00001 mohit mumbai 400054 maharashtra

15000

c00002 mamta madras 780001 tamil nadu

c00003 chhaya mumbai 400057 maharashtra

5000

CLIENT NAME CITY PINCODE STATE

------ -------------------- -------------------- ---------- --------------------

BALDUE

----------

c00004 ashwini bangalore 560001 karnataka


0

c00005 hanshal mumbai 400060 maharashtra

2000

c00006 deepak mamglor 560050 karnataka

6 rows selected.

SQL> select name from client_master12;

NAME

--------------------

mohit

mamta

chhaya

ashwini

hanshal

deepak

6 rows selected.

SQL> select* from client_master12 where city='mumbai';

CLIENT NAME CITY PINCODE STATE

------ -------------------- -------------------- ---------- --------------------

BALDUE

----------

c00001 mohit mumbai 400054 maharashtra

15000

c00003 chhaya mumbai 400057 maharashtra

5000
c00005 hanshal mumbai 400060 maharashtra

2000

SQL> select * from client_master12 where city='mumbai';

CLIENT NAME CITY PINCODE STATE

------ -------------------- -------------------- ---------- --------------------

BALDUE

----------

c00001 mohit mumbai 400054 maharashtra

15000

c00003 chhaya mumbai 400057 maharashtra

5000

c00005 hanshal mumbai 400060 maharashtra

2000

SQL> update client_master12 set baldue=1000 where client_no='c00001';

1 row updated.

SQL> update client_master12 set city='bangalore' where client_no='c00005';

1 row updated.

SQL> select* from client_master12;

CLIENT NAME CITY PINCODE STATE

------ -------------------- -------------------- ---------- --------------------

BALDUE

----------

c00001 mohit mumbai 400054 maharashtra

1000

c00002 mamta madras 780001 tamil nadu


0

c00003 chhaya mumbai 400057 maharashtra

5000

CLIENT NAME CITY PINCODE STATE

------ -------------------- -------------------- ---------- --------------------

BALDUE

----------

c00004 ashwini bangalore 560001 karnataka

c00005 hanshal bangalore 400060 maharashtra

2000

c00006 deepak mamglor 560050 karnataka

6 rows selected.

SQL> delete from client_master12 where state='tamil nadu';

1 row deleted.

SQL> select* from client_master12;

CLIENT NAME CITY PINCODE STATE

------ -------------------- -------------------- ---------- --------------------

BALDUE

----------

c00001 mohit mumbai 400054 maharashtra

1000

c00003 chhaya mumbai 400057 maharashtra

5000
c00004 ashwini bangalore 560001 karnataka

CLIENT NAME CITY PINCODE STATE

------ -------------------- -------------------- ---------- --------------------

BALDUE

----------

c00005 hanshal bangalore 400060 maharashtra

2000

c00006 deepak mamglor 560050 karnataka

SQL>

You might also like