Need help with a BR - please help!

Hello

I would ask you please to help me with your ideas on achievening the sub condition. I have some ideas on this operation, but I am not able to set up everything to make it work. Please let me know your thoughts. Will be a great help.

Requirement:

The requirement is that if the user enters a data value for the Member account 'P' on the data form at any level (Top most parent, intermediate parent level 0 or level), it should work in the following way.

(1) to check what level the user has entered a value for 'P '. We have a relationship that V = P * T. So I thought, what if I dynamically calculate the value 'V' each time for each product should I where they changed as if they change the value "P" it would change the value 'V', as both are related. So, basically I compare the stored value of 'V' with the value of 'V' calculated dynamically.

(2) if the value of 'V' has been changed to this level (i.e. If stored V Dyn.) (V) and this condition is met, then all descendants of the current Member should get the same value of P as input by the user for the current Member.

(3) it should work regardless of what parent level they enter and should begin to fill in the values of this level. And if they fall into the 'P' value to level 0 members, he should leave them as it is without substitution and must be used in the consolidation.

That's what I could think of-

Please suggest changes that does not always work according to the requirement.

FIX(..........)

IF (@ISDESC ("LB") AND 'V'-> @PARENT (@CURRMBR (Product)) P-> @PARENT (@CURRMBR (Product)) * T-> @PARENT (@CURRMBR (Product)))
P > @CURRMBR (Product) = @PARENTVAL (product, P);

In the same way, IFELSE, for another condition

ENDIF
)
ENDFIX;

But this does not work for all cases. Lets say that I have 3 levels in my hierarchy for the product and if users enter at level 2, it does not work and replace the input value including the parent value which I do not know why, because in the first place it should not enter the loop just like the custom of condition be met. Reason, the user changed to level 2 and 3 not, so it should do nothing from what I understand.

Please let me know your thoughts.
Thank you.

Hello
Below should work with these assumptions:
1. you should not be aggregating V and P on products or you should use other members who together ever.
2. There are three generations (or 4 levels) in the dimension of your product. If you have more levels, you must change the marked spot.
3 and as you suggest, a new account is used for the comparison. Here it is called M

FIX (...)

DATACOPY V and M;
ENDFIX

SET CREATENONMISSINGBLK
FIX (...)
Fix (@IDESCENDANTS (Product))
« V « = » P » * « T » ;
ENDFIX
Fix (@IDESCENDANTS (Product))
Budget)
/ * Change below for additional generations * /.
IF (@ANCESTVAL(Product,3,V)! =@ANCESTVAL(Product,3,M))
"P"=@ANCESTVAL(Product,3,P);
ENDIF
IF (@ANCESTVAL(Product,2,V)! =@ANCESTVAL(Product,2,M))
"P"=@ANCESTVAL(Product,2,P);
ENDIF
IF (@ANCESTVAL(Product,1,V)! =@ANCESTVAL(Product,1,M))
"P"=@ANCESTVAL(Product,1,P);
ENDIF
)
ENDFIX
Fix (@IDESCENDANTS (Product))
« V « = » P » * « T » ;
ENDFIX
ENDFIX
CREATENONMISSINGBLK OFF SET;

FIX (...)
DATACOPY V and M;
ENDFIX

See you soon,.
Alp

Tags: Business Intelligence

Similar Questions

  • I NEED HELP Please im having a problem to forget my password and when I plug it it says its locked with a password he try to put the itunes thing but

    NEED HELP Please im having a problem to forget my password and when I plug it it says its locked with a password he tried to put the itunes thing but it says enter password I put in what I rember, then said lokced for five minutes help me pls

    Without knowing the password for your iPhone, there is no way to unlock it, bring even you to the Genius Bar. If you continue to enter the wrong password, you will be locked out of your iPhone, and your data will be unaccessable.

  • Hey, need help. I get this in my iPhone that 'there is a problem of billing with a previous purchase. Please update your payment method"in any way I can remove my visa card from iTunes

    Hey, need help. I get this in my iPhone that 'there is a problem of billing with a previous purchase. Please update your payment method"anyway I can remove my visa card from iTunes?

    You must pay your debt first.

  • In fact, I need help but can't find the answer. Please... Lately when it is open a new tab it does not open with a blank page. I don't want to put my home page as

    In fact, I need help but can't find the answer.
    Please... Lately when it is open a new tab it does not open with a blank page. I don't want to put my home page as empty as when I open Firefox, it automatically load my hotmail page. But then if I open other pages I don't get a blank page. Help, please?
    Thank you.

    [Personal information deleted by the moderator. Please read the guidelines and rules of the Forum, thank you.]

    Hello, please refer to customize the page new tab to turn off the function.

  • Need help with the button mute on my helmet XL-3000 of Microsoft Chat, please!

    Hi all!  Hope everyone is having a good TGIF!  If you use my helmet even, I need help understanding the region button mute in the middle of the rope.  The red light is on or off?  I suppose that if I hit the curve button with the microphone on this subject, and the red light, I'm turn off my mike?

    I did some tests with others on the phone calls.  Sometimes, some other hear me, sometimes they do not have.  BUT I NEVER HEAR THEM!  FOR MY WORK, IT IS IMPERATIVE THAT I MAKE CALLS TO OTHERS!  HELP PLZ!  Thank you very much and have a great wkend!

    Hello
     
    Please follow the links below to troubleshoot the computer.
     
    Method 1
     
    Connect one microphone, music player or other audio device to your computer

    Method 2

    Step 1

    Troubleshooting: headsets

    Step 2

    Open the troubleshooting of Audio recording

    Method 3

    How to adjust the microphone volume

    a. click Start, type mmsys.cpl in the search box and press ENTER.
    b.
    in the sound dialog box, click the recording tab.
    c. click Microphone, and then click Properties.
    Note Make sure that the work appears under Microphone. If the job does not appear, click Microphone, and then click on set as default.
    d. the Microphone Properties dialog box, click the custom tab.
    e. select or clear the box amp Microphone.
    f. click the levels tab.
    g. set the volume to the desired level, and then click OK.
    h. click OK to close the sound dialog box.
     
    How to adjust the setting of the voice
     
    a. start the game.
    b. connect to LIVE (the Guide).
    c. click personal settings.
    d. click on voice.
    e. make sure that the recording volume level indicator records at a bar when you talk.
    f. click done.

    If you are still facing problems then, I would say that you contact support for Microsoft hardware for more direct intervention.


    I hope this helps.

     
  • Need help with the error in windows update 80244019 is urgent please

    Please I need help urgent problem error update.

    I have a Dell Inspiron 1564, running Service Pack 1 of Windows 7.   I tried several times to update windows and nothing, just appears this error: Code 80244019, tried to install the Windows update agent and pops up the same error., NetFxRepair tool and nothing, FixDotNet, and nothing.  Did a recovery to the fabric (by default) and nothing.   About 2 years ago, I disabled the update and about 2 months ago I tried to update and I forgot the error. Now I need to reinstall all my programs, in the hope that with a recovery, it will fix the error and thrust my laptop, but now is worse, because the installation of updated doesn´t work, Corel Draw X 4 doesn´t supposed error of .NET Framework, so I tried the fixdotnet and netfx repair tool, but nothing. I need to work and I have can´t I have only a portable empty with an outdated windows. Help, please!

    Windows Update error 80070643
    http://Windows.Microsoft.com/en-us/Windows7/Windows-Update-error-80070643

    or

    Cannot install updates in Windows...
    http://support.Microsoft.com/kb/2509997

  • How can I get ahold of a LIVE person? I need HELP with my email account (Email removed for privacy), you can contact me at Email removed for privacy or * withdrawn * please someone HELP! Mike Golab

    How can I get ahold of a LIVE person? I need HELP with my email account (* address email is removed from the privacy *) you can contact me to the * address email is removed from the privacy * or * remove * please someone HELP! Mike Golab

    E-mail address is removed from the privacy *.

    No, and that has nothing to do with this old thread. This is a scam that last for years. Microsoft never does unsolicited phone calls.
     
     
     
     
     

    Scams by e-mail or web: how to protect yourself
    http://www.Microsoft.com/security/online-privacy/phishing-scams.aspx
     
     
     
     

    Aggressive, persistent Windows tech support fraudsters continue to track consumers
    http://www.Computerworld.com/s/article/9248122/Aggressive_persistent_Windows_tech_support_scammers_continue_to_stalk_consumers
     
     
  • I could not find download Windows Mobile Device Center 6.1 so I can download pic & videos from my phone to my computer. I need assistance with their phone is off and on computer any ideas please help.

    I could not find download Windows Mobile Device Center 6.1 so I can download pic & videos from my phone to my computer. I need assistance with their phone is off and on computer any ideas please help.

    See http://support.microsoft.com/kb/931937

  • Need help to understand why my downloaded PDF doc displays "Please wait...". If this message is not finally replaced with the appropriate content... "after that I have already downloaded the version update for windows 10

    Need help to understand why my downloaded PDF doc displays "Please wait...". If this message is not finally replaced with the appropriate content... "after that I have already downloaded the version update for windows 10

    This is because the PDF file is not be open in Acrobat or Reader, but by the browser which is unable to handle the specific PDF content.

    If you use Firefox or Chrome, follow these steps: https://helpx.adobe.com/livecycle/kb/xfa-forms-firefox-chrome.html

  • Need help with a Windows update it please...

    03/15/13, we had a storm, and when well even I had a surge protector for a reason, he put my date one (1) year until 15/03/14 which I didn't notice at the time, so when I started my pc, he had a update installtion, which was the following: good security for Windows Vista (KB2807986) update less say , my pc was a bit confusing, because until what I changed the actual date in the BIOS?  She had always installed this update for 2014, so my pc and the browsers would not work correctly until I changed the date.  But in the meantime, the correct installation of the certain this update was never made...  So, I need help on what to do.  How to remove this update? Or should I leave and just manually install the update correct?  According to what it is, I need help on how to do it and where to find the correct update?  Can someone help me please?  and thank you!  I have Windows Vista Ultimate 2007 ServicePack2 32bitOS

    Hello

    Thanks for posting your question on the Forums of community of Microsoft.
     
    1. what exactly is the problem that you are facing as a result of this update?
    2. do you get an error message?
     
    I suggest you to install this update manually and check:
    Reference:
    Update security for Windows Vista (KB2807986)
     
    See also:
    Remove an update
     
    I hope this helps.
  • Hi there I need help with my laptop my code is 55385917 please help

    • Hi there, I need help wit my computer hp pavilion laptop it starts just to show enter them administration or turn on password after 3 times the disable password are 55385917 Please HELP ME because THAT ALL MY WORK IS IT ON please

    Groove

    Try: 40083339

    Concerning

    Visruth

  • Please, need help printer. Nothing to do with Security Update 2009-001.

    I need help, and looking for the forums just makes me worse headache. I need to use passthrough printing, but the Mac printer does not in the comments.

    Details: OS X 10.5.6 Fusion 2.0.2. Guest is Windows 2000 SP4. Security Update 2009 - 001 has not been applied.

    The printer is a HP PhotoSmart C4480 printer attached to the Mac via USB.

    In order to avoid the obvious questions:

    Passthrough fusion printer is active. Become disabled as some users report. The Serial Port is present and connected. In OS X printer sharing is enabled in the world and for this printer (but my impression is that it should not be).

    I confirmed that the printer works from OS X. And he is listed in the merger USB menu.

    The process of Thinprint TPAutoConn * are underway on the guest. COM1 and COM2 are both present.

    The user can not use the old printer sharing solution because there is no Windows 2000 for this printer drivers. The VM is totally dependent on the system of Thinprint, and I never put in place before. Have never seen a working configuration. Don't know about its configuration beyond what is in the VMX file and upgrade manual.

    There are merger Console messages that say "no printer configured or unavailable." I think it's the key to the problem... but I don't know what to do about this.

    Help...

    Fuzzy-wan says:

    Pat Lee says:

    We have designed this feature to Windows XP and later versions. So it will not work on Windows 2000.

    Hmmm. Woody didn't say exactly if the printer actually prints

    Well I wouldn't went all the trouble to clean the building a Machine virtual Windows 2000 Pro SP4 with VMware Tools installed and printers enabled for the Virtual Machine settings and took all the dialog boxes and to make a film of the if I did had not bother to actually check and see if she would print!

    Find attached an image of a Windows 2000 printer print Test and note the relevant information.

    Computer name: W2KVM

    Name of the printer: HP LaserJet 4050 on MacBook Pro

    Printer model: TP output gateway PS

    Support: Yes

    Port name (s): THIRD:

    Note: because the printer is a B & W LaserJet I guess that the "support: Yes", it's that the "printer model: TP output gateway PS ' supports color and will therefore work with color printers as well.

  • Need help with this problem please

    Hi all
    I have 2 tables and I am runnig the following query against it:
    select t1.ID_NBR, t1.START_DATE,t1.END_DATE,t1.SAMPLE_ID,t2.END_INTV_TIME,t2.CIN_DATA_ID
    from sample t1,weekend t2
    where t1.SAMPLE_ID=t2.SAMPLE_ID_1
    and t1.WEEKEND_FLAG='Y'
    and t1.SITE_ID_NBR='000097117011'
    and get the following dataset:
    ID_NBR     START_DATE     END_DATE     SAMPLE_ID     END_INTV_TIME     CIN_DATA_ID
                             
    97117011     91908     92108     143493     100     131834
    97117011     91908     92108     143493     200     131835
    97117011     91908     92108     143493     300     131836
    97117011     91908     92108     143493     400     131837
    97117011     91908     92108     143493     500     131838
    97117011     91908     92108     143493     600     131839
    97117011     91908     92108     143493     700     131840
    97117011     91908     92108     143493     800     131841
    97117011     91908     92108     143493     900     131842
    97117011     91908     92108     143493     1000     131843
    97117011     91908     92108     143493     1100     131844
    97117011     91908     92108     143493     1200     131845
    97117011     91908     92108     143493     1300     131846
    97117011     91908     92108     143493     1400     131847
    97117011     91908     92108     143493     1500     131848
    97117011     91908     92108     143493     1600     131849
    97117011     91908     92108     143493     1700     131850
    97117011     91908     92108     143493     1800     131851
    97117011     91908     92108     143493     1900     131852
    97117011     91908     92108     143493     2000     131853
    97117011     91908     92108     143493     2100     131854
    97117011     91908     92108     143493     2200     131855
    97117011     91908     92108     143493     2300     131856
    97117011     91908     92108     143493     2400     131857
    97117011     91908     92108     143493     100     131858
    97117011     91908     92108     143493     200     131859
    97117011     91908     92108     143493     300     131860
    97117011     91908     92108     143493     400     131861
    97117011     91908     92108     143493     500     131862
    97117011     91908     92108     143493     600     131863
    97117011     91908     92108     143493     700     131864
    97117011     91908     92108     143493     800     131865
    97117011     91908     92108     143493     900     131866
    97117011     91908     92108     143493     1000     131867
    97117011     91908     92108     143493     1100     131868
    97117011     91908     92108     143493     1200     131869
    97117011     91908     92108     143493     1300     131870
    97117011     91908     92108     143493     1400     131871
    97117011     91908     92108     143493     1500     131872
    97117011     91908     92108     143493     1600     131873
    97117011     91908     92108     143493     1700     131874
    97117011     91908     92108     143493     1800     131875
    97117011     91908     92108     143493     1900     131876
    97117011     91908     92108     143493     2000     131877
    97117011     91908     92108     143493     2100     131878
    97117011     91908     92108     143493     2200     131879
    97117011     91908     92108     143493     2300     131880
    97117011     91908     92108     143493     2400     131881
    97117011     91908     92108     143493     100     131882
    97117011     91908     92108     143493     200     131883
    97117011     91908     92108     143493     300     131884
    97117011     91908     92108     143493     400     131885
    97117011     91908     92108     143493     500     131886
    97117011     91908     92108     143493     600     131887
    97117011     91908     92108     143493     700     131888
    97117011     91908     92108     143493     800     131889
    97117011     91908     92108     143493     900     131890
    97117011     91908     92108     143493     1000     131891
    97117011     91908     92108     143493     1100     131892
    97117011     91908     92108     143493     1200     131893
    97117011     91908     92108     143493     1300     131894
    97117011     91908     92108     143493     1400     131895
    97117011     91908     92108     143493     1500     131896
    97117011     91908     92108     143493     1600     131897
    97117011     91908     92108     143493     1700     131898
    97117011     91908     92108     143493     1800     131899
    97117011     91908     92108     143493     1900     131900
    97117011     91908     92108     143493     2000     131901
    97117011     91908     92108     143493     2100     131902
    97117011     91908     92108     143493     2200     131903
    97117011     91908     92108     143493     2300     131904
    97117011     91908     92108     143493     2400     131905
    What I wanted was to add 2 columns to all data above, the reason is the dataset above has 72 files, one file per hour for 3 days from Friday 01:00 and ending the Sunday i 2400, but all have in all of the above data is just the date of beginning and end, so I created the following query to add the columns :
    SELECT *
      FROM (SELECT t.*,
                   TO_CHAR (TO_DATE (start_date, 'mmddrr') + TRUNC (rn / 24),
                            'Day'
                           ) AS weekday,
                                  TO_CHAR (TO_DATE (start_date, 'mmddrr') + TRUNC (rn / 24),
                            'mmddyy'
                           ) AS next_date
              FROM (SELECT t1.id_nbr,
                                                  t1.start_date,
                           TO_CHAR (TO_DATE (t1.start_date, 'mm/dd/yy'),
                                    'fmDay'
                                   ) AS start_day,
                           t1.end_date,
                           TO_CHAR (TO_DATE (t1.end_date, 'mm/dd/yy'),
                                    'fmDay'
                                   ) AS end_day,
                           t2.sample_id_1, t2.cin_data_id,
                           t2.end_intv_time, ROW_NUMBER () OVER (PARTITION BY t2.sample_id_1 ORDER BY t2.cin_data_id)
                                                                            AS rn,
                           COUNT (t2.cin_data_id) OVER (PARTITION BY t2.sample_id_1)
                                                                           AS cnt,
                           t1.weekend_flag
                      FROM sample t1,
                           weekend t2
                     WHERE t1.sample_id = t2.sample_id_1
                       AND t1.weekend_flag = 'Y') t)
     WHERE TRIM (weekday) IN ('Friday', 'Saturday', 'Sunday')
       AND nbr = '000097117011'
    And the problem I have now is instead of 72 for 3 days I get only 71 and time 2400 is paased on the next day, I tried to use CEIL instead and ended up getting 48 reocrds instead, the following dataset is when I used the above query
    ID_NBR     START_DATE     START_DAY     NEXT_DATE     WEEKDAY     END_DATE     END_DAY     SAMPLE_ID     CIN_DATA_ID     END_INTV_TIME
                                                 
    97117011     91908     Friday     91908     Friday        92108     Sunday     143493     131848     1500
    97117011     91908     Friday     91908     Friday        92108     Sunday     143493     131849     1600
    97117011     91908     Friday     91908     Friday        92108     Sunday     143493     131850     1700
    97117011     91908     Friday     91908     Friday        92108     Sunday     143493     131851     1800
    97117011     91908     Friday     91908     Friday        92108     Sunday     143493     131852     1900
    97117011     91908     Friday     91908     Friday        92108     Sunday     143493     131853     2000
    97117011     91908     Friday     91908     Friday        92108     Sunday     143493     131854     2100
    97117011     91908     Friday     91908     Friday        92108     Sunday     143493     131855     2200
    97117011     91908     Friday     91908     Friday        92108     Sunday     143493     131856     2300
    97117011     91908     Friday     92008     Saturday      92108     Sunday     143493     131857     2400
    97117011     91908     Friday     92008     Saturday      92108     Sunday     143493     131858     100
    97117011     91908     Friday     92008     Saturday      92108     Sunday     143493     131859     200
    97117011     91908     Friday     92008     Saturday      92108     Sunday     143493     131860     300
    97117011     91908     Friday     92008     Saturday      92108     Sunday     143493     131861     400
    97117011     91908     Friday     92008     Saturday      92108     Sunday     143493     131862     500
    97117011     91908     Friday     92008     Saturday      92108     Sunday     143493     131863     600
    97117011     91908     Friday     92008     Saturday      92108     Sunday     143493     131864     700
    97117011     91908     Friday     92008     Saturday      92108     Sunday     143493     131865     800
    97117011     91908     Friday     92008     Saturday      92108     Sunday     143493     131866     900
    97117011     91908     Friday     92008     Saturday      92108     Sunday     143493     131867     1000
    97117011     91908     Friday     92008     Saturday      92108     Sunday     143493     131868     1100
    97117011     91908     Friday     92008     Saturday      92108     Sunday     143493     131869     1200
    97117011     91908     Friday     92008     Saturday      92108     Sunday     143493     131870     1300
    97117011     91908     Friday     92008     Saturday      92108     Sunday     143493     131871     1400
    97117011     91908     Friday     92008     Saturday      92108     Sunday     143493     131872     1500
    97117011     91908     Friday     92008     Saturday      92108     Sunday     143493     131873     1600
    97117011     91908     Friday     92008     Saturday      92108     Sunday     143493     131874     1700
    97117011     91908     Friday     92008     Saturday      92108     Sunday     143493     131875     1800
    97117011     91908     Friday     92008     Saturday      92108     Sunday     143493     131876     1900
    97117011     91908     Friday     92008     Saturday      92108     Sunday     143493     131877     2000
    97117011     91908     Friday     92008     Saturday      92108     Sunday     143493     131878     2100
    97117011     91908     Friday     92008     Saturday      92108     Sunday     143493     131879     2200
    97117011     91908     Friday     92008     Saturday      92108     Sunday     143493     131880     2300
    97117011     91908     Friday     92108     Sunday        92108     Sunday     143493     131881     2400
    97117011     91908     Friday     92108     Sunday        92108     Sunday     143493     131882     100
    97117011     91908     Friday     92108     Sunday        92108     Sunday     143493     131883     200
    97117011     91908     Friday     92108     Sunday        92108     Sunday     143493     131884     300
    97117011     91908     Friday     92108     Sunday        92108     Sunday     143493     131885     400
    97117011     91908     Friday     92108     Sunday        92108     Sunday     143493     131886     500
    97117011     91908     Friday     92108     Sunday        92108     Sunday     143493     131887     600
    97117011     91908     Friday     92108     Sunday        92108     Sunday     143493     131888     700
    97117011     91908     Friday     92108     Sunday        92108     Sunday     143493     131889     800
    97117011     91908     Friday     92108     Sunday        92108     Sunday     143493     131890     900
    97117011     91908     Friday     92108     Sunday        92108     Sunday     143493     131891     1000
    97117011     91908     Friday     92108     Sunday        92108     Sunday     143493     131892     1100
    97117011     91908     Friday     92108     Sunday        92108     Sunday     143493     131893     1200
    97117011     91908     Friday     92108     Sunday        92108     Sunday     143493     131894     1300
    97117011     91908     Friday     92108     Sunday        92108     Sunday     143493     131895     1400
    97117011     91908     Friday     92108     Sunday        92108     Sunday     143493     131896     1500
    97117011     91908     Friday     92108     Sunday        92108     Sunday     143493     131897     1600
    97117011     91908     Friday     92108     Sunday        92108     Sunday     143493     131898     1700
    97117011     91908     Friday     92108     Sunday        92108     Sunday     143493     131899     1800
    97117011     91908     Friday     92108     Sunday        92108     Sunday     143493     131900     1900
    97117011     91908     Friday     92108     Sunday        92108     Sunday     143493     131901     2000
    97117011     91908     Friday     92108     Sunday        92108     Sunday     143493     131902     2100
    97117011     91908     Friday     92108     Sunday        92108     Sunday     143493     131903     2200
    97117011     91908     Friday     92108     Sunday        92108     Sunday     143493     131904     2300
    Need help please.
    Thank you

    Hello

    Hours in a range of 0 to 23 hours day after midnight. You count from 1, not 0, so the 24th hour (from Friday) is actually from 00:00 on Saturday, and the 72nd hour is 00:00 Monday, that you are not counting in the WHERE clause.

    Maybe when you calculate tn, you might simply subtract 1:

     SELECT *
      FROM (SELECT t.*,
                   TO_CHAR (TO_DATE (start_date, 'mmddrr') + TRUNC (rn / 24),
                            'Day'
                           ) AS weekday,
                                  TO_CHAR (TO_DATE (start_date, 'mmddrr') + TRUNC (rn / 24),
                            'mmddyy'
                           ) AS next_date
              FROM (SELECT t1.id_nbr,
                                                  t1.start_date,
                           TO_CHAR (TO_DATE (t1.start_date, 'mm/dd/yy'),
                                    'fmDay'
                                   ) AS start_day,
                           t1.end_date,
                           TO_CHAR (TO_DATE (t1.end_date, 'mm/dd/yy'),
                                    'fmDay'
                                   ) AS end_day,
                           t2.sample_id_1, t2.cin_data_id,
                           t2.end_intv_time, ROW_NUMBER () OVER (PARTITION BY t2.sample_id_1 ORDER BY t2.cin_data_id)
                                 - 1           -- Added
                                                                            AS rn,
                           COUNT (t2.cin_data_id) OVER (PARTITION BY t2.sample_id_1)
                                                                           AS cnt,
                           t1.weekend_flag
                      FROM sample t1,
                           weekend t2
                     WHERE t1.sample_id = t2.sample_id_1
                       AND t1.weekend_flag = 'Y') t)
     WHERE TRIM (weekday) IN ('Friday', 'Saturday', 'Sunday')
       AND nbr = '000097117011'
    

    To view the actual end time, add one hour before posting.

    What happens if you are missing a row for some reason any? Just using ROW_NUMBER won't take the missing line into account. It would be preferable to derive the time of the end_intc_timecolumn. Of course, it would be even better to store the date and time ending in a DATE column all the way.

    I hope that answers your question.
    If not, post a small example of data (CREATE TABLE and only relevant columns, INSERT statements) for all tables and also post the results desired from these data.
    Explain, using specific examples, how you get these results from these data.
    You must not post a lot of data: 6 hours, ending at midnight Monday, should be enough to show the problem and its solution.

    Always tell what version of Oracle you are using.

  • Help urgently needed! -User profile takes a long time to load and the rest of the screen with the message "Please wait loading profile service user.

    Hello

    Every time that connect us to servers of TS farm, the profile of the user load for a long time and she stays with a message "Please wait for the user profile service" for longer than 5-6 minutes. We work in two areas which is configured as "an endorsement of forest transitive way." The domain (domain A) with TS farms hence connect us a cross forest profile disabled so we cannot load the roaming profile in this area, whereas another domain (domain B) roaming profile user's roaming profile.

    Also in the directory the Active directory of the domain B, TS/RDS settings is enabled for the problematic profile.

    TS / RDS--> roaming profile path and TS home folder is configured. TS/RDS settings is configured because we use other farms of machines/TS citrix other than the one in which there is problem.

    When disable us TS/RDS of the directory settings active directory domain B, then it is extracted to improvement in time. But we're in a situation were we cannot disable TS/RDS settings as we use other Citrix machines also. So we tried configuration GPO in A TS domain as

    Which allows to "allow only the local user profile".

    Allowing 'profiles itinerant Prevent password propagation to the server.

    This allows to "Allow asynchronous user group policy processing when you connect via Terminal Server Services"

    But still, there is no improvement in the time taken by the server to connect. What is the adjustment to make in the field of A TS, such that he will not try to charge the roaming of the B domain user profile, even if TS/RDS settings for the user profile are configured?

    Forums of evil: you want to Technet forums.  It's more domestic consumption...

    https://social.technet.Microsoft.com/forums/

  • I'm suddenly needing help with my browser Firefox (6.0.2)

    Hello
    I'm suddenly needing help with my browser Firefox (6.0.2)

    (OS: I use Windows XP).

    When I open the browser, I don't see is a totally white screen of white, with all the toolbars at the top.

    I know that my physical connections are very good: I have tested the modem, turned the pc market etc and I can also receive/send emails.

    This problem started today, September 8, 2011 and has never happened before.

    Is it a coincidence that Firefox itself to day before I disconnected yesterday evening? Could this be something to do with this particular new update?

    I also noticed that just before I "opened" Firefox, I now get a small box indicating:

    [JAVASCRIPT APPLICATION]
    Handl exc in Ev: TypeError: this oRoot.enable is not a function

    This never appeared before - I hope that it offers a clue has what is wrong.

    The browser not be stuck in Mode safe, said by the way.

    Of course, I can't find solutions to the problem on the internet, I don't physically see all Web sites!
    (A friend sends this request in my name from their pc)

    Any light you can throw on this problem of confusion would be much appreciated. I'd rather not have to uninstall and reinstall Firefox if possible.

    If the only option is to uninstall Firefox and reinstall from your site, I'm also in trouble (I can not see the internet or download).
    In this case, would you be able to send the .exe file as an attachment to my e-mail address? In the affirmative, please let me know and I'll give you more details.

    Thanks in advance.

    One possible cause is security software (firewall) that blocks or limits Firefox or plugin-container process without informing you, possibly after the detection of changes (update) for the Firefox program.

    Delete all rules for Firefox in the list of permissions in the firewall and leave your firewall again ask permission to get full unlimited access to the internet for Firefox and the plugin-container and the update process.

    See:

    Start Firefox in Firefox to solve the issues in Safe Mode to check if one of the extensions of the origin of the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > appearance/themes).

  • Need help with installation on Photosmart C7280 all-in-one

    I had my printer is installed and has been using the printer for 3 wireless laptops in my house.  Now, I can't even find my backup drive, so I have need help with downloading the software to use my printer and also get to use wireless.   I don't know what happened, but the fax for this printer is listed, but not the printer itself.   Help, please!

    Click here to download the software for your printer:

    http://h10025.www1.HP.com/ewfrf/wc/softwareCategory?product=3204785 & LC = on & CC = US & DLC = in & lang = to & CC = US

    has chosen the appropriate operating system that corresponds to your computer and download the full software features.

Maybe you are looking for