There is a task: to keep car comparisons.
Did the table:
id car_id_1 car_id_2 count - общее кол. по данному сравнению автомобилей So, if I, for example, added an Audi 3 vs BMW i3, then I cannot get the same comparison on the BMW i3 vs Audi 3.
Half a day puzzled, so did not find the answer, so that in one request using LIMIT .
I am sure that I didn’t make a structure for this correctly.
where (car_id_1=X and car_id_2=Y) or (car_id_2=X and car_id_1=Y)- Mike