Combining different statement in where clause?

Simply add another AND clause to your statement MONTH(Inpsection_datetime) = '". $Month. "' AND YEAR(Inspection_datetime) = '".

$Year. "' AND WHERE DAY(Inspection_datetime) BETWEEN 8 AND 14 GROUP BY Line, WEEK(Inspection_datetime), YEAR(Inspection_datetime).

Simply add another AND clause to your statement. " MONTH(Inpsection_datetime) = '". $Month."' AND YEAR(Inspection_datetime) = '".

$Year. "' AND WHERE DAY(Inspection_datetime) BETWEEN 8 AND 14 GROUP BY Line, WEEK(Inspection_datetime), YEAR(Inspection_datetime).

WHERE (cond1 AND cond2 AND cond3) ORDER by (column_to_sort_on) desc I think to sort the query results you have to use "order by ..." Regards, - M.S.

It is not a good idea to perform functions on date columns. Not unless the table is small or you don't really care about performance, that is. It is always better to do the reverse - to construct the date &/ range to test against.

YEAR(datecolumn) = X and MONTH(datecolumn) = Y = '". $Year. '-'.

$Month. "-1' AND Inspection_datetime = '". $Year.'-'.

$Month. "1' AND Inspection_datetime $Year. '-'.

$Month."1' + interval 1 month - interval 1 day AND DAY(Inspection_datetime) BETWEEN 8 AND 14.

Simply add another AND clause to your statement. " MONTH(Inpsection_datetime) = '". $Month."' AND YEAR(Inspection_datetime) = '".

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions