RE: Complex SQL query problem...

2002-09-23 Thread Edward Peloke
great! hope it works ! -Original Message- From: Richard Bolen [mailto:[EMAIL PROTECTED]] Sent: Monday, September 23, 2002 9:17 AM To: MySQL Mailing List (E-mail) Cc: Edward Peloke Subject: RE: Complex SQL query problem... FYI - this query seemed to work. select * from nodes left join

RE: Complex SQL query problem...

2002-09-23 Thread Richard Bolen
NULL) or (colors.parent_id is not NULL)) I need to do some more testing to be sure. Rich -Original Message- From: Edward Peloke [mailto:[EMAIL PROTECTED]] Sent: Monday, September 23, 2002 08:46 To: Richard Bolen Subject: RE: Complex SQL query problem... After I sent this it hit me

RE: Complex SQL query problem...

2002-09-20 Thread Richard Bolen
(E-mail) Subject: RE: Complex SQL query problem... try a left join select count(*) from jobs left join submissions on jobs.standard_id=submissions.color_id where jobs.standard_id=ID_VALUE and submissions.color_id is null Eddie -Original Message- From: Richard

RE: Complex SQL query problem...

2002-09-20 Thread Edward Peloke
try a left join select count(*) from jobs left join submissions on jobs.standard_id=submissions.color_id where jobs.standard_id=ID_VALUE and submissions.color_id is null Eddie -Original Message- From: Richard Bolen [mailto:[EMAIL PROTECTED]] Sent: Friday, Septemb

Re: complex sql query...

2002-09-06 Thread Gelu Gogancea
Hi, What you request i think it can become like this : SELECT SUM(IF(HOUR(start)>'02:00:00' AND HOUR(stop)<='08:00:00',50*sessiontime,0)+IF(HOUR(start)>'08:00:00' AND HOUR(stop)<='14:00:00',100*sessiontime,0)+IF(HOUR(start)<'14:00:00' AND HOUR(stop)<='02:00:00',150*sessiontime,0)) from YOUR_TABL

RE: Complex SQL Query

2001-03-28 Thread Alberni-dot-Net
Sent: Wednesday, March 28, 2001 15:53 To: Alberni-dot-Net Cc: [EMAIL PROTECTED] Subject: RE: Complex SQL Query Aaron, Are you inserting both values at once? Or inserting the startdate first, then updating the stopdate later. You may or may not be able to do this in one query. To determine how much ti

RE: Complex SQL Query

2001-03-28 Thread Oson, Chris M.
Aaron, Are you inserting both values at once? Or inserting the startdate first, then updating the stopdate later. You may or may not be able to do this in one query. To determine how much time is being spent between Midnight and 6am... select if ( time_to_sec(time_format(dateMod