Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Re: [Robert] Find IDs with more than x cats, find equal datasets in CatLinks

Quote Reply
Re: [Robert] Find IDs with more than x cats, find equal datasets in CatLinks In reply to
Hi Robert,

If you want to select record from a particular category, just add another and condition to the where clause. Some thing like below:

Code:
select LinkID, count(*) as count from CatLinks, Links
WHERE Car = 'red' AND CatLinks.LinkID = Links.ID and CatLinks.CategoryID=123
group by LinkID having count > 1

Cheers,

Dat

Programming and creating plugins and templates
Blog
Subject Author Views Date
Thread Find IDs with more than x cats, find equal datasets in CatLinks Robert 3571 Mar 13, 2014, 11:22 AM
Thread Re: [Robert] Find IDs with more than x cats, find equal datasets in CatLinks
tandat 3465 Mar 13, 2014, 8:58 PM
Thread Re: [tandat] Find IDs with more than x cats, find equal datasets in CatLinks
Robert 3465 Mar 14, 2014, 3:48 PM
Post Re: [Robert] Find IDs with more than x cats, find equal datasets in CatLinks
tandat 3451 Mar 14, 2014, 7:44 PM