seql 2000 Query returns wrong results

Please support our MS SQL advertiser: Intel Parallel Studio Home
Thread Solved

Join Date: Dec 2008
Posts: 42
Reputation: fawadkhalil is an unknown quantity at this point 
Solved Threads: 0
fawadkhalil fawadkhalil is offline Offline
Light Poster

seql 2000 Query returns wrong results

 
0
  #1
Apr 15th, 2009
Hi all
Convert(decimal(10,1),(taxid*10)/100) as tax

value in taxid is 1. And also im getting .0 result but it should return
.1
Plz help me..........why im getting wrong answer.
Reply With Quote Quick reply to this message  
Join Date: Apr 2009
Posts: 217
Reputation: mail2saion is an unknown quantity at this point 
Solved Threads: 31
mail2saion's Avatar
mail2saion mail2saion is offline Offline
Posting Whiz in Training

Re: seql 2000 Query returns wrong results

 
0
  #2
Apr 15th, 2009
CHANGE YOUR CODE IN THE BELOW WAY:
  1. Convert(decimal(10,1),(taxid*10.00)/100.00) AS tax
MARK AS SOLVED if its help you.

REGARDS
MCTS - Shawpnendu bikash maloroy
http://shawpnendu.blogspot.com
Reply With Quote Quick reply to this message  
Join Date: Dec 2008
Posts: 42
Reputation: fawadkhalil is an unknown quantity at this point 
Solved Threads: 0
fawadkhalil fawadkhalil is offline Offline
Light Poster

Re: seql 2000 Query returns wrong results

 
0
  #3
Apr 15th, 2009
wow that really works.
Thank u mail2saion
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC