Mysql select query special conditions -


मेरे पास 3 टेबल डीबी हैं: फ़ाइल , category और < Code> file_to_category

मेरे पास श्रेणी आईडी है और केवल इस श्रेणी के लिए संबंधित फाइलों को चुनना होगा।

file_to_category तालिका संरचना है :

  आईडी file_id category_id   

क्या केवल 1 क्वेरी का उपयोग करना संभव है?

  चुनें f। * फ़ाइल से f में file_to_category fc fc.file_id = f.id पर समूह द्वारा एफ.आईड गणना (भिन्न fc.category_id) = 1 और योग (fc.category_id = $ your_category_id) & gt; 0    

Comments

Popular posts from this blog

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

python - 'NoneType' object is not callable using 'find_all' in BeautifulSoup -