Quantcast
Viewing all articles
Browse latest Browse all 35

Answer by FoxInFlame for MSSQL - group the time between start/end columns by date

If you mean getting the time between the two "Downtime"s, you can get the values with PHP using MYSQL connection, and calculate the difference, and then delete the two rows, and replace it with a new row, with the calculated results.

$query = "DELETE FROM TaBlEnAmEhErE WHERE DTCode=2";

Viewing all articles
Browse latest Browse all 35

Trending Articles