{"id":177182,"date":"2018-02-20T23:50:30","date_gmt":"2018-02-20T23:50:30","guid":{"rendered":"https:\/\/writemyessayfree.com\/positive-integer-number"},"modified":"2018-10-24T09:13:00","modified_gmt":"2018-10-24T09:13:00","slug":"positive-integer-number","status":"publish","type":"post","link":"https:\/\/www.benedictsol.com\/blogs\/positive-integer-number\/","title":{"rendered":"positive integer number"},"content":{"rendered":"<p>positive integer number<\/p>\n<p>Order Instructions:<\/p>\n<p>Task<br \/> Apple recently hired you to build a new database system for their iTunes store. The product manager gives you the following business requirements<br \/> ? Each artist is assigned a unique ID in our iTunes database. The ID is a positive integer number and the database is interested in tracking their name, an artist\u2019s genre and their age.<br \/> ? Each artist can have multiple genre and each genre has multiple artists.<br \/> ? An artist owns an album, where each album can be uniquely identified by an album ID and an album name. For simplicity, an album can only be owned by a single artist.<br \/> ? Each album has a number of songs, where again each song has its own unique song ID. The iTunes database is also interested in tracking the song\u2019s name, the order which it is listed in the album, the pricing of an album and length of the song. Each song is assumed to below to only one album.<br \/> ? An album has a release date, genre and the region that it was released in. Each album can be released in multiple regions. There are ten different regions in the iTunes database. These regions follow the DVD coding that is given in http:\/\/en.wikipedia.org\/wiki\/DVD_region_code.<br \/> ? The database should also support region-specific pricing of an album. That is, each album can be priced differently in different regions.<\/p>\n<p>The product manager also tells you that the database must be capable of producing the following reports for the CEO every month. This includes a report that<br \/> 1. lists all albums that has a song length greater than 5minutes<br \/> 2. lists all albums released in a given period, e.g., 1 January 2013 and 31 January 2013<br \/> 3. lists all albums that were above a certain pricing for each region code<br \/> Example: If album X in region A, B, C sells for $11, $8, $12 respectively, then the SQL query for pricing above $10 will list the rows as output<br \/> Album<br \/> Region<br \/> Price<br \/> X<br \/> A<br \/> $11<br \/> X<br \/> C<br \/> $12<br \/> 4. lists all artists who has albums in a given set of region code, e.g., albums in region code 0 and 5<br \/> 5. lists all artists who share the same genre<br \/> Example: If artist A has genre \u2018rock\u2019 and \u2018classic\u2019, artist B has genre \u2018classic\u2019 and \u2018pop\u2019, and artist C has genre \u2018pop\u2019, then the output should be<br \/> Acceptable output 1<br \/> First Artist Second Artist Shared Genre<br \/> A B Classic<br \/> B A Classic<br \/> B C Pop<br \/> C B Pop<br \/> Acceptable output 2 (better but harder)<br \/> First Artist Second Artist Shared Genre<br \/> A B Classic<br \/> B C Pop<\/p>\n<p> 6. lists all artists who produced an album that is not in the genre listed for that artist<br \/> Example: If artist X has genre \u2018pop\u2019 and \u2018rock\u2019 registered but produce an album Y with genre \u2018classic\u2019,<br \/> then the artist, (and optionally, album and that genre) should be listed.<br \/> 7. lists all artists who has never produced an album that contains more than 10 songs in each album<br \/> As your product manager is in a rush, he asks you to start with this initial requirements. He wants you to<br \/> write a report containing<br \/> ? the ER modelling that you have developed;<br \/> ? the SQL statements that you think will produce each of the report requested, and a short discussion<br \/> of how your SQL statement will achieve the outputs desired;<br \/> ? Since you haven\u2019t got an opportunity to clarify the requirements, the list of assumptions that you<br \/> made in order to capture the above data and to produce the reports requested.<br \/> Hints<br \/> ? You will have to refine your ER diagram as you look at each report requested so don\u2019t expect to get<br \/> the ER diagram completed the first time.<br \/> ? As you rework the ER diagram to support a report, make sure your ER diagram continues to support<br \/> the other reports, i.e., your SQL statements for the other reports still work.<br \/> ? Before submission, check your ER diagram and all your SQL statements \u2013 your SQL statements should<br \/> be able to logically execute over the tables that your ER diagram will ultimately produce.<br \/> ? Make assumptions that are logical \u2013 it is often easier for the marker to appreciate your design and<br \/> though process to be able to award marks.<br \/> ? If you are unable to provide the \u201cperfect\u201d SQL statement, don\u2019t panic. Write what you can as SQL<br \/> and then explain them to your marker as if you are the analyst and the marker is the database<br \/> administrator who will ultimately be responsible for producing the actual report.<\/p>\n<p>request:<br \/> a clearly drawn and complete ER diagram<\/p>\n<p>a list of assumptions (in point form is fine)<\/p>\n<p>one SQL statement to each question<\/p>\n","protected":false},"excerpt":{"rendered":"<p>positive integer number Order Instructions: Task Apple recently hired you to build a new database system for their iTunes store. The product manager gives you the following business requirements ? Each artist is assigned a unique ID in our iTunes <a href=\"https:\/\/www.benedictsol.com\/blogs\/positive-integer-number\/\" class=\"read-more\">Read More &#8230;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-177182","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/posts\/177182","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/comments?post=177182"}],"version-history":[{"count":0,"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/posts\/177182\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/media?parent=177182"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/categories?post=177182"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/tags?post=177182"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}