Click here to Skip to main content
15,899,754 members
Home / Discussions / Database
   

Database

 
AnswerRe: Bastardized query into one query Pin
Michael Potter24-Jul-06 11:43
Michael Potter24-Jul-06 11:43 
QuestionSqlException Error - Login Pin
TheJudeDude24-Jul-06 7:06
TheJudeDude24-Jul-06 7:06 
AnswerRe: SqlException Error - Login Pin
Frank Kerrigan25-Jul-06 2:07
Frank Kerrigan25-Jul-06 2:07 
GeneralRe: SqlException Error - Login Pin
TheJudeDude25-Jul-06 10:57
TheJudeDude25-Jul-06 10:57 
Questionsql data types Pin
saneng24-Jul-06 5:52
saneng24-Jul-06 5:52 
AnswerRe: sql data types Pin
Ennis Ray Lynch, Jr.24-Jul-06 6:21
Ennis Ray Lynch, Jr.24-Jul-06 6:21 
GeneralRe: sql data types Pin
saneng24-Jul-06 22:15
saneng24-Jul-06 22:15 
GeneralRe: sql data types Pin
Mairaaj Khan25-Jul-06 1:30
professionalMairaaj Khan25-Jul-06 1:30 
Hi saneng

In my tests i'm getting the full results which are:

7/1612 = 4.3424317617866E-03
6/1397 = 4.29491768074445E-03
I do the same. Values (of type smallint) are stored in one table, and division results (of type float) are stored in another table. Moreover with all my search I didn't find that how to change/set the precision + scale of float type. Its default precision is 53 which cannot be changed.

saneng wrote:
7/1612 = 0.004342431761.............

6/1397 = 0.0042949176807.................

above examples shows the division of 2 smallints giving a floating pt. result. but in our case I m getting the result column as 0.0 only for all values.

y is this happening, y isn't it considering the whole result or atleast it should give 3 to 4 values after decimal.


I guess you are using some other type like numeric or decimal. If this is so then check and set its precision + scale value.

Wish you all the best.


_____________________________
Success is not something to wait for, its something to work for.

QuestionADO.Net 1.1 Command Cancel Pin
Steven G. Weber24-Jul-06 3:21
Steven G. Weber24-Jul-06 3:21 
AnswerRe: ADO.Net 1.1 Command Cancel Pin
ToddHileHoffer24-Jul-06 3:32
ToddHileHoffer24-Jul-06 3:32 
QuestionInsert Database Pin
AnhTin23-Jul-06 23:19
AnhTin23-Jul-06 23:19 
AnswerRe: Insert Database Pin
rah_sin24-Jul-06 0:10
professionalrah_sin24-Jul-06 0:10 
GeneralRe: Insert Database Pin
AnhTin24-Jul-06 0:54
AnhTin24-Jul-06 0:54 
AnswerRe: Insert Database Pin
Eric Dahlvang24-Jul-06 6:03
Eric Dahlvang24-Jul-06 6:03 
GeneralRe: Insert Database [modified] Pin
AnhTin24-Jul-06 17:33
AnhTin24-Jul-06 17:33 
GeneralRe: Insert Database Pin
Eric Dahlvang25-Jul-06 3:10
Eric Dahlvang25-Jul-06 3:10 
QuestionSubquery Pin
Uma Kameswari23-Jul-06 21:05
Uma Kameswari23-Jul-06 21:05 
AnswerRe: Subquery Pin
Reza Raad23-Jul-06 21:48
Reza Raad23-Jul-06 21:48 
GeneralRe: Subquery Pin
Uma Kameswari23-Jul-06 21:57
Uma Kameswari23-Jul-06 21:57 
AnswerRe: Subquery Pin
Reza Raad23-Jul-06 23:31
Reza Raad23-Jul-06 23:31 
GeneralRe: Subquery Pin
Uma Kameswari24-Jul-06 1:44
Uma Kameswari24-Jul-06 1:44 
QuestionRegarding DataGrid Pin
dayakar_dn23-Jul-06 20:07
dayakar_dn23-Jul-06 20:07 
AnswerRe: Regarding DataGrid Pin
rah_sin24-Jul-06 0:05
professionalrah_sin24-Jul-06 0:05 
QuestionHow do I display in a textbox a relational database field Pin
Glen Harvy23-Jul-06 19:17
Glen Harvy23-Jul-06 19:17 
AnswerRe: How do I display in a textbox a relational database field Pin
ToddHileHoffer24-Jul-06 3:40
ToddHileHoffer24-Jul-06 3:40 

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.