Search
 
SCRIPT & CODE EXAMPLE
 

SQL

get two decimal places in sql server

select cast(10.3333 AS DECIMAL(10,2)) Result -- 10.33
select cast(10 AS DECIMAL(10,2)) Result -- 10.33

select cast(your_float_column as decimal(10,2))
from your_table
Comment

sql decimal with 2 places

ROUND(column_name,decimals)
Comment

PREVIOUS NEXT
Code Example
Sql :: SQl Server Versionen Releases und Build-Nummern 
Sql :: sql show tables 
Sql :: sql select all from table 
Sql :: restore postgres database from sql file 
Sql :: sql like query 
Sql :: oracle last day of month 
Sql :: mysql user change password 
Sql :: mysql config user password 
Sql :: date less than current date sql 
Sql :: how to alter table column name in mysql 
Sql :: mysql sort by date column 
Sql :: change old domain to new domain name wordpress 
Sql :: Select last row from SQL Table 
Sql :: SQL: merging multiple row data in string 
Sql :: print all records of table in mysql 
Sql :: mysql get all tables row count 
Sql :: postgresql today - 1 year 
Sql :: can you update NULL in sql 
Sql :: wordpress delete post revisions older than date "sql" 
Sql :: restore postgres database from dump 
Sql :: sql server: difference between hashtable and table declared using declare keyword 
Sql :: change column name in sql 
Sql :: update column data type postgres 
Sql :: how to print mysql query of codeigniter query builder 
Sql :: c# sql select 
Sql :: how to update random rows in sql 
Sql :: how to assign date field for table in mysql 
Sql :: postgresql insert column 
Sql :: oracle list columns in schema 
Sql :: how to export only procedures mysql 
ADD CONTENT
Topic
Content
Source link
Name
9+1 =