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

System Query Language Notes

Notes

Uploaded by

sysportal.veda
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
39 views

System Query Language Notes

Notes

Uploaded by

sysportal.veda
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 15
‘7 rs GE Grands Mysql > Counte dota babe—fssincs 2 nh otf Dota bane inp Sel > Shaw dtoboe ; my Sg Coren dota have cd dlstoil ; CF ne. _int fe) earn a OH bute & 2s zal Caoll ajanclan (25°) ) b ~ J £ set otfoil,- a) (iscshe (nome o} 1h. fable ) Coble. ; rr Gg 2? fasof far ob ditoi | Nabud Cat? abra nao! Ct tape’ Goa?) (0 ‘Rebs!’ , “pel? ) my Sql elect ¢ Std cltot | (te tao fEe tobe with att butt ¢ Hy poe") ie aaa ta taf table $$ —€ Commandt_of prt : aa # ne Datter — Bena top 4 Feontate 7 Te Commands of pate Seleery in rt deter Updote. roadie ee & @ chek oe fe sul —0n foveod_on th. dof colaunns 4 HY foble z © Wet & Lint 42 ty pe of foro. ' > ae f othr te anes Woche bele tk. dota jin th dlora 4 t~ ®O Fina at Spt e ud fond L tah ‘oltntife fork Menrd fn 0 2. ‘able by The Values nust pat pe ru. mutt kt Uatgue aches: Sau — Ly Che pb itmary Key itn dw table. ~ Syntan 2 ~ Kolt No. int frimoby Key G2 Untgys er enswis fb dn fomati FO 4 In han Ont Synfom 2 = Qadhow _sint uniqui ku, G@) Not Null + - Tike. “Coleron _Aawing fis = howe hut voluus,) Gastyauint “ale eanot 4) De ast Onctvoint— ft 8) ubeol fo assy, a oledui gk valur fo a Gluma, ashe, Uden olbes net adn Qay Yaoblre « —@ Check = neues for ol 72 ah fy a; : alae opt fie 6_Cirfdin Chnalitioat «| GB Cute dlatabase << olb name > - Dito, lata bot < dh nami? ; 7 et ep dene eae Salam @_ Shaw deta basa: v beds Gute << db-ham > a Tolle Select pari Q Cruste fable < fodle nanis Colume Hemel dota hype Constraint (iJ ang), — Glimn name £ lata tafe Gastyvouint ® Select * From folle -poma >: | oe ia a eee @ ingert tng dalle name (Cotnamet Glname 2) Nabe (told yalust, Colt yy Cala yy. al2v2) i ~~ chsionatty eey in aihes fable, I how! fun bs muttiple Farajse bys. £) Con hous luplicote 4. nubl Valu: x Constyainh > Peiify uly Lor olofa in t _ tab. Q@_ Not Nut = no nur Valu _p ossfle © Unique — all Valu 97 a toluma Should be t digs ® Sim abry Key Maks o Column or. Combinarwo 6 Columns ualgt _& net Dutt but tel only fee ne Glumn er : Ga bination jn > ey =< Com binatiaa & table Cyyore dope inbi ( id_int Name vor ehsn (<0) PRIMARY KEY Cid, name) »; © Fanepr Key = frum cetieat Hot taut Te gfdtrey Minky S/o fadt) et cHubte fa be tobtC tol int Fpevelyly [ery (tel) sve fevecuss Sethe, a Sat olson Mabe 0} Column. _& causte table inp. C id_int, . Salad Int eaten 1<00_ aa Cheek = it Con limit tee valaey aden! in laliry, 09 t= ox adds “tao oli tien: TT Coste fabte ages (— as pt oy fat “Chern (oye > =16) 7 au U oy fer mulisble Cheeky ba Staak Line — ' ey Greote doable ay info (" S ONL q oo] L uw rere ae -—__t_ + Constetaiat Aa Che cee =a mH at gt ah _ Bae — Gelece : ae — AAA G Se a e oo Oo 2 Select Leatoamed>, xulname 12> Geom tally r ee ‘ 2 Select foam table, kK Select ‘al_harne 7 fable i E 5 — a i distin oe Voluld sa oh Stasi -aglds Conclikan fo elects. OU xteut in 4 ey Se _ Select * nome Litum Studing + Where 1m asccs fe. Lai— Selece * _— Whine mia > 80 AND crly = “gaye's U oe DML = @ _ubolate = fe ufdote cris ting aud. ore table name ET Clt= vals, Col 2 = Valo ashore Canditins Co. € Sfuoltny a ET __stede = 7 ushye grate ean aad —@ Deter 12 blte crulstinn yOuy in _atoble oelete Ayton. stable _# oles Comp whee “Con auton 5 Pe table HX _Alur (te change te ‘Ghene) _ %. ies _ © dlatiga [cde eS Cetthiany lata bp tor : © celal Column Z l lename > s | _ deta type > Lag ct rasnt2} fat Colurnny tible . t eh ‘blur << Colunn= nam B Rename table — "fleer Take @® Chogse Column Cétname) Ale! ebb <4, hame _ Chaast Column - lata type > tonsa dos Hp @ Hocli fy Column Crneckify clea hy { Ginstroin ap) He V" table
# L % HE Ga By Clow fi cit o_adtending (4 — o sy pede sli (pes) 4 | r se 7 : _ Sele fuer Sugltur a | — E v by maug AC 5 E Seley Gl1, Go lsum ® Cunt () 6 Man() GG min) 6 Gm U) i aay Opus () => avoids put valu { : Guat *1) = Coun pu toe Fie Ly tt SG Sa as ete Wile ely ta Sumaaty —_( / "Kus 7 GF Gen wolly far whe Gseoup Bey met Lame i Sse equestiory faction 7 Sy Covet Neo Rte do gal, ey “el eo Cisty,| Idna?naee) 7 ; | — A twon _P hvobonr Bal By Cay) eh City = “Gaua’ Jaya Gente Gasp By hy, nam oy fiad avs. nO Sco! So alt Gtiy Cndlvide} U 2 Select city awe (masa) suum Shrding 9 vou By Cabs : Gs t Beg tire HE quivey do fied cg imei _n each city fo a9 cabs.» egltr. > Select ciky aya (matue ) feo _S tv daar Getup by —Ciby Order by chy BAS; LL ST nylt + (5% = rt > Gep By < Cbname>d — | — Hovigg << aggregates vv CS 68 Grr obitin Spi= (ovat ne gy Sfvolmn jp Cy (each) yb ema m: Outs Ja. > Select Ciky Count (Yam Fer) Ch dyer | sod f& find de City iq which max ras eee t fully gysater eon AS g¢ how ovale —'g Stools 7 or = syqght# jo lato, fo ?—k ¢ - “2 Select Gy fiom Studour Anlhpre 2 = 4! g City oy afghan nals HA UDor mettle $epad alge "Calle ner fest | by =>— Com bs utes by asap by ana i Qratt be het “Yh whens Clause. b/s data bal = Cally.) i; c OLL (ypdor = FF @ bh L i= Stdwetune dor Jocitistes 1B yuo F Upw efoweadsing of jcerd 1a. r isutt ie Cer oh Geroord! Gabe’ Kt tefeverl ad ~ pew Quay Condor object = i Muderr ha sing fees= (Sor cael o 2 Resutt er 9 atunyc Jig dople { | [dam = Gas Jeph) = Setons a E Fae tt fy [oe 2 xa feteh one () i= Ht fate | be One Vorecod (gum $f. Quetutt er py o = fople. » first dime of we fetch = the it Lirdt Suroerd. ect fime i x aap td tt Lust wy 4 Roe quis, | 4 seer ni tis pate en St Ub Anos. fetch oy Ph sporty ef nent xe Covel emOaen ous To b i Fh i Ccntrel ea aD pas) cca pe _dofa = Gunter [etehmmony (nl Tes method atthe Yedorels §, fe fom A 4 ig hn Hojousty por Prttute his Tg Hen ip Wie 7 apain feteAta). heconts nett bth Cosviends CH el Noawble = cin. rt Count = iho sabe. hot ~ st uae pit yates No. of beCyidS Sup supuel Call Dee Cord faethe log iff 7) ques ote: [tsald oloto hoy fron gut oueut 6 = { ne 2 U 4 + Ofer Bat us. Ogu sins yeti dp Lapses lata. te [eth one all. ma =f ul py $data = Cour, fetch mony (2) ‘ } Votre CI. © clot = Cunt feicbond) : bene. (oe uit clora = Gude # fee alt () is os {ee al) i.

You might also like