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

SQL_Notes

The document contains SQL commands for creating and managing databases and tables, including operations such as CREATE, DROP, and ALTER. It also includes examples of SELECT queries, JOIN operations, and data manipulation commands like UPDATE and DELETE. The content appears to be a tutorial or reference guide for SQL syntax and usage.

Uploaded by

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

SQL_Notes

The document contains SQL commands for creating and managing databases and tables, including operations such as CREATE, DROP, and ALTER. It also includes examples of SELECT queries, JOIN operations, and data manipulation commands like UPDATE and DELETE. The content appears to be a tutorial or reference guide for SQL syntax and usage.

Uploaded by

abdulhamid.s
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 19
peut IS Ta a SS E ols na cdion used ty buen, : E ieee ofan Bada Secohe : a 59 ea Nom eTce ‘forsAl_ toler > ata. Ng Gore ow ' pols S91 My sel_ » ORACLE 29. Mone DE { pon f 1 1_9o09d E R lock a Sal? > SQL + Shedd Quany Somijuays pa aes Cal E sfoveapbert vats gradaied tat win ode | wey soldier. edge. f >| SE ek fe CRUD chorck ers: Ref U dete alts : Delve iceseas. wee SQL Re staat. SSowdbwll _|| Bwsfish es i Tosdl ee | dell hock jn oTobe + Saree ast flee nb Nee laa 4d), wn nborst: ade 42s ws ofpeust As Lyfe) | Lhe thd ire» =a SQu wane Si Bes bs. ATAG + Sigal WRI, 2553 9, 5Ve mas Ad Les sone Ror : Ovai grad wtb a Sy 4 te resets dove 2328) ATAG TENP INT (-\2p t 2q) 114 a T UNSIGNED (0 te 25S [ic 29+) ) peel gf ae Sia MY Bann CREATE DATAGASE: ii brow; CREATE eee sala Mb vome : 237 ATAI Wes ; + Fivien, all a SELECT * EROM te crert } 4 Sinks taseet toto. Lo + (dhsrorin Ii th raine 2)» NALUES H (ada p AL_Voh2), ! Codkyevz , sik V2) S| van’. (sXe, were) VAWE S sithI0 Vf Seadant 05 es (107. », Als oxyjvn”)i, oe eee aA siduck VALU ES BV Ute CON yuk eA BN") 9 1 5 “(tor “patun”), D> Glumn gndan Pade ben chdayy S| CREATE TABLE date) votre! i: E sttluimnawemt1 _datuyhs tonrtnedk , aa | sdiivon evans 2 API prado 5 oon A ot CREATE TALE uae ( Tao wa- ENTis PATMARY KEY, I mame! s. VARCAAK (90) ass di) Beans Ranga alain, ( used ended Es sili age ieee mil She Nok wer Le fanlha = cl Mig yn anlar | STS aot) artes SSS Gah. tui tea eRgs = fesify—stwhas an Safe _in a tele RUSS UES eee oer a pak ik oT tim No WONG Vola eed MONT Sion , tod PUSIOUE WD velo dn wa vk yn ave ae M53 PRIMARY KEY meh a ats AA_iok_geaminny KEY Sin Udy gi pg Nuh > bak ute erly frome é PIEORETONOKEY 2, RowwethoacRews SRS woul Suhowy eS Ubdbwun tables CREATE TASLE ewe iC FABURL thw Mos pile 7384 FORETHN KEY Co wy) “ie doskwnan \\h) we SAFHO) we ot) oP esi BeAWLT. 1% Sh fou Bahai sreSiden eee! wakes => ax. Pig eob¢ = 2 foterrle mp dire. , ; “Sela INT DEFAULT —_gto00 13D UT mined 90, GAA = retrrshs I em SELECT: ign: wDETAEL * nora Puss). self ee aia ( [SX cetrere aay i I Jos I pi | [ty sleek setoct offs ] sandler Bs ssh a A a ary | SELECT Mae FROM toble same top cal whoa 4 ONEBE ~ttouse's “Jo Aibiwa seme serbions | ges Bons SEVECA oH eaQtytiht VERO J fab o mewe COHERE otal Koons 5 ey J. dew f PSMA 807 shia, \ Ly a SELECT ve Cat dacs eke ck > ie 34) Lag) t + | BETWEEN: ity, doded eo S 49 . 2 os ! SELECT) Si ERyMevshdent SWWMERE monks {I RETWEEN gn AND Q0 TP aad bends vuorry 2 velit sim dba. lush midis pS Bi eg) SELECT * PROM shufeck LaEMET: Yea 729J52 habe otd Vue ovo! |p Hosts o4F VA TISIJT) taal 9p ' . aaa ed “te ORDER: Cy ous 2.7 aK? Sin! orerny 2 _Bareeclliny olan : -—B Memos SELECT oS EROM dehRewtot 2 90. +> OadER By dH ASC; oe l SELECT * rom dudect Ahi FORDER BY Ymanko DECC 3 | ITALE Qa ¢ t J i | Csr ais ig te feygaupshe Paw Rons 2 Aippantie peciBigen ee ee wm | | sh —_9_valbns ) Saad pafiann ew BQ | alle, N Cunt 0); Lat, )) MAX CD h WENA) treba eMOAD %. 94.492, SUMO) z A Avo O_ Lye Hoare Hanke: SELECT _Hax (wank) Ny FROM dude» SAK overs Mera: SELECT AW ( vrasts) EROM shade SE jae [xr No EU Mee cows voles icto- | Se _ news. ae 2 eliade adap ain JE ROMS Lo AOUPY RY. cuaty ay m | mm Sie ER 3 te | Quo.rp sore SELECT sai ow or) JERQM sighed « =| GROVE. LY ady Ayo AL, iG ORDER CY yy me asc 10 P (sh att ) oe LPAI AVTNG ABewrsi: » Sivmilon, Hoes iG Aaink fy Trak Usel wan __we wars. afi aig al oi rua ‘alee ceed ae : pe elm. mA QL B05 wl sardition fon meas Ss Pag PAU Sete i ed nih len cis Sa oy wdbane” rok saath Oaks a0 SELECT oa, 1477 FROM Sheek 1M Quam) (y ROUP ORY (24 Lo, Not 107 gf Teter Abie ovate commbiier, dubai Ststube gn vingnd® Hales» Batek gn a "abel Aedossrdin Gilecn ee Baette may | Arroosn Hyl, vo Da. Ayan Parkas ek Pee TO ia, heb, MOAT + i} 1 SELECT Lee evens) 4100 131 F FRoM _Joble A Bl = hi, cad INNER Torn) abla Q bptiAd ON. tolble A. id wore) = HestoleB lah rawrs. 5 do Aw npr, xy Bid \ [Page ne . Hons ath. recone. Asha. fp, So l Dy Ley dons zi Say cor He. ce DESBLECT! aa 2 — EROM table or fh or —_ LEET Jon dobleR or b e ON os tlevarie) = be ihe borne + s a se of. suit dabshe jp. andl vthe vmshhof Syorfooe + - Eko et Aalto, Lo S / Ht) GT padi flatte ar L gf 4 EDGY. ER i VA bose eee, ator Mya Fhe a I v1 ae te, : Rect, k a = wD ig oitBan bee on rig aloe fos ot Spates, adem My CAf3 Q eho] Ak SELEG_& FRom Lert LEFT Join Hounsiiaee boo 5 9? UNION) ON oid = Lid Adsldet 1054 ) A\At Joi — ONION Sdldet Crro¥ 8 3uc47 ss ; 2 thved BDEOT/ 0} x f. A : AMRIT Toe cas ae b ON wide bil; | pate || | eas SELECT 4 FRomM emu nN Os ON aid = bth WHERE bi TS MULL 5 un CLUQNE Ny SGP @iest = | EROM ghedert ax a ALQAT TON unr -o8 b ony sath = bil | WHERE wif Ts NULL;

You might also like