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

advertisement

AddThis Social Bookmark Button
Article:
  SQL Subqueries
Subject:   Count the number of record first existing in table at a date
Date:   2007-01-22 08:13:14
From:   nikberry
Response to: Count the number of record first existing in table at a date

I haven't tried this, but something like:


select fielda,fieldb from table
where fieldb = '2/10/2005' and
fielda not in( select fielda from table
where fieldb < '2/10/2005')


1 to 1 of 1
1 to 1 of 1