如何理解和完成下面提供的嵌套循环挑战

时间:2018-03-07 03:31:42

标签: c for-loop while-loop nested-loops

我需要帮助来应对这一挑战。在嵌套循环方面,我觉得自己已经死了。上学期我在Java课程中比在初学者C课程中更了解它们。

Challenege code

1 个答案:

答案 0 :(得分:2)

这很简单。只需使用两个select image_id from image_subject where subject_id in ('a', 'b', 'c') -- whatever group by image-id having count(distinct subject_id) = 3; -- same count as in `where` 循环,如下所示。

for