国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 開發 > 綜合 > 正文

Multiple在表中的計算

2024-07-21 02:33:27
字體:
來源:轉載
供稿:網友

  create table myTable (
  this Varchar2(10),
  that Varchar2(10)
  );
  
  insert into myTable values ('that'   , 'the other');
  insert into myTable values ('confusing', 'the other');
  insert into myTable values ('this'   , 'that'   );
  insert into myTable values ('this'   , 'that'   );
  insert into myTable values ('that'   , 'confusing');
  insert into myTable values ('confusing', 'that'   );
  insert into myTable values ('confusing', 'confusing');
  insert into myTable values ('that'   , 'the other');
  insert into myTable values ('this'   , 'that'   );
  insert into myTable values ('confusing', 'the other');
  
  select
  count(
  case when
  this = 'that' and
  that = 'the other'
  then 1
  else null end) "Count 1",
  count(
  case when
  this = 'this' and
  that = 'that'
  then 1
  else null end) "Count 2",
  count(
  case when
  this = 'confusing'
  then 1
  else null end) "Count 3"
  from
  myTable;

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 盈江县| 黄冈市| 郑州市| 夏津县| 嵊州市| 新和县| 昂仁县| 安康市| 舟曲县| 平泉县| 西吉县| 海口市| 青州市| 木里| 宜州市| 沂南县| 酉阳| 桦南县| 达州市| 唐海县| 吉水县| 灵山县| 连南| 唐海县| 江津市| 曲靖市| 兰坪| 策勒县| 江津市| 桐乡市| 新绛县| 镇宁| 沐川县| 伊川县| 岱山县| 宝坻区| 郯城县| 仙桃市| 太白县| 通辽市| 塔河县|