एक CASE
शामिल करें बयान।
SELECT
CASE
WHEN MAX(running) = MIN(running) THEN MAX(running)
ELSE MAX(running) - MIN(running)
END
"RUNNING",
dt
FROM t
GROUP BY dt;
एक CASE
शामिल करें बयान।
SELECT
CASE
WHEN MAX(running) = MIN(running) THEN MAX(running)
ELSE MAX(running) - MIN(running)
END
"RUNNING",
dt
FROM t
GROUP BY dt;