473,473 Members | 2,167 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

SQL timeout and dont know why

hi

first of all i am new to mysql and maybe that is my problem ...

i have an sql to show up a picture gallery on my website.

SELECT tabBilder.Bid ,
tabBilder.Name , tabBilder.RateUser , tabBilder.Groesse ,
tabBilder.Datum,tabBilder.CommentCount,tabBilder.T itel
,tabBilder.Rating ,
ROUND( tabBilder.Rating / ( tabBilder.RateUser * 5 ), 1) * 5 AS
AverageRating , tabBilder.UID ,tabUser.UserNick
FROM tabBilder
INNER JOIN tabUser ON tabBilder.UID = tabUser.UserID
Where tabBilder.Aktiv = 1 AND Privat = 0
Group by tabBilder.BID
Order by BID DESC LIMIT 0 , 14

everything works fine until i´ve tried to modify it with a 2nd join.
goal was to create one sql string to build up not only a gallery but
rather something like a hall of fame with SUM the ratings to get a new
order crit. after modification it looks like :

SELECT Sum(tabBilderratings.Rating) as TagesSumme, tabBilder.Bid ,
tabBilder.Name , tabBilder.RateUser , tabBilder.Groesse ,
tabBilder.Datum,tabBilder.CommentCount,tabBilder.T itel
,tabBilder.Rating ,
ROUND( tabBilder.Rating / ( tabBilder.RateUser * 5 ), 1) * 5 AS
AverageRating , tabBilder.UID ,tabUser.UserNick
FROM tabBilder
INNER JOIN tabUser ON tabBilder.UID = tabUser.UserID
LEFT JOIN tabBilderratings ON tabBilder.BID = tabBilderratings.BID
Where tabBilder.Aktiv = 1 AND Privat = 0
Group by tabBilder.BID
Order by TagesSumme DESC LIMIT 0 , 14

problem now, this sql string kills my webserver = script timeout ...
also direct on my isp mysql db with mysqlfront firing it nothing
happens. i get no error or 0 result ... mysqlfront seems to hang up.

any idea or suggestions would make me happy.

greetings

May 10 '06 #1
0 939

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: Colin Steadman | last post by:
I'm using the following code in my global.asa file to set the session.timeout value amongst other things - Sub Session_OnStart Session.Timeout = 40 Session("Authenticated") ...
3
by: DarthMacgyver | last post by:
Hello, I recently wrote a survey application. Each question is very similar. The first questions gives me a problem when there are multiple people taking the survey (The Database connection...
2
by: Gary Homewood | last post by:
I have an ASP page calling a stored procedure. I have set the connection and command timeouts and I have error checking so I can trap a timeout from the stored proc (as detailed here)...
7
by: Tyler | last post by:
I have an asp page that is producing a report via some heavy SQL queries with dynamically chosen parameters from the users of the page. I can run it on my development server (takes about 35...
3
by: kant | last post by:
stringA= "Provider=SQLOLEDB.1;Persist Security Info=False;User ID=sa;PWD=password;Initial Catalog=DB;Data Source=127.0.0.1;Connect Timeout=30" stringB = "Provider=Microsoft.Jet.OLEDB.4.0; Data...
8
by: bdeviled | last post by:
I am deploying to a web environment that uses load balancing and to insure that sessions persist across servers, the environment uses SQL to manage sessions. The machine.config file determines how...
4
by: VB Programmer | last post by:
When I run my ASP.NET 2.0 web app on my dev machine it works perfect. When I precomile it to my web deployment project and then copy the debug files to my web server I get this problem when trying...
2
by: Aryan | last post by:
Hi, I have put my session related parameter in web.config under system.web, given below is the code for same. <system.web> <sessionState timeout ="1440" mode ="InProc" /> </system.web> this...
10
by: Atul Shukla | last post by:
Hi, How can I avoid application timeout? Generally a web application time out is 20 minutes, however, we can define this timeout in web.config to any number of minutes. After giving 500 minutes of...
3
by: trullock | last post by:
Hi, I want to test some session timeout code ive written but im getting a few problems. I want to reduce the session timeout to 1min so i dont have to wait around for 20 min to see if my code...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.