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