Viewing 15 posts - 16 through 30 (of 54 total)
yingchai (2/8/2012)
I had tried execute your sql in my fact table which contains 123591 records.
The performance is quite good actually...took around 2 seconds to complete...but the results seems...
February 9, 2012 at 3:16 am
JonFox (1/21/2012)
February 9, 2012 at 1:24 am
Hi JonFox,
I had tried execute your sql in my fact table which contains 123591 records.
The performance is quite good actually...took around 2 seconds to complete...but the results seems not...
February 8, 2012 at 9:12 pm
Hi JonFox,
Based on two periods that I had loaded in the fact table, I can estimate that the fact table has around 150,000++ record. I would say that the database...
January 19, 2012 at 9:10 pm
Hi,
Apologized for my mistake. The output in the views should look like this:
('CMP1000', 'PM1',2011,11,100),
('CMP1001', 'PM1',2011,11,101),
('CMP1002', 'PM1',2011,11,102),
('CMP1003', 'PM1',2011,11,103),
('CMP1001', 'PM1',2011,12,111),
('CMP1002', 'PM1',2011,12,112),
('CMP1003', 'PM1',2011,12,113),
('CMP1000', 'PM1', ...
January 18, 2012 at 8:15 am
Hi ChrisM@home,
I am currently using this sql script below to check whether the TB, AR or AP file is loaded into the database by organization and would like to enhance...
January 18, 2012 at 3:28 am
Hi fahey.jonathan,
Based on your sample data here:
('CMP1000', 'PM1',2011,11,100),
('CMP1001', 'PM1',2011,11,101),
('CMP1002', 'PM1',2011,11,102),
('CMP1003', 'PM1',2011,11,103),
('CMP1001', 'PM1',2011,12,111),
('CMP1002', 'PM1',2011,12,112),
('CMP1003', 'PM1',2011,12,113),
('CMP1002', 'PM1',2012,01,122),
('CMP1003', 'PM1',2012,01,123)
The desired output should be:
('CMP1000', 'PM1',2011,11,100),--Row A
('CMP1001', 'PM1',2011,11,101),--Row B
('CMP1002', 'PM1',2011,11,102),
('CMP1003', 'PM1',2011,11,103),
('CMP1001', 'PM1',2011,12,111),
('CMP1002', 'PM1',2011,12,112),
('CMP1003', 'PM1',2011,12,113),
...
January 18, 2012 at 12:42 am
Hi fahey.jonathan,
Let's make sure I have this right. You have an "OriginalFact" table and you want to populate data into a "DerivedFact" table, using the "prior" month's data if "this"...
January 17, 2012 at 7:41 pm
Hi manjuke,
Thanks for the reply. But your solution seems not so flexible as it is just comparing period 06 and 09. In my actual fact table, it contains period 01...
January 17, 2012 at 1:58 am
Thanks ChrisM@home! 🙂
January 13, 2012 at 7:05 am
Hi ChrisM@home,
There is still one last final problem. After I apply the group by aggregate, the company "9006000 ISZL Consortium" does not appear in the result as this company does...
January 13, 2012 at 2:50 am
Hi ChrisM@home,
I had tried your script and it indeed simplify a lot of things. But it shows some duplication results if an organization has TB, AR and AP loaded in....
January 13, 2012 at 2:02 am
Hi ChrisM@home,
Removing the WHERE clause does not help. It still throws the same error...
Msg 8152, Level 16, State 14, Line 9
String or binary data would be truncated.
The statement has been...
January 13, 2012 at 1:21 am
Hi JonFox,
I am putting this issue aside first as I need to rush for other modules...will let you know once I found some workaround on this performance issue...
TQ.
December 9, 2011 at 5:52 am
Hi Usman Butt,
I think I had figured out a way for this problem.
select *, organization as subgroup_org from org_hrchy_details
where organization in (select distinct parent from org_hrchy_details)
union
select *, parent + '-'...
November 30, 2011 at 12:11 am
Viewing 15 posts - 16 through 30 (of 54 total)