All pastes #897803 Raw Edit

Mine

public text v1 · immutable
·published 2008-02-09 21:17 UTC
rendered paste body
table advertisement: [media id] [cost]
table media: [id] [name] [type]
check media.type in 'tv', 'radio', 'internet', 'newspaper'

make an sql statement that finds the name of the media with the max cost of advertisement for each type of media