Will you ever have more then two entries for the same studio? If not I can see quick fix.
Something to the effect of:
SELECT [id], [name], MIN(end date), MAX(beg date), DATEDIFF(day, edate, sdate)
FROM tblA INNER JOIN tblB ON tblA.id = tblB.id
If you need it dynamic, then I'd have to put...