Search
 
SCRIPT & CODE EXAMPLE
 

SQL

oracle number to percentage

-- Formatted
SELECT decimal_column * 100 || '%' AS percentage FROM table_name;
-- Rounded
SELECT round(decimal_column * 100, 2) || '%' AS percentage FROM table_name;
-- Value
SELECT decimal_column * 100 AS percentage FROM table_name;
SELECT TO_CHAR(decimal_column,'fm990D00','NLS_NUMERIC_CHARACTERS = ''.,''') 
	FROM dual;
Comment

PREVIOUS NEXT
Code Example
Sql :: linq join 
Sql :: sql list dates between two dates 
Sql :: sql line numbers 
Sql :: get column types SQL SERVER 
Sql :: DATEDIFF minute postgres 
Sql :: sql declare variable 
Sql :: getdate function in postgresql 
Sql :: mysql add column to table 
Sql :: mysql kill 
Sql :: android sqlite add column if not exists 
Sql :: change mariadb to mysql xampp 
Sql :: how to know the character set of an oracle databes 
Sql :: create database in mysql 
Sql :: mysqldump with where clause 
Sql :: activate event scheduler mariadb 
Sql :: between sql server 
Sql :: sql function to add all values round of 2 decimal places 
Sql :: sql select where in 
Sql :: osx stop mysql service 
Sql :: oracle index size calculation 
Sql :: execute sp in sql server 
Sql :: data formate in sql 
Sql :: mysql change value 
Sql :: mysql if 
Sql :: create table query in mysql 
Sql :: GROUP BY With HAVING Clausel 
Sql :: sql where time stamp is in between 
Sql :: ON DUPLICATE KEY UPDATE for postgres 
Sql :: delete rows from table sql 
Sql :: sql use not in 
ADD CONTENT
Topic
Content
Source link
Name
1+3 =