Date data type issue

2003-12-02 Thread tjkuhn
Having a problem with a Date data type. Here's the query: SELECT distinct date_format(auditdate, "%Y%M" ) as listUrl, date_format( auditdate, "%Y%m" ) as blank FROM quality_history WHERE auditdate <> Now() ORDER BY listUrl desc LIMIT 6 auditdate is a DATE datatype When I

date_format, distinct and binary chars

2003-11-19 Thread tjkuhn
Okay, here's an interesting one. Here's the query: SELECT distinct date_format(auditdate, "%Y%M" ) as listUrl, date_format( auditdate, "%Y%m" ) as blank FROM quality_history WHERE auditdate <> Now() ORDER BY listUrl desc LIMIT 6 auditdate is a DATE datatype When I run thi

Oracle CONNECT BY

2001-09-24 Thread tjkuhn
Howdy all... New to MySQL and I've got a question. I have an application that does a good deal of hierarchical reporting. In order to do this one of the tables in my database contains nothing more than an individuals id and the team to which that individual reports TABLE - TEAMREPORT