Žebrácká 25 a 10

Soňa Rybáčková (# 221)

00:00:00.00

SELECT nazev,cas.id as id,cas.id_zavod as id_zavod,id_zavod_orig,cip,cas,cas as id_casove, SUBSTRING(cas.cas + interval 7200 second,11,12) as cas2, gate,ant,rawcip,other, IFNULL(TIMEDIFF(cas, ( SELECT cas FROM cas WHERE cas.cas < id_casove AND cas.cas>"20180812080102.000000" AND cas.id_zavod =1296 AND (cip=221) ORDER BY cas DESC LIMIT 1)), TIMEDIFF(cas, "20180812080102.000000")) as mezicas, TIMEDIFF(cas, "20180812080102.000000") as cas_od_startu FROM cas LEFT JOIN gate ON gate.id_gate=cas.gate WHERE cas>20180812080102.000000 AND gate.id_zavod=cas.id_zavod AND cas.id_zavod=1296 AND (cip=221) GROUP BY cas.id ORDER BY cas ASC LIMIT 1
Počet časů: 0
#MezičasMístní čas