I have the following excel formula:
CEILING(F9*6763.85873627538/((F9-1)*400+6763.85873627538),1)
Where F9 is named PROJECTED_QUANTITY
in my table sample_size_by_service_id
I have the following SQL query written out:
select
PROJECTED_QUANTITY, ceiling((PROJECTED_QUANTITY*6763.858736275380)/((PROJECTED_QUANTITY - 1)*400+6763.85873627538),1)
FROM sample_size_by_service_id
and I'm getting the following error message:
Error Code: 1582. Incorrect parameter count in the call to native function 'ceiling' 0.047 sec
Not sure what I'm doing wrong here - I'm a novice to SQL and my hours of googling have had me make sure that my PROJECTED_QUANTITY column is an INTEGER type (it is). I suspected that I am badly badgering the combined operators, but I'm not sure how else to write it.
Appreciate any insight! Thanks!