Search
 
SCRIPT & CODE EXAMPLE
 

SQL

oracle to_char number format 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 :: mysql find duplicates in same table 
Sql :: postgres list users 
Sql :: use group_concat in concat 
Sql :: How to check if the column exists in sql table 
Sql :: sqlite save db 
Sql :: difference between primary key and unique key 
Sql :: nullif postgresql 
Sql :: docker create postgresql database 
Sql :: primary key multiple 
Sql :: SQL Multiple Cases 
Sql :: brew start postgres 
Sql :: drop sequence 
Sql :: mysql backup database command line 
Sql :: mysql grant select update insert delete 
Sql :: mysql timestamp format 
Sql :: between from sql 
Sql :: how to count number of rows in sql 
Sql :: mysql compare timestamp in minutes 
Sql :: sql server last 2 days 
Sql :: oracle index size 
Sql :: how to join tables in sql 
Sql :: sql server drop column 
Sql :: export mysql db using command line 
Sql :: pagination in sql 
Sql :: run sql script from command line 
Sql :: activate binary log mariadb 
Sql :: using minus query in SQL 
Sql :: sql update multiple rows 
Sql :: to_date postgresql 
Sql :: sql create table with data 
ADD CONTENT
Topic
Content
Source link
Name
7+4 =