摘要:        
1. 有表P如下: 问题:求表中红色多于蓝色的商品名称和差额数量 (1)首先分成两个临时表use tempdbgoif object_id('#table1','U')is not null //判断表是不是存在 drop table #table1goif object_id('#table2','U')is not null drop table #table2gouse admin1select productName, sum(num) as num into #table1 from P where color='    阅读全文
        
            posted @ 2011-05-04 11:08
爱测试的猫咪
阅读(423)
评论(0)
推荐(0)
        
        
 
                     
                    
                 
                    
                 
         浙公网安备 33010602011771号
浙公网安备 33010602011771号