Form frmBDayList - btSearch (SQL query)
SELECT name,
strftime('%m/%d/%Y',birthdate) as Birthdate,
date('now') - birthdate + (case when strftime('%m-%d', 'now') < strftime('%m-%d', birthdate) then -1 else 0 end) as AGE
FROM emp
WHERE strftime('%d-%m', birthdate) = strftime('%d-%m', 'now', 'localtime')
UNION
SELECT fistname || ' ' || lastname,
strftime('%m/%d/%Y',birthdate) as Birthdate,
date('now') - birthdate + (case when strftime('%m-%d', 'now') < strftime('%m-%d', birthdate) then -1 else 0 end) as AGE
FROM wife
WHERE strftime('%d-%m', birthdate) = strftime('%d-%m', 'now', 'localtime')
UNION
SELECT name || ' ' || lastn,
strftime('%m/%d/%Y',birthday) as Birthdate,
date('now') - birthday + (case when strftime('%m-%d', 'now') < strftime('%m-%d', birthday) then -1 else 0 end) as AGE
FROM children
WHERE strftime('%d-%m', birthday) = strftime('%d-%m', 'now', 'localtime')
ORDER BY AGE DESC