N
N
Name2019-09-12 11:18:25
SQL
Name, 2019-09-12 11:18:25

How to output from two tables and sort by date?

There are two tables
t1
"id" "text" "date"
1 - a - 2018-01-01
2 - b - 2018-01-03
3 - c - 2018-01-05
t2
"id" "fulltext" "add_date"
6 - one - 2018-01-02
7 - two - 2018-01-04
8 -three -
2018-01-07 to
get
a
one
b
two three

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
Lazy @BojackHorseman, 2019-09-12
SQL

UNION ALL + ORDER BY + LIMIT

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question