Click here to Skip to main content
15,918,275 members
Home / Discussions / Database
   

Database

 
GeneralQuery Help Pin
NickOne26-Apr-03 12:35
NickOne26-Apr-03 12:35 
QuestionHow to get the last inserted and updated id (primary_key) with Sql C# Pin
STW26-Apr-03 3:24
STW26-Apr-03 3:24 
AnswerRe: How to get the last inserted and updated id (primary_key) with Sql C# Pin
David Salter26-Apr-03 10:29
David Salter26-Apr-03 10:29 
GeneralRe: How to get the last inserted and updated id (primary_key) with Sql C# Pin
STW26-Apr-03 23:02
STW26-Apr-03 23:02 
GeneralRe: How to get the last inserted and updated id (primary_key) with Sql C# Pin
David Salter30-Apr-03 11:37
David Salter30-Apr-03 11:37 
AnswerRe: How to get the last inserted and updated id (primary_key) with Sql C# Pin
Chris Maunder26-Apr-03 12:42
cofounderChris Maunder26-Apr-03 12:42 
GeneralFilter and Delete Question Pin
Toni7825-Apr-03 6:54
Toni7825-Apr-03 6:54 
GeneralDefault number of Decimals. Pin
Chris Meech25-Apr-03 5:58
Chris Meech25-Apr-03 5:58 
I have a function within an Oracle database that performs a simple multiplication or division of two data points that the function will query for. The result of the function is then returned to the caller. I have recently become aware that in just about all cases the number being returned is always a five decimal number with correct rounding, but I really require it to return all decimals, or as many as it keeps track off. As a demonstration of the difficulty the following shows an example
select 1.2345 / 1.1111 from dual

1.2345/1.1111
-------------
   1.11106111

In this case some kind of truncation occurs, but at least 8 decimals are returned (the 06111 just continues to repeat). Now if I expand the number of decimals for one of the numbers
 select 1.2345 / 1.111111 from dual

1.2345/1.111111
---------------
     1.11105011

Once again 8 decimals. But now I try
 select 1.2345 / 1.11111111 from dual

1.2345/1.11111111
-----------------
          1.11105
WTF | :WTF: Why only the five decimals? I need to figure out what are the unique circumstances that are causing the return to limit to five decimals. Any one with some ideas to look at or suggestions, I'll be happy to hear them. Thanks.


Chris Meech

"what makes CP different is the people and sense of community, things people will only discover if they join up and join in." Christian Graus Nov 14, 2002.

"Microsoft hasn't ever enforced its patents. Apparently they keep them for defensive reasons only. Or, they could be waiting 'til they have a critical mass of patents, enforce them all at once and win the game of Risk that they're playing with the world." Chris Sells Feb 18, 2003.
GeneralRe: Default number of Decimals. Pin
Toni7825-Apr-03 7:07
Toni7825-Apr-03 7:07 
QuestionA mostly working SP ? Pin
Mike Osbahr25-Apr-03 4:14
Mike Osbahr25-Apr-03 4:14 
AnswerRe: A mostly working SP ? Pin
perlmunger30-Apr-03 5:14
perlmunger30-Apr-03 5:14 
Generalinteresting TSQL Q Pin
User 814724-Apr-03 7:49
User 814724-Apr-03 7:49 
QuestiondBASE Technical Specification? Pin
Mark Sanders24-Apr-03 3:30
Mark Sanders24-Apr-03 3:30 
AnswerRe: dBASE Technical Specification? Pin
Anonymous24-Apr-03 7:04
Anonymous24-Apr-03 7:04 
AnswerRe: dBASE Technical Specification? Pin
David Salter24-Apr-03 22:43
David Salter24-Apr-03 22:43 
AnswerRe: dBASE Technical Specification? Pin
STW27-Apr-03 10:44
STW27-Apr-03 10:44 
GeneralConnection Pooling Problem Pin
John Honan24-Apr-03 2:15
John Honan24-Apr-03 2:15 
GeneralRe: Connection Pooling Problem Pin
John Honan24-Apr-03 8:14
John Honan24-Apr-03 8:14 
GeneralMSAccess Column Format property Pin
KalliMan23-Apr-03 4:09
KalliMan23-Apr-03 4:09 
GeneralODBC support in Visual Studio.net 2003 Pin
aaronflaugh22-Apr-03 10:56
aaronflaugh22-Apr-03 10:56 
GeneralRe: ODBC support in Visual Studio.net 2003 Pin
jscroft25-Apr-03 17:10
jscroft25-Apr-03 17:10 
GeneralProblem with Master Detail Pin
Anonymous22-Apr-03 8:57
Anonymous22-Apr-03 8:57 
GeneralUsing mySQL Pin
BadJerry22-Apr-03 7:25
BadJerry22-Apr-03 7:25 
GeneralRe: Using mySQL Pin
Anonymous24-Apr-03 7:06
Anonymous24-Apr-03 7:06 
GeneralRe: Using mySQL Pin
J. Dunlap24-Apr-03 7:45
J. Dunlap24-Apr-03 7:45 

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.