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

SQL Page No.

YOUVA

Date:

Electaiciky Bill MSa


creat database=
ORACLE use

drop table ebill Cif it existe intco ox decimalC)


Creake kaale ebill dataype
Cano Varchax(i0) 20I1-OL-03 2date.

consname varcharCa5),
Billingdake date, ORACLE
unik mumbez(u)
number C+) or
number (6, 2)

linserB into eloil values(Atoi, Ajay, 0tAR-I,100 Dat 2a-MAR-I

3: desc ebill;

alber kable ebill ada(lbillannk nunaberl6,2), duedaBe dake),_


update ebill set_billamt : 50;
update esil sek billant-billanat+uniks n 0 shere uniks4zIa0
updabe ebill se billanta billamr l0o*4 50+lunits-o)a 550
ehere unis2100
update ebill set duedake -billingdake t15;

select trom ebill 2


Page No.:
YoUVA
Date:

a Sudenk database

Chuakekable skudent
s i d numbezly),
Suame Varcha(2),

sub number(a),
Suba numbea(a)
Suba numbez(a),
Subynumbe?(3),
Sub5 nunmbe7().
Sub6 mumberla2

insertinko skudenk values (_1oO1, Aliya, 99,100, 8a,100 48, 96)

3 desc sudent,

- akea table shudent add(total nunmberl3) perc numbeal6,2),


Wesuk v0achaz(1) )3-

5updake skudent se okal= subitsubâ+Sub3tSubyt sub5+sub6;


update stdent Se perc koay
update studernt s e esulk pass 9heTe subLz-35 and
Subz-35s and Suba2-36 and sub2-35 and subs2-35 and
Subb2-3;-
updateshudent set esultlail ehere Subi 35 0
Suba<35 07 Sub3<35 az Sub,s3503
Subb<35 0 Subb36j-
67 Seleck tom stdent
Select Sid, Snanne from Shudent

s
9 eselec
lec taomstudent 9here resuk:"pass
oSeleck xtaonm 5tudent Ohere result-"ail (YP
select count(*) fronmstudent w9heveTesult"pass
12Select count(a) from student ohene besult=fail
13.seect Xtaomstudent 9heie peac> 6 0 ;

Selec {om skudenkOde by sid p 8

PToints o eembe

DOL DML
Update
C A D
Creat Altey daap Seect Insea elet

table CREATE
Tisert 7ovecoid INSERT
Add ne columns ALTER
Check structure ESC
Calculat Conmpute OPDA TE
Lish/ Rekzieve SELECT
HTM Notpad save i =tm))
vie on brow7)
imukable

shbmi?
shody lbqcola="black kext 19hite
<b> <center COMMERCE TIMETABLE ankez 4b>
<biq> <centez>
able lbozder=a'>

<thz MAY </h2


the oa:20 -10:00 </th>
<th> io:oo lo:404/n>.
<helo:4O-L:2o 4/th>
6h> 1:30- 18:00 4/th

stdz Mo NDAY </td>


<tdz Eco </td>
Lhd> Bst </tdz
std> C:Sc 4/td>
ktd> Acc /td>

std> TuESDAY </td>

L/table>
zjcentez s/big/body /html
Date

2)Applicakion sam
<htmlz
chody rgcobr"black" kent'9hite >
<big<cente r> APPLICAT IONFORM <perkerz </bigz
ktable or der-18"
Ktoam>

<kdz TuDENT OAME 4/tdz


td>ainput kype-"kext' name-sname z </Bd
N

athes name, dob, ualKication, Percenkaqe, ontac


nunmbea
kkaz
ktd> Gender: /td>
kdadinput kupe"zadia" name= sex value"Male" HALE
zinput upeadio name=Gex Value= temale 2 FEMALE
4td>

td align = zight>xinput kupe- butkan value- suhmit 4/td>


k td alian-" le>xinput kype ="Button valuecansel L/td>
4/t1>
4/table
s/oama
4/ body>
s/htmlz

You might also like