Jen to pridam formatovane pres
http://www.dpriver.com/…qlformat.htm
Osobne se snazim sql dotazy formatovat, sql-drivery si s tim uz dnes umi poradit.
SELECT p001log.id,
p001log.cas,
p001kop.id,
p001kop.cas,
Timediff(p001kop.cas, p001log.cas) AS rozdil
FROM p001log
JOIN
(
SELECT id,
cas
FROM p001log
WHERE id > 1) AS p001kop
where p001kop.id = (p001log.id + 1)
AND timediff(p001kop.cas, p001log.cas) > 0.7