Viewing 13 posts - 16 through 28 (of 28 total)
This is the data inserted in those tables
SET IDENTITY_INSERT [voucher1] ON
INSERT [voucher1] ([srno], [vouchertype], [voucherprefix], [voucherno], [item], [itemdesc], [batchno], [quantity], [unit], [rate], [itemamt], [disc], [finalamt], [vatclass], [vat], [adtaxclass], [adtax], [total],...
April 9, 2013 at 11:57 pm
Erin Ramsay (3/8/2013)
March 8, 2013 at 8:15 pm
Jason-299789 (3/8/2013)
select
[month]
,dramount
,cramount
from table1
...
March 8, 2013 at 8:10 pm
There is not any problem with column name.
The problem is when one table is having data for month which is not present in other table.
March 8, 2013 at 8:07 pm
It wont work as one table is having data about single month and other is having data for two months.
March 8, 2013 at 8:06 pm
select month,dramount,cramount from table1
left outer join table2
on table1.month=table2.month
March 8, 2013 at 7:41 am
Can you provide code for this?
I tried left outer join but with unexpected result
March 8, 2013 at 7:33 am
I am facing problem with one situation
If voucherDr table contains data of two months, i.e. March,April
and voucherCr table contains data of one month, March only
Then I am not getting expected...
March 8, 2013 at 5:10 am
Thanks, dwain
Next time I will be providing DDL also, Sorry for my question
Again thanks for your answer. I will test it. And let you know
December 25, 2012 at 9:24 pm
Viewing 13 posts - 16 through 28 (of 28 total)