我有针对 ID 的考勤记录,显示他/她当天是否在场,我想通过 sql 查询在一行中显示数据,该行在多行中针对该 ID。所以请帮我尽快解决这个问题。
执行查询后从数据库中获取此结果:
abc 1/2/2013 Present
abc 2/2/2013 Present
abc 3/2/2013 Present
abc 4/2/2013 Present
abc 5/2/2013 Present
abc 6/2/2013 Present
Expected Result:
Name Date1 Date2 Date3 Date4 Date5
abc Present Present Present Present Present