dharkangel
MIS
Hi,
I have an SQL statement that is giving me an 'overflow' error. I think its because one of the fields I am selecting, I divide it to get a decimal that may be too big. I tried incorporating the Round() function in my sql statement but I get a 'Select statement includes a reserved word or an argument name that is misspelled or missing, or the punctuation is incorrect'. How can i solve this problem?
SELECT QPTRunningPercentageJan.WeekDate, QPTRunningPercentageJan.QPTClosedByCommitSum, QPTRunningPercentageJan.QPTWeeklyClosed, QPTRunningPercentageJan.QPTClosedByCommitSum/QPTRunningPercentageJan.QPTWeeklyClosed AS Round(QPTPercentage,2)
FROM QPTRunningPercentageJan;
I have an SQL statement that is giving me an 'overflow' error. I think its because one of the fields I am selecting, I divide it to get a decimal that may be too big. I tried incorporating the Round() function in my sql statement but I get a 'Select statement includes a reserved word or an argument name that is misspelled or missing, or the punctuation is incorrect'. How can i solve this problem?
SELECT QPTRunningPercentageJan.WeekDate, QPTRunningPercentageJan.QPTClosedByCommitSum, QPTRunningPercentageJan.QPTWeeklyClosed, QPTRunningPercentageJan.QPTClosedByCommitSum/QPTRunningPercentageJan.QPTWeeklyClosed AS Round(QPTPercentage,2)
FROM QPTRunningPercentageJan;