The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#3
|
||||
|
||||
![]()
Thanks for suggestion harmor, however unfortunately it doesn't work. I'm trying to fiddle around with that in conjunction with a HAVING clause, but i'm not too familiar with it.
I tried the following, but no luck either... Code:
SELECT scst_t.*, scst_ttype.ttype, scst_tm.tmtitle, COUNT(scst_fb.fbid) AS fbqty FROM scst_t LEFT JOIN scst_ttype ON scst_ttype.ttypeid = scst_t.ttypeid LEFT JOIN scst_tm ON scst_tm.tmid = scst_t.tmid LEFT JOIN usergroup ON usergroup.scstugtmid = scst_t.tmid LEFT JOIN scst_fb ON scst_fb.tid = scst_t.tid GROUP BY scst_t.tid HAVING fbqty <= scst_t.recurring ORDER BY scst_t.enddate ASC, scst_tm.tmtitle ASC |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|