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!

Converting a charcter string to numeric in SQL in FOXPRO for UNIX 2.6 1

Status
Not open for further replies.

dquintard

Programmer
Apr 2, 2003
6
0
0
US
I need to know the correct syntax for SQL I am writing. I need to convert a column in a table that is a charcter to numeric and then sum the values of that column.
 
Try something like:

SELECT SUM(VAL(MyField)) AS HowMuch FROM MyTable .....
Dave S.
[cheers]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top