Hello all --
Ok, I'm stumped...
I have a table called customerCount that I want to create a view on... basically, any unit has a customer count, and by this function, I am to determine how many surveys they need to complete in order to have valid data...
Table customerCount has but two columns, unit & customerCount. RDBMS is SQL Server 7.0
Here's the SQL Statement:
Now here's the vb statement that will give me what I want:
Now, no matter whether their customerCount is 50 or 5000, I always get 240 -- with varying floating point values like:
240.1547
240.1549
etc.... They are all 240.15xxxxxxxx and so on...
Can anyone see what I have done to muck that statement up? I'm going blind over here.
Thanks, as always.
Paul Prewett
Ok, I'm stumped...
I have a table called customerCount that I want to create a view on... basically, any unit has a customer count, and by this function, I am to determine how many surveys they need to complete in order to have valid data...
Table customerCount has but two columns, unit & customerCount. RDBMS is SQL Server 7.0
Here's the SQL Statement:
Code:
SELECT unit,
(.25 / POWER((.05 / 1.55), 2) + (.25 / cast(customerCount as float))) AS target,
customerCount
FROM customerCount
Now here's the vb statement that will give me what I want:
Code:
(.25 / (.05/1.44)^2 + (.25 / customerCount))
Now, no matter whether their customerCount is 50 or 5000, I always get 240 -- with varying floating point values like:
240.1547
240.1549
etc.... They are all 240.15xxxxxxxx and so on...
Can anyone see what I have done to muck that statement up? I'm going blind over here.
Thanks, as always.
Paul Prewett

