R
R
Rodion Yurchenko2016-02-17 11:25:53
MySQL
Rodion Yurchenko, 2016-02-17 11:25:53

How to formulate an SQL query?

Good afternoon
There is a table
Table Type
id - int 11
item_id - int 11
type_id - int 11
I need to pull out 3 records of each type
, I just can’t figure out what to join with , that is
, you need to take the first type_id that comes across - and pull out 3 records with this type_id
then another type_id - and with it 3 more records
, and so on until the type_id runs out Help
me make a request

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Zhgulev, 2016-02-17
@e_s_l

Answer to the question

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question