{"id":34347,"date":"2024-09-27T17:27:28","date_gmt":"2024-09-27T07:27:28","guid":{"rendered":"https:\/\/myassignmenthelp.info\/assignments\/?p=34347"},"modified":"2024-09-27T17:27:29","modified_gmt":"2024-09-27T07:27:29","slug":"how-showcase-this-step-by-step-2322779","status":"publish","type":"post","link":"https:\/\/myassignmenthelp.info\/assignments\/how-showcase-this-step-by-step-2322779\/","title":{"rendered":"How Showcase this Step by Step-2322779"},"content":{"rendered":"<p><div class=\"ppw-restricted-content\"><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>Note you will have to have a software that can connect to the database On my end i used SQL management studio Please follow this video I want to connect to the database you sent me wait for SQL management studio to start (it usually takes some minutes) Server santha-database-teaching-4.ccw9zr8vvw2d.ap-southeast-2.rds.amazonaws.com User name s3901292 Password Essra01010@ Step by step video Task 1: Showing tables- Here ou need to go to our database which in this case is s3901292 (check this) Task 2: Sample SQL queries : Sample quer run Task 3: Provide justification for the partion technique (Here ou need to look at milestone 1, check the tables created also ou check the tables or structure Task 4: Stored Function In this case i created a simple SQL statement that calls the stored function (This one) Task 5: Bonus mark THANK OU AS SIMPLE AS THAT &#8212; Create the function CREATE FUNCTION dbo.get_total_preferences (@BallotPaperID INT) RETURNS INT AS BEGIN DECLARE @total INT; &#8212; Calculate total preferences SET @total = (SELECT SUM(Preferences) FROM BallotPaper WHERE BallotPaperID = @BallotPaperID); RETURN @total; END; GO &#8212; This separates the function creation from the next command &#8212; Call the function SELECT dbo.get_total_preferences(1) AS total_preferences;<\/p>\n\n\n<p><\/div><\/p>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[359],"tags":[],"class_list":["post-34347","post","type-post","status-publish","format-standard","hentry","category-education"],"_links":{"self":[{"href":"https:\/\/myassignmenthelp.info\/assignments\/wp-json\/wp\/v2\/posts\/34347","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/myassignmenthelp.info\/assignments\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/myassignmenthelp.info\/assignments\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/myassignmenthelp.info\/assignments\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/myassignmenthelp.info\/assignments\/wp-json\/wp\/v2\/comments?post=34347"}],"version-history":[{"count":1,"href":"https:\/\/myassignmenthelp.info\/assignments\/wp-json\/wp\/v2\/posts\/34347\/revisions"}],"predecessor-version":[{"id":34348,"href":"https:\/\/myassignmenthelp.info\/assignments\/wp-json\/wp\/v2\/posts\/34347\/revisions\/34348"}],"wp:attachment":[{"href":"https:\/\/myassignmenthelp.info\/assignments\/wp-json\/wp\/v2\/media?parent=34347"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/myassignmenthelp.info\/assignments\/wp-json\/wp\/v2\/categories?post=34347"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/myassignmenthelp.info\/assignments\/wp-json\/wp\/v2\/tags?post=34347"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}