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 条
  • 相关阅读:
    2020-01月-02月
    Work needing Technologies
    gcc和 gdb工具(转)
    pyenv and grunt-contrib-testem
    Statistics Books
    HTML5学习--SVG全攻略(基础篇)
    一个完整的学院网站实现过程
    JavaScript 常用单词整理
    一张图教会CSS3倒影
    Python大数据处理案例
  • 原文地址:https://www.cnblogs.com/chuyuan/p/13957518.html
Copyright © 2011-2022 走看看