zoukankan      html  css  js  c++  java
  • 查询在A表有记录数据,B表没有记录数据的SQL

    select a.site_planning_id,a.station_type_key from pl_cover_point a where a.station_type_key='440000104001' and a.station_level_key='440000917001' 
    and a.site_planning_id not in (select b.site_planning_id from pl_macro_station b)
    
    -- 宏站细化缺少 23147 条
    
    select a.site_planning_id,a.station_type_key from pl_cover_point a where a.station_type_key='440000104002' and a.station_level_key='440000917001' 
    and a.site_planning_id not in (select b.site_planning_id from pl_micro_station b)
    
    -- 微小站细化缺少 8838 条
    
    select a.site_planning_id,a.station_type_key from pl_cover_point a where a.station_type_key='440000104003' and a.station_level_key='440000917001' 
    and a.site_planning_id not in (select b.site_planning_id from pl_indoor b)
    
    -- 室分站细化缺少 17485 条
    
    select a.site_planning_id,a.station_type_key from pl_cover_point a where a.station_level_key='440000917002' 
    and a.site_planning_id not in (select b.site_planning_id from pl_cell b)
    
    -- 小区站细化缺少 0 条
  • 相关阅读:
    Android热补丁动态修复
    Android用gif做启动页
    如果通过adb查看当前显示的activity
    Android网络框架比较
    Android高清巨图加载方案
    一些Windows下经验
    工作总结
    C++网络编程总结
    编写导出库
    GridCtrl控件的使用
  • 原文地址:https://www.cnblogs.com/chuyuan/p/13957518.html
Copyright © 2011-2022 走看看