Ifyoureallywantedto, it's there's not a lotofflash.
There's not a greatuserinterface, buttheoretically, ifyouwantedtocreate a databasethewaythat I'veshowedyouupuntilthispoint, createdtableforthedatabaseandtheninsertrecordsintothattable, youcanthenbeabletosortthroughitusingselect.
Soyes, Tobeclear, thisis a nonstandardwayoflogging, andthat's whatyougetoutofme.
Sometimesyouget a nonstandard A czwego.
123456 andwehitEnter.
Andnowwe'reintothemysequelCommandProperHitControl L.
A.
Toclearthescreenbecause I like a niceclearscreenwhen I'm doingtheseinstructionclassesfromhere.
What I wanttodois, I wanttoshowthat a basis, becauseagain, whateveryoucomeintomysequeldatabaseserver, youwanttogetanideaofwhat's goingonwiththeenvironment.
So I deletedthedatabaseonthetablethatwecreatedbefore I guessso I canrecreatethemagainforthisclassjustagaintokindofcementtotheideaofbeingtocreatethesedatabasesandcreatetables.
Thisisanimportantthingforyoutobedoingasasas a newas a newbookorsomebodytryingtolearnhowtodothingslikehisdatabaseadministration.
Basically, typingincommandsis a skillsetuntoitself.
Justbecauseyoubook, learnandtheoreticallycanpass a testdoesn't meanwhenyou'resittingdown a computerandgoingtotippytaptypeoutthingsonthatyou'regoingtodoitproperly.
So I wouldhighlyrecommend, especiallyrightnow, whentheseprojectsaresoridiculouslyeasy, youshouldtrytobasically, everytimeyoucomein, startdeleteThedatabaseisalreadythere.
Startwiththenewdatabase, startwithnewtables.
Justkeeptypingthisandgetusedtoinsertingcommands, doingthecommandsthat I'm showingyou s sointhefuturewhenyouactuallydohavetobuildsomethingforproductionenvironment.
You'redone.
Youcanjusttippytapawayandyou'renotthinkingabout a semicolon.
You'renotthinkingabout a singlequotationmark.
You'resousedtoitalready.
It's justeasy.
Sothat's whatwe'regoingtodoHereiswe'regoingtothencreateOh, that a base.
Andwe'regoingtorecreatethatclass d D.
Thathasbeendeletedbefore.
Ontherewego.
Socreatedatabase, whateverthenameis, andthensemicolononthatgivesusclass D.
B fromthispointwe'regoingtodoiswe'regoingtouseclassDevi.
Thingslike s isthingslike S iswhenyoucreatethepartstablein a user's tableintheaccountstableisitaccountswithan S attheendorisanaccounttableYouwanttonameeverythingthesame.
Soifyouhave a usertableand a parttableandaninvoicetable.
Rightthen.
It's veryeasytogothroughandbeabletodothesethesestatementsbecauseyouknow, it's theuserandthepartandtheinvoiceandtheaccountandthevendorthere's no s attheendorifyoulike, B s.
Oneofthethingsyoudonotwant, youdonotwantwhenyou'recreatingyournamingconventionisyoudon't wanttousetheirtableandaccountstableandaparttableandofindoorstablebecauseright, ifyoumixthosefinal s is, thenitcouldbe a realpainwhenyoujustwanttogointhereanddosomebasicbasicmaintenance.
Andsothat's that's reallyallthereistotuneittobasicallybeingabletosearch a littlebitthroughthroughthroughthethroughtheteam.
Soweseethatdata.
Sofromnow, nowwecanstart.
Dioiswestarttodosomecoolthings.
Solet's saywewanttodosomethinglikeanorderbySowewanttobeofthisSelectallofthisallthisstuffButwewanttodosomethinglikeorderby a esoFromtherewecandoisgiveyouselectallfromusersanddon't wanttodoiswedotheordermurdererbySoit's theorderbycommandandthenwe'regoingtosayageSowhatwewanttodoiswewanttoorderthisbyeight.
Thenwe'regoingtohit a cynicalThenwe'regoingtohitenterAndnow, uh, it's by a right, SosopetisyoungestsogoodYoulookintheuser I d s theuser I d staysthesame 4123 SoPatistheyoungest.
Sheisfiveyearsold.
ThenitgoestoBobisninesuis 15 andFredis 17 s SothatishowyoucanorderbySoagain, ifyouwanttoorder, ordertheresults.
Youcanalsodothisdescending s sobasically, ifyoudoorderorderbyagewhatevercolumnsoyoucanorderbyanycolumnHereitisjusttheeasiestbecausehe's got a gunnowVerballycoulddoOr 88 Andthenwecouldjustsay D E S c Sothisisdescending.
Soitshouldstartwiththehighest A andthengotolowest.
I'm goingtoshowyouhowtoDioishowtoonlyselectparticularcolumns s sowecandoisyoucandoitzipsselectAndthenlet's saywejustwantthenameandwejustwanttobe a sowellhewantstonametheageandthenwedofromontheuser's table, Right?
Sothisis a wayyoucangothroughandsortinformationandagain.
Remember, youcouldsortthisbybyanykindoftextcolumnthatyoucreatedsoyoucouldhave a textcolumnagainfor, let's say, a salesrep.
Right?
Soifyou'recreatingsomekindofinvoicingsoftwareandyouwanttoseewhataccounts a particularsalesrephas, youcoulddoselectallfromuserswheresalesrapequalsBobandthenyougothroughandyoucouldseeyouknowwhoBobisdealingwiththattypeofthing.
Submitthatinformationthatyoutalktothe A camelformisturnintovariableswithinthebackandscript, somethinglikePHPandthenthatbackinscriptessentiallyrunsoneofthesequelstatementstoinsertthatdataintothedatabasewhenyouthengotodo a report.
Soagain I thinkaboutwhenyougotosomewheresomesoftwareas a servicesalesforceorsomethinglikethat, andyou'relookingfor a particularrecord, you'reyou'relookingfor a particularname, right?
You'relookingfor a useraccount.
Sowhenyougowhenyouwhenyoutypeinwhenuseraccountyou'relookingforessentiallywhathappensisthatinformationthatthatlittleinformationistakencreatedis a variable.
Andthenwhathappensis a selectstatementisthensentusing P.
H herethatbackandscriptinglanguagethatsays, youknow, selectwhatevercolumnsfromwhatevertablewherethenameequalsthisname, right?
Well, they'vebeendoingthisstuffsolongthattheydon't eventhinkaboutputting a semicolonEdit a MichaelMichael, I saidMichael, right, Sotheydon't thinkaboutit, buttherealityis, istheyhadtogettothatplace.
Sowhetheryoudothatornotat a certainpoint, onceyouonceyou'vedonetherepetitionof 1000 times, youdon't eventhinkaboutitanymore.
Anditseemsalmoststupidthatpeoplebringitup.
Butrealizeifyoudon't use a singlequotationmarksproperly, yoursequelstatement's gonnafailandyou'regonnaripoutwhatlittlehairyouhaveleft.
Andsoit's veryimportantwiththesetypesofthingsisdon't justlikethat's what a lotofpeopledo, but a lotofpeopledowiththeirlearningprogramminglanguagesoftheirthirdlearningsequelorsomethingis, theysitthereandtheywatch, andthentheytakesomenotesandthentheysay, I knowit, I candoit.
Asalways, I enjoydoingthisthisclassandlookforwardtothenextone.
Apparently, thetypeofcontentyoujustsawisnotwhatSusan W.
WantsforthefutureofYouTube.
ThismeansthatrecommendationsbyYouTubetothischannelhavedroppedmassively, andviewsarebecoming a comicallysmall I hatetoask.
I usedtosay I wouldneverask, butifyoucouldsubscribelikecommonandmostimportantly, sharethevideosthatyouappreciate, thatmayhelpslowthedeathofthischannel.