Data Warehouse & Business Intelligence
MSBI and other knowledge base
Labels
ASP.Net
(1)
BIML
(4)
Business Intelligence
(1)
C#
(8)
Data Models
(1)
Data Types
(1)
Data Warehouse
(3)
Database Architecture
(1)
Database Management
(1)
Date Functions
(3)
ERD
(2)
Google Analytics
(4)
MobileApp Analytics
(1)
OoyalaAPI
(4)
Reference Sites
(1)
SalesForce
(4)
Scenarios
(6)
Script
(27)
SQL
(8)
SQL Job
(3)
SSAS
(2)
SSIS
(36)
SSRS
(4)
StoredProcedure
(8)
StoredProcedureFunction
(1)
T-SQL
(60)
Tableau
(1)
What's new
(1)
Thursday, May 16, 2013
To pad zeros in left with the numerical value
SELECT EmpID
,REPLICATE('0',11 - LEN(EmpID))+ CAST(EmpID AS varchar ) AS EmpKey
FROM dbo.DimEmployee
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.