DSS-3914, modify the sql to fetch only the latest version of jobs in workflow
DSS-3914, modify the sql to fetch only the latest version of jobs in workflow

alyiwang/WhereHows,SunZhaonan/WhereHows-1,SunZhaonan/WhereHows-1,shpark76/WhereHows,ShridharSattur/WhereHows,hangzhang925/WhereHows,alyiwang/WhereHows,ShridharSattur/WhereHows,theseyi/WhereHows,linkedin/WhereHows,shpark76/WhereHows,theseyi/WhereHows,camelliazhang/WhereHows,alyiwang/WhereHows,mars-lan/WhereHows,linkedin/WhereHows,SunZhaonan/WhereHows-1,SirAeroWN/premier-wherehows,theseyi/WhereHows,SirAeroWN/premier-wherehows,shpark76/WhereHows,hangzhang925/WhereHows,camelliazhang/WhereHows,shpark76/WhereHows,alyiwang/WhereHows,SirAeroWN/premier-wherehows,jerrybai2009/WhereHows-1,mars-lan/WhereHows,hangzhang925/WhereHows,ShridharSattur/WhereHows,SirAeroWN/premier-wherehows,mars-lan/WhereHows,shpark76/WhereHows,ShridharSattur/WhereHows,alyiwang/WhereHows,linkedin/WhereHows,hangzhang925/WhereHows,linkedin/WhereHows,theseyi/WhereHows,SirAeroWN/premier-wherehows,mars-lan/WhereHows,jerrybai2009/WhereHows-1,linkedin/WhereHows,ShridharSattur/WhereHows,linkedin/WhereHows,camelliazhang/WhereHows,jerrybai2009/WhereHows-1,theseyi/WhereHows,theseyi/WhereHows,hangzhang925/WhereHows,camelliazhang/WhereHows,mars-lan/WhereHows,shpark76/WhereHows,ShridharSattur/WhereHows,mars-lan/WhereHows,SunZhaonan/WhereHows-1,camelliazhang/WhereHows,alyiwang/WhereHows,hangzhang925/WhereHows,jerrybai2009/WhereHows-1,camelliazhang/WhereHows