सब-क्वेरी के बजाय इनर जॉइन करने की कोशिश करेंयह डेटा पर चलने के बिना क्वेरी को गाइड करने के लिए डिफ़ॉल्ट है, लेकिन हो सकता है कि क्वेरी का पालन करने से आपको मदद मिलेगी।
चुनें User .id , User .username , User .password , User .role , User .created , User .modified , User .email , User .other_user_id , User .first_name , User .last_name , User .place_id , Resume .id , Resume .user_id , Resume .other_resume_id , Resume .other_user_id , Resume .file_extension , Resume .created , Resume .modified , Resume .is_deleted , Resume .has_file , Resume .is_stamped , Resume .is_active
सेstreetofwalls .User एएस User
बाएं शामिल हों my_database .attempts एएस attempts चालू (attempts .user_id =User .id और Attempt .test_id !=5)बाएं शामिल हों my_database .reports एएस Resume चालू (Resume .user_id =User .id )
, my_database .User उपयोगकर्ता1 के रूप में
बाएं शामिल हों my_database .tags_users AS TagUser चालू (User1 .) .id =TagUser .user_id )
बाएं शामिल हों my_database .tags AS टैग ऑन (TagUser .tag_id =tags .id )
जहांUser .id =User1 .id और Attempt .test_id =8AND attempts .score> 60
और Resume .has_file =1AND tags .id ='8' और tags .id !='3'ग्रुप बाय User .id attempts . द्वारा आदेश .score डीईएससी;