我有一個表(SeekerInfo),像:選擇數據從兩個表的SQL
--------------------------------------------------
SeekerID - SeekerName - SeekerSex - SeekerMobile
12121 - mmmm - Male - 067676767
13223 - ssss - Female - 078876767
--------------------------------------------------
和另一個表(SeekerCources),像(每個求職者最多有3個cources):
--------------------------------------------------
SeekerID - CourceName - Duration
12121 - MCSA - 1 year
12121 - MCPD - 6 months
13223 - CCNA - 1 year
13223 - CCNP - 1 year
13223 - MCTS - 4 months
我想讓兩個表中的預覽數據的select語句如下所示:
SeekerID - SeekerName - SeekerSex - SeekerMobile - Cource1 - Cource2 - Cource3
12121 - mmmm - Male - 067676767 - MCSA - MCPD - *NULL*
13223 - ssss - Female - 078876767 - CCNA - CCNP - MCTS
你怎麼知道它的'CCNA - CCNP - MCTS'而不是'MCTS -CCNA - CCNP' – 2012-04-27 17:11:53