I want to connect two table whose schema is like below...!!
Table :
team_posts
id
team_id
text
location_name
stars_count
comments_count
created_at
updated_at
team_feed_activites
id
team_id
operation
created_at
updated_at
And the table values are
team_posts
id | team_id | text | location_name | stars_count | comments_count | created_at | updated_at
1 | 23 | crow | india | 1 | 2 | 2016-03-18 06:30:00 | 2016-03-18 06:30:00
2 | 24 | bird | india | 1 | 2 | 2016-03-18 06:30:00 | 2016-03-19 06:30:00
3 | 25 | span | india | 33 | 2 | 2016-03-18 06:30:00 | 2016-03-18 06:30:00
4 | 25 | bang | india | 3 | 2 | 2016-03-18 06:30:00 | 2016-03-12 06:30:00
5 | 27 | crow | india | 1 | 2 | 2016-03-18 06:30:00 | 2016-03-18 06:30:00
6 | 23 | crow | india | 1 | 2 | 2016-03-18 06:30:00 | 2016-01-18 06:30:00
7 | 23 | crow | india | 7 | 2 | 2016-03-18 06:30:00 | 2016-03-18 06:30:00
8 | 23 | hen | india | 1 | 2 | 2016-03-18 06:30:00 | 2016-03-01 06:30:00
9 | 23 | mani | india | 1 | 2 | 2016-03-18 06:30:00 | 2016-03-18 06:30:00
10 | 23 | dog | india | 1 | 2 | 2016-03-18 06:30:00 | 2016-03-18 06:30:00
11 | 29 | crow | india | 10 | 2 | 2016-03-18 06:30:00 | 2016-02-26 06:30:00
12 | 29 | god | india | 1 | 2 | 2016-03-18 06:30:00 | 2016-03-18 06:30:00
13 | 29 | pen | india | 44 | 2 | 2016-03-18 06:30:00 | 2016-03-25 06:30:00
team_feed_activites
id | team_id | operation | created_at | updated_at
1 | 10 | established | 2016-03-18 06:30:00 | 2016-03-18 06:30:00
2 | 23 | established | 2016-03-19 06:30:00 | 2016-03-19 06:30:00
3 | 23 | modified | 2016-03-19 06:30:00 | 2016-03-19 06:30:00
4 | 24 | captian changed | 2016-03-19 06:30:00 | 2016-03-19 06:30:00
5 | 23 | captian added | 2016-03-19 06:30:00 | 2016-03-19 06:30:00
6 | 27 | won | 2016-03-19 06:30:00 | 2016-03-19 06:30:00
7 | 23 | won | 2016-03-19 06:30:00 | 2016-03-19 06:30:00
8 | 23 | paricipated | 2016-03-19 06:30:00 | 2016-03-19 06:30:00
9 | 23 | lost | 2016-03-19 06:30:00 | 2016-03-19 06:30:00
10 | 23 | changed pic | 2016-03-19 06:30:00 | 2016-03-19 06:30:00
11 | 23 | addded image | 2016-03-19 06:30:00 | 2016-03-19 06:30:00
12 | 30 | established | 2016-03-19 06:30:00 | 2016-03-19 06:30:00
Now what i need is to create a view where this table is merged into table based on updated_at date. Such that i can see what is the team progress day by day so that i can use that as team feeds..Could me some one help me how to do that..!!! Thanks in advance ..!!!