subject

Find most recent release year for each genre. The given SQL creates a Song table and inserts some songs. The SELECT statement selects the genre and row count for each genre group Add a new column to the SELECT statement that uses MAXO to find the most recent release year for each genre. Then add a HAVING clause that selects only genre groups that have more than one row count. Run your solution and verify country pop, R&B, and grunge genres, row counts, and most recent release years appear in the result table 1 CREATE TABLE Song ( ID INT, 3 Title VARCHAR(60), 4 Artist VARCHAR(60), 5 ReleaseYear INT, 6 Genre VARCHAR(20), 7 PRIMARY KEY (ID) 8); 9 10 INSERT INTO Song VALUES 11 (100, "Hey Jude', 'Beatles', 1968, 'pop rock'), 12 (200, 'You Belong With Me', 'Taylor Swift', 2008, 'country pop'), 13 (300, 'You're still the One', Shania Twain', 1998, 'country pop'), 14 (400, 'Need You Now', 'Lady Antebellum', 2011, country pop'), 15 (500, 'You\'ve Lost That Lovin' Feeling', 'The Righteous Brothers', 1964, 'R&B'), 16 (600, 'That\'s The Way Love Goes', 'Janet Jackson', 1993, 'R&B'), 17 (700, 'Smells Like Teen Spirit', 'Nirvana', 1991, 'grunge'), 18 (800, 'Even Flow', 'Pearl Jam', 1992, 'grunge'), 19 (900, 'Black Hole Sun', 'Soundgarden', 1994, 'grunge'); 20 21 -- Modify the SELECT statement 22 SELECT Genre, COUNT(*) 23 FROM Song 24 GROUP BY Genre; Run Reset code

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 21:50
Answer the following questions regarding your system by using the commands listed in this chapter. for each question, write the command you used to obtain the answer. a. what are the total number of inodes in the root filesystem? how many are currently utilized? how many are available for use? b. what filesystems are currently mounted on your system? c. what filesystems are available to be mounted on your system? d. what filesystems will be automatically mounted at boot time?
Answers: 1
question
Computers and Technology, 24.06.2019 03:30
It is not necessary to develop strategies to separate good information and bad information on the internet. true or false
Answers: 1
question
Computers and Technology, 24.06.2019 15:30
During the software planning process, rick, a project manager, finds that his team has made an incorrect estimation of funds. what kind of risk has rick identified? rick has identified a risk.
Answers: 1
question
Computers and Technology, 24.06.2019 21:30
Computer security/cybersecurity1) each of the following code fragments contains a number of security vulnerabilities. for each fragment, identify these security vulnerabilities and, for each vulnerability, discuss at least one way that it could be improved. note that in your discussion of how each vulnerability could be improved, you do not need to re-write a new version of the program in c; simply discuss your solution, either in pseudocode or in 1-2 sentences.a) /* file descriptor leak */#include #include int main(int argc, char *argv[]){ char *filepath = argv[0]; char *shellpath = argv[1]; file *passwords; passwords = fopen(filepath, "r"); /* read the password and do something with it */ /* . . */ /* fork and execute alternative shell */ execl(shellpath, "shell", null); }b)#include /* assume the following function is written for an electronic storefront. the user will enter the id of the item to be ordered, as well as the quantity of units that they would like to purchase. the program will then lookup the price for the price for the item using a predefined function, and return the total cost of the order.*/int gettotalcost(){ char itemid[9]; int price, unitsordered, cost; printf(" enter the 9-digit id of the item to be ordered: "); scanf("%s", & itemid); /* lookup the price according to the itemid */ price = getpricebyid(itemid); printf(" enter the quantity of units to be ordered: "); scanf("%d", & unitsordered); cost = price * unitsordered; return cost; }c)#include /* the following function is intended to return a user's full name by concatenating the user's first and last name into a single string and then returning that string. */char *getfullname(char *firstname, char *lastname, int max_len){ char fullname[max_len]; strcpy(fullname, firstname); strcat(fullname, " "); strcat(fullname, lastname); return fullname; }d)#include /* the following code snippet runs through the list of cli arguments entered and displays them to the console. */int main(int argc, char *argv[]){ int i; printf("you've entered the following arguments: "); for(i = 0; i < argc; i++){ print(argv[i]); printf("\n"); } /* */}
Answers: 2
You know the right answer?
Find most recent release year for each genre. The given SQL creates a Song table and inserts some so...
Questions
Questions on the website: 13722363