خرید بک لینک

Vote count: 0

I searched hours on the inteet but I found nothing that would help me. Here is my problem...

My table

/ id / number / idobject /
/ 1  /   50   /    2     /
/ 2  /   60   /    2     /
/ 3  /   70   /    2     /
/ 4  /   80   /    1     /
/ 5  /   10   /    2     /
/ 6  /   20   /    1     /
/ 7  /   90   /    3     /

SQL i want

SELECT idobject FROM table WHERE number < 50 SKIP ALL OTHER idobject WITH VALUE THAT MEETS THE CONDITION

I want this as result

idobject is only 3, because idobject 1 is one time true and one time false and idobject 2 is one time false and three times true.

I hope you will understand my question, if not please leave comment below, so i can edit this post. Thnak you

asked 1 min ago

برچسب: نویسنده: استخدام کار تاريخ: يکشنبه 29 فروردين 1395 ساعت: 16:21

صفحه بندی