Re: log/log10 functions truncate my resultset



On Feb 24 2006, 06:09 pm, Erland Sommarskog <esquel@xxxxxxxxxxxxx> wrote in
news:Xns9775190B2482Yazorman@xxxxxxxxx:

BernsteinVsTheDb (Orr.Bernstein@xxxxxxxxx) writes:
Hello all,

I have a table that contains 100+ rows. I'm trying to run a query that
looks like this:
SELECT ..., log10(...) as Rank FROM Table
and the resultset contains only the first row of results.

SELECT ..., log10(...) as Rank FROM Table ORDER BY Rank
returns no results at all!

If you replace log10 with log, it does the same thing. However, if you
replace log10 with abs, it returns exactly what you'd expect, all 100+
rows.

Are all the numbers you perform log/log10 on > 0?

Funny thing is, I had this exact issue today while ranking results.
Log10(0) produces a "A domain error occured" warning message in QA and
causes an empty result set to be returned.

--
remove a 9 to reply by email
.



Relevant Pages

  • Re: ranking calculated fields in a query
    ... I needed to create 3 queries such as you reffered to as qRank. ... Each 'Rank' query uses the ... FROM (ModelingXTab INNER JOIN Twirlers ON ModelingXTab.= ...
    (microsoft.public.access.queries)
  • Re: ranking calculated fields in a query
    ... resolving the ties - I can't help any more with this. ... the rank to appear the way you need it. ... I will look at the other query and reply later. ... FROM (ModelingXTab INNER JOIN Twirlers ON ModelingXTab.= ...
    (microsoft.public.access.queries)
  • Re: ranking calculated fields in a query
    ... I needed to create 3 queries such as you reffered to as qRank. ... Each 'Rank' query uses the associated ... FROM (ModelingXTab INNER JOIN Twirlers ON ModelingXTab.= ...
    (microsoft.public.access.queries)
  • Re: Join query
    ... ranking query (where each distinct name is ... given a distinct "rank") then use the xtab method ... FROM tblGrade As t1; ... GroupNo Grader Points Rank ...
    (microsoft.public.access.queries)
  • RE: Top values in aggregate queries
    ... > You should be able to do this by using a subquery to ... > your main query should calculate the group rank that you ... > the current records profit OR all with the same profit ...
    (microsoft.public.access.queries)