Can you help me build a SQL query for getting list of data from 2 table where if data exist on second table, it should display data from it, otherwise from table1
Table 1:
ID | NAME | AGE
------------------
1 | John | 20
2 | Daniel | 30
3 | Abraham | 30
4 | Donald | 25
Table 2:
ID | NAME | AGE
------------------
1 | John | 23
2 | Donald | 24
Desired result: John and Donald "AGE" get data from Table 2, and the rest from Table1
ID | NAME | AGE
------------------
1 | John | 23
2 | Daniel | 30
3 | Abraham | 30
4 | Donald | 24