Viewing 15 posts - 16 through 30 (of 37 total)
In this table I am storing Quantity daywise.
as
Id Sunday Monday Tuesday Wednesday
1 2.00 2.00 2.00 ...
December 31, 2011 at 12:25 am
I need output as below...
...
September 28, 2011 at 12:49 am
Create table temp (Y bit,Ref_No Varchar(50),Ref_Date datetime,Credit numeric(18,2),Debit numeric(18,2), type )
in case of Credit amount
insert into ('0','Cash-Mem-245','2011-05-11','2500.00','0.00','C')
in case of Debit amount
insert into ('0','Mem-245','2011-05-11','0.00',250'0.00','B')
May 26, 2011 at 6:34 am
Sorry sir,
That was previous query..
expect query is
select T1.Y,T1.[REF NO],T1.[REF DATE],T1.CREDIT,T1.DEBIT,T1.[TYPE],
(Sum(T2.DEBIT)-Sum(T2.CREDIT))as BALANCE from temp T1
inner join temp T2 on T2.Row<=T1.Row ...
May 26, 2011 at 2:41 am
To Do so I have written a query as
select T1.Y,T1.[REF NO],T1.[REF DATE],T1.CREDIT,T1.DEBIT,T1.[TYPE],
(Sum(T2.DEBIT)-Sum(T2.CREDIT))as BALANCE from temp T1
inner join temp T2 on T2.Row<=T1.Row...
May 26, 2011 at 1:32 am
Thanx it working for me....
April 12, 2011 at 11:53 pm
Thank you its working but I can not modify table defination
April 8, 2011 at 5:34 pm
the table definition is
create table tbtemp (temp varchar(50))
My table contains only one column and information store in this table as follow
Hii Every body
I retriving data from database and my...
April 8, 2011 at 11:54 am
i want to set grade A for these students who's marks in bet ween 99 to 90 its mean there may multiple rows updated at a time.
April 30, 2010 at 12:30 am
Actually I went for an interview there interviewer asked me for retrieve row id from a specific table. But I replied so confidently that sql server doesn't assign any Row...
January 19, 2010 at 5:13 am
As we know that each row have its own id in each table provided by DMBS software. I want to fetch that row ID for specific table
January 19, 2010 at 4:35 am
How to do so??
Can you send me query for this
January 18, 2010 at 4:34 am
But i want to group by only with email, because some time names are different but emails are same so i need to result according to group of email. so...
January 5, 2010 at 3:05 am
Hi thank You for replying but this query provide the information of these records which are entered in database.
December 7, 2009 at 3:35 am
Viewing 15 posts - 16 through 30 (of 37 total)