Re: SUMM=T does not summarize by the sort parameters ...

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 46596
interpreted = N
texte = No, it doesn't work that way, it summarizes then sorts. In general, the searching always finds the found records then sorts them.>I never tried it before, but I thought summ=t extracted the first unique value in the summ field *after* the matching records had been retrieved and sorted, but it doesn't work that way ... > >Instead, it seems to extract the first unique value in the summ field before any sorting is performed -- as if I had used rank instead of sorting the results. > >I wanted to get the highest price in each category, so I did this: > >[search db=xxx.db&neskudatarq=[blank]&ascategorysort=1&depricesort=2&pricetype=num&categorysumm=t] > >... but it didn't work. It created a list of unique category records just fine, but the records it used to create that list were NOT the highest priced record in each category. > >:( > > >Sincerely, >Kenneth Grome > >--------------------------------------------------- >WebDNA Professional Training and Development Center >175 J. Llorente Street +63 (32) 255-6921 >Cebu City, Cebu 6000 kengrome@webdna.net >Philippines http://www.webdna.net >--------------------------------------------------- > >------------------------------------------------------------- >This message is sent to you because you are subscribed to > the mailing list . >To unsubscribe, E-mail to: >To switch to the DIGEST mode, E-mail to >Web Archive of this list is at: http://webdna.smithmicro.com/-- --------------------------------- John A. Hill Oak Hill Software Website Development/Consulting john@oakhillsoftware.com------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: SUMM=T does not summarize by the sort parameters ... (John Hill 2003)
  2. Re: SUMM=T does not summarize by the sort parameters ... (Helpdesk - Jambolaya 2003)
  3. Re: SUMM=T does not summarize by the sort parameters ... (Kimberly D. Walls \(Ingram\) 2003)
  4. SUMM=T does not summarize by the sort parameters ... (Kenneth Grome 2003)
No, it doesn't work that way, it summarizes then sorts. In general, the searching always finds the found records then sorts them.>I never tried it before, but I thought summ=t extracted the first unique value in the summ field *after* the matching records had been retrieved and sorted, but it doesn't work that way ... > >Instead, it seems to extract the first unique value in the summ field before any sorting is performed -- as if I had used rank instead of sorting the results. > >I wanted to get the highest price in each category, so I did this: > >[search db=xxx.db&neskudatarq=[blank]&ascategorysort=1&depricesort=2&pricetype=num&categorysumm=t] > >... but it didn't work. It created a list of unique category records just fine, but the records it used to create that list were NOT the highest priced record in each category. > >:( > > >Sincerely, >Kenneth Grome > >--------------------------------------------------- >WebDNA Professional Training and Development Center >175 J. Llorente Street +63 (32) 255-6921 >Cebu City, Cebu 6000 kengrome@webdna.net >Philippines http://www.webdna.net >--------------------------------------------------- > >------------------------------------------------------------- >This message is sent to you because you are subscribed to > the mailing list . >To unsubscribe, E-mail to: >To switch to the DIGEST mode, E-mail to >Web Archive of this list is at: http://webdna.smithmicro.com/-- --------------------------------- John A. Hill Oak Hill Software Website Development/Consulting john@oakhillsoftware.com------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ John Hill

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

wish list (2002) sku not found (1997) Weird Math and SV (1997) Loop into field (1998) Buying sans cart (1997) Quit revisited (1997) Sorting problem (1997) [Way OT] Workstation Security (2002) [WebDNA] HTML/OS vs. WebDNA ? (2008) is sku a REQUIRED field on NT (1997) TCP Connect (2000) Counting, Percentages and Chart Display (2002) [WebDNA] Calculate Cube root (2012) deadlock (2000) WebCatalog for Mac 2.0.1 Released (1997) [Sum] function? (1997) NT Woes (1997) math a various prices (1997) Sense/Disallow HTML tags during $Append (1997) sendmail logs (1999)