Skip to main content
1 / 4
pgrho
  • 1.4万
  • 1
  • 15
  • 31

副問い合わせにHAVING句を使えばいいのでは。

SELECT *
  FROM tableA
 WHERE DATE IN
(
    SELECT DATE
      FROM tableA
     GROUP BY DATE
    HAVING COUNT(*) > 1
)
pgrho
  • 1.4万
  • 1
  • 15
  • 31