Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1182691
  • 博文数量: 398
  • 博客积分: 10110
  • 博客等级: 上将
  • 技术积分: 4055
  • 用 户 组: 普通用户
  • 注册时间: 2007-12-23 20:01
个人简介

新博客http://www.cnblogs.com/zhjh256 欢迎访问

文章分类

全部博文(398)

文章存档

2012年(1)

2011年(41)

2010年(16)

2009年(98)

2008年(142)

2007年(100)

我的朋友

分类: 数据库开发技术

2009-08-13 19:34:46

sel *
from  HEMSS.Hems_C_Fct_Area_Result_C_T
where  Billing_Month_Cd = 200907
-73 51 200907
 

sel  *
from  HEMSS.Hems_C_Fct_Area_Result_C
where  Billing_Month_Cd = 200906
 and  Mkt_Row_Id = 51
-73 51 200906
6576 51 200906
6681 51 200906
6392 51 200906

SEL  P1.Mkt_Row_Id,P1.Comm_Id,P1.Billing_Month_Cd,P2.Mkt_Row_Id,P2.Comm_Id,P2.Billing_Month_Cd 
FROM   (
select  *
from  HEMSS.Hems_C_Fct_Area_Result_C_T
where 
Billing_Month_Cd = 200907
 and   MKT_ROW_ID = 51)P1
 FULL JOIN  (
select  *
from  HEMSS.Hems_C_Fct_Area_Result_C
where   Billing_Month_Cd = 200906
 AND   MKT_ROW_ID = 51)   P2
       
 ON   P1.Mkt_Row_Id = P2.Mkt_Row_Id
      
 AND   P1.Comm_Id = P2.Comm_Id
     ;
 51 -73 200907 51 -73 200906
 ? ? ? 51 6576 200906
 ? ? ? 51 6681 200906
 ? ? ? 51 6392 200906
阅读(947) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~