Sale表中横列值转换成竖列显示。
摘要:
SELECTEmployeeID,max(caseSaleDatewhen'2007-01-01'thenamountelsenullend)asjan,max(caseSaleDatewhen'2007-02-01'thenamountelsenullend)asfeb,max(caseSaleDatewhen'2007-03-01'thenamountelsenullend)asmar,max(caseSaleDatewhen'2007-04-01'thenamountelsenullend)asapr,max(caseSal 阅读全文
posted @ 2007-03-27 23:13 小土泥 阅读(350) 评论(0) 推荐(0) 编辑