Simple conversion calculation

14 views
Skip to first unread message

Bryn Stevenson

unread,
Oct 1, 2026, 11:18:38 AM (3 days ago) Oct 1
to MapInfo-L
Hello everyone

A simple task is annoying me! I need to convert km to miles based on the calculated sum of km (there's a slight discrepancy due to rounding when calculating sum of Miles separately).

Any ideas why the following lines return an error when compiling?

Select  Status , Sum(Length_Km) "Km", Sum(Length_Km)*0.6214 "miles" From InfoStats Into InfoResults Group By Status
Error: Found [*] while searching for [A string constant]

Select  Status , Sum(Length_Km) "Km", 0.6214*Sum(Length_Km) "miles" From InfoStats Into InfoResults  Group By Status
Error: Found [miles] while searching for [from]

The following line compiles without error but returns all columns from table InfoStats

Select  Status , Sum(Length_Km) "Km", 0.6214*Sum(Length_Km) From InfoStats Into InfoResults Group By Status

Regards
Bryn
Reply all
Reply to author
Forward
0 new messages