Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

make integer

Status
Not open for further replies.

piti

Technical User
Apr 12, 2001
627
SK
hi

i'm using this code in my select query

concat(value/1000, ' some text'),

how should i edit the query to make it return only integer values from "value/1000" - something like cast statement

thanx
 
try this :

SELECT CONCAT(ROUND(value/1000,0),'some text');

just off the top of my head :)


cheers devnull22

--
Apparently if you play the Windows NT CD backwards you hear satanic messages. If you think that's bad, play it forwards and it installs Windows NT !
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top