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

Numbers to percentages

Status
Not open for further replies.

ptrifile

Technical User
Aug 10, 2004
457
US
I have a table that holds scores based on 1,2 or 3. What I need to do is have those stored numbers converted over to a percentage by dividing the scores by 3. Is there a way to create a query to do this automatically? Any help is appreciated.

Thanks

Paul
 
Something like this ?
UPDATE yourTableName SET yourScoreField=yourScoreField/3
WHERE yourScoreField Between 1 And 3
;

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Im not sure if im doing something wrong with this but when i try this all i get is the list of values for that field, it does not convert it. Is there something else i could try?

Thanks for your help!

Paul
 
Never mind. I got this to work! thank you PHV!!!!!!!!!!
 
Click the ! button

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top