Skip to content

Instantly share code, notes, and snippets.

View eleakin's full-sized avatar

Eric L. Eakin eleakin

View GitHub Profile
/* How many albums does the artist Led Zepplin have? */
SELECT COUNT(Albumid) AS totalAlbums
FROM albums
WHERE Artistid = (SELECT Artistid FROM artists WHERE name = 'Led Zeppelin')
/* Create a list of album titles and the unit prices for the artist Audioslave */
SELECT n.Name, u.UnitPrice
FROM ((albums t INNER JOIN artists n
ON t.Artistid = n.Artistid)
INNER JOIN tracks u ON t.Albumid = u.Albumid)
@seankross
seankross / bin_op.R
Created March 21, 2015 15:35
Swirl R Programming Script Answers
"%p%" <- function(left, right){
paste(left, right)
}