Viewing 15 posts - 1,531 through 1,545 (of 4,087 total)
I made a couple of assumptions that may not be accurate, but the following seems to work. The detail sections have six records where the first character ranges from 1-6;...
November 8, 2017 at 1:50 pm
Here is another approach. My initial testing indicates that it should be faster.
WITH CTE AS
(
SELECT *, MIN(TestResult) OVER(PARTITION BY MemberID ORDER BY CycleID...
November 6, 2017 at 2:36 pm
Here is an approach that requires one fewer sorts than Chris M.'s method.
It uses a fairly standard technique for packing intervals developed by Itzik Ben Gan.
Your...
November 6, 2017 at 1:05 pm
It's because you're using the wrong PARTITION BY clause. It's not clear what the correct one is, but you should NOT include Country in the partition. Also, one of your...
November 6, 2017 at 8:40 am
It's asking you to generate two result sets, and you're only generating one. In trying to combine the two into one, you've added unnecessary complexity to the query.
Drew
November 4, 2017 at 9:40 am
Closing Balance is o.k But row wise Opening to be added only once ....
November 4, 2017 at 9:30 am
It's probably easier to just process them in batches rather than run through them to add batch numbers and then run through them again to process them. Here is an...
November 4, 2017 at 9:22 am
There are two main approaches. Which one performs better depends on the density of table 2 with respect to table 1 and to a lesser extent on how many records...
November 4, 2017 at 8:10 am
There are actually a couple more options, but the one that you were likely looking for is called a correlated subquery. The subquery can reference values from the outer query,...
November 3, 2017 at 1:51 pm
November 3, 2017 at 1:41 pm
November 3, 2017 at 9:36 am
Viewing 15 posts - 1,531 through 1,545 (of 4,087 total)