OOP db
OOP as Abstract Data Type
Practice SQL, use OOP, Have fun!
- Put the MusicsRelationships database somewhere you know the location
- Copy and paste the MusicOOPdb code from Pastebin http://pastebin.com/TQah82dH
- step through the code and ensure you understand what’s happening
- Create a new class called CD’s
- Add 3 properties, getters and setters
- Write a method to collect all the Cd’s from the Database
- Display the list in the console
- Write a method that returns a list of all the Artists that have made albums with more than 12 tracks
- Write a method that returns all the Artists who are described as being "Pop"
- Add a new Artist (i.e Blur) Make sure you do it through the class and then through a new method that runs an insert query
- Add a new Album (i.e Parklife) use a class and insert
- Use an Update query to change the Genre for "james blunt" from "pop" to "pants"
Last modified: Thursday, 29 September 2016, 3:31 PM