Hello agaiN!! :)
I used
age(timestamp 'enrollmentdate') AS "Months Consume" ;
to see how many months they alreaady consume, but error message state that
****
ERROR: invalid input syntax for type timestamp: "enrollmentdate"
***
though when you try to query the enrollmentdate it will
show...
I was able to get the expiry date of a certain company in
my database but I have problem on how to view their remaining months before the expiry date.
I have function name kh_expiry which check the expiry date of a company.
SELECT DISTINCT kh_expiry(enrollmentdate), companyidfk FROM...
I wanted to sum up the total in table expenses "debit" row.
currently it's connected with 3 tables for the debit. Hope you can help me here.
------no. one query--------
SELECT a.debit, a.credit, a.action_date,d.compname, b.labfee, b.payee FROM expenses a
INNER JOIN memberlaboratory b ON...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.