Mailing List
Home
Forum Home
MySQL General - General MySQL discussion
MaxDB - Everything about MaxDB, formerly known as SAP DB
MySQL on Win32 - Runing MySQL on Windows 9x/Me/NT/2000/XP
MySQL++ - Programming with the C++ API to MySQL
ODBC - ODBC with the MySQL Connector/ODBC driver
Java Help - Mostly related to the MySQL Connector/J driver
Perl - Perl support for MySQL with DBI and DBD::mysql
GUI - MySQL GUI Tools
Announcement
Subjects
mysql openssl Question
mysql:it 's a db not a dbms how it 's possible?!
Does the binary log enabling affect the MySQL performances?
Strange behavior, Table Level Permission
FULLTEXT query format question
Preventing Duplicate Entries
Comparing and writing out BLOBS
Executing MySQL Commands From Within C Program
Can 't access mysql after kernel upgrade
Mysql 4 0 Oracle Stored Procedure Trigger Conversion
Downgrade Mysql from 4 to 3 23
MySQL Cluster Software
mysql test 4 1 fails with the gis test
ERROR 2002: Can 't connect to local MySQL server through socket
Getting Identity after INSERT
Update one field with more fields from another table
ERROR 1045: Access denied for user: 'root@localhost ' (Using
password: NO)
mysql have same function mthod as Oracle decode()
 
Search:  
Power your search with and, or, +, -, or "some phrase" operators.
Min, Max value from MYSQL 4.1.8 and ODBC 3.51.10

Min, Max value from MYSQL 4.1.8 and ODBC 3.51.10

2004-12-21       - By Uher, Lubomir

 Back
Hello all,

I would like to ask you for help with this query. I use VB6 and MyODBC
3.51.10 connection. Problem is that, return value from query :

  select min(date1) as MinDate, max(date2) as MaxDate from tabledata

is null for MinDate, but OK value for MaxDate. Could you describe to me, why
? Could you give me some advice for solution. ( Table definition is below )

Table definition :

CREATE TABLE `tabledata` (
 `id` int(11) NOT NULL auto_increment,
 `date1` datetime NOT NULL default '0000-00-00 00:00:00',
 `date2` datetime NOT NULL default '0000-00-00 00:00:00',
 `locplace` char(3) NOT NULL default '-',
 `host` varchar(15) default '000.000.000.000',
 PRIMARY KEY  (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;


Many thanks.

Lubomir


*******************************************************************************
***************
The information contained in this message or any of its attachments may be
confidential and is intended for the exclusive use of the addressee(s). Any
disclosure, reproduction, distribution or other dissemination or use of this
communication is strictly prohibited without the express permission of the
sender. The views expressed in this email are those of the individual and not
necessarily those of Sony or Sony affiliated companies. Sony email is for
business use only.

This email and any response may be monitored by Sony United Kingdom Limited.
(05)
*******************************************************************************
***************


--
MySQL Windows Mailing List
For list archives: http://lists.mysql.com/win32
To unsubscribe:    http://lists.mysql.com/win32?unsub=mysql@(protected)


Earn $52 per hosting referral at Lunarpages.