
The top two are individual results..
the third on is the statement in which i am trying to join another table in it.My problem is i am not able to set the conditions in the sql statement.
In the last join statement i got two columns with Route Id and the sum with Flab=1 but am not able to set the condition in which the flag =0 ..please help
I need T2 as the last column.
Note that your date format string is potentially ambiguous depending on the locale of you database connection. Use a locale-safe date format like ODBC canonical (
yyyy-mm-dd hh:mi:ss)