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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Round up over to 49 to 100 and under to 0

Status
Not open for further replies.

CJwater

IS-IT--Management
Mar 26, 2008
34
US
Can anyone explain how to or give me a "simple" example I need to create a SQL query for a report that rounds down to 0 in the tens if the value is under 50 and Up to 100 if it's fifty and over.

Thanks
CJ
 
What do you have that isn't working right?

The helpdesk is at extension 600 and they would be glad to help you.

Lodlaiden

A lack of experience doesn't prevent you from doing a good job.
 
Maybe this?

Code:
Select Round(449, -2)
Select Round(450, -2)
Select Round(451, -2)

-George
Microsoft SQL Server MVP
My Blogs
SQLCop
"The great things about standards is that there are so many to choose from." - Fortune Cookie Wisdom
 
YES! George Thanks for your response,seems so simple but it's what I was trying to figure out how to do...

CJ

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top