Reply
Narrow-Down filter in MySQL
Old 10-15-2009, 07:35 AM Narrow-Down filter in MySQL
Junior Talker

Posts: 1
Name: Deepak
Trades: 0
Hi,

Check out http://www.landwatch.com/Land_For_Sale

Notice the filters on the left colum and how they all have the count of the entries within them. I am sure they are not calculating all these count at the run-time. They have these values stored somewhere and just retrieving the top 5 values. Not sure how this can be done. Any insight?

I hear that datacubes with all these dimensions can give this result instantaneously. But I'd like to think there's an easier solution.

Help!

Last edited by chrishirst; 10-15-2009 at 08:27 AM..
dipaq1976 is offline
Reply With Quote
View Public Profile
 
 
When You Register, These Ads Go Away!
Old 10-15-2009, 08:31 AM Re: Narrow-Down filter in MySQL
chrishirst's Avatar
Super Moderator

Posts: 22,223
Location: Blackpool. UK
Trades: 0
That's basically one of the the purposes of using a database! So you can extract such things as counts of entries etc.

basic SQL would be ->
Code:
SELECT COUNT(column) FROM table WHERE criterea = value;
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Growing old is mandatory - Growing up is optional
Code Samples | People Counting System | Bits & Bobs
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to Narrow-Down filter in MySQL
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 



Page generated in 0.09854 seconds with 13 queries