1
的主題無關的問題我有兩個表:MySQL的 - 並行合併兩個具有相同的#行
exam_outline_items:
jml_quiz_pool:
在所有的th我試着è的東西,這讓我最接近:
select t1.sequence, t1.title, t2.q_cat, t2.q_count
from student_pl.exam_outline_items t1
cross join pe_joomla.jml_quiz_pool t2
where t1.exam_outline_id = 5 and t1.chapter_num > 0
and t2.q_id = 1109 and t2.q_count > 0
group by title
將會產生這樣的結果:
我只需要那些q_cat值是不同的,就像他們在第2查詢。
在此先感謝您的幫助。
你如何確定,哪個序列和標題屬於哪個q_cat和q_count? – fancyPants 2014-11-06 18:02:00
只要查詢按照所述的方式運行,它們就可以完美匹配。 – jiy 2014-11-06 18:04:01