Your SQL command was:
select cast(run2d as int) as run, survey, programname, count(*) as nPlates, min(dateObs) as startDate, max(dateObs) as endDate
from platex
where run2d in ('26','103','104') 
group by cast(run2d as int), survey, programname
order by cast(run2d as int), survey, programname

Your query output (max 500,000 rows):

runsurveyprogramnamenPlatesstartDateendDate
26sdssapbias32002-12-292004-12-16
26sdsscommissioning32000-03-122000-04-03
26sdssdisk162002-10-122003-10-18
26sdssfstars82001-12-192004-03-11
26sdsshyades12003-12-192003-12-19
26sdsslegacy19262000-02-042008-05-06
26sdsslowz92001-12-212002-11-11
26sdsslowz_loveday12003-01-112003-01-11
26sdsslowz_lrg442002-07-052006-01-03
26sdssm31_fstars32003-08-262003-12-23
26sdssmsturnoff82002-11-012004-08-10
26sdssorion82003-02-042008-01-18
26sdssperseus22003-12-022003-12-15
26sdssphotoz192001-09-162008-01-10
26sdsspreboss92006-12-112008-01-15
26sdsspremarvels_preselection132007-12-032008-06-15
26sdssreddening92003-09-202003-12-01
26sdsssouthern1342001-09-102006-01-27
26sdsstaurus32003-12-262006-01-23
26segue1seglowlat142006-05-282008-06-15
26segue1seglowlatf112006-05-282008-06-06
26segue1segpointed162004-09-142008-03-02
26segue1segpointedf162004-09-172008-02-27
26segue1segtest112003-11-222008-05-25
26segue1segtestf42003-11-282008-06-01
26segue1segue1792004-08-112008-07-05
26segue1seguefaint1672004-08-122008-07-06
103segue1segcluster162004-10-092008-02-24
103segue1segclusterf82004-11-062008-02-02
104sdsspreboss12008-12-032008-12-03
104sdsspremarvels_preselection72008-10-292009-03-02
104segue2segcluster22009-03-222009-03-29
104segue2segue22092008-09-052009-06-25