CREATE TABLE table_17505751_5 (league INT, total VARCHAR, copa_del_rey VARCHAR)

when the total is 8 and copa del rey is 0 what is the minimum league
SELECT MIN(league) FROM table_17505751_5 WHERE total = 8 AND copa_del_rey = 0
SELECT MIN("league") FROM "table_17505751_5" WHERE "copa_del_rey" = 0 AND "total" = 8