Let's imagine I have a table of products looking like this:
id | product_name
1 | Product 1
2 | Product 2
3 | Product 3
4 | Product 4
5 | Product 5
6 | Product 6
...
Is it possible to select all these records but, for example, I want Product 5 to appear at the 3rd position in the result set so that it would look like this:
1 | Product 1
2 | Product 2
5 | Product 5
3 | Product 3
4 | Product 4
6 | Product 6
EDIT: added real issue explanation
I am asking this because I have a big table of products (100 000+ records) and I need to make query that makes few certain products (3 of them with IDs X,Y,Z) get displayed at every 4th position of my result set so that my final result looks like:
1 | Product 1
2 | Product 2
3 | Product 3
X | Product X
4 | Product 4
5 | Product 5
6 | Product 6
Y | Product Y
7 | Product 7
8 | Product 8
9 | Product 9
Z | Product Z
10 | Product 10
...