Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
These do not run on my mysql just as a FYI the rest do

SELECT t1.B_Number, t1.B_Main, t1.B_Replies, COUNT( * ) AS ThreadTotal
FROM w3t_Posts AS t1
JOIN w3t_Posts AS t2 ON t1.B_Number = t2.B_Main
GROUP BY t2.B_Main
HAVING ThreadTotal != (t1.B_Replies + 1 )

SELECT Bo_Keyword, Bo_Total, COUNT( * ) AS ActualPosts
FROM w3t_Boards
JOIN w3t_Posts ON B_Board = Bo_Keyword
GROUP BY Bo_Keyword
HAVING Bo_Total != ActualPosts

SELECT Bo_Keyword, Bo_Threads, COUNT(*) AS ActualThreads FROM
w3t_Boards JOIN w3t_Posts ON B_Board = Bo_Keyword WHERE
B_Number = B_Main GROUP BY Bo_Keyword HAVING
ActualThreads != Bo_Threads

Sponsored Links
Entire Thread
Subject Posted By Posted
UBBT Database Corruption Sniffing Scheme Jim Osby 11/10/2003 8:57 AM
Re: UBBT Database Corruption Sniffing Scheme JoshPet 11/10/2003 9:39 AM
Re: UBBT Database Corruption Sniffing Scheme Astaran 11/10/2003 11:38 AM
Re: UBBT Database Corruption Sniffing Scheme Maze 11/10/2003 1:03 PM
Re: UBBT Database Corruption Sniffing Scheme AllenAyres 11/11/2003 12:03 AM
Re: UBBT Database Corruption Sniffing Scheme omegatron 11/11/2003 2:28 AM
Re: UBBT Database Corruption Sniffing Scheme Maze 11/11/2003 12:45 PM
Re: UBBT Database Corruption Sniffing Scheme Tim Dierks 11/12/2003 5:06 AM
Re: UBBT Database Corruption Sniffing Scheme omegatron 11/12/2003 6:05 PM
Re: UBBT Database Corruption Sniffing Scheme Jim Osby 11/13/2003 9:24 AM
Re: UBBT Database Corruption Sniffing Scheme omegatron 11/13/2003 9:47 PM
Re: UBBT Database Corruption Sniffing Scheme Rick 11/17/2003 7:59 PM
Re: UBBT Database Corruption Sniffing Scheme scroungr 11/17/2003 8:16 PM
Re: UBBT Database Corruption Sniffing Scheme slayer60 11/17/2003 8:38 PM
Re: UBBT Database Corruption Sniffing Scheme omegatron 11/18/2003 12:17 AM
Re: UBBT Database Corruption Sniffing Scheme scroungr 11/18/2003 1:16 AM
Re: UBBT Database Corruption Sniffing Scheme Rick 11/18/2003 2:04 AM
Re: UBBT Database Corruption Sniffing Scheme omegatron 11/18/2003 4:38 AM
Re: UBBT Database Corruption Sniffing Scheme scroungr 11/18/2003 6:44 AM
Re: UBBT Database Corruption Sniffing Scheme omegatron 11/18/2003 6:53 AM
Re: UBBT Database Corruption Sniffing Scheme scroungr 11/18/2003 3:44 PM
Re: UBBT Database Corruption Sniffing Scheme slayer60 11/18/2003 6:47 PM
Re: UBBT Database Corruption Sniffing Scheme slayer60 11/18/2003 11:20 PM
Re: UBBT Database Corruption Sniffing Scheme Rick 11/19/2003 6:32 AM
Re: UBBT Database Corruption Sniffing Scheme Tim Dierks 11/24/2003 10:28 PM
Re: UBBT Database Corruption Sniffing Scheme AllenAyres 11/25/2003 7:17 AM
Re: UBBT Database Corruption Sniffing Scheme Astaran 11/25/2003 4:01 PM

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Ruben Rocha
Ruben Rocha
Lutz,FL,USA
Posts: 254
Joined: January 2000
Forum Statistics
Forums63
Topics37,575
Posts293,930
Members13,823
Most Online6,139
Sep 21st, 2024
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2025 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.1
(Snapshot build 20240918)