Reference no: EM133185464
Case study
You have the following tables: PLAYLIST(Playlistld, SongTitle, SongLength, Artistld) ARTIST(Artistld, ArtistName, ArtistSurname)
a) Write a stored procedure that will show all songs (songtitle, ArtistName and ArtistSurname) in your playlist. Order the list alphabetically by songtitle.
b) Write a C# console application with a method ShowPlaylist that will list all the songs in your playlist in alphabetical order (use your stored procedure from (a)).
You must use a datareader for this. Format your output.
c) Write a stored procedure to calculate the total length of your playlist. Assume that the song length is in seconds.
d) Write a method called PlaylistLength that will output the total length of your playlist. Convert the seconds to hours/minutes/seconds in C#. Use your stored procedure in (c).
e) Write a stored procedure that will allow you to add an artist. All values must be sent through as parameters.
f) Write a C# console application that will allow a user to add an artist. The user must specify the values that must be added. Use your stored procedure from (a) for this.