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

SQL Handwritten Notes

The document contains handwritten notes on SQL, detailing its features, commands, and syntax for various operations such as creating, updating, and deleting data in databases. It covers different SQL languages including DML, DDL, and DCL, and provides examples of commands like SELECT, INSERT, UPDATE, and DELETE. Additionally, it discusses the structure of SQL queries and the importance of using conditions with commands.

Uploaded by

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

SQL Handwritten Notes

The document contains handwritten notes on SQL, detailing its features, commands, and syntax for various operations such as creating, updating, and deleting data in databases. It covers different SQL languages including DML, DDL, and DCL, and provides examples of commands like SELECT, INSERT, UPDATE, and DELETE. Additionally, it discusses the structure of SQL queries and the importance of using conditions with commands.

Uploaded by

machimoevidence5
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 10
SQL handwritten Notes _ Sa. _%- Sat is_o_non proeducal_languoge —_ nl “. Which was inhoducod by the Brin _1979 fas Which is used ee rade peda, with_catabase_ feo Ft — we [~ Greate | = users [> “Insea+ E Uplate = Delet Select _ =SGLis olso_Glled_as_sequeal_o age. —CCormmen_language. Intec face) » This_is_on Jy — _ the language. which_Gn_Use to_Gmmunigte _ ——with. ony RDGMS_ product. Free ed $$ - <> ce = : a ZF 1801 Sener | ROBE fe Pic eee Jryear J SQL is not Gaga Sensitive _longu oge thot we | Gn_acite SQL predefined queaies ow —Syntoxes_ Jnony_Gase._chowacter's-Ceither vppea ox i -D __|01 _ fy yesy 5: OL “phaden Bigel adu idee ds. cemicolon—bub thi 1S; op#onal | Ins@ Scott a L_ Server. 6 sblan guages. of SOL he as aD ota DePneaton_ languoge CppL) ® Geate me ill ee « 6p_ Remome. ® Jaun cote. ° emp pte JR 1 Dota _fMonu ipulak a Sa a See _——— * “Imsenb z Ip. Date * Delete Ee Dota, Quemy Language. CDM) * Select 3 ® Ten raaakieen Gnkeal lamguege- C26L2 — —— * Commit 1 * RoLLPiacke 4) + Sovepoind aby ah ee © Dota Gunbep! Language DCL ——— mL pret a 2 Restabe a ids i -_© ppL_CRota_Pefinatien Language — secu ene Sihis_ longuoge “@mmands- ore “using, to_define, | modify 4, Dav p ragga ee Fron __| SQL sesvew.——___— —— fot 1 1 gl ® 0 Ceeale 3 = mndingy anew dotabese ove ~____+able_in_s@L.__Senmvear — “Step is _Cereote_a ned < dalobose in _-SQl Sener _| ~__Syntox_2= Cacaote dotobase < DB NAMED 5 = ~_Ecs- Gortate. daotobase MYyYDR 4 ~—Siep2 $- Select ap ems eee RL SEY Ors. 4 i ~_Syntox $= __use_ £PBNome>: 7 8- __USe MYDB; % %- Corcate epi Penns datobos Zi ~CTeble Hare 1006 . Bet Grote Table Sthucleml 25 lamas : -—Smame._choee Cio. , sf ren, D AG EB Snyint)3 P-ecimal C6, 291—| —Stepy_8- “To renee ee eee —Syntac = _SpHELp / ae Of ca eble —Ex. &-____Sp-HELp Student oe stip tn peefined: Stead fin da > IER &= “To chonge of modif, Ihe z taf a meet wines in one by using +h the Alter: Cormrmand we Gn Pench, _Penf a fo lowing —fouce_operrations_on existing tobe > perform these. -operatonsS We mequired | ee of alten ._ i> Altene = Alters Column i> Alten _ Add : Jid_Sp- Rename. li —iv> ALTER — Dopp is i FL > = To_chonge dotatype $-_| dag. Size bBthe >t toetipe ofa potion ran Syntax t= Altes toble 2TN> Alten Column < Column Nome.>_+ ~(NeWwDT> PNew Size 1: — G3< Allen dable_ ahem Alene Colum SNaro. —Nocschonr ¢ 5.09 5 ii Alter AdAt = Adding mec? Column te.odd—> Scistang te talle» wean | Syntoxs= Altes dable_. ZTN> App £New Gluron- Nome > ZDT>CsizeI5 ~ Bas. a2 Se on ea 9 ~—Naerchoac C& 03 4 iii) Gp-Remorae. = To chang? _a_@! ~_o¢_a_toble_name.in- -debahabe * A) Syntax. to. chonge.o Column” Lome oles ~__Sp--Remame_< TabieName?« © ~New Column Nama. 2— ~ Ext Sp_Remame. ¢ Studem+.5Namo. . Namo? 3 a2 *_B>_ Syntax to changeo toble- nara. 5nd “_Sp~Remame._t? 5 y -Exi= Sp-Remame * shidemb’, tshidentdetoile’ — ——Sp~Remame.* Stuclem tdetails 4, *Sh aw) ALTER =Dmpp 8- Danpi a “lithe Iota | ping a lum» fiom _Syntox $= Alten table £ Table Nome > Danp _—Glumn_< ColuumnName > 3 eS Ex 2- Alterbable Shidle PDF version of this post is available in our telegram channel ‘% link in =. los | — es yntait_8= Deleting mus from the table, bul : [ moxt Siuchime_ofdhe table. by using Articles J command We. Gan not delete. a specific. au) \ | onthe table. because it desert auppoek « Wheare.” Clause Condition . | | syntan §= “Fancote. table: ¢ TableName ! | & #2 Tamcate. Jtoble. Studemt a ff 1 CO p_t= Deopping—O able fiom o-dtabose_| _persmannty i nurveenn wT | Syntoctt= Daop table < Table. tome73—___ eee- Dw »p table. _Studem+ 3 —____— DML. Data 4 anupulakon longuage> L “This language Grnmemds_one vsed-40—— a ipulate. clato_in _database.toble- Ch y ? Tmsenk 2= Imseating anew a0 into a— 9 Aso methods to. insent — _apiss_mdp_a_table oe eh iS ict Method 3- Tnsesting cll — Jolie: “Column's_intno table ((WHhout j 2 yl igen eeeshd Be ee ee dp) £TobleHtame > Nelucs. Qs ge : C value Molar. ,Nalee® cae al 5p a a __-06 cut Create dable Shident (S710 ints Shon ~ Noxchaw (he) 5 Spee decimal CEs 25-5. tings. AD a ee 8 SE ew py ae: — Imsert into Studemt valuas Clol,*5A 26005919 ; _OR_ fh aaa shud easel Voluas C1029 *TAMES?,. | ' HSpo 5 95D. oi - ib Explicit Method %- hseating’ va fh — fox _zequitecl_Gluran's_only Cioith e . —Clumn_in tha +toble dy yntox ff —Tseet_TINTol (Requixed| ——Glumn NomeS > Vayuos Cloa ALLEN? ) “Hots te Ensent (Muli ple amos nto a toble Syntax fons hop c}- 8= = ~chaseat LINTo) NaluaS C Rows. Nou Ss CRow2 Yoluos) Pp ee =" ae ytibetesee| 8 lay abt oe -inseat_inte Strden+ Noluos oO pt (800,92 9,¢ 106s sbawd’, noo, 95) Syntax fie Beplicth 1— at Insert [THT0] ¢ Toblenamo. —Hamas) Walues ((Rowiveluasy, cabin a, ; Et Inserst shidem+ ¢( St1p> values C lo62,.C19>| =e B! Nhe ay i . ee | ls a | © update s— Updating all ao ws_data ino | Aoble_otadime ot a Specific au dota _: ‘oct toble by Using. « Where’ Condition, _ Syntooe Brae, tb Me Update < Table Name> SET ¢ GlumnNume1>- = QNalueL? 5 2 —--: [ Whese Gomdition 5 Gi= Heite quan to update employer jobos HR. Galoay a5. 14 000% Whds—emapinges —— Numbers is 7788 7 u piate._emp- Set Job. = HR’, Salasy =14000_ __ Woh east. Empno = 7788 i binike a query do updake, alt employee Grnmitonas_500———— a updote. Emp Sek Comp = 500 a ® Delete 4. _Deledisn A alias firmdhe- so ble ot a timo. Oras ecif capi _from _s tho table by using—where. Clau se. Gmditon— - tans > — 7 + “Dalede, flor LTableNeme? [Hheme.tCemdikian2)s __08 elete -ermployee. Le od. Heee<_Jibge 0 Que fg td the job_ ts ~_sthe table. who_axe Wowk ~ Cleask: ae Delete. pom emp Whewe J08 = '¢cleoak.” Fate = atte oq ws » 4o delete .all_ennp "details fromthe 4 dale : pelete ora Emp — + : iE _De fenemce._| heks eon. delete _¢_ Trim cate, Hse Delete wt ad __—Famcate _ _OTb is DML opexction |O a4 is epi opearaki Ot. Con_delete a. Specific @ st iS not Possible. _-2Dw fmm the toble. tn Oh upon heme, al @i+d oSerik_Suppont- _—Clause Condition. heme clause Gmnditon © “shis the. _ tenn) On _—dota_deletioy e roy | © ile. Can. Sealine | deleted data by using -miiback | 2) bec Cokion Specd is _| Slo@ exam Jes ce : uers __Note 8- tn the above query is Bodo f. —the— employee Smith _Salorry— __+thenre. j}6 no. Qmmission—So- thot ——__ _ Salomy_+ Cornm_is 8000 -only—but- it | odie 8 NOM) 2 tl te _evertome_trith—obove——_ —fimblem. (oe Should_vse. a_prcdefined|——— “__fimchion in S@L_senver_}S__16 pu fimchon + zs lee “—=ts Null [encp.. eae 2) ar “= St is_a'pacdeflnwd fimction which is use| __ th _aeplate! ia Users defined vaiuie jn_p late? __| [of plyflist = tity be sy ee ite is |= This flmetion is hoving Hhs.. ee ~2No luo C user deAmnecl Ve jae } p—Orcpd. Ss Nok NU thom th -eotvems : —Ont-paesSids—1 lg ]4e-_ga — A t ~ Bete! . Selec: Teall PUSH pam Be oleae UL CN UI» OD AB R, | pao “Selec TenUl HU woe} AS Regi bow ~_ Belect smu (0.100) AS Res ule = === 3 34 > geleck xe Null CS 10) AS Recu)} | ) _s — - ~ 7 === 5019

You might also like