SELECT
loc.loc_pac as registro, datediff(dd, pac.pac_nasc, getdate()) as 'dias'
from loc with (nolock), pac with (nolock), str with (nolock)
where loc.loc_pac <> ''
and (loc.loc_pac = pac.pac_reg)
and (loc.loc_str = str.str_cod)
order...
asked by
29.06.2018 / 02:27