Click here to Skip to main content
15,900,457 members
Home / Discussions / Database
   

Database

 
AnswerRe: Derived Columns in where clause [modified] Pin
Luc Pattyn29-Jul-10 0:55
sitebuilderLuc Pattyn29-Jul-10 0:55 
GeneralRe: Derived Columns in where clause Pin
SatyaKeerthi1529-Jul-10 1:03
SatyaKeerthi1529-Jul-10 1:03 
GeneralRe: Derived Columns in where clause Pin
Eddy Vluggen29-Jul-10 2:37
professionalEddy Vluggen29-Jul-10 2:37 
QuestionFailed to connect to server Pin
Alduin28-Jul-10 11:31
Alduin28-Jul-10 11:31 
AnswerRe: Failed to connect to server Pin
Luc Pattyn28-Jul-10 11:51
sitebuilderLuc Pattyn28-Jul-10 11:51 
AnswerRe: Failed to connect to server Pin
David Mujica29-Jul-10 2:52
David Mujica29-Jul-10 2:52 
QuestionDecimals in integer operations Pin
shreekar28-Jul-10 6:11
shreekar28-Jul-10 6:11 
QuestionRe: Decimals in integer operations Pin
shreekar28-Jul-10 6:20
shreekar28-Jul-10 6:20 
OK - I have tried the below:

declare @d decimal(10,2)
select @d = 859 * 1/5
select @d


This returns 171.00

and

declare @d decimal(10,2)
select @d = 859.00 * 1/5.00
select @d


This returns 171.80

This tells me that the 2 numbers participating in the operation have to be decimals by definition.

Is there any way to work around this as I do not want to change the column types to decimals as I do not expect them to hold fraction data any time.
It is only the result that may have fraction data.

Any ideas?
Shreekar

AnswerRe: Decimals in integer operations Pin
Eddy Vluggen28-Jul-10 6:33
professionalEddy Vluggen28-Jul-10 6:33 
GeneralRe: Decimals in integer operations Pin
shreekar28-Jul-10 6:35
shreekar28-Jul-10 6:35 
GeneralRe: Decimals in integer operations Pin
Eddy Vluggen28-Jul-10 6:53
professionalEddy Vluggen28-Jul-10 6:53 
AnswerRe: Decimals in integer operations Pin
shreekar28-Jul-10 6:34
shreekar28-Jul-10 6:34 
GeneralRe: Decimals in integer operations Pin
David Skelly28-Jul-10 6:38
David Skelly28-Jul-10 6:38 
AnswerRe: Decimals in integer operations Pin
David Skelly28-Jul-10 6:37
David Skelly28-Jul-10 6:37 
AnswerRe: Decimals in integer operations Pin
Luc Pattyn28-Jul-10 6:35
sitebuilderLuc Pattyn28-Jul-10 6:35 
GeneralRe: Decimals in integer operations Pin
shreekar28-Jul-10 6:56
shreekar28-Jul-10 6:56 
GeneralRe: Decimals in integer operations Pin
Luc Pattyn28-Jul-10 7:25
sitebuilderLuc Pattyn28-Jul-10 7:25 
GeneralRe: Decimals in integer operations Pin
David Skelly28-Jul-10 22:28
David Skelly28-Jul-10 22:28 
QuestionMSAccess 2003 flexGrid Error loading ActiveX Pin
SarahMcM28-Jul-10 1:50
SarahMcM28-Jul-10 1:50 
AnswerRe: MSAccess 2003 flexGrid Error loading ActiveX Pin
Eddy Vluggen28-Jul-10 5:19
professionalEddy Vluggen28-Jul-10 5:19 
GeneralRe: MSAccess 2003 flexGrid Error loading ActiveX Pin
SarahMcM28-Jul-10 12:02
SarahMcM28-Jul-10 12:02 
AnswerRe: MSAccess 2003 flexGrid Error loading ActiveX Pin
SarahMcM28-Jul-10 16:27
SarahMcM28-Jul-10 16:27 
QuestionMs Access 2000 and Linked Tables to SQL 2005 - Update Record Problem Pin
Simon_Whale28-Jul-10 1:24
Simon_Whale28-Jul-10 1:24 
QuestionSelect * from @TableName Pin
AndieDu27-Jul-10 21:21
AndieDu27-Jul-10 21:21 
AnswerRe: Select * from @TableName Pin
N a v a n e e t h27-Jul-10 21:24
N a v a n e e t h27-Jul-10 21:24 

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.