add batch remove batch split batch comment selection show hidden batches hide batch highlight batch
db<>fiddle
donate feedback about
By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
3 rows affected
Driver-1 Driver-2 Driver-3
Store Store Store
SELECT Department AS [Driver-1],
       Department AS [Driver-2],
       Department AS [Driver-3]
FROM dbo.YourTable YT
WHERE Department = @Dept
GROUP BY Department;