php - Finding out the greatest among the available dates for a record, then mapping the output to other similar outputs to find the greatest among all -



php - Finding out the greatest among the available dates for a record, then mapping the output to other similar outputs to find the greatest among all -

i have 6 tables, account mutual key in 5 of these tables , id beingness mutual key these tables.

5 of have 4-5 date fields. now, task find greatest date available record in table using condition: id = 10. find greatest date same record in other tables. in tables there no such constraint account has same number, can different same id in different tables.

now have find corresponding account has max. date value amongst corresponding id value passed.

please help!!

select max(convert varchar, acct.account_date, 101) form business relationship acct acct.id = (select acct.id id_tlb acct.id = 'something')

you'ld won't need convert date there, it'll help mm/dd/yyyy format timestamp.

reply back, if need else.

php mysql date zend-framework2 union-all

Comments

Popular posts from this blog

assembly - What is the addressing mode for ld, add, and rjmp instructions? -

vowpalwabbit - Interpreting Vowpal Wabbit results: Why are some lines appended by "h"? -

Is there a way to convert an HTML page styled with Bootstrap CSS into email-compatible html? -