65 Pages

chPL_SQLPart2

Course: IS 620, Spring 2012
School: UMBC
Rating:
 
 
 
 
 

Word Count: 2659

Document Preview

AdvancedPL/SQL Programming IS620 AdvancedDatabase Projects 1 Roadmap n n n n n n Procedures HowtodebugPL/SQLprogram Functions DynamicSQL HowtoAutomaticallyGenerateValues DuringInsert VArrayDataType 2 NamedProgramTypes n n n n Procedures Functions(proceduresthatreturna value) Packages(setofprocedures& functions,notcovered) Triggers(later) 3 ProgramUnits n Procedures n n n...

Register Now

Unformatted Document Excerpt

Coursehero >> Maryland >> UMBC >> IS 620

Course Hero has millions of student submitted documents similar to the one
below including study guides, practice problems, reference materials, practice exams, textbook help and tutor support.

Course Hero has millions of student submitted documents similar to the one below including study guides, practice problems, reference materials, practice exams, textbook help and tutor support.
AdvancedPL/SQL Programming IS620 AdvancedDatabase Projects 1 Roadmap n n n n n n Procedures HowtodebugPL/SQLprogram Functions DynamicSQL HowtoAutomaticallyGenerateValues DuringInsert VArrayDataType 2 NamedProgramTypes n n n n Procedures Functions(proceduresthatreturna value) Packages(setofprocedures& functions,notcovered) Triggers(later) 3 ProgramUnits n Procedures n n n Canreceiveandpassmultipleparameter values Cancallotherprogramunits Functions n Likeprocedures,excepttheyreturna singlevalue 4 GeneralSteps n n Createthefunctionorprocedureusingcreate functionorcreateprocedurecommand Oraclewillcompileandstoretheprocedure n n n n Incaseofcompilationerror,type showerrors Youwillseetheline/columnoferrorand descriptionoferror Trytofixerrors Otherwise,youwillseeprocedurecreated message 5 ShowErrors Supposeyouhavecreatedaprocedurelike createorreplaceprocedureHelloWorld(svarchar) as begin dbms_output.putline(s); end; n Nowyoutype(mustdoitafteryouclickexecute) showerrors; n 6 ShowErrors Results: LINE/COL ERROR 4/3 PL/SQL:Statementignored 4/15 PLS00302:component'PUTLINE'mustbe declared n Meaning: ErroroccursonLine4 Putlineisnotrecognized Youcanalsogoogleerrornumber:PLS00302to someidea n 7 GeneralSteps n Executethefunctionorprocedurewithpassed parameter n n n ExecuteinSQL: execprocedurename(parametervalues); ExecuteinPL/SQL(inanonymousprogramoranother procedurefunction): procedurename(parametervalues); Inthewebinterface,youmustclickexecutebutton aftercreatingtheprocedureandbeforeexecutingthe procedure.Don'tcreateandexecuteatonetime. 8 GeneralSteps Toseethenamesofprocedures Select*fromuser_procedures; n Toseethecode SELECT*FROMUSER_SOURCEWHERE NAME='PROCEDURENAME'; 9 GeneralStepsUsingSQLDeveloper n n n n n n Thesamewayaswebinterfaceorclickprocedures, rightclick,newprocedure Enterprocedurename&parameters ClickSaveIcon,itwillgetcompiled. Theerrormessageisshownatthebottomofthe screen(compilerlog) Rightclickgiveoptionssuchascompile,run,drop Watchforinvisiblestrangecharactersifyoucopy codefromwordorpowerpoint(usenotepadorother texteditorwillbebetter) 10 GeneralStepsUsingSQLDeveloper n n n n Whenexecuteprocedure,youcandothesamething asWebInterface(typeinSQLwindow) Oryoucanrightclickontheprocedure,selectrun Awindowwillpopup,withsomePL/SQLcodetocall theprocedure Edittheprogramtoenterparametervalues(usually throughassignment) 11 BenefitsofUsingSQLDeveloper n n n Syntaxreminderwheneditingprocedure Candebugyourprocedure(settingbreakpoint,check variablevalues,etc.) Recommendedforlargeprojects 12 Example Example: createorreplaceprocedureHelloWorld(svarchar) as begin dbms_output.put_line(s); end; clickexecutebuttonnow execHelloWorld('Hello'); Sisaparameter Youcannotspecifysizesforparametertype(sinceoracledoes notallow()withinparametertype) 13 CreatingaProcedure CREATE OR REPLACE PROCEDURE procedure_name (parameter1 mode datatype, parameter2 mode datatype, ) IS | AS local variable declarations BEGIN program statements EXCEPTION body exception handlers END; Differenceswithanonymoussubprograms? 14 header Differences n n n Theprocedureheadercontains procedurenameandparameters UseISorAstoseparateheaderand localvariabledeclaration(nodeclare) Canuseparametersinthebody(justas initializedvariables) 15 Parameters Variablesusedtopassdatavaluesin/outof programunits Declaredintheprocedureheader Parametervaluesarepassedwhenthe procedureiscalledfromthecallingprogram Parametersareusedjustasvariablesinthe bodyofprocedure/function 16 ParameterModes n IN n n n OUT n n n Incomingvalues,readonly Defaultmodein Outgoingvalues,writeonly Mustbegivenavalueintheprocedure/function body(throughassignmentorcursor). INOUT n Readandwrite 17 Exercise n n CreateaprocedurePrintMessagewith aparametermasmessage Executetheprocedurewithparameter value'thisismyfirstPL/SQLprocedure' 18 ExampleforNoParameter createorreplacePROCEDUREraise_salaryIS BEGIN UPDATEempSETsalary=salary*1.1; END; Execraise_salary; Notethatyoudon'tneedtoput()ifthereisno parameter. 19 ExampleforOutputParameter CreateorreplacePROCEDUREraise_salary(emp_idinINTEGER, amountinREAL,current_saloutreal)IS BEGIN UPDATEempSETsalary=salary+amountWHEREeid= emp_id; Selectsalaryintocurrent_salfromempwhereeid=emp_id; exception whenno_data_foundthen dbms_output.put_line('nosuchemployee'); end; 20 ExampleforOutputParameter Declare C_salreal; Begin Raise_salary(1,1000,C_sal); Dbms_output.put_line('newsalaryis:'||C_sal); End; 21 UseParameterinCursor Createorreplace PROCEDUREget_salary(emp_nameinvarchar)IS Cursorc1isselectsalaryfromempwhereename=emp_name; E_salnumber; BEGIN Openc1; Loop fetchc1intoe_sal; exitwhenc1%notfound; dbms_output.put_line(e_sal); Endloop; END; Execget_salary('jeff'); 22 UseParameterinCursor Anybugintheprocedurebelow? Createorreplace PROCEDUREget_salary(enameinvarchar)IS Cursorc1isselectsalaryfromempwhereename=ename; E_salnumber; BEGIN Openc1; Loop fetchc1intoe_sal; exitwhenc1%notfound; dbms_output.put_line(e_sal); Endloop; END; Execget_salary('jeff'); 23 Exercise PleaseusetheEMPtable. Createaprocedureget_salarywithan inputparametere_id,andprintthesalary oftheemployeewiththatid Thenexecutethisprocedurewithe_id=1 ande_id=2 24 Tips n n Usecreateorreplaceprocedure,sononeedto droppreviousprocedurewiththesamename Whencalltheprocedure,parametervaluesmust matchtheorderofhowparametersaredefinedin procedureheader 25 Tips n n Whencalltheprocedure,addexecif youareusingSQLdirectly,noexecif usePL/SQL Iftheprocedurehasanoutput parameter,youneedtowriteaPL/SQL programtocalltheprocedureand declaretheoutputparameter(no variableinSQL) 26 Exercise Createaprocedureget_salarywithaninput parametere_id,andanoutputparametersal, whichreturnsthesalaryoftheemployeewith thate_id ThenwriteananonymousPL/SQLprogramto executethisprocedurewithe_id=1,andprint outtheoutputparametersal 27 Roadmap n n n n n n Procedures HowtodebugPL/SQLprogram Functions DynamicSQL HowtoAutomaticallyGenerateValues DuringInsert VArrayDataType 28 WebInterface Aftercreation,checkifthereiserror messageby: Showerrors; n Calltheprocedureseveraltimeswith differentinputparameters n UseDBMS_output.put_linetooutput resultsintheprocedure n 29 DebuggingPL/SQLPrograms Syntaxerror Doesnotfollowlanguageguidelines Causesacompileerror Examples:misspellingareservedword, usingafunctionincorrectly Logicalerror Programcompilescorrectly,butdoesnot givecorrectoutput 30 LocatingandCorrecting SyntaxErrors(WebInterface) Complierusuallyreportsthelineoferror Isolatethelinethatiscausingtheerror Thismaybebeforeorafterthelinethatisflaggedby thecompiler Commentoutlinesasnecessaryuntilprogram runs Oneerrormaycauseseveralcascadingerrors, sorerunprogramafterfixingeacherror 31 DebugUsingSQLDeveloper n n n n n Setabreakpointatthelineyouwantto stop Startdebugging Cancheckvaluesofprogramvariables Canalsostepthroughtheprogram(line bylineorcontinuetonextbreakpoint) PleaserefertotheSQLDeveloper guideatblackboard 32 Roadmap n n n n n n Procedures HowtodebugPL/SQLprogram Functions DynamicSQL HowtoAutomaticallyGenerateValues DuringInsert VArrayDataType 33 Function n n Sameasprocedureexceptthata functionreturnsasinglevalue Mostlyforconvenience 34 CreatingaFunction CREATE OR REPLACE FUNCTION function_name (parameter1 mode datatype, parameter2 mode datatype, ) RETURN function_return_data_type IS local variable declarations BEGIN program statements body RETURN return_value; EXCEPTION exception handlers RETURN return_value; 35 END; header DifferenceswithProcedures n n n Returndatatypeinheader Areturnstatementinbody Areturnstatementineachexception 36 FunctionSyntaxDetails RETURNcommandinheaderspecifiesdata typeofvaluethefunctionwillreturn (noneedtospecifyavariablename) n RETURNcommandinbodyspecifiesactual valuereturnedbyfunction n Incaseofexception,returnavaluenotinthe validrangetoindicateexception E.g.,return1whenvalidreturnvaluesare positive n 37 CallingaFunction n Canbecalledfromeithernamedor anonymousPL/SQLprogram (mustuseavariabletostorereturned value,somustdoitinPL/SQL) return_value := function_name(parameter1_value, parameter2_value, ); 38 ExampleofCallingaFunctionin Anonymousprogram Createorreplacefunctionreturn_salary(emp_idinnumber) returnnumber IS e_salnumber; BEGIN selectsalaryintoe_salfromempwhereeid=emp_id; returne_sal; exception whenno_data_foundthen dbms_output.put_line('nosuchemployee'); return1; End; 39 ExampleofCallingaFunctionin Anonymousprogram declare E_salnumber; Begin e_sal:=return_salary(2); ife_sal>0then dbms_output.put_line(e_sal); else dbms_output.put_line('nodatafound'); endif; End; 40 ExampleofCallingFunctioninA Procedure Createorreplaceprocedureraise_salary(emp_idinnumber,amountin number)IS E_salnumber; Begin e_sal:=return_salary(emp_id); ife_sal>0then dbms_output.put_line('currentsal:'||e_sal); emp_id; updateempsetsalary=salary+amountwhereeid= dbms_output.put_line('salincreasedby:'||amount); else dbms_output.put_line('nosuchemployeefound'); endif; End; 41 ExampleofCallingFunctioninA Procedure execraise_salary(1,100); execraise_salary(1,100); 42 Exercise Createafunctionget_salary_bynamewithan inputparametere_nameandreturnsthesalary oftheemployeewithe_name ThenwriteananonymousPL/SQLprogramto executethisprocedurewithe_name='jeff',and printoutthesalary 43 Roadmap n n n n n n Procedures HowtodebugPL/SQLprogram Functions DynamicSQL HowtoAutomaticallyGenerateValues DuringInsert VArrayDataType 44 DynamicSQL n n AllowsyoutocreateSQLcommandsat runtime AllowsDDLstatements(create,drop, grant,revoke) 45 HowtoUseDynamicSQL n DDL(noreturnresults) n n Executeimmediateusing DML(select) n Usingcursor,notrequired 46 ExecuteImmediate n n Executeimmediatesqlstring; EXECUTEIMMEDIATE'CREATE TABLEbonus(idNUMBER,amt NUMBER)'; 47 Roadmap n n n n n n Procedures HowtodebugPL/SQLprogram Functions DynamicSQL HowtoAutomaticallyGenerateValues DuringInsert VArrayDataType 48 HowtoAutomaticallyGenerate ValuesDuringInsert n GeneratePrimarykeyvalues n n E.g.,eidofnewemployeeshallnotequal toanyexistingones,butthereisalready datainthetable Solution1:selectthemaximaleidfrom table,thenewid=1+maxeid n Problem? 49 HowtoAutomaticallyGenerate ValuesDuringInsert n UsingOracleSequence FirstcreateasequenceinSQL(cannotdoitin PL/SQL) Createsequencesequence_namestartwithmin_val [incrementbyincrement_val]; n Themin_valshallbelargerthananyexistingprimary keyifany n Referencetothenextvalofsequencein insert 50 HowtoAutomaticallyGenerate ValuesDuringInsert dropsequenceeid_seq; supposethereare4rowsinemp CREATESEQUENCEeid_seqSTARTWITH7; insertintoempvalues(eid_seq.nextval,'jefferson',2,sysdate, 50000); Eachreferencetoeid_seq.nextvalwillincreasethevalueby 1(i.e.,1,2,) Youcangetthecurrentsequencevaluebyeid_seq.currval (whentousethis?) 51 HowtoAutomaticallyGenerate ValuesDuringInsert n n Generatecurrentdate:sysdate Generatecurrenttime:SYSTIMESTAMP 52 Exercise n n Createasequencedid_seqfordidin Depttable,setitsstartvaluebethenext did(youcanlookitupmanually) Insertarowintodepttablewith automaticallygenerateddid,anddname ='testing'; 53 UsingSequenceinPL/SQL SequencecannotbecreatedinPL/SQL(mustbe createdinSQL) n Cannotuseassignmenttogetvalueofsequence (needtouseimplicitcursor) n Canonlyuseitinselect,insert,delete declare xint; begin selectdid_seq.currvalintoxfromdual; dbms_output.put_line(x); end; n 54 Roadmap n n n n n n Procedures HowtodebugPL/SQLprogram Functions DynamicSQL HowtoAutomaticallyGenerateValues DuringInsert VArrayDataType 55 VarrayDataType n n n n n Orderedsetofelements Allelementsareofthesametype Eachelementhasanindexidentifyingthe element'spositioninthearray Themaximumarraysizeisspecified duringthearraydeclaration Similartoarraysinotherlanguagessuch asJava,C 56 WhenToUseIt n Usedascolumndatatype:storeashortlistofitems withoutusingaseparatetable(e.g.,listofphone#s) n n n Catch:noteasytodirectlyrefertoanelementinarrayinSQL (oftenneedtousePL/SQLorconvertittoatable) Sonotrecommendedunlessthatcolumnisnotfrequentlyused UsedasalocalvariableorparameterinPL/SQL n n n Topassavariable#ofparameterswiththesametype (rememberinJava:main(Stringargv[])) Totemporarystoresomevalues Catch:shouldnotbeusedtostoremanyvalues 57 StepsUsingVaryingArrays n n n n Createadatatypewithvarray Canusethistypeasacolumndatatypeora typeinPL/SQLprogram Note:canNOTdirectlyrefertoaspecific elementinthearrayinSQLselect,usually needtousePL/SQL InPL/SQL:usealooptorefertoeachelement inthearray 58 CreateVarrayDataType create or replace type type_name as varray(maxsize) of element-type; E.g., create a phone list type of 3 phones Create or replace type phoneListType as varray(3) of varchar(20) 59 UseVarrayTypeinColumn createtablecust2 (cidinteger, cnamevarchar(20), cphonephoneListType, primarykey(cid)); 60 InsertaVarrayValue Use constructor: Type_name(element value list); insertintocust2values (1,'john', phoneListType('4104551111', '4434101234')); 61 AccessElementsinArray CanonlyaccessitselementsinPL/SQL ThefollowingSQLisNOTallowed: Selectcphone(1)fromcust2; n Needtouseacursortostorethearraytype valueintoavariable n UsingPL/SQLbuiltinfunctionsforcollections n n n n Declareavariableofarraytype Variable_name.count:arraysize(notmaxsize) Variable_name(i):itheelement 62 UseVarrayValueinPL/SQL Program createorreplaceprocedureprintPhone(idinteger) as rphoneListType; begin selectcphoneintorfromcust2wherecid=id; ifrisnotnullthen foriin1..r.countloop dbms_output.put_line(r(i)); endloop; endif; exception whenno_data_foundthen dbms_output.put_line('nosuchcustomerid'); end; 63 execprintPhone(1); Exercise n n n CreatethesamephoneListTypeand cust2table CreateaPL/SQLprocedurethatprint outthefirsttwophonenumbersofa givencustomer(cidisinput) Callthisprocedurewithid=1 64 PassVariableNumberof Parameters createorreplaceprocedureprintPhone(idlistphoneListType) as begin foriin1..idlist.countloop dbms_output.put_line(idlist(i)); endloop; end; execprintPhone(phoneListType('4104551111','443455 1234')); 65
Find millions of documents on Course Hero - Study Guides, Lecture Notes, Reference Materials, Practice Exams and more. Course Hero has millions of course specific materials providing students with the best way to expand their education.

Below is a small sample set of documents:

UMBC - IS - 620
Exam1nnnnWhen:3/34:305:45Where:classroomWhattobring:twopagedoublesidedcheatsheet,pencilsWhatNOTtouse:anyelectronicdevicesincludingdesktop,laptop,cellphone,PDA1Exam1nnnWhattocover:SQL,PL/SQLpart1Materials:slides,inclassdiscussions,homewor
UMBC - IS - 620
Exam2nnnnWhen:4/144:305:45Where:classroomWhattobring:twopagedoublesidedcheatsheet,pencilsWhatNOTtobring:anyelectronicdevicesincludinglaptop,cellphone,PDAExam2nnnWhattocover:Procedures&functions,Trigger&authorization,XMLMaterials:slides,ex
UMBC - IS - 620
FinalExamnnnnWhen:5/12,4:30pm6:00pmWhere:CourseclassroomWhattobring:twopagedoublesidedcheatsheet,pencilsWhatNOTtobring:anyelectronicdevicesincludinglaptop,cellphone,PDAFinalExamnnWhattocover:Storage,indexes,queryoptimization,transactions,co
UMBC - IS - 620
AdvancedDatabaseProjectsIS620ZhiyuanChenITE423zhchen@umbc.edu1OutlinennnnnnContactinformationPrerequisiteCoverageResourcesGradingSurvivalguide2CourseAdministrationnnnLocation:ITE467Time:Thursday4:307Officehours:ITE423Tuesday&Wed
UMBC - IS - 620
A Short Guide of Loop andRecursive ProgrammingIS 620Example of Hw 6Find someones manager and higher levelmanagers (i.e., managers managers).EricBobAliceJeffUsing Recursive ProgrammingTo solve a complex problem, we can firstsolve one step of t
UMBC - IS - 620
IS 620 Assignment 1Due 2/3Problem 1. Consider the employee database with the following list of tables. Pleasecreate these tables with appropriate primary keys & foreign keys. You can assumeboth employee_name and company_name are unique. [50 points]Th
UMBC - IS - 620
IS 620 Assignment 2Due 2/10.Suppose you have created tables in assignment 1 listed below. Please write SQLstatements for the following problems.Tables:Employee(employee_name, street, city)Works(employee_name, company_name, salary)Company(company_na
UMBC - IS - 620
IS 620 Assignment 3Due 2/17Suppose you have created tables in assignment 1 as followsTables:Employee(employee_name, street, city)Works(employee_name, company_name, salary)Company(company_name, city)Manages(employee_name, manager_name)Please write
UMBC - IS - 620
IS 620 Assignment 4Due 2/24Suppose you have created tables in assignment 1 (listed in textbook page 116 Figure3.12, also listed below).Tables:Employee(employee_name, street, city)Works(employee_name, company_name, salary)Company(company_name, city)
UMBC - IS - 620
IS 620 Assignment 5Due 3/3Suppose you have created tables in assignment 1:Employee(employee_name, street, city)Works(employee_name, company_name, salary)Company(company_name, city)Manages(employee_name, manager_name)Problem 1. Use implicit cursor t
UMBC - IS - 620
IS 620 Assignment 6Due 3/17Suppose you have created tables in assignment 1 (listed in textbook page 116 Figure3.12, and also listed below).Employee(employee_name, street, city)Works(employee_name, company_name, salary)Company(company_name, city)Man
UMBC - IS - 620
IS 620 Assignment 7Due 4/7Suppose you have created tables in assignment 1 (listed in textbook page 116 Figure3.12, and also listed below).Employee(employee_name, street, city)Works(employee_name, company_name, salary)Company(company_name, city)Mana
NYU - COMM - 1750
DEFINITION OF PUBLICRELATIONSDEFINITION OF PUBLICRELATIONS MANAGEMENT OFCOMMUNICATIONDEFINITION OF PUBLICRELATIONS MANAGEMENT OFCOMMUNICATION INVOLVING PUBLICSDEFINITION OF PUBLICRELATIONS MANAGEMENT OFCOMMUNICATION INVOLVING PUBLICS WITH
NYU - COMM - 1750
PublicRelationsJanuary 24, 2012Public Relation?:Narrative to the publicWay perceived by the publicDefinition of PR:Management of communicationInvolving publicsWith objectives in mindLarger organizational market in mindExamples of PR:Carnival Cr
NYU - ECON - UA-2
February 22nd, 2012Today and next two lectures:CostI. PerspectiveFirms goal: maximize total profitCan be major corporations, shareholders with stocksTotal profit: ( TT [pi])Total profit= total revenue total costII. Basic Principles of Cost1. Cost
NYU - COMM - comm
MCC-UE3 History of Media & Communication: Spring 2011/ Recitation Syllabus Section 009: Thursdays, 3:304:45pm; 25 W 4th, Room C-4TA: Xiaochang LiEmail: xiaochang@nyu.edu* I will generally respond to emails within 24 hours on weekdays (usually not afte
NYU - COMM - comm
Recitation21:47Recitation #5 :February 22nd, 2012The Information - GleickShowProloguedetai-In 1948 two important developments came about. The first was electronic, the transistor. It amplifies andswitches electronic signals. The transistor sparked
NYU - COMM - comm
Reciation #4: February 16, 2012Newspapers and the Public Sphere by John Nerone Nerone contrasts the culture of books and newspapers. Books captured a timelessness,were a greater representation of the authors persona and was more personal because theyr
NYU - COMM - comm
Recitation #3: February 9, 2012Readings: Johns Ch. 1 & 2; JoAnne Yates, Communication Technology and the Growthof Internal Communication, Control Through Communication; Tom Mullaney, TheChinese Typewriter,Piracy: The Intellectual Property Wars from Gu
NYU - COMM - comm
History Media:How Users & Non-Users Matter:What to look in a reading:what was good about this argument?Couple summaries with problemsMust criticize the textExamples [for your papers]Skeptical about modernity [his perspective]Actor network theory:
Maryland - ENG - Eng101
Kim 1Elise KimENGL 10112/26/10FritzFinal Paper (Rough draft)cfw_Intro cfw_Thesis Although our demands for dairy and meat are satisfied, theprotection of the environment is crucial, and therefore there is a need for strongregulations of disposing a
Maryland - ENG - Eng101
Elise KimENGL 101Fritz12/2/10Self EvaluationI have always been getting Bs on my papers throughout my life, and have labeled myselfas a B- writer, until my first semester of college. My development as a writer at the Universityof Maryland has been i
Maryland - ENG - Eng101
Elise KimENGL10111/30/10FritzFinal Research Paper: Rhetorical SituationExigence: I am writing this paper because I think it is important for the audience to knowthe holistic view of animal wastes. There are many problems that derive from theexcreme
Maryland - ENG - Eng101
Elise KimENGL 101Fritz11/18/10Improvements in the Management of Animal WasteOver the past century, the animal industry has been growing tremendously because ofthe great demands for meat and dairy products. The push for mass production in the livesto
Maryland - ENG - Eng101
Elise KimENGL10111/9/10FritzConsidering Another Side: Rhetorical SituationExigence: I am writing this paper because I think it is important for the audience to get afeel for what farmers have to do daily in order to keep the farm going. I want them
Maryland - ENG - Eng101
Elise KimENGL10110/14/10FritzRhetorical SituationExigence: I am writing this paper because I have a passion for both animals and theenvironment. I want to know more about animal care and sustainability.Audience: The audience for this paper will be
Maryland - ENG - Eng101
Elise KimENGL 101Fritz11/4/10Topic MemoAfter writing the Evidence and Experience paper, I noticed that all the articles Iused addressed the issues of animal waste affecting only the environment. I thought itwas important to include what the farmers
Maryland - ENG - Eng101
xpSource/CategorySource 1: Waterquality (Cooper)Conjecture/DefinitionAnimal waste is a majorpollutant of water.Source 2:IndustrializedAnimal ProductionA MajorSource of Nutrientand MicrobialPollution to AquaticEcosystems(Mallin and Cahoon)How
Maryland - ENG - Eng101
Elise KimENGL 10110/26/10FritzAnimal Wastes and its ConsequencesThe high demand for meat, milk, and eggs in the United States has increased overthe past century causing the livestock industry to evolve, forcing the production of animalsto become mo
Maryland - ENG - Eng101
Works CitedCooper, M. H. (2000, November 24). Water quality. CQ Researcher, 10, 953- 976.RetrievedOctober11,2010,fromCQResearcherOnline,http:/library.cqpress.com/cqresearcher/cqresrre2000112400.Osterberg, David, and David Wallinga. "Addressing
Maryland - ENG - Eng101
Elise KimENGL10110/14/10FritzRhetorical SituationExigence: I am writing this paper because I have a passion for both animals and theenvironment. I want to know more about animal care and sustainability.Audience: The audience for this paper will be
Maryland - ENG - Eng101
Elise KimENGL 101Fritz10/7/10Topic MemoGrowing up as an animal and nature lover, I always wondered where the animalwastes went to when I saw the feces and urine go down the drain in the corner of theanimals stalls at a nearby farm. It is important
Maryland - ENG - Eng101
1Elise KimENGL 101FritzSeptember 23, 2010The Moral Obstacle of the 21st CenturyIn The Girl Effect, Nicholas D. Kristof and Sheryl WuDunn assert that theinferiority of women is present everywhere to recruit people to join their movement toimprove t
Maryland - ENG - Eng101
1Elise KimENGL 101FritzSeptember 15, 2010Quality over QuantityIn his acceptance speech for the Lifetime Achievement Award Ceremony from theNational Council for Science and the Environment, Herman Daly emphasizes how the economyshould develop quali
Maryland - ENG - WMST250
Kim 1Elise Kim5/16/11WMST250 (Lara Torsky)Final PaperOn the first day of class, we were asked to write down what we thought the definition offeminism was. I wrote: the celebration of womens social differences, such as art, culture,gender, race and
Maryland - ENG - WMST250
Throughout history, women have been obsessed with their physical looks because ofwhat the society expected and favored in them. Even in ancient times, women went to theextremes to achieve perfection. For example, in 3000 BC, because the pale look was fa
Maryland - ENG - WMST250
Elise KimI went to the 11:30- 1:00 panel that was called, Sexuality, Desire, Identity: Terrains ofSexual Knowledge, where four women, and one man, Matt Richardson, spoke. Judith Gardiner,an English and Womens Studies professor at the University of Illi
Maryland - ENG - WMST250
Kim 1Essay #1Elise KimWMST 250: Midterm essayLara Torsky03/29/11Womens CommunicationCommunication is essential to all living things in order to make things run smoothly. Thiscan be portrayed through something as small as an insect, such as a honey
Maryland - UNIV - Univ 100
Elise KimUNIV 10011/29/2010JournalAt the beginning of this semester, I was afraid of not being able to make friendsbecause of my shy nature. However, it didnt take long to build friendships because ofone floor-mate I met during the first week of col
Maryland - UNIV - Univ 100
Elise Kim10/11/10UNIV100Journal #3Before I came to the University of Maryland I thought that college l was going tobe hard because its a new and different environment. However, my first half of thissemester was a good way for me to adjust at the Uni
Maryland - UNIV - Univ 100
UNIV100Fall,2010Sections1503TheStudentintheUniversitySurvivingatUM&theCollegeofAgriculture&NaturalResourcesCourseSyllabusInstructor:TAMr. Tim Lapanne(Section 1503)0104 Symons Hall(301) 405-5308Courtney Shaycshay@mail.umd.eduOurClassroom:321
Maryland - UNIV - Univ 100
Elise KimUNIV 1009/27/2010A)I made many friends on Friday during the All Niter. They were all friends of oneof my friends from my floor and they are in Navigators, a Christian club. We playedgames together in the basement of Denton. It was very fun!
Maryland - UNIV - Univ 100
Elise KimUNIV 1009/27/2010A)I made many friends on Friday during the All Niter. They were all friends of oneof my friends from my floor and they are in Navigators, a Christian club. We playedgames together in the basement of Denton. It was very fun!
Maryland - UNIV - Univ 100
Elise KimUNIV 100Lapanne9/27/10Meetcha TeachaIt was very hard for me to pick a professor I wanted to interview, but Ichose Dr. Updike, my Animal Science 101 and Animal Science 103 professorbecause he is the teacher that Im majoring in, Animal Scien
Maryland - UNIV - Univ 100
Elise KimUNIV 1009/6/2010A) This week, I learned how to navigate through the campus by asking people fordirections. They were all surprisingly nice and I was grateful that they didnt giveme the wrong directions. Now that I can go to different places
Regis - ACCOUNTING - 401
ch01Student: _1.Taxes influence many types of business decisions but generally do not influence personal decisions.True False2.Taxes influence business decisions such as where a business should locate or how a business should bestructured.True Fal
Regis - ACCOUNTING - 401
ch02Student: _1.Corporations are required to file a tax return annually regardless of their taxable income.True False2.The tax return filing requirements for individual taxpayers only depend on the taxpayer's filing status.True False3.If a taxpay
Regis - ACCOUNTING - 401
ch03Student: _1.The goal of tax planning is tax minimization.True False2.Nontax factors do not play an important role in tax planning.True False3.Virtually every transaction involves the taxpayer and two other parties that have an interest in the
Regis - ACCOUNTING - 401
ch04Student: _1.Relative to for AGI deductions, from AGI deductions tend to relate to items that are more personal innature.True False2.Taxpayers need not include an income item in gross income unless there is a specific tax provisionrequiring the
Regis - ACCOUNTING - 401
ch05Student: _1.Gross income includes all income realized during the year.True False2.Excluded income will never be subject to the federal income tax.True False3.The all-inclusive definition of income means that gross income is defined very broad
Regis - ACCOUNTING - 401
ch06Student: _1.The profit motive distinguishes "business" activities from "personal" activities.True False2.All business expense deductions are claimed above the line.True False3.All investment expenses are itemized deductions.True False4.Ren
Regis - ACCOUNTING - 401
ch07Student: _1.Both the width (or range) of the tax brackets (the amount of income taxed at a particular rate) in the taxrate schedules and the range of the tax rates in the tax rate schedules (the difference between the lowesttax rate and the highe
Regis - ACCOUNTING - 401
ch08Student: _1.The Internal Revenue Code authorizes deductions for trade or business activities if the expenditureis "ordinary and necessary".True False2.Business activities are distinguished from other activities in that business activities are m
Regis - ACCOUNTING - 401
ch09Student: _1.Like financial accounting, most business property must be capitalized for tax purposes.True False2.Tax cost recovery methods include depreciation, amortization, and depletion.True False3.If a business mistakenly claims too little
Regis - ACCOUNTING - 401
ch10Student: _1.The amount realized is the sale proceeds less the adjusted basis.True False2.Generally, the amount realized is everything of value received in a sale less selling expenses.True False3.The adjusted basis is the cost basis less cost
Regis - ACCOUNTING - 401
ch11Student: _1.Generally, interest income is taxed at preferential capital gains rates and dividend income is taxed atordinary rates.True False2.Interest earned on U.S. savings bonds is interest received at sale or maturity but must be taxedannua
Regis - ACCOUNTING - 401
ch12Student: _1.Current compensation is usually comprised of salary, wages, and bonuses.True False2.Employees complete a Form W-2 to specify their income tax withholding.True False3.Employers computing taxable income receive a deduction for salar
Regis - ACCOUNTING - 401
ch13Student: _1.Qualified retirement plans include defined benefit plans but not defined contribution plans.True False2.Defined benefit plans specify the amount of benefit an employee will receive on retirement while definedcontribution plans speci
Regis - ACCOUNTING - 401
ch14Student: _1.In general terms, the tax laws favor taxpayers who own their principal residence relative to taxpayers whorent it.True False2.Renting a residence may have nontax advantages over owning a home.True False3.A personal residence is n
Regis - ACCOUNTING - 401
ch15Student: _1.Corporations are legally formed by filing articles of organization with the state in which the corporationwill be created.True False2.General partnerships are legally formed by filing a partnership agreement with the state in which
Regis - ACCOUNTING - 401
ch16Student: _1.In general, a corporation may choose to use either the accrual or cash method of accounting no matterhow large the corporation.True False2.Corporations calculate adjusted gross income (AGI) just as individuals do.True False3.Corp