Click here to Skip to main content
16,004,944 members
Home / Discussions / Database
   

Database

 
GeneralRe: Data Recovery - After Drop a table and creating the same table Pin
adnanrafiq13-Jun-07 22:04
adnanrafiq13-Jun-07 22:04 
QuestionProcedure for Column and Table variable Pin
Elena200612-Jun-07 21:54
Elena200612-Jun-07 21:54 
JokeRe: Procedure for Column and Table variable Pin
Harini N K12-Jun-07 22:25
Harini N K12-Jun-07 22:25 
GeneralRe: Procedure for Column and Table variable Pin
Elena200612-Jun-07 22:36
Elena200612-Jun-07 22:36 
GeneralRe: Procedure for Column and Table variable Pin
Harini N K12-Jun-07 22:43
Harini N K12-Jun-07 22:43 
QuestionPlease Solve this SQL Query Pin
Care Career12-Jun-07 18:01
Care Career12-Jun-07 18:01 
AnswerRe: Please Solve this SQL Query Pin
Krish - KP12-Jun-07 18:19
Krish - KP12-Jun-07 18:19 
QuestionSQL query returning zero row in MySQL 5 Pin
Guffa12-Jun-07 8:57
Guffa12-Jun-07 8:57 
My web hotel has upgraded from MySQL 4.1.21 to MySQL 5.0.37. The only problem I have had with this is that a query doesn't return anything in the result any more:

select sum(i.FileSize) as TotalSize<br />
from Photos p<br />
inner join Images i on i.PhotoId=p.PhotoId and i.IsPublic=1<br />
where p.IsPublicArt=1 or p.IsPublicCommon=1


If I change "sum" to "max" or "count" the query return one row, with "sum" or "avg" it returns zero rows.

FileSize is int and can not be null.

If I test the query directly in the database (using phpmyadmin) it returns one row with all the aggregates.

My connection string looks like this (with a different uid and pwd of course): "driver={MySQL};server=mysql.loopia.se;uid=asdfasdf;pwd=asdfasdf;database=voidstation_com"

I have tried to add ";option=3" to the connection string, but that didn't make any difference.

The list of changes that the web hotel linked to:
http://dev.mysql.com/doc/refman/5.0/en/upgrading-from-4-1.html[^]
I don't see anything there that should affect this.

Anybody got any ideas?

---
single minded; short sighted; long gone;

AnswerRe: SQL query returning zero row in MySQL 5 Pin
Arun.Immanuel12-Jun-07 15:53
Arun.Immanuel12-Jun-07 15:53 
GeneralRe: SQL query returning zero row in MySQL 5 Pin
Guffa12-Jun-07 16:15
Guffa12-Jun-07 16:15 
AnswerSolved Pin
Guffa12-Jun-07 16:28
Guffa12-Jun-07 16:28 
QuestionReporting Services 2005 Express Pin
Jonathan Snyder12-Jun-07 3:08
Jonathan Snyder12-Jun-07 3:08 
QuestionHow to hide the SUM @ the Table Name Pin
MS Lee12-Jun-07 2:20
MS Lee12-Jun-07 2:20 
AnswerRe: How to hide the SUM @ the Table Name Pin
Revathij12-Jun-07 2:34
Revathij12-Jun-07 2:34 
GeneralRe: How to hide the SUM @ the Table Name Pin
MS Lee12-Jun-07 2:38
MS Lee12-Jun-07 2:38 
GeneralRe: How to hide the SUM @ the Table Name Pin
MS Lee13-Jun-07 18:29
MS Lee13-Jun-07 18:29 
QuestionSql joins Pin
Tauseef A12-Jun-07 1:56
Tauseef A12-Jun-07 1:56 
AnswerRe: Sql joins Pin
Krish - KP12-Jun-07 2:07
Krish - KP12-Jun-07 2:07 
QuestionNeed Sample Stored procedures Pin
Krishnaraj Barvathaya B12-Jun-07 1:48
Krishnaraj Barvathaya B12-Jun-07 1:48 
AnswerRe: Need Sample Stored procedures Pin
Sathesh Sakthivel12-Jun-07 2:09
Sathesh Sakthivel12-Jun-07 2:09 
AnswerRe: Need Sample Stored procedures Pin
MS Lee12-Jun-07 2:26
MS Lee12-Jun-07 2:26 
QuestionINT and VARCHAR Pin
N a v a n e e t h12-Jun-07 1:34
N a v a n e e t h12-Jun-07 1:34 
AnswerRe: INT and VARCHAR Pin
Sathesh Sakthivel12-Jun-07 2:07
Sathesh Sakthivel12-Jun-07 2:07 
QuestionHow to Customized SQL Report Viewer Control Pin
Ali Raza Shah11-Jun-07 18:38
Ali Raza Shah11-Jun-07 18:38 
QuestionPervasive SQL 8.0 Pin
Soleil couchant11-Jun-07 17:00
Soleil couchant11-Jun-07 17:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.