Viewing 9 posts - 1 through 9 (of 9 total)
If I change the where clause to:
WHERE
invoices.invoicedate BETWEEN '01-apr-2007' AND '31-mar-2008'
or invoices.invoicedate is null
It works 🙂
February 21, 2008 at 6:46 am
On a side note - if I remove the Where clause, I get all of the months with blank values for clientname and total.
February 21, 2008 at 6:44 am
Hi Thanks again for the reply - I now have the following:
SELECT
months.monthid,
months.month,
months.realmonthid,
isnull(SUM(invoices.cinvoicesubtotal),0) AS Total,
isnull(clients.clientname,'')
FROM ...
February 21, 2008 at 6:32 am
lol sorry I'm not too hot on SQL and as soon as I saw temp tables and functions my eyes glazed over...
I have:
SELECT
months.monthid,
months.month,
months.realmonthid,...
February 21, 2008 at 5:32 am
Hi - just had a brainwave - I'm nearly there I *think*
I have added a months table with monthid, realmonthid, monthname. April being the first month of the financial...
February 21, 2008 at 4:53 am
No probs 🙂 Have pretty much given up and gone back to manually creating the report in excel!
Thanks anyway!
Stephen 🙂
February 21, 2008 at 4:12 am
Hi many thanks for that reply - it's gone completely over my head though I'm afraid 🙁 I've never used functions.
When I was developing this app I...
February 21, 2008 at 3:42 am
Michael - sorry - my table schema there was a bit wrong - I'll have 3 tables:
invoices
invoiceid
paid
payments
paymentid
amount
invoicepayments
invoicepaymentid
paymentid
invoiceid
clientid
amount
The user can tick off invoices on the asp.net payment page or just put...
September 27, 2007 at 7:52 am
Hi Michael - thanks for the prompt reply 🙂
I have sat in accounts for a few days and can see how they operate. They post a payment and then...
September 27, 2007 at 6:54 am
Viewing 9 posts - 1 through 9 (of 9 total)