ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  SQL Subqueries
Subject:   Subquery
Date:   2006-04-05 21:18:52
From:   paul21_7
Response to: Subquery

SELECT
COUNT(SELECT 1 FROM emp WHERE comm IS NULL) AS null_count,
COUNT(SELECT 1 FROM emp WHERE comm IS NOT NULL) AS not_null_count
FROM dual


enjoy!


1 to 1 of 1
  1. Subquery
    2006-06-21 00:49:04  JustQuery [View]

1 to 1 of 1