Adding buttons to several frames - is the best way to do it?

In CS5, I want to create a series of buttons which when clicked will be linked to other images in the same timeline. So a button will connect to the frame 5, it will connect to frame 10, it will connect at 15, etc. All buttons appear in the upper part of the stage on a layer, and I want them to appear on all frames so that the user can click in the back-and-forth to the different frames/screens.

1 is the best way to do this for just add buttons to frame 1 and add a keyframe to the last frame in the timeline, the frame of 15, while they are copied in all images between the two?

2 are there problems to do it this way?

Thank you!!!

Just have one image key frame 1 and extend to frame 15.  Don't need/want an another keyframe at frame 15.

Tags: Adobe Animate

Similar Questions

  • What is the best way to store my Canon MX922? I'm not going to use it for several months (6 +).

    I don't use my printer for many months.  What is the best way to keep?  Leave the ink cartridges in the printer?  Get out them?  Store cartridges almost nine in a bag made of plastic?

    Hi mmosher,

    If your PIXMA MX922 should not be used for an extended period of time, please put your PIXMA MX922 using the power button on the unit.  It will be a "cap" of the ink tanks, so they will be ready to use when you print with your PIXMA MX922 once again.  No further action is required.

  • What is the best way to get several updates fail to install

    I have 32 updates that have failed to install.  How is the best way to go back and get to install them?

    You receive errors related to updates?

    1. Open Windows Update by clicking the Start button, all programs and then click Windows Update.
    2. In the left pane, click view update history.
      http://Windows.Microsoft.com/en-us/Windows-Vista/see-which-Windows-updates-are-installed
    3. Find an update for Windows that has failed to install, and then double-click the update to view more information.
      Updates that have failed to install will display failed under status, next to the name of update.
    4. In the Windows Update dialog box, next to the details of the error, review the error code for the update has failed.
    5. Follow the links in the Windows Update dialog box under more information or help and Support to resolve the problem, then try to reinstall updates by using Windows Update in Control Panel or by mail with the error code and maybe someone may be able to help others.

    Windows update General troubleshooting

    Suggestions:

    How to reset the Windows Update settings?
    http://support.Microsoft.com/kb/971058

    Diagnose and automatically fix common problems with Windows Update
    http://support.Microsoft.com/mats/windows_update/

    Cannot install updates in Windows Vista, Windows 7, Windows Server 2008 and Windows Server 2008 R2
    http://support.Microsoft.com/kb/2509997

    Or try to install the updates in a clean boot state, and run Windows Update: http://support.microsoft.com/kb/929135

  • What is the best way to make a PDF file several Photoshop images, while maintaining editable layers?

    What is the best way to make a PDF file several Photoshop images, while retaining the layers in editable for later use mode? I tried to do in Acrobat, but it does not keep separate layers. I also tried to automate the PDF presentation in Photoshop, but it combines the layers as well. I need to enable layers from photoshop retain their ability to be edited.

    It is not possible at this time, Photoshop is not a page layout program and pdf is hardly a format suitable to hold several files psd layered or editable page layouts.

    Why would you do that anyway?

  • What is the best way to merge several projects with a project?

    Hi guys,.

    I want to merge 4 my project in a project.

    What is the best way to do it?

    Thank you

    Max

    Import some sequences of other projects via the media browser.

  • The best way to manage two GUI

    I have two classes using java swings. The first Panel is where all the calculations will be made and the result will appear in a JList (in the 1st Panel). After that, the next button will show a 2nd Panel where the JList of the 1st group results are transferred. I need a back button in the 2nd Panel to return to the Panel 1. After you click the back button, I need the previous results on the 1st Panel to always be there for extra change (add / change / delete data). If I changed something and click the next button again, I want the 2nd Panel show a set results to date from the 1st Panel.

    What is the best way to do it? I spent two days trying to apply this using the presentation of the card, but it does not work as I want. All the examples I found use only one category. Even if I break down for separate classes, I face problem where when I click the back button, all the data in the 1st Panel disappeared. I'm out of my mind right now. It would be great if anyone can share some ideas in this. Any suggestions are welcome.

    Yes. I already tried several times to break it down into categories before posting here again. I am new to Java, that's why I found quite difficult and decided to post my problem here after he tried for two days. In any case, I thought about it already. I share the codes so that anyone who has problems like me can be useful if not much.

    Presentation of the main card:

    import java.awt.CardLayout;
    
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import javax.swing.SwingUtilities;
    
    public class CardCard {
      private static final String FIRST_PANEL = "firstPanel";
      public static JPanel mainPanel;
      private JFrame frame;
      public static CardPanel_1 cp1 = null;
      public static final CardLayout cardLayout = new CardLayout();
    
      public CardCard (){
      frame = new JFrame("Test");
      frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
      frame.setLocationByPlatform(true);
      mainPanel = new JPanel(cardLayout);
      cp1 = new CardPanel_1();
      mainPanel.add(cp1, FIRST_PANEL);
      frame.getContentPane().add(mainPanel);
      frame.pack();
      frame.setVisible(true);
      }
    
      public static void main(String... args) {
      SwingUtilities.invokeLater(new Runnable()
      {
      public void run()
      {
      new CardCard();
      }
      });
      }
    
    }
    

    First card:

    import java.awt.FlowLayout;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.util.ArrayList;
    import java.util.List;
    import java.util.Observable;
    import java.util.Random;
    
    import javax.swing.JButton;
    import javax.swing.JPanel;
    import javax.swing.JTextField;
    
    public class CardPanel_1 extends JPanel {
      public static JTextField textField, textField3;
      private static final String SECOND_PANEL = "secondPanel";
      private CardPanel_2 observer;
      private JButton btnNext, btnRandom;
      private String show;
      public CardPanel_2 cp2 = null;
      private List numList;
      private String numResult;
    
      /**
      * Create the panel.
      */
      public CardPanel_1() {
      setLayout(new FlowLayout());
    
      textField = new JTextField();
      textField.setBounds(64, 5, 134, 28);
      add(textField);
      textField.setColumns(10);
    
      textField3 = new JTextField();
      textField3.setBounds(64, 5, 134, 28);
      add(textField3);
      textField3.setColumns(10);
    
      btnRandom = new JButton("Randomise");
      btnRandom.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent e) {
      String str = textField.getText();
      int num = Integer.parseInt(str);
      numList = new ArrayList();
      for (int i =0;i
    

    2nd map:

    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.util.Observable;
    import java.util.Observer;
    
    import javax.swing.JButton;
    import javax.swing.JPanel;
    import javax.swing.JTextField;
    
    public class CardPanel_2 extends JPanel implements Observer {
     private static JTextField textField2;
      private JButton btnBack;
     private static final String FIRST_PANEL = "firstPanel";
    
     /**
      * Create the panel.
      */
      public CardPanel_2() {
      System.out.println("PANEL 2");
      textField2 = new JTextField();
      add(textField2);
      textField2.setColumns(10);
      btnBack = new JButton("Back");
      btnBack.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent evt) {
      CardCard.cardLayout.show(CardCard.mainPanel, FIRST_PANEL);
      System.out.println("BACK");
      }
      });
      add(btnBack);
      }
    
      public void update(Observable o, Object arg) {
      System.out.println("Updated: " + CardCard.cp1.textField3.getText());
      textField2.setText(CardCard.cp1.textField3.getText());
      }
    }
    
  • What is the best way to collaborate on a project in logic at the same time?

    My brother and I collaborate on music, even though we live in different States.  We try to understand the best way to work on a project at the same time... not to live (although that would be awesome) rather by the project back repeatedly for multitracking.  Is there an effective way to send only the new audio files and a logical update file back instead of the entire project (which happens to be several gigs in size)?  It seems that there must be other people working together like this.  This seems particularly important when you mix when we are not adding a lot of new files, but making subtle adjustments to the mixture and arrangement.  All the tips are greatly appreciated.  Thank you!

    https://www.Gobbler.com/collaborationversioning/

  • Any transfer on a drive hard new - what is the best way?

    Here's a question simple and straightforward, I hope. I currently have two internal hard drives:

    • C (IDE): OS (Win7), programs
    • F (about three times larger than C, faster, SATA): for most of the multimedia stuff

    (And some external and a dvd burner, which should not be relevant to this question.)

    I ordered a new hard drive, which will take over old job of the F drive. Once I have install and F empty on it, I want to move everything that is currently on C for which is now F and the new C drive I start and run Windows from. (C would also get a new drive letter and would only be used for backup purposes).

    I much prefer this without having to reinstall Windows and all my other programs, and without investing in expensive software of type Ghost I would probably use only once every two years or more. I also prefer not to have to partition F, although I'll do it if necessary.

    What is the best way to do it?

    Windows 7 image and move it to the new hard drive

    The only way to avoid reinstalling programs is in the image of the player. Connect the new drive as a slave (if IDE), then partition the new drive, so it has two partitions (or more if you want) - the last partition being slightly larger, then the amount of data on your current hard drive. Also, make sure that the partition you are moving that Windows 7 is greater, then the current partition is.

    Make now a picture of your current hard drive with either programs below and save it to the last partition on your new drive. If you have the recovery of 100MB partition do not forget to include that. Then restore the image of the partition that you want Windows 7 installed-you put in place the same as long as your current drive, and you may need to remove/change the partitions that you have done.

    Both programs are offered free of charge:

    Reflect disk imaging:
    http://www.Macrium.com/reflectfree.asp

    Paragon Backup & Recovery Free Edition:
    http://www.Paragon-Software.com/home/DB-Express/download.html

    Remove the old hard drive and see if a new start, if it is not:

    Try to repair the Installation of Windows 7

    1. Insert the DVD of Windows 7 and restart your computer
    2 boot from the DVD.
    3. choose your language and click Next.
    4. click on repair your computer, select the operating system you want to repair.
    5. click on the link to repair list system in the System Recovery Options recovery tools.

    More information and a how to guide:
    http://pcsupport.about.com/od/toolsofthetrade/SS/Windows-7-startup-repair.htm

    If this does not solve it:

    1. Insert the DVD of Windows 7 and restart your computer
    2 boot from the DVD. If you are prompted, press any key to start Windows from the installation disc.
    3. choose your language and click Next.
    4. click on repair your computer, select the operating system you want to repair.
    5. Select command prompt and try the following commands (one command might work, or you may need to use several commands according to the exact problem):
     
    Bootrec /fixMBR
    Bootrec /fixBoot
    Bootrec /rebuildBCD

    Note: there is a space before the /.

    Space - increase free hard drive space

    Before taking the free picture of space hard drive if you want.
    The following procedure cleans the files associated with your user account. You can also use Disk Cleanup to clean all the files on your computer.

    1. click the button start, in the search box, type disk cleanup, then click Disk Cleanup.
    2. in the drives list, click the drive you want to clean, and then click OK.
    3. on the Disk Cleanup tab, select the types of files to delete.
    Note: To delete all Points except the most recent system restore - click on "Clean up System Files" and you will get another tab called more than Options. Now click More Options, and then click 'Clean up' under ' System Restore and shadow copies "and then confirm the deletion.
    4. click OK at the bottom of the window cleaning disc and in the message that appears, click on delete files.

    Reduce the amount of space allocated to system restore.

    1. start--> panel--> system and safety--> system
    2. then click on the "System Protection" link located at the top left.
    3. in "system properties? window, click the tab "System Protection".
    4 locate the 'Settings of Protection' box and select / click on the drive letter (usually c :))
    5. now, click the "Configure" button to change the settings to restore "disk space".
    6. move the slider to the left to reduce the amount of disk space, that System Protection can use.
    7. click "Apply" and then the "OK" button after setting the disk space.

    Questions about installing Windows 7?
    FAQ - Frequently Asked Questions from Installation Windows 7 & responses

  • What is the best way to store the RCS for an insert/update in this rec

    Oracle on Win 64 non-conteneur 12.1.0.2

    When a record in one table is inserted or updated, what would be the best way to store the RCS for this record in this folder.

    I thought of a line after trigger, but did not know if this trigger to store the current_scn would still fire that trigger again (recursive trigger).

    Someone at - he a good idea of what the best way is to do?  The devs don't want to store the pk and the SNA in yet another table...

    Yes, row_dependencies would be the best way to go.  But mgmt doesn't recreate all tables for this.

    3rd party applications retrieve data from tables (all data).  We are looking for a way for them to just pull what is new or updated updated since their last sweater.

    I suggest that you try again and give all OF THE REQUIREMENTS.

    You have rejected ANY answer given and he justified using 'hidden' on what knowledge management or the devs want or do not want to. Stop making us guess what are the requirements and constraints. If you want a real answer then tell us ALL the news.

    When a record in one table is inserted or updated, what would be the best way to store the RCS for this record in this folder.

    Solomon answered repeatedly. If you want to add a column to a table to store the then "best" SNA is to let the Oracle to do this for you automatically by using the DEPENDENCY LINE.

    As he says also re-create the table to add this clause will be MUCH MORE EFFECTIVE that everything THAT you can do it manually. It will be also more accurate because Oracle will fill the value ORA_ROWSCN with the SNA at the time the line was committed. You, as long as user, can't fill a column in function when a line is engaged since real VALIDATION belongs to a transaction, not the line or the trigger that you use.

    Yes - there are two drawbacks to this method:

    1. you need to re-create the table

    2. you cannot add an index to this "hidden" column

    The devs don't want to store the pk and the SNA in yet another table...

    Then? Who cares what the devs want to do? You want the BEST solution? Next, you will need to put aside personal preferences and determine what is the 'best' solution. Why it is important that certain dev wants to do this or not?

    OK, the problem of biz is now, 3rd party external users are an all-wheel drive large number of tables in the database via the API that we wrote.  That was obviously interrupted OLTP during the day.  To reduce to the minimum, we want for them just to extract data that has been inserted/updated since their last sweater.

    It is the definition of a "replica" DB Then why don't you consider a real replicated DB? You can use DataGuard and have replicated DB which is read only that can be used to generate reports. Oracle does ALL the work to keep ALL the tables in sync. You and your developers do NOTHING!

    We thought that store the RCS higher their last sweater would allow the API to extract only data with YVERT higher than their last data pull CHN.

    OK - except you keep rejecting solutions actually do. Ask you questions about the SNA stored in the same table, but then reject the solution that does this. And then you add your "devs" don't want to store the info in a new table either.

    Then your solutions must ONLY use the replication or Log Miner. The REDO logs have all changes, if you want to extract yourself. Replication (e.g., DataGuard) will use these logs for you to maintain a replicated database.

    We thought about it, but recreate all tables in production with ROWDEPENDENCIES as well as dealing with CF and other dependencies idea this was shot.

    Well you NEVER mentioned you "thought that" and rejected it. And you NEVER mentioned anything about FKs and other dependencies. What is FKs and other dependencies which prevents this working solution? Tell us! Give us ALL the information.

    Wouldn't a trigger AFTER LINE capture the commit YVERT?  Or is after really not after validation?

    No - a trigger has NOT one commit. A trigger runs as a step in a transaction. Validation applies to the entire transaction. Until you, or Oracle, issues a commit, there is NO "committed SNA" to be stored as ORA_ROWSCN.

    You can easily see that for yourself. Create a simple table with dependencies of the line and then update two different sessions.

    create the table emp_scn rowdependencies in select * from emp where rownum<>

    Select empno, emp_scn ora_rowscn

    Update emp_scn set work = 'b' where empno = 7499

    commit;

    The first SELECT statement will show you that each row has the same SNA.

    EMPNO, ORA_ROWSCN

    7369,70622201

    7499,70622201

    7521,70622201

    Now, do the update (but no commit), then SELECT it

    EMPNO, ORA_ROWSCN

    7369,70622201

    7499,

    7521,70622201

    Where is the value of 7499? This session will NOT see a value for the changed lines in the current transaction. Other sessions will still see the old value.

    Now do the validation, then SELECT

    EMPNO, ORA_ROWSCN

    7369,70622201

    7499,70622301

    7521,70622201

    7499 now has a new and different value than the other lines. It will not be this new value until the validation occurs.

    Yes, row_dependencies would be the best way to go.  But mgmt doesn't recreate all tables for this.

    Well, you got the answer you want. You ask the best way. Now, you say that you were told the best way. But now you don't like the answer.

    How is it our fault? Your question has been answered wasn't she?

    Here are the facts:

    1 oracle creates a history of changes - the REDO log files

    2. you can use Log Miner to extract these changes

    3. you can create your own change log by adding a log file of MV to your table.

    4. you can then write a custom code to use this MV log file to determine which rows to "reproduce".

    So far reject you all THE POSSIBLE solutions.

    Accept it or change the requirements to allow one of the solutions proposed to be used.

    Personally, if I HAD to use a customized solution, I would use a MV journal to record the ROWID of the lines that have changed (for tables ROWID cannot be changed). I would then extract the appropriate lines by pulling on the lines corresponding to these row ID.

    Even that has problems since a line can be changed several times and children lines can also be amended several times - these questions FK you mentioned.

    I suggest you read this entire thread on AskTom a dozen years ago. It addresses ALL these issues.

    https://asktom.Oracle.com/pls/Apex/f?p=100:11:0:P11_QUESTION_ID:16998677475837

    Then in your next reply on this topic give us a summary of where some things with your question and what help you further expect.

  • I want to rename and move files from a shoot 5 d. I would like to use the functionality of the increment to count, but since I have to get out of each file to the following file, it starts again at 1. What is the best way to do it?

    I want to rename and move files from a shoot 5 d on a new drive. I would like to use the functionality of the increment to count, but since I have to get out of each file to the following file, it starts again at 1. What is the best way to do it?

    HI -.

    As a prelude to 2014.0, we have added a feature allowing you to choose what number to start the increment of.  Look in the section ingest Rename dialog and change your preset. When you click the button, you should see the option "Custom Auto Increment". This will allow you to choose what number to start on.  We've also added a few newspapers to try to remember where let prelude last successfully interfere the operation by using this option. So, in theory, to remember the number for you. But if it isn't (maybe you want multiple kickoff ingested at the same time) you can always manually set the number to start with.

    Check that out and let me know how it works for you.

    Kind regards

    Michael

  • What is the best way to create a test of 'Perception of risk?

    Hi all

    I record a screen which is 10 seconds long. What I want to do is to create a Quiz in which they answer the question correctly and the score is reported to my LMS.

    The question is "click here WHEN you see the white rabbit on the screen.

    I don't want to click on the white rabbit. I want to click on a button or something to this effect which is not related to the video. But the White Rabbit appears after 7 seconds and lasts only 1 second.

    Otherwise, I can split the video in 10 pictures. If the user clicks on the Executive 1,2,3,4,5,6,8,9 or 10 then they get the wrong answer and we go to the next question. If they click over 7, then it is a good answer.

    Please can someone tell me the best way to make this request? I have been responsible for creating about 100 questions similar to this one so facilitated development is essential for me!

    Thanks in advance.

    ADI

    Welcome to the forum.

    I assume that you saved it as a complete movement?

    He did not go full out, but it might be an idea:

    • bring a drawing object (rectangle or polygon) on the blade with a duration for the rest of the slide
    • Add a click box, score, in addition to this oppose but it time to be there for the duration of the appearance of "white rabbit." be sure to not have suspended

    If the user clicks on the "drawing" when the click box is not there, nothing will be added to the score. When you click on it during the short life of the click box, the score will be added.

    Lilybiri

  • What is the best way to create a bookmark for a user to return?

    Hello to all... hello again Steve... I'm back with another question - what is the best way to set up a bookmark system so return users can pick up where they left off in a lesson of AW? I tried the usual internet research, always do, but a few samples and answers I found were AW5, not a lot of help...

    I have a dozen or so cards attached to my frame, I would like a user to return to the last card that he read before the close. (My AW communicates very well with database Access, so if passing a variable to access and back to AW when begins the lesson is on track, let me know...) If the answer here is too complicated, perhaps pushing me in the right direction and I'll me dive in.

    Thanks in advance to all those who have some tips, I really appreciate it!

    Terry

    Try this overview, see if it helps...

    Enter a reference to the map as you enter, then save to the database when you exit.

    You want something that will give you the equivalent of a page number - if you have 7 cards hung the setting, and the user is in the 6th plan when it stops, you want to save the number 6.

    There are dozens of ways to do it, but probably the easiest way is just to attach a calc to each card that has this code

    (I do not have Authorwar very convenient to check the syntax, then you should check out!)

    BookMarkPage = ChildIDtoNum (IconParent (IconID), IconID)<-- tells="" authorware="" to="" return="" the="" "page="" number"="" of="" the="" current="">

    Save BookMarkPage in your Access database to the exit.

    In return, read the bookmark in BookMarkPage, ask the user if he wants to go back to the bookmark. If so, use a calculated navigation that uses

    ChildNumToID (@the of your frame name or its ID, BookMarkPage)

    Note that you could argue something similar by recording the your card, the IconTitle or IconID but these two can break if never update you your file by adding or removing pages, renaming etc. With this method, all you need is a simple page County check that makes sure you don't try to nav for a page number that does not exist (use IconNumChildren).

    Steve

  • What is the best way to create a photo gallery?

    Hello

    I want to create a photo gallery in Dreamweaver without using a pre-built function "web gallery". What is the best way to swap images when I click on the button "next"? Create a new page in Dreamweaver for each photograph? Is there a better way to do that?

    Thank you

    Gordon

    Put the images in a table and also analyze them in size or make a page for each image and set up your main gallery page in frames.

  • Support for PIVOT query (or advice on the best way to do it)

    Hi gurus of SQL,.

    I'd appreciate any help you could provide on this request, I'm assuming that the best way to do this would be by using the PIVOT function. I read through some of the documents and books, and done some research here in the forums, but can't seem to find a way to make it work.

    I'm on Oracle 11.1.0.6.0 self.

    I have a table like this:
    ID     Product          Month_A_Amt Month_B_Amt Month_C_Amt     Month_D_Amt
    
    123     ProductA     3          5          7          9
    123     ProductB     2          4          6          8
    123     ProductC     10          11          12          13
    456     ProductA     1          2          3          4
    456     ProductB     3          4          5          6
    We get this data each month - Month_A is always the most recent month, and so it goes back for this game, Month_A is 09 November, Month_B is October 09, Month_C is Sept 09, etc. I'm OK with Hardcoding this value each month, so for the purposes of this exercise, just assume that Month_A is the 09 November, Month_B is Oct 09, Month_C is Sept 09 and Month_D is Aug 09.

    I need essentially "Pivot" in this table, so the end result looks like this:
    ID     Month          Product_A_Amt     Product_B_Amt     Product_C_Amt
    
    123     Nov 09          3          2          10
    123     Oct 09          5          4          11
    123     Sep 09          7          6          12
    123     Aug 09          9          8          13
    456     Nov 09          1          3          null
    456     Oct 09          2          4          null
    456     Sep 09          3          5          null
    456     Aug 09          4          6          null
    Here's the SQL code to create the database with test data table. Now that I've typed this explanation, it still seems easier that I had done it to be... but I'm still confused, so any help is greatly appreciated, thank you!

    create table test_base_table)
    Identification number,
    Product varchar2 (20).
    Number of Month_a_amt
    Number of Month_b_amt
    Number of Month_c_amt
    Number of Month_d_amt);

    insert into test_base_table values (123, "ProductA', 3, 5, 7, 9);
    insert into test_base_table values (123, "ProductB", 2, 4, 6, 8);
    insert into test_base_table values (123, "ProductC", 10, 11, 12, 13);
    insert into test_base_table values (456, 'ProductA", 1, 2, 3, 4);
    insert into test_base_table values (456, 'ProductB', 3, 4, 5, 6);

    Published by: TheBlakester on February 10, 2010 19:56

    Hello

    You don't want to make several clauses UNPIVOT and PIVOT; you want to do several sets of columns in a cluase PIVOT and UNPIVOT one clause.

    In the UNPIVOT clause, it's just a matter of replacing the unique "amt" column before the keyword FOR with a list in parentheses '(amt_1, amt_2)' and the replacement of each column in the list (for example, "month_a_amt") with a list of the same length ("(month_a_amt_1, month_a_amt_2)" ").
    In the PIVOT clause, it's just a matter of replacing the unique "SUM (amt)" aggregate function with a list of unparenthesized of functions, each with an alias ("the SUM (amt_1) AS amt_1, SUM (amt_2) AS amt_2'. The alias that will be added at the end of the givien for names output column in the IN clause.

    SELECT       id
    ,       TO_CHAR ( ADD_MONTHS ( TO_DATE ( 'Nov 2009'
                                            , 'Mon YYYY'
                              )
                          , month_num
                          )
                , 'Mon YYYY'
                )          AS month
    ,       product_a_amt_1
    ,       product_a_amt_2
    ,       product_b_amt_1
    ,       product_b_amt_2
    ,       product_c_amt_1
    ,       product_c_amt_2
    FROM       test_base_table
    UNPIVOT       ( (amt_1,         amt_2      )     FOR month_num IN (
             (month_a_amt_1, month_a_amt_2)     AS  0,
             (month_b_amt_1, month_b_amt_2)     AS -1,
             (month_c_amt_1, month_c_amt_2)     AS -3,
             (month_d_amt_1, month_d_amt_2)     AS -4              )
           )
    PIVOT       ( SUM (amt_1) AS amt_1
           , SUM (amt_2) AS amt_2 FOR product IN ( 'ProductA' AS product_a
                                                        , 'ProductB' AS product_b
                                       , 'ProductC' AS product_c
                                       )
           )
    ORDER BY  id
    ,            month_num     DESC
    ;
    

    Output:

    .              PRODUCT  PRODUCT  PRODUCT  PRODUCT  PRODUCT  PRODUCT
      ID MONTH    _A_AMT_1 _A_AMT_2 _B_AMT_1 _B_AMT_2 _C_AMT_1 _C_AMT_2
    ---- -------- -------- -------- -------- -------- -------- --------
     123 Nov 2009        3        9        2        9       10        9
     123 Oct 2009        5        9        4        9       11        9
     123 Aug 2009        7        9        6        9       12        9
     123 Jul 2009        9        9        8        9       13        9
     456 Nov 2009        1        9        3        9
     456 Oct 2009        2        9        4        9
     456 Aug 2009        3        9        5        9
     456 Jul 2009        4        9        6        9
    

    It looks like all the new values of amt2 are 9. Don't you think it's the best test? I think that different numbers, as you used for the examples of previous data, reduce the chances of getting good results purely by chance.

    If you want to experiment with queries like this, I suggest you use "SELECT *" (nothing added) in the SELECT clause. Start with just an UNPIVOT operation. Some examples in the documentation to do a TABLE CREATION AS... to save the results of an UNPIVOT operator and use this table as the base for a PIVOT table. I think it's a good idea to reduce confusion.

  • Cannot repair the photo library. The best way to restore from iCloud library?

    The photo library of the system is damaged and cannot be repaired.

    It is said "Photos has attempted to repair the library"Pictures Library 2015 ", but can not open it." .


    I first met problems with this library a week before and at the time where I could repair and open the library successfully, but lacked a month value of photos.

    Given that it was successfully in the iCloud library, I left it to re - sync - but this process suspended several times before the end, and the photo library of the system now seems to be permanently damaged.

    I have no project of marked or impression of faces in the photo library of the system, then I would be happy just to restore from iCloud.

    My plan is to put in place a new - empty - library and then that designate the library of the system.

    If I understand this right, the new (empty) system Photo library will now resynchronize with iCloud and will copy all the contents of this library of back to my Mac.

    Is this correct? It is the most effective way to restore my library?

    And while I'm here - what is the best way to manage a very large library? I had my photo library become corrupted ten three or four times over the past years and have found it necessary to divide into single years to prevent this. I overlooked this piece of household by the end of 2015, and now it's happened again... Surely, there must be an easier way to manage libraries of images of several years?

    Is this correct? It is the most effective way to restore my library?

    Yes, if you don't have a useful upward on your Mac.

    And while I'm here - what is the best way to manage a very large library? I had my photo library become corrupted ten three or four times over the past years and have found it necessary to divide into single years to prevent this. I overlooked this piece of household by the end of 2015, and now it's happened again... Surely, there must be an easier way to manage libraries of images of several years?

    How do you call a large library, I've never had a corrupt Library, I think that your problems are not the result of the size of the library, but rather something else. From my experience it is recommended to maintain a local upward, I use Time machine, but also have a second to the top using a third-party backup solution.

Maybe you are looking for