how to rename all columns in sql table in select statement server code example
Example 1: how to rename columns in sql server
EXEC sp_rename 'Sales.SalesTerritory.TerritoryID', 'TerrID', 'COLUMN';
Example 2: sql rename column in select query
SELECT data.column AS `Label`