-- 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;
Code Example |
---|
Sql :: get foreign table names mysql |
Sql :: SQL Error 1040 : Too many connections |
Sql :: Get first 10 in sql |
Sql :: mysql 1 hour ago |
Sql :: desc in sql |
Sql :: psql create user |
Sql :: date format mysql |
Sql :: postgresql get date now |
Sql :: delete database mysql command |
Sql :: how to uninstall postgresql 13 on mac |
Sql :: show database cmd |
Sql :: oracle drop job if exists |
Sql :: mysql backup database |
Sql :: mysql permissions |
Sql :: sql extract from mail |
Sql :: sql between operator |
Sql :: mysql login to a specific database terminal |
Sql :: current date in sql |
Sql :: mysql query with sql to get the next row |
Sql :: how to change column name in mysql |
Sql :: postgres top 10 |
Sql :: T-SQL - Delete Column |
Sql :: sql select lowest value row |
Sql :: drop schema sql |
Sql :: postgresql full text search |
Sql :: postgresql check total storage |
Sql :: expo sqlite |
Sql :: update column value in sql |
Sql :: sql column to row |
Sql :: run function in sql |