Click here to Skip to main content
15,909,645 members
Home / Discussions / Database
   

Database

 
AnswerRe: how to know current date and time Pin
Eddy Vluggen13-Jul-09 22:31
professionalEddy Vluggen13-Jul-09 22:31 
GeneralRe: how to know current date and time Pin
janani1313-Jul-09 23:26
janani1313-Jul-09 23:26 
AnswerRe: how to know current date and time Pin
Md. Marufuzzaman14-Jul-09 19:18
professionalMd. Marufuzzaman14-Jul-09 19:18 
GeneralRe: how to know current date and time Pin
ScottM115-Jul-09 2:47
ScottM115-Jul-09 2:47 
Questiondisplay exactly 2 digits after decimal point in money Pin
janani1313-Jul-09 18:59
janani1313-Jul-09 18:59 
AnswerRe: display exactly 2 digits after decimal point in money Pin
_Damian S_13-Jul-09 19:27
professional_Damian S_13-Jul-09 19:27 
AnswerRe: display exactly 2 digits after decimal point in money Pin
goodideadave14-Jul-09 7:24
goodideadave14-Jul-09 7:24 
AnswerRe: display exactly 2 digits after decimal point in money Pin
Niladri_Biswas15-Jul-09 16:00
Niladri_Biswas15-Jul-09 16:00 
Hi,

Suppose I have a number like 123456.98072340

My output should look like 123456.98 i.e. precisely 2 digits after decimal.


The query is:

SELECT CAST(ROUND(123456.98072340, 2, 1) AS DECIMAL(18, 2))


The generalised query will be

SELECT CAST(ROUND(InputNumber, N, 1) AS DECIMAL(18, N))


Where N=1,2,3,4,5,....

and it indicates the number of decimal places you want to display.


Hope this helps
Smile | :)

Niladri Biswas

Questionsqlpubwiz Command Line Issue. Pin
_Maxxx_13-Jul-09 17:33
professional_Maxxx_13-Jul-09 17:33 
AnswerRe: sqlpubwiz Command Line Issue. Pin
Josh Handley13-Jul-11 0:20
Josh Handley13-Jul-11 0:20 
QuestionHelp with Built-in Database: Visual Web Developer 2008 Express Pin
pstyles113-Jul-09 5:05
pstyles113-Jul-09 5:05 
AnswerRe: Help with Built-in Database: Visual Web Developer 2008 Express Pin
_Damian S_13-Jul-09 19:32
professional_Damian S_13-Jul-09 19:32 
QuestionHelp required for CTE Pin
Zafar Sultan13-Jul-09 3:33
Zafar Sultan13-Jul-09 3:33 
QuestionGetting data related to what has been selected randomly from a database Pin
LucBite13-Jul-09 3:32
LucBite13-Jul-09 3:32 
AnswerRe: Getting data related to what has been selected randomly from a database Pin
Vimalsoft(Pty) Ltd13-Jul-09 3:59
professionalVimalsoft(Pty) Ltd13-Jul-09 3:59 
GeneralRe: Getting data related to what has been selected randomly from a database Pin
LucBite13-Jul-09 4:16
LucBite13-Jul-09 4:16 
GeneralRe: Getting data related to what has been selected randomly from a database Pin
Vimalsoft(Pty) Ltd13-Jul-09 4:32
professionalVimalsoft(Pty) Ltd13-Jul-09 4:32 
GeneralRe: Getting data related to what has been selected randomly from a database Pin
Blue_Boy13-Jul-09 4:33
Blue_Boy13-Jul-09 4:33 
GeneralRe: Getting data related to what has been selected randomly from a database Pin
DoctorMick13-Jul-09 6:13
DoctorMick13-Jul-09 6:13 
GeneralRe: Getting data related to what has been selected randomly from a database Pin
Jerry Hammond13-Jul-09 10:34
Jerry Hammond13-Jul-09 10:34 
QuestionSplitter container Pin
Isaac Gordon13-Jul-09 0:01
Isaac Gordon13-Jul-09 0:01 
AnswerRe: Splitter container Pin
Muhammad Mazhar13-Jul-09 0:43
Muhammad Mazhar13-Jul-09 0:43 
QuestionCan't save new records to the dataset - I'm practising with the binary formatter Pin
BluesEnd12-Jul-09 17:43
BluesEnd12-Jul-09 17:43 
QuestionReporting Services Pin
devvvy12-Jul-09 16:57
devvvy12-Jul-09 16:57 
Questionsql execution audit - tools? Pin
devvvy12-Jul-09 15:02
devvvy12-Jul-09 15:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.