Count before and after to certain occurance.

I am trying to count the amount of units  studied before and after a certain Course was taken.
So ID 1 did PREP in 2013 in the first period and has and also had done a unit in 2009 so reult be before prerp count 1
ID 2 did PREP in 2012 first period and also an OTHER course in the same period as well as a OTHER in period 2. So when a PREP course appear in the same period and year as an OTHER course I would like it to count it as AFTER Prep.(see below(so when equal count as after PREP))
ID 3 has done one unit before before PREP which is in 2011 and 2 Units after the first PREP course.
I attepted this with not in and in statments basic I know but to no luck.
Any help is greatly appreciated.
Thanks
CREATE TABLE DAN_DIRK_2
(ID     VARCHAR2(8),
YEAR    VARCHAR2(8),
PERIOD VARCHAR2(8),
COURSE VARCHAR2(12),
UNIT VARCHAR2(12));
INSERT INTO DAN_DIRK_2 (ID, YEAR,PERIOD,COURSE,UNIT) VALUES (1,'2013','SP1','PREP','PLI');
INSERT INTO DAN_DIRK_2 (ID, YEAR,PERIOD,COURSE,UNIT) VALUES (1,'2009','SP4','OTHER','DRI');
INSERT INTO DAN_DIRK_2 (ID, YEAR,PERIOD,COURSE,UNIT) VALUES (2,'2012','SP1','OTHER','FER');
INSERT INTO DAN_DIRK_2 (ID, YEAR,PERIOD,COURSE,UNIT) VALUES (2,'2012','SP2','OTHER','AQW');
INSERT INTO DAN_DIRK_2 (ID, YEAR,PERIOD,COURSE,UNIT) VALUES (2,'2012','SP1','PREP','FGV');
INSERT INTO DAN_DIRK_2 (ID, YEAR,PERIOD,COURSE,UNIT) VALUES (3,'2011','SP1','OTHER','GVW');
INSERT INTO DAN_DIRK_2 (ID, YEAR,PERIOD,COURSE,UNIT) VALUES (3,'2012','SP2','PREP','FER');
INSERT INTO DAN_DIRK_2 (ID, YEAR,PERIOD,COURSE,UNIT) VALUES (3,'2013','SP1','OTHER','FSW');
INSERT INTO DAN_DIRK_2 (ID, YEAR,PERIOD,COURSE,UNIT) VALUES (3,'2013','SP1','PREP','FGH');
GIVES:
ID
YEAR
PERIOD
COURSE
UNIT
1
2013
SP1
PREP
PLI
1
2009
SP4
OTHER
DRI
2
2012
SP1
OTHER
FER
2
2012
SP2
OTHER
AQW
2
2012
SP1
PREP
FGV
3
2011
SP1
OTHER
GVW
3
2012
SP2
PREP
FFR
3
2013
SP1
OTHER
FSW
3
2013
SP1
PREP
FGH
WANT:
ID
BEFORE
AFTER
1
1
0
2
0
2
3
1
2

Chloe_19 wrote:
Get an Error
ORA-32033: unsupported column aliasing
32033. 00000 -  "unsupported column aliasing"
*Cause:    column aliasing in WITH clause is not supported yet
*Action:   specify aliasing in defintion subquery and retry
Error at Line: 1 Column: 8
Am using version:
Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bi
because you use 10g, try this :
WITH tt AS (
select 1 ID,  2013 YR,  'SP1' PERIOD,  'PREP' COURSE,  'PLI' UNIT from dual union all
select 1,  2009,  'SP4',  'OTHER',  'DRI' from dual union all
select 2,  2012,  'SP1',  'OTHER',  'FER' from dual union all
select 2,  2012,  'SP2',  'OTHER',  'AQW' from dual union all
select 2,  2012,  'SP1',  'PREP',  'FGV' from dual union all
select 3,  2011,  'SP1',  'OTHER',  'GVW' from dual union all
select 3,  2012,  'SP2',  'PREP',  'FFR' from dual union all
select 3,  2013,  'SP1',  'OTHER',  'FSW' from dual union all
select 3,  2013,  'SP1',  'PREP',  'FGH' from dual ),
tt2 AS (
SELECT t.ID,
       min(t.YR) minyr, 
       min(replace(t.PERIOD,'SP','')) KEEP(DENSE_RANK FIRST ORDER BY T.YR) minpr
FROM  tt t
WHERE t.COURSE = 'PREP'
GROUP BY t.ID)
    SELECT ID,
           NVL(COUNT(BEF),0) BEFORE,
           NVL(COUNT(AFT),0) AFTER
           FROM(          
                    SELECT t1.ID,
                           (CASE WHEN t1.YR = t2.minyr AND replace(t1.PERIOD,'SP','')= t2.minpr AND t1.course='PREP' THEN NULL
                                 WHEN t1.YR = t2.minyr AND replace(t1.PERIOD,'SP','')= t2.minpr AND t1.course!='PREP' THEN NULL
                                 WHEN t1.YR < t2.minyr THEN -1
                                 WHEN t1.YR = t2.minyr AND replace(t1.PERIOD,'SP','')<= t2.minpr THEN -1
                             END) BEF,
                           (CASE WHEN t1.YR = t2.minyr AND replace(t1.PERIOD,'SP','')= t2.minpr AND t1.course='PREP' THEN NULL
                                 WHEN t1.YR = t2.minyr AND replace(t1.PERIOD,'SP','')= t2.minpr AND t1.course!='PREP' THEN 1
                                 WHEN t1.YR > t2.minyr THEN 1
                                 WHEN t1.YR = t2.minyr AND replace(t1.PERIOD,'SP','')>= t2.minpr THEN 1
                             END) AFT        
                     FROM tt t1
                    LEFT JOIN tt2 t2
                           ON t2.id = t1.id
    GROUP BY ID
    ORDER BY 1

Similar Messages

  • I'm unable to update my apps or download new apps to my Iphone. When I try I get a message "An unknown error has occurred".  It was happening before and after the last OS upgrade.  I've done a hard reboot with no effect.  Any suggestions???

    I'm unable to update my apps or download new apps to my Iphone. When I try I get a message "An unknown error has occurred".  It was happening before and after the last OS upgrade.  I've done a hard reboot with no effect.  Any suggestions???

    Have either of you had any luck with this issue.  It began happening to me today when I was trying to purchase music on iTunes.  I have purchased music and games in the past and have had no problem.  Any help would be appreciated.

  • Printing count of records before and after a command in a PL/SQL

    Hi: I have the following PL/SQL script
    declare
    l_sysdate date := sysdate;
    begin
    INSERT INTO a_mnsnotes SELECT * from mnsnotes where TKT_NBR in (
    select TKT_NBR from mnsinterface where MNS_STATUS=5 and CLOSED_DATE < (((l_sysdate-30) - to_date('01-JAN-1970','DD-MON-YYYY')) * 86400));
    delete from mnsnotes Where
    TKT_NBR in (select TKT_NBR from mnsinterface where MNS_STATUS=5 and CLOSED_DATE < (((l_sysdate-30) - to_date('01-JAN-1970','DD-MON-YYYY')) * 86400));
    commit;
    end;
    /I want to assign the number of records in the two table (a_mnsnotes and mnsnotes) to two variables so I can print in one line the numberof records for both tables before and after the procedure. How do I set the output of a sql command (select count(*) from mnsnotes) to a variable within the pl/sql?
    Thanks
    Ravi

    Also I'm guessing this:
    (((l_sysdate-30) - to_date('01-JAN-1970','DD-MON-YYYY')) * 86400);
    is because closed_date is stored as number of seconds since 01-JAN-1970, which should be turned into a date ASAP. Never store dates as anything other than DATE datatype (or maybe TIMESTAMP in more recent versions).
    It's not right, as sysdate will have a time component so if this code is run at 8am it will give different results to if it is run at 9pm. And not all months have 30 days.
    Have you considered TRUNC(add_months(sysdate,-1)) instead of l_sysdate-30 ?

  • Counting values before and after an interval

    I posted this awhile back but I'm back to trying to solve the problem (didn't solve it), so apologies if that is bad etiquette! This forum has been so helpful though I thought I would try again:
    design/methodology question
    The short of it is I have a table with calls that happened, all have a start and end time.
    I want to take 1 min intervals over a given hour (say, 12-1pm) and (the part I need help with) count all calls that happened before and after that interval.
    That is to say, all calls that were 'active' during that interval (consider if I call started at 11:59 am and ended at 12:05) would need to be counted for the 12:00, 12:01, 12:02, 12:03, 12:04, and 12:05 intervals.
    So what I'm trying to construct is an SQL query that uses a 'variable' in this case (I think).
    That is, so I can saw 'where start_time < min_interval' and where 'end_time is > min_interval' and count those records to my total.
    But I'm at a loss on how to pull this off!
    Thoughts?

    If a call began at 15:01:01 and ended at 15:01:59, was it active at 15:01? Was it active at 15:02? Both? Neither?Is only active at 15:01.
    Do you need 4 separate numbers, or do you need 1 number, which is the total of these 4?I need 1 number which is the math formula (using the number above)
    1 + 2 - 3 + 4
    Oracle version is 10.2.0.4.0
    I will work on learning the CREATE TABLE and INSERT statements, as well as, the WITH one.
    Is the point of submitting those to understand the data set being worked with?
    Here is my attempt...
    Consider the following:
    WITH     my_call     AS
         SELECT     1 AS call_id     ,     to_date('10-may-2011 12:00:17'
                             , 'dd-mon-yyyy hh24:mi:ss'
                             ) AS start_time      ,      to_date('10-may-2011 12:01:23'
                                                 , 'dd-mon-yyyy hh24:mi:ss'
                                                 ) AS end_time  FROM dual     UNION ALL
         SELECT     2           ,      to_date('10-may-2011 12:00:45'
                             , 'dd-mon-yyyy hh24:mi:ss'
                             )                 ,      to_date('10-may-2011 12:03:55'
                                                 , 'dd-mon-yyyy hh24:mi:ss'
                                                 )           FROM dual     UNION ALL
         SELECT     3          ,      to_date('10-may-2011 12:01:01'
                             , 'dd-mon-yyyy hh24:mi:ss'
                             )                 ,      to_date('10-may-2011 12:01:59'
                                                 , 'dd-mon-yyyy hh24:mi:ss'
                                                 )           FROM dual     UNION ALL
         SELECT     4          ,      to_date('10-may-2011 12:01:45'
                             , 'dd-mon-yyyy hh24:mi:ss'
                             )                 ,      to_date('10-may-2011 12:04:43'
                                                 , 'dd-mon-yyyy hh24:mi:ss'
                                                 )           FROM dual     UNION ALL
         SELECT     5           ,      to_date('10-may-2011 12:02:33'
                             , 'dd-mon-yyyy hh24:mi:ss'
                             )                 ,      to_date('10-may-2011 12:08:05'
                                                 , 'dd-mon-yyyy hh24:mi:ss'
                                                 )           FROM dual     UNION ALL
         SELECT     6           ,      to_date('10-may-2011 12:02:35'
                             , 'dd-mon-yyyy hh24:mi:ss'
                             )                ,      to_date('10-may-2011 12:04:56'
                                                 , 'dd-mon-yyyy hh24:mi:ss'
                                                 )           FROM dual     UNION ALL
         SELECT     7           ,      to_date('10-may-2011 12:03:02'
                             , 'dd-mon-yyyy hh24:mi:ss'
                             )                 ,      to_date('10-may-2011 12:05:13'
                                                 , 'dd-mon-yyyy hh24:mi:ss'
                                                 )           FROM dual     UNION ALL
         SELECT     8           ,      to_date('10-may-2011 12:03:41'
                             , 'dd-mon-yyyy hh24:mi:ss'
                             )                 ,      to_date('10-may-2011 12:04:37'
                                                 , 'dd-mon-yyyy hh24:mi:ss'
                                                 )           FROM dual
    )then, to solve #1 (calls that started in each minute):
    select
      to_char(new_time(trunc(start_time, 'hh24') + (trunc(to_char(start_time, 'mi')/1)*1)/24/60, 'GMT', 'CDT'), 'hh24:mi') as "Start Time",
      count(*) as "Start Time Count"
    from
      my_call
    group by
      to_char(new_time(trunc(start_time, 'hh24') + (trunc(to_char(start_time, 'mi')/1)*1)/24/60, 'GMT', 'CDT'), 'hh24:mi')
    order by
      to_char(new_time(trunc(start_time, 'hh24') + (trunc(to_char(start_time, 'mi')/1)*1)/24/60, 'GMT', 'CDT'), 'hh24:mi');would yield the following output (consider I am converting to GMT in this example):
    07:00     2
    07:01     2
    07:02     2
    07:03     2To solve 2, calls with end_time, I do the following:
    select
      to_char(new_time(trunc(end_time, 'hh24') + (trunc(to_char(end_time, 'mi')/1)*1)/24/60, 'GMT', 'CDT'), 'hh24:mi') as "End Time",
      count(*) as "End Time Count"
    from
      my_call
    GROUP BY to_char(new_time(trunc(end_time, 'hh24') + (trunc(to_char(end_time, 'mi')/1)*1)/24/60, 'GMT', 'CDT'), 'hh24:mi')
    order by
      to_char(new_time(trunc(end_time, 'hh24') + (trunc(to_char(end_time, 'mi')/1)*1)/24/60, 'GMT', 'CDT'), 'hh24:mi');which gives us:
    07:01     2
    07:03     1
    07:04     3
    07:05     1
    07:08     1# 3 (calls that started and ended in the same minute) is:
    select
      to_char(new_time(trunc(end_time, 'hh24') + (trunc(to_char(end_time, 'mi')/1)*1)/24/60, 'GMT', 'CDT'), 'hh24:mi') as "End Time",
      count(*) as "End Time Count"
    from
      my_call
    where
    to_char(new_time(trunc(start_time, 'hh24') + (trunc(to_char(start_time, 'mi')/1)*1)/24/60, 'GMT', 'CDT'), 'hh24:mi') = to_char(new_time(trunc(end_time, 'hh24') + (trunc(to_char(end_time, 'mi')/1)*1)/24/60, 'GMT', 'CDT'), 'hh24:mi')
    GROUP BY to_char(new_time(trunc(end_time, 'hh24') + (trunc(to_char(end_time, 'mi')/1)*1)/24/60, 'GMT', 'CDT'), 'hh24:mi')
    order by
      to_char(new_time(trunc(end_time, 'hh24') + (trunc(to_char(end_time, 'mi')/1)*1)/24/60, 'GMT', 'CDT'), 'hh24:mi');which gives us:
    07:01     1Now, given the small data set (which, as a side note, I can see a little, now, why the WITH statement here is useful and important!) we know the final output should be
    (EXPECTED RESULT WHEN WE ARE DONE):
    07:00     2
    07:01     4
    07:02     4
    07:03     6
    07:04     5
    07:05     2
    07:06     1
    07:07     1
    07:08     1So what I am posting this forum is help in calculating #4 - calls that had a start time (trunc'd to the minute) before the minute interval and an end_time after.
    Something like this:
    select
      to_char(new_time(trunc(end_time, 'hh24') + (trunc(to_char(end_time, 'mi')/1)*1)/24/60, 'GMT', 'CDT'), 'hh24:mi') as "End Time",
      count(*) as "End Time Count"
    from
      my_call
    where
    to_char(new_time(trunc(start_time, 'hh24') + (trunc(to_char(start_time, 'mi')/1)*1)/24/60, 'GMT', 'CDT'), 'hh24:mi') < minute_interval and
    to_char(new_time(trunc(end_time, 'hh24') + (trunc(to_char(end_time, 'mi')/1)*1)/24/60, 'GMT', 'CDT'), 'hh24:mi') > minute_interval
    GROUP BY to_char(new_time(trunc(end_time, 'hh24') + (trunc(to_char(end_time, 'mi')/1)*1)/24/60, 'GMT', 'CDT'), 'hh24:mi')
    order by
      to_char(new_time(trunc(end_time, 'hh24') + (trunc(to_char(end_time, 'mi')/1)*1)/24/60, 'GMT', 'CDT'), 'hh24:mi');where the expected output would be:
    07:00     0
    07:01     1
    07:02     2
    07:03     3
    07:04     2
    07:05     1
    07:06     1
    07:07     1
    07:08     0thoughts on accomplishing this?

  • Everyone:  This time repair your permissions before and after 10.4.8 update

    Hello All,
    Just a reminder for all those who are updating to OS 10.4.8.
    While many people do ignore all the recommendations that we provide and still come through fine, please do consider observing the following to minimize your problems.
    To insure the best chance of success, please consider downloading the Combo Updater for your computer instead of using Software update.
    For PowerPC Mac's, this would be:
    http://www.apple.com/support/downloads/macosx1048comboupdateppc.html
    For Intel Macs, this would be:
    http://www.apple.com/support/downloads/macosx1048comboupdateintel.html
    The benefit of using the Combo Updater, is that it replaces all system files that have been changed since the last major release (in this case since 10.4.0).
    So, if you have any system files that have become corrupted, the Combo Updater will very likely over-write those, and spare you the headaches that come from updating an operating system that has problems that just haven't come to the surface yet.
    In many cases, you can have problems that have not come to the surface, and the "Delta" or Software update method will bring them out to bite you. The reason for this, is because the Delta / Software Update version only changes files that have changed since 10.4.7. And, it works more in a "patch" fashion. So, if there is a problem in one of the files being patched, then the update will cause you some major headaches.
    Going with the larger "Combo" update over-writes almost all the System files with clean versions instead of just making patches. So, it is frequently much more successful.
    Now, with that said, before you update, you should make sure your permissions are all set properly. If your permissions are wrong, then your update will likely have trouble.
    So, go into "Disk Utility" in the Applications --> Utilities folder and repair your permissions.
    Start by selecting your hard drive on the left window of Disk Utility. Then, go down and click on the "Repair Permissions" button. Once it's completed, then exit Disk Utility.
    Now, it is also extremely important to make sure all running programs are closed before you install any system update. So, go ahead and restart your computer.
    Restarting will make sure that all programs are closed, and that nothing weird is stuck in memory before you install.
    If you have anti-virus programs running, then disable or deactivate them first (you don't want them interpreting this as unauthorized modification or it might prevent certain files from being updated).
    Now, with your computer freshly restarted, install the Combo updater you downloaded.
    When prompted, click on the "Restart" button when prompted.
    Now, the computer will startup, but sit at the spinning wheel for several minutes. It will eventually restart again on it's own. And, finally, it will start-up all the way and you'll be back at your desktop.
    Now, immediately go back to Disk Utility and repair permissions as you did in the previous step. You will likely see several permissions that have been repaired. In my case, I had dozens of CoreAudio, Widgets, and other permissions that needed repair. Once permissions have been repaired, go ahead and restart one last time. This makes sure that everything is set and then cleaned-up.
    Once it reboots, begin using it and enjoy.
    Now, this may sound like a lot. But, it really is simple. It just reads like a lot of stuff.
    And, of course, you are free to ignore this and just install it however you like. Many people have their own ideas here. And, many people say you don't have to do anything to prepare. But, for those that have had huge problems in the past, these extra steps will usually save you the major headaches that tons of people inevitably have with every new update.
    Anyway, I hope this helps to save at least a few of you any problems. If you don't agree with the ideas above, just ignore it and do as you like.
    But, if you want a little extra piece-of-mind and a better chance at success, then please consider exercising this extra caution.
    And, for the record, I have updated my machines to 10.4.8 (within minutes of the update being available) and it is working perfectly smooth on my systems.
    I hope you find this helpful.

    mhunter, thanks and good that you take the time and effort again to remind everyone that it does take an effort to do a major OS update, to ensure maximum stability.
    So far my 10.4.8 Update is a-okay, and I have had many trouble-free updates since installing 10.4
    I too practice rigourously and "religiously" before and after an OS or Security Update, but I normally use Software Update, equally successful:
    1. Before Startup, UNPLUG all external devices, left only keyboard, mouse and internet connection, unless they are all wireless.
    2. Startup, disable NAV if any, Repair Disk Permission. Restart again, Repair Permission again.
    3. Do Software Update
    4. Restart, Repair Permission
    5. Shutdown, plug everything back
    6. Startup Mac, use Mac
    So far these steps have been keeping all my macs both at home and at work very very stable and healthy.
    Maybe, just maybe if everyone here, all mac users were to follow these steps, yes they can be a hassle, yes they can take up some time, but then there will be less less complains and "blasts" at Apple, just because perhaps themselves have been too careless or negligance in performing updates.
    Cheers

  • How to create a loop to run total of records for before and after unconstant date

    Post Author: Ann2
    CA Forum: Formula
    Here is the data sample:
    ID period code date
    1  00  I    01/01/1999
    1 00   Z   01/02/1999
    1 00  G   12/05/1999
    1 00  M   01/01/2000
    There are many students with many periods and many codes. I need to save a date when code = 'G' and count separateley records per student/period 2 times - before and equal that date and after that date, so in the end for period 00 I will have 2 values: 3 (before) and 1(after).
    There are periods from 00 to 08. I am counting students abscencies before and after warning letter was sent (code G).
    The result data should look : 00 01 02 03 04 05 06  07  08              00 01 02 03 04 05 06  07  08     Total
                                                3  0   0   0   0   0   0   0   0                 1 0    0   0   0   0   0   0   0        4
    Please help me.
    Thank you.
    Ann2

    Post Author: Ann2
    CA Forum: Formula
    Thank you for your answer, but I do care about the date the 'G' happened, because I need to reset count.
    The logic behind is this:if a student absent for more than 8 times per period - the letter will be sent out to the parents , that will be code 'G' with period '-1' (it may happen that there will never be code 'G' , but I need to track all absencies). Once the letter is sent, the count starts over (the count starts over the next day after code 'G'). The absencies which happened before or the date the letter sent should count toward 'previous'  abscenices, all other - absenices after the letter.
    So basically I need total per period and total per period before or the day with code 'G'.  Running total with reset with formula code = 'G' does not work.
    I created a formula field which has global date (when code 'G' happenned) and it says if globaldate >= periodDate then date (1900,01,01) else (2100,01,01) and that formula is ok, but I can not use it in running total or can not create group on it and insert total.
    Please help me with this. Thank you.
    Ann2

  • Before and After insert or update rowcount

    Hi
    I have several extract objects procs which are calling various build objects procs which in turn are inserting or updating the tables...now when i run these objects sometimes i get no errors and everything seems to be running perfectly but the tables do not get updated ? now what i am trying to achieve here is get some kind of summary where i can see the before and after rowcount..for that i have created a table of every extract object proc and another table with the coressponding tables being updated by tht proc...can anyone pls tell me how should i look into these procs and how do i get the rowcount for a particular table before and after the procedure was run ?
    Thanks a lot in advance

    Hi,
    On which version of RDBMS are you working , because if you're on 10g then just enable auditing or even FGA on the tables were you want to see the changes,
    Then query the DBA-AUDIT (not sure of the name anymore) view.
    If not then create a audit package yourself.
    something like
    create or replace package pck$audit as
    procedure prc$check_tablecount(p_tablename IN VARCHAR2, p_status IN VARCHAR2);
    end;
    create or replace package body pck$audit as
    procedure prc$check_tablecount(p_tablename IN VARCHAR2,p_status IN VARCHAR2) IS
    sqlstr VARCHAR2(100);
    v_count NUMBER;
    begin
    sqlstr := 'SELECT COUNT(*) FROM '||p_tablename;
    EXECUTE IMMEDIATE sqlstr into v_count; --could by 'using v_count' check syntax for this
    INSERT INTO audit_table(table_name,total_count,status,time_stamp)
    VALUES(p_tablename,v_count,p_status,SYSTIMESTAMP);
    COMMIT;
    end;
    end;
    you can elaborate on this creating additional procedure checking differences in total_count on same table at same time.
    Now call this procedure before starting your insert-delete- on your table make sure you put the parameters correct eg p_status => 'begin procedure'
    and call it again after your commit in your procedure.
    Hope this helps you out
    Erwin

  • Xl reporter shows different result before and after Period-End Closing.

    Hi SAP experts,
    We have an issue with XL Reporter. When we ran Period-End closing and ran XL - PL Period & YTD (with the same parameters), XLR shows nil in the Actual YTD column and the monthly figures are out by a big difference (example pre-rollover it was $110K after rollover it shows negative $12M).
    This happens on 2 different clients running 2 different SAP B1 (2007A PL 42 and 8.8 PL 13) on the same XL Reporter which is possibly the default XL report that comes with the installation.
    I don't have any idea why the XLR is running 2 different figures altogether when running the same XLR using the same parameter before and after rolling the year over. The default SAP B1 P&L report stays the same before and after the rollover, I would have expect that the same would happen with the XLR.
    Please advise.
    Regards,
    Didy Arfiono

    Hi Julie,
    Thanks for the reply. I'm not entirely sure what you mean by excluding a certain transaction for closing entries as this would defeat the whole purpose of PEC which as you stated was to transfer P&L balances to retained earnings account to be carried forward.
    I've check at some guides including one from Orchestra Team (http://www.youtube.com/watch?v=e4tUo774eXg) and so far the process that I've done is exactly what it is.
    Regards,
    Didy

  • Before and after comparison in PSE 6

    Can someone tell me how to do a comparison of an edited version to the original in PSE 6 for Mac? It's easy to do in quick edit but what about when editing in full edit?
    Thanks!

    I handle this in another way. I routinely duplicate the background layer, shut off the visibility of the background layer, and work on the background copy layer. Certain functions of the program don't work on the background layer anyway, and this obviates this constraint. Not everyone subscribes to this work flow, but that is ok,
    I crop and establish resolution at this stage, as that pertains to all layers. However, I apply adjustment layers and other enhancements to the background copy layer.
    In order to get  before and after visualization, one can:
    A. Shut off visibility of all the newly generated layers individually, and look at the original background layer
    B. Merge all visible layers, and toggle between this package and the background layer. Note that I do not flatten at this stage.
    C. Create stamp visible layer at the top of the stack (CRTL+SHIFT+ALT+E) and toggle using this.

  • PSC 1210 page feed before and after printing

    My PSC 1210 has been working fine for years but it has just recently started feeding a blank page before and after printing. That wouldn't be a problem except that the blank pages are not fully ejected, this means that I have to grab the first blank page, as it comes through the printer, and pull it out, otherwise it gets drawn back in causing a paper jam when the actual print job starts. Once this blank page has been removed the print job continues perfectly.
    This occurs when printing documents, copying using the scanner, and printing a test page.
    I have removed and reinstalled the printer driver/software and performed a partial reset on the printer, neither fixed the problem.

    I see you mention that the issue also happens when you are copying, that means that this issue is not related to your printer software. So that's good to know!
    Now, since this is not a software issue, this must then be related to your hardware. Is this printer plugged into a wall outlet directly or is it plugged into a surge protector? To be sure that the printer gets all the power it needs make sure that it is plugged directly into a wall outlet.
    First things first, I would recommend unplugging the printer for about 30 seconds from both the back of the unit and from the wall outlet, and then plugging it back in. Try making a copy or print and see if the issue persists.
    You can also try cleaning the paper feed rollers in the printer, here is a document that can show you where all of those are located and how to clean them.
    http://goo.gl/glh8v
    Let me know if any of this helps resolve the issue!

  • Before and After in Elements Editor

    In the elements editor I choose to display both the before and after on the screen simultaneously. Each change to the photo changes both photos-rendering the before photo useless. Certainly that is not the intention.
    HOW CAN I RETAIN THE "BEFORE" AND CHANGE THE "AFTER"?

    John,
    I assume you're talking about the "New View" feature. This isn't intended
    to give a before/after view. It creates another window showing the exact
    same image. The idea is that you can zoom in tight on a small area and make
    corrections while seeing the overall effect at the same time in another
    window viewed at a different magnification. You could also use it to show
    two different areas of the same picture side by side for comparison while
    working.
    If you want a before and after, you can use the "duplicate image" feature to
    make a copy of the file you have open. You could then place them side by
    side for comparison.
    Another way to to it is to create a blank layer at the top of the layer
    stack and then press ctrl-alt-shift-e to merge all the visible layers and
    place the composite in the new layer. Then you can toggle the layer off.
    Work on the image as you wish. When you want to see the "before", toggle
    the merged layer on.
    I like to work with separate layers for each step. For example, if cloning,
    I create a new layer and clone to the new layer. That way, I can toggle the
    layer I'm working with on and off to see the before and after.
    I've given you three ways to see a before and after. I hope one of them
    will prove useful to you.
    Bob

  • I am trying to delete pages I have crated in numbers, but can only see them in print preview. Without print preview I do not see them. How can I delete these pages, but keep others before and after?

    I am trying to delete pages I have crated in numbers, but can only see them in print preview. Without print preview I do not see them. How can I delete these pages, but keep others before and after?

    Hi Crushed,
    Numbers doesn't have pages. It has a canvas that holds objects such as tables and charts.
    Drag the objects from the bottom of the canvas onto the white space above. That will reduce the number of "pages" (sheets of paper) that will print.
    Regards,
    Ian.

  • My ipod touch is stuck on the apple logo and after a while a white screen comes up and it restarts and the same thing all over agan. this happened to me before and after a while it turns on but why does it keep on doing this?

    my ipod touch is stuck on the apple logo and after a while a white screen comes up and it restarts and the same thing all over agan. this happened to me before and after a while it turns on but why does it keep on doing this?

    Try connecting the iPod Touch to your computer and restore it.  http://support.apple.com/kb/HT1414

  • How do I add a before and after transition to a standalone clip in the second or other than primary stack?

    New to FCPX on a project this weekend. I have gotten reasonably comfortable with the basic features but one thing that I CANNOT figure out, is how (what used to be) selecting a track in the timeline to activate it to apply a transition.  I need to select a video clip which stands alone in the stack which is positioned above the primary track and add a blend transition before and after the clip. I have set the opacity to blend with the images in the primary track below but the beginning and end of the clip in the second stack do not fall at the transition points in the lower track which should not matter anyway.  I can’t find it in Help or the third party tutorials that I purchased and completed.  Thanks for your help!

    Tom gave you the answer.  As a follow-on you can then use the Cross Dissolve transition on your newly converted connected clip.  This transition will allow it to dissolve smoothly into the video below it.  Note that the Fade to Black transition will take both that clip and the video below it to black which would probably be undesirable. Use Cross Dissolve instead.  Best wishes.
    stephen

  • GREP: How can I place a (for example) "*" before and after bold text with GREP?

    Hi there.
    I have a string of text as such:
    I want to use GREP to insert a "*" (asterisk) before and after each bold part. Can I do that with GREP?
    (if asterisk is a problem, I can use a different character)
    Any help would be appreciated.

    Hi Schmaltzkopf,
    try this:
    Have fun

Maybe you are looking for

  • MAC OS 10.7 Trying to Delete from TRASH Time Machine FOLDER (file)

    Trying to delete time machine Folder(files) from TRASH. even used secure option, goes through ok. but will not delete from TRASH. files delete from Time Machine Drive ok, deletion gives you more space on TM DRIVE Time Machine runs ok, How to Delete t

  • Regarding mcsi report

    hi friends In MCSI report, we select S907 info structure in the combination of Dist channel, Divi, Sales office,Sold to party and period I Hav given dc-10,div-10, soldtoparty-50301and period 1.9.08 to 30.9.08 then screen displays with following detai

  • Purchase order Release

    hi   Using the Tcode ME21N i have created a purchase order now i have to release the purchase order , what is the T code and what are the steps to release a purchase in details pls rakesh

  • Rename a group of photos.

    Does anybody know a simple way to rename a batch of photos in 'Photos'? I want to rename 50+ photos with one name + sequential of numbers e.g. Garden 001.....Garden 053, but there doesn't seem to be a simple way. I used to do the change in Aperture,

  • Writing to same file

    So I am trying to write the output of two different java class files to one txt file while the program runs.  The file name is determined before the program is ran, through the command prompt as arguments.  How can I get the second class file to edit