{"id":78149,"date":"2021-12-01T04:47:19","date_gmt":"2021-12-01T04:47:19","guid":{"rendered":"https:\/\/papersspot.com\/blog\/2021\/12\/01\/assignment-7-9-creating-a-package-for-pledges-create-a-package-named-pledge_pkg\/"},"modified":"2021-12-01T04:47:19","modified_gmt":"2021-12-01T04:47:19","slug":"assignment-7-9-creating-a-package-for-pledges-create-a-package-named-pledge_pkg","status":"publish","type":"post","link":"https:\/\/papersspot.com\/blog\/2021\/12\/01\/assignment-7-9-creating-a-package-for-pledges-create-a-package-named-pledge_pkg\/","title":{"rendered":"Assignment 7-9: Creating a Package for Pledges Create a package named PLEDGE_PKG"},"content":{"rendered":"<p>Assignment 7-9: Creating a Package for Pledges<\/p>\n<p> Create a package named PLEDGE_PKG that includes two functions for determining dates of<\/p>\n<p> pledge payments. Use or create the functions described in Chapter 6 for Assignments 6-12 and<\/p>\n<p> 6-13, using the names DD_PAYDATE1_PF and DD_PAYEND_PF for these packaged functions.<\/p>\n<p> Test both functions with a specific pledge ID, using an anonymous block. Then test both<\/p>\n<p> functions in a single query showing all pledges and associated payment dates. (Corresponding source code for functions DD_PAYDATE1_SF and DD_PAYEND_SF is provided in the attached file DD_PAY.sql.)<\/p>\n<p> Assignment 7-10: Adding a Pledge Display Procedure to the Package<\/p>\n<p> Modify the package created in Assignment 7-9 as follows:<\/p>\n<p> \u2022 Add a procedure named DD_PLIST_PP that displays the donor name and all<\/p>\n<p> associated pledges (including pledge ID, first payment due date, and last payment<\/p>\n<p> due date). A donor ID is the input value for the procedure.<\/p>\n<p> \u2022 Make the procedure public and the two functions private.<\/p>\n<p> Test the procedure with an anonymous block.<\/p>\n<p> Assignment 7-11: Adding a Payment Retrieval Procedure to the Package<\/p>\n<p> Modify the package created in Assignment 7-10 as follows:<\/p>\n<p> \u2022 Add a new procedure named DD_PAYS_PP that retrieves donor pledge payment<\/p>\n<p> information and returns all the required data via a single parameter.<\/p>\n<p> \u2022 A donor ID is the input for the procedure.<\/p>\n<p> \u2022 The procedure should retrieve the donor\u2019s last name and each pledge payment<\/p>\n<p> made so far (including payment amount and payment date).<\/p>\n<p> \u2022 Make the procedure public.<\/p>\n<p> Test the procedure with an anonymous block. The procedure call must handle the data<\/p>\n<p> being returned by means of a single parameter in the procedure. For each pledge payment,<\/p>\n<p> make sure the pledge ID, donor\u2019s last name, pledge payment amount, and pledge payment<\/p>\n<p> date are displayed.<\/p>\n<p> Assignment 9-9: Tracking Pledge Payment Activity<\/p>\n<p> The DoGood Donor organization wants to track all pledge payment activity. Each time a pledge<\/p>\n<p> payment is added, changed, or removed, the following information should be captured in a<\/p>\n<p> separate table: username (logon), current date, action taken (INSERT, UPDATE, or DELETE),<\/p>\n<p> and the idpay value for the payment record. Create a table named DD_PAYTRACK to hold<\/p>\n<p> this information. Include a primary key column to be populated by a sequence, and create a<\/p>\n<p> new sequence named DD_PTRACK_SEQ for the primary key column. Create a single trigger for<\/p>\n<p> recording the requested information to track pledge payment activity, and test the trigger.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Assignment 7-9: Creating a Package for Pledges Create a package named PLEDGE_PKG that includes two functions for determining dates of pledge payments. Use or create the functions described in Chapter 6 for Assignments 6-12 and 6-13, using the names DD_PAYDATE1_PF and DD_PAYEND_PF for these packaged functions. Test both functions with a specific pledge ID, using [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[10],"class_list":["post-78149","post","type-post","status-publish","format-standard","hentry","category-research-paper-writing","tag-writing"],"_links":{"self":[{"href":"https:\/\/papersspot.com\/blog\/wp-json\/wp\/v2\/posts\/78149","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/papersspot.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/papersspot.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/papersspot.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/papersspot.com\/blog\/wp-json\/wp\/v2\/comments?post=78149"}],"version-history":[{"count":0,"href":"https:\/\/papersspot.com\/blog\/wp-json\/wp\/v2\/posts\/78149\/revisions"}],"wp:attachment":[{"href":"https:\/\/papersspot.com\/blog\/wp-json\/wp\/v2\/media?parent=78149"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/papersspot.com\/blog\/wp-json\/wp\/v2\/categories?post=78149"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/papersspot.com\/blog\/wp-json\/wp\/v2\/tags?post=78149"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}