Viewing 15 posts - 16 through 30 (of 31 total)
Does all this involve data migration too?
Thats too complex.
Really looking forward for your methodology.
November 17, 2014 at 12:53 am
Try Below Query!!!
select R.seqNum, r.StartTime, r.price, (l.price - r.price) as Diff
, AVG((l.price - r.price)) over(partition by month(r.starttime)) as average
from dbo.Data R
left join dbo.Data L
on R.seqNum = L.seqNum - 1
November 6, 2014 at 2:08 am
Hi,
Yeah this is a very straightforward question but in the context of SQL Server. But will be bit confusing to those who work on other RDBMS products...
August 4, 2014 at 1:28 am
Hi Livingston,
No, the actual tables are different but the other columns are not significant. The essence of the problem is how to split the Receipt table row based on...
June 23, 2013 at 12:34 am
Hi Dwain!!!
Again a lot of thanx for your time and inputs.
I think we are in same line when thinking of a solution.
Here was my solution and you posted almost the...
June 22, 2013 at 12:33 am
HI dwain!!!
Could you help me in generating script with CURSOR?
Even with CURSOR it is bit tricky.
I am not able to find a perfect script for different kinds of data scenarios.
June 21, 2013 at 1:45 am
HI dwain!!
Thanx for your reply !!!
In fact I did the same thing.
I want an idea to split the the second Receipt ID based on the Balance amount of receipt...
June 21, 2013 at 1:07 am
Hi,
I am sorry again ...
Here is the updated output
MemberIDReceiptIDReceiptAmtConsumedAmtBALAmt
11300012001800
2118001600200
312002000
32500020003000
4230002456544
525445440
531200600600
If the premium amount of all members is greater than the total receipt amount then only the above output should display.
June 20, 2013 at 11:32 pm
Hi Dwain!
Thanx for the reply.
Yeah as I am in hurry , I made copy-paste mistake. Sorry!
Here is the output should be
MemberIDReceiptIDReceiptAmtConsumedAmtBALAmt
111300012001800
21118001600200
3112002000
314500020003000
41430002456544
5145445440
5161200600600
The logic is to consume every receipt based on premium...
June 20, 2013 at 11:30 pm
HI SQL biggies,
Please help me ! Still nobody replied...!
June 20, 2013 at 10:09 pm
HI all,
After creating a check constraint using the function , no record is getting inserted...
Please help....
February 27, 2013 at 10:36 pm
HI MickyT,
Thanks for the reply, the solution gave is partially correct. I want the slab to be checked is From Amount, To Amount , From Year & To...
February 27, 2013 at 3:30 am
Try this one !
DECLARE @COLOR VARCHAR(20);
SET @COLOR = NULL
SELECT * FROM TBLCOLOR
WHERE COALESCE (COLOR, '') = COALESCE (@COLOR, COLOR, '');
But its not optimized.
January 30, 2013 at 12:33 am
Viewing 15 posts - 16 through 30 (of 31 total)