D
D
Dmitry Filandor2016-10-04 09:09:23
SQL
Dmitry Filandor, 2016-10-04 09:09:23

How to create an interleaved query?

Hello everyone, there is a sign:
id, title, text, record_type (1 - article, 2 - interview)
is it possible to select data in this way:
1, article 1 |
55, article 2 |
3, interview 1 |
40, article 3 |
5, article 4 |
30, interview 2 |
....
there is no strict sequence in IDs between post types.
I need to display a grid of three columns on the site - two articles, the third interview, and so on:
b789880916e14969bdef6b125d30ee02.jpg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
dchernov, 2016-10-04
@dchernov

Судя по твоему примеру - это обычная сортировка по полю ID )

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question