Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
Who's Online
5 registered (Djuma, Gardener, Mike L, Ruben Rocha, 1 invisible), 19 Guests and 13 Spiders online.
Key: Admin, Global Mod, Mod
Featured Member
Registered: 11/21/08
Posts: 1
Top Posters (30 Days)
Ruben Rocha 180
Gizmo 112
Rick 106
Thelockman 79
driv 43
AllenAyres 35
ntdoc 28
Ian 24
Sirdude 23
ScriptKeeper 20
Latest Photos
My Home System
test photo gallery
Bernese Mountain Dogs
My Daimler
Dorado and shark
Page 3 of 4 < 1 2 3 4 >
Topic Options
Rate This Topic
#188956 - 06/26/07 08:13 PM Re: 2,000!! [Re: Ian]
Harold Moderator Offline

*****

Registered: 06/04/06
Posts: 579
Loc: Defiance, Ohio
I'd like to have a query that gives a list of users with the lengthiest posts by characters.
_________________________
UBB.threads Beta Tester
PowerBlockers.com * forum.haroldandrews.com

Top
#188959 - 06/26/07 08:47 PM Re: 2,000!! [Re: Harold]
Sirdude Offline

*****

Registered: 04/19/07
Posts: 2077
Loc: SoCal, USA
just turn it around

 Code:
select t1.USER_DISPLAY_NAME,count(t2.POST_ID) as total 
from ubbt_POSTS as t2, 
ubbt_USERS as t1 
where length(t2.POST_BODY) > 400 
and t1.USER_ID = t2.USER_ID 
group by t2.USER_ID 
having total > 5 
order by total desc 
limit 11


choose a different number than 400 to go for uber-lengthy ;\)
_________________________


Top
#188976 - 06/26/07 11:15 PM Re: 2,000!! [Re: Sirdude]
ntdoc Offline

***

Registered: 11/08/06
Posts: 3202
Hmmm... interesting.

Users with post length over 20,000 characters.

MCA = 109 Posts
NTDOC = 46 Posts
etc...


Posts over 45,000 characters
NTDOC = 10
Glenn = 10
MCA = 10


Posts over 65,000 characters
NTDOC = 9


Seems the table size for us is set to 65,500 limit.

.


Edited by ntdoc (06/26/07 11:20 PM)

Top
#189010 - 06/27/07 05:01 AM Re: 2,000!! [Re: Sirdude]
Harold Moderator Offline

*****

Registered: 06/04/06
Posts: 579
Loc: Defiance, Ohio
Thanks SirDude. That helps. The "having total > 5" is what I didn't understand, otherwise I'd have flipped that other value.

What I'm really looking for is a query that will list and rank users by the absolute top number of characters in a post.
_________________________
UBB.threads Beta Tester
PowerBlockers.com * forum.haroldandrews.com

Top
#189015 - 06/27/07 06:00 AM Re: 2,000!! [Re: Harold]
Sirdude Offline

*****

Registered: 04/19/07
Posts: 2077
Loc: SoCal, USA
oh, so you want the top 5 (or whatever) all time lengthiest posts?

that's even easier...

bleh.. i'll be back in a bit.. female-UNiT on phone...
_________________________


Top
#189017 - 06/27/07 07:27 AM Re: 2,000!! [Re: Sirdude]
Ian Moderator Offline

***

Registered: 06/05/06
Posts: 4160
Loc: Essex, UK
tell her to use a chair and not the phone - more comfortable ;\)
_________________________
Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....))

Top
#189018 - 06/27/07 07:51 AM Re: 2,000!! [Re: Harold]
Sirdude Offline

*****

Registered: 04/19/07
Posts: 2077
Loc: SoCal, USA
 Originally Posted By: Harold
What I'm really looking for is a query that will list and rank users by the absolute top number of characters in a post.


 Code:
select t1.USER_DISPLAY_NAME as Name, count(t2.POST_ID) as Total, length(t2.POST_BODY) as CarpalTunnelSize  from ubbt_POSTS as t2, 
 ubbt_USERS as t1
where t1.USER_ID = t2.USER_ID and length(t2.POST_BODY) > 65000
group by t2.USER_ID, CarpalTunnelSize
having Total > 0
order by CarpalTunnelSize desc, Total desc 
limit 5


 Code:
Name	Total	CarpalTunnelSize
yulee	5	65535
OiyOiy	1	65535
Sirdude	1	65070
Yoyo	1	65010
ro0t0os	1	64567


it pegs @ 65535, so i chose a number perty close (65000) ...

other ways to do it, but i'm in a hurry \:D
_________________________


Top
#189064 - 06/27/07 06:03 PM Re: 2,000!! [Re: Sirdude]
Gizmo Moderator Offline

***

Registered: 06/04/06
Posts: 12007
Loc: Portland, OR; USA
SD, we should start making a ton of sidebar islands :X...
_________________________
UGN Security, Elite Web Gamers & VNC Web Design Owner
Longtime UBB Supporter, UBB7 Beta Tester & Resident Post-A-Holic

Top
#189086 - 06/27/07 08:22 PM Re: 2,000!! [Re: Gizmo]
Harold Moderator Offline

*****

Registered: 06/04/06
Posts: 579
Loc: Defiance, Ohio
Thanks again, SirDude! \:\)
_________________________
UBB.threads Beta Tester
PowerBlockers.com * forum.haroldandrews.com

Top
#189088 - 06/27/07 08:25 PM Re: 2,000!! [Re: Harold]
Sirdude Offline

*****

Registered: 04/19/07
Posts: 2077
Loc: SoCal, USA
you're more than welcome..
_________________________


Top
Page 3 of 4 < 1 2 3 4 >


Shout Box

Today's Birthdays
No Birthdays
Recent Topics
I'm the Admin but.....
by David DelMonte
12/02/08 11:12 AM
Fatal error: Smarty::require_once
()

by ThreadsUser
12/02/08 08:17 AM
PayPal batch file for ID'ing expired and failed payment subscriptions?
by Mitch P.
12/02/08 06:02 AM
Shrinking graemlins
by Djuma
12/01/08 05:48 PM
2 problems I'm seeing now.
by DougMM
12/01/08 04:39 PM
Forum Stats
4261 Members
33 Forums
30535 Topics
154977 Posts

Max Online: 978 @ 06/24/07 08:19 PM