0% found this document useful (0 votes)
13 views9 pages

C.S. Journal

CS journal for class 12

Uploaded by

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

C.S. Journal

CS journal for class 12

Uploaded by

shreyanshtak2007
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 9
falas | EXPERIMENT [oat Ain _|Iceeate table employee —and_Inserk das [sek _ompid oS primary key _t Emptd | Ename | ender Dept _Solary | toou | yoeh | 4 + | Sales 40000 [yoo | Nest | ay | _craunts |__anao0 | |_1009 | Rovi | ” | Accounts 45000 | | pot Sam M Account Sanna | L005, Ruby. sales araa | | lh sn wan : respect to _EmpTd ~ alias - A 1 Smita’ s09 lig peaao i @\(virite, o query to delele the data af the ‘emp whose empid Lis 1002. 4 Tanati =. @ scanned with OKEN Scanner Outpet + bopt Se Salany rama Gender @ frevd fm Hh Accounts 60000 joo! sam aon Neel wv Accounts f ° Joo2 col 0 1004 Akash M Sales 90000 “4000: loos Ruby F sales 0000 Jods Ravi N Accounts 1 25000. Empld Ename Gender Dept’ Sdlary 104 Akash " Sales 30000 \oo2 Neel nw Accounts 20000 '909 Ravi 4 Accounts 2B00 Joo fan “ * Accounts 50000 1005 Roby F Sates bingo’ @ tmpid — Ename Gender Dept: Satary toy Akash " sales sooue 1009 Raw 4 3 Accounts 28000 100! Sam 4 Reesunts, 50°00 }o05 Roby i Sates YOooo @ Gmetd name og er i \oou nder Dept ' Gross Alcash " & ‘on Posi i" es 30000 lent Sam mn / Neaunts 28000 les Roby f Accounts 50005 Sales O@ erame ooo Som Ruby Rasy} Akash @ scanned with OKEN Scanner EXPERIMENT Be (poaane] 27 ut [ow J —_—_ ___|Code - __@ | Create_table_emp | Comp id_int_not_null_primary Key, enarne __Narehar_(S07, gender char (2) dept varchar (301. Salary int’) > bf _insert_into_emp valves (1004 ‘axash’ 'M' ‘Sales’, 'g0000); ___—insert_into_emp_values (1902 Neel’, UM', “accounts ‘20000) — __inseck_into_emp volves (imo, ‘Ravi 4", *Accumnbs', 750 00)5 __inserk_inta_emp vatues (oor, 'Sam', 1a" saccounks!, 6000005 — _—_—insert_inte _emp values _ 1905, 1Guby!, ‘P! “Sales’ _upego)2— @ |sdeck_¥ From _enop ardor by empid 3 l ___@) |Vpdale emp sek salary = 28000 where empid = inna y 8) \Delete From emp where emprd® oz (@) Inter table emp change salary geass tak @) |set0e ross 7 25000 BA qi A — Teacher's Sign, : @ scanned with OKEN Scanner EXPERIMENT: S Pane Na] 2 [oe LAL — Create._table__employe_and__jnserk_data —os_given below — got_emp-id.__as__primary ~ Lemptd | evan | -——-~ . & Gender | Dept - alary ___}_ toy Dcash. 4 Gales _|__30006 |_1oo2 Neel 4 Accoonts | 20000 — __| 1904 Ravi uw accounts | 25000 f_— 1901 Sam. iN | Besant 50000 |__ 1905 Roby F LL Sales “ooo | wire a query, fo Bind the avg. Salary of emp io. emptable @ lwwite a query tn cuunt no, of male emp of emp table @. |wivite a query to display o_nam@ and. alary of employees. ; 7 in —__@) Write _o_qu m_ of igs | Teacher's Sign. : @ scanned with OKEN Scanner Gubput ~ Q Salery (avg) 39000 @a QQ sam @ Neel © rw000 @ scanned with OKEN Scanner ==) E—— EXPERIMENT: pares [one | Code - _-@ | Setect_avg_ (Salary) _from_emp grou p—by_Dept having Lpept = ‘Accounts’ + | Setect—counk—(Gender) from emp geaup by Center having = Ny [Gender = "N's Seed __EName _min (sal) fram emp: Select Sum (Sot) from~Emp where pept = 'Sales's * iS Teacher's Sign. : @ scanned with OKEN Scanner EXPERIMENT: Cho: Marks it 60 42 ‘Null a Bo u 80 bh 4 Q_wwite_o query te vedvre in masks of a student where, [Rott no i ——_@ Insite _a query to semave primary Key from ollie, | 9! 1 @ column @yirile o query to odd o new feld div fo student table (Genaaeay Teacher's Sign.: @ scanned with OKEN Scanner Gutpet - O RoW 3 i : 2 S Roll No 3 1 5 7 ~ 4 Rolls 2 3 5 5 ? Name Jay Rye Poa eet Ponak Name, Jay Sys Pooja Neel Ronak Name Jay Riyo Pooja Neel Ronak Class Marks " 60 o Noll 2 85 l 80 \2 qo Har Go Nvl) gs go 40 Marks. Div. 60 Noll 5 £0 10. @ scanned with OKEN Scanner WA | me : () cant | EXPERIMENT 2I [oa |code - [create table student (Roli Ne int ;nok null primany Key ,-—— | Name Varchar (30), class int, marie ypt) | insert into__stud« £ dae) |insert Into Stident values (3 Riya't 12, Null) Linsect_Inko_studont yalyos (1, * Pooja’, 19 8.) linsert__into atudent _yoies (5,'Neol’ jl #0) - insert inte student values (7, ‘Ronak', 12, 90°) Update student sek mayks = marty= 10: where Roll No = 2 5 velit bao wii 2| | | bl | lier atic Student dsop clas ln\ter dolle ctudent add. giv char {209% _________ @|lprop tobe. shod ooh , 7 B A

You might also like