PankajBanga
Pankaj Banga
- Local time
- Today, 16:39
- Joined
- Jan 17, 2005
- Messages
- 12
I tried this query and didn't get any result. What cud be wrong??? I do have data b/w those two dates in my table.
SELECT DPS
FROM tblDividend
WHERE CompanyKey =1582
AND Period BETWEEN #1/09/2004# AND #1/12/2004#;
Following is the data in tblDividend
CompanyKey DividendType PeriodEndDate DPS PaymentDate ExDividendDate Period
1582 Interim 30/09/2004 0.01875 15/11/2004 26/10/2004 1/09/2004
1582 Interim 30/12/2004 0.01875 15/02/2005 25/01/2005 1/12/2004
SELECT DPS
FROM tblDividend
WHERE CompanyKey =1582
AND Period BETWEEN #1/09/2004# AND #1/12/2004#;
Following is the data in tblDividend
CompanyKey DividendType PeriodEndDate DPS PaymentDate ExDividendDate Period
1582 Interim 30/09/2004 0.01875 15/11/2004 26/10/2004 1/09/2004
1582 Interim 30/12/2004 0.01875 15/02/2005 25/01/2005 1/12/2004