GARAIS Posted May 10, 2011 Report Share Posted May 10, 2011 labdien man ir viena problema man ir draugu baze un izvelkot draugu draugus tas notiek bet dazi draugi atkartojas piemmeram tad kad diviem maniem draugiem ir kopejs draugs ka izveidot lai to id rada vienu reizi? query: taads SELECT id,friend_two_id,REPEAT(123 , 3) FROM friends WHERE friend_one_id IN ( SELECT friend_two_id FROM friends WHERE friend_one_id=3553497 ) AND friend_two_id NOT IN ( SELECT friend_two_id FROM friends WHERE friend_one_id=3553497 ) AND friend_two_id NOT IN ( SELECT friend_one_id FROM friends WHERE friend_one_id=3553497 ) ; Quote Link to comment Share on other sites More sharing options...
sandis_m Posted May 11, 2011 Report Share Posted May 11, 2011 Pameklē forumā. Jau n-tās reizes par šito ir gājusi runa. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.