Bluehost.com Web Hosting $6.95

Locating uniques that occur less than n times.

This is a discussion on Locating uniques that occur less than n times. within the MySQL Database forums, part of the Database Forums category; Hello, I'm a relatively new RDB user and am attempting to construct a (re)usable query to return entries ...


Go Back   Usenet Forums > Database Forums > MySQL Database

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-29-2007
thorassic5@gmail.com
 
Posts: n/a
Default Locating uniques that occur less than n times.

Hello,
I'm a relatively new RDB user and am attempting to construct a
(re)usable query to return entries that occur on a table less than _n_
times. eg. I have 500K product numbers across 6 columns (stores) and i
need to find all the entries that occur in less than all 6 stores.
This may be a really simple query, finding single entry items is no
problem, but im having trouble finding _n_ uniques (5 or less).
Thanks!!

Reply With Quote
  #2 (permalink)  
Old 01-29-2007
Paul Lautman
 
Posts: n/a
Default Re: Locating uniques that occur less than n times.

thorassic5@gmail.com wrote:
> Hello,
> I'm a relatively new RDB user and am attempting to construct a
> (re)usable query to return entries that occur on a table less than _n_
> times. eg. I have 500K product numbers across 6 columns (stores) and i
> need to find all the entries that occur in less than all 6 stores.
> This may be a really simple query, finding single entry items is no
> problem, but im having trouble finding _n_ uniques (5 or less).
> Thanks!!


Sounds like you have the wrong structure for your table.

Care to post the schema and maybe some sample data.


Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 03:09 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0