| Article: |
SQL Subqueries | |
| Subject: | Count the number of record first existing in table at a date | |
| Date: | 2006-10-16 20:50:17 | |
| From: | Devils | |
|
Hi,
|
||
Showing messages 1 through 5 of 5.
-
Count the number of record first existing in table at a date
2007-12-17 02:49:44 Aryanrules [Reply | View]
-
Count the number of record first existing in table at a date
2007-01-22 08:13:14 nikberry [Reply | View]
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')





its simple man
I think by this time you might hv got the answer if not use this query
SELECT * FROM table_name where fieldB ='2/10/2005' LIMIT 2
regards,
Aryan