Have a Look at RPAD
RPAD
Syntax: RPAD( var, padded_length ,x )
Paramters:
var -> String/DateType/Number
x -> String/DateType/Number
Return Type: String Value
Use Case:
If manager wants to postal code of all the locations where its organization has offices in presentable manner.
select city,rpad(postal_code,12,'*') from locations;


Comments
Post a Comment