I was wondering if their was a way to query out monthly payments from a table. The table would look like this:
Vendor_Num Vendor_Name Invoice_Num Inv_Dte Inv_Amt
1 Tyco 10001 10/11/01 5000.00
1 Tyco 10010 11/11/01 6000.00
1 Tyco 10020 01/15/01 7000.00
1 Tyco 10051 12/11/01 2500.00
56 BrandCo 25001 08/01/00 3000.00
56 BrandCo 27000 09/01/00 4500.00
56 BrandCo 58000 11/28/00 6500.00
56 BrandCo 98000 10/01/00 9801.00
I'm looking to query out the monthly payments for Tyco for 10/11/01,11/11/01,12/11/01 and the monthly payments for BrandCo. for 08/01/00,09/01/00,10/01/00. Is there a stored procedure or function to do this. Any help would be appreciated.
Vendor_Num Vendor_Name Invoice_Num Inv_Dte Inv_Amt
1 Tyco 10001 10/11/01 5000.00
1 Tyco 10010 11/11/01 6000.00
1 Tyco 10020 01/15/01 7000.00
1 Tyco 10051 12/11/01 2500.00
56 BrandCo 25001 08/01/00 3000.00
56 BrandCo 27000 09/01/00 4500.00
56 BrandCo 58000 11/28/00 6500.00
56 BrandCo 98000 10/01/00 9801.00
I'm looking to query out the monthly payments for Tyco for 10/11/01,11/11/01,12/11/01 and the monthly payments for BrandCo. for 08/01/00,09/01/00,10/01/00. Is there a stored procedure or function to do this. Any help would be appreciated.