If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ANSI SQL > Simple SQL Query

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-03-04, 09:23
ve1601 ve1601 is offline
Registered User
 
Join Date: Sep 2004
Posts: 1
Simple SQL Query

I have a SQL query that returns a number that looks like 22.917411. I want to display this as 22.91. How do i do this in SQL 2000. If i have a query that returns 22.9100000, how do i display 22.91.
Reply With Quote
  #2 (permalink)  
Old 09-03-04, 10:06
Pat Phelan Pat Phelan is offline
Resident Curmudgeon
 
Join Date: Feb 2004
Location: In front of the computer
Posts: 12,605
Display issues should really be handled by the client, not the server.

You'd format the string quite differently in the US than in parts of Europe. The data should be consistent at the server, regardless of where the client sits and how it shows things!

-PatP
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On