The mining and quarrying sector contributed positively to GDP in the second quarter, data released by Statistics SA has confirmed.