Select
A.Name as MaxCode,
A.ID as ID,
A.Name as Name,
A.Hidden as Hidden
from
StoreBatches A
where
A.Name = (SELECT MAX(Name)
FROM StoreBatches
WHERE StoreCard_ID=:StoreCard_ID and Name LIKE :Formula)Generated by ABRA Software a.s. 27.10.2021 16:34:11