Please help me with this Script

OK im working on this age of war type game if you do not now what it is it's a game where you press the buttons to send your troops to fight the computer ive just started but ive hit a problam is my script for the spawning of the troops of presing the button wrong explain the proplam I have with him in the script.

on (release) {}

If (spear > = 0) {}

Lance = true;

} else {}

Lance = false;

}

If (spear == true) {}

this.attachMovie ("spearman_mc", "spearman_mc", this.getNextHighestDepth, {_x:1.1, _y:485});})

_root.spearman_mc.duplicateMovieClip ("spearman_mc_" + "x", x);

setProperty ("spearman_mc_" + "x", _x, 1.1);

setProperty ("spearman_mc_" + "x", FLF, 485);

x ++ ;

cash-= 35;

} else {}

cash-= 0;

}

}

spearman_mc is my movieclip that is created. Spear I just put it in the code so that I can use in the stated case, I might need to make a Boolean in the beginning. NOW, I'll get to my problam when I press the button it creates the clip and I can continue to create them, but when I get to 0 cash (I start with 300) he always keeps creating and going the minuses (-)

You are the only person who can control the points and can not get points for your own ad.  You can only give them to the people who help you in your ad.  No one else that you see buttons for reward points.

Tags: Adobe Animate

Similar Questions

  • The address bar where I can type in the Web addresses does not appear on my Mozilla, please help me with this... How to activate it?

    The address bar where I can type in the Web addresses does not appear on my Mozilla, please help me with this... How to activate it?

    Hi kdwis,

    Going to try view > toolbars and activation of the Bar of Navigation and in the bookmarks toolbar.

    Hope this helps!

  • When you install the 2007 Microsoft Office Suite Service Pack 2 (SP2), I still received the error code 646... I tried to download the RegCure as advised, but the problem still exists... Please help me with this problem... Thank you

    Ideas:

    • When you install the 2007 Microsoft Office Suite Service Pack 2 (SP2), I still received the error code 646... I tried to download the RegCure as advised, but the problem still exists... Please help me with this problem... Thank you

    I tried to download the RegCure as advised, but the problem still exists...

    Who advised you to 'download... '. RegCure? Doing so could only worse issues! If you ever think that your registry database must be cleaned, repaired, boosted or optimized (it isn't), read http://aumha.net/viewtopic.php?t=28099 and draw your own conclusions.

    See http://social.answers.microsoft.com/Forums/en-US/vistawu/thread/6e716883-7af4-4a9f-8665-2f4dd57eee8d ~ Robear Dyer (PA Bear) ~ MS MVP (that is to say, mail, security, Windows & Update Services) since 2002 ~ WARNING: MS MVPs represent or work for Microsoft

  • Hello, I have version Adobe Acrobat 11. I have complete documents and send them to customers. However, when customers open the documents on their side, they are empty. The filled information are missing. Can you please help me with this problem?

    Hello, I have version Adobe Acrobat 11. I have complete documents and send them to customers. However, when customers open the documents on their side, they are empty. The filled information are missing. Can you please help me with this problem?

    Why are publish you again? You must first answer the question I ask in your original thread.

  • BlackBerry smartphones please help me with this indicator on my screen... it has reduced the quality of the voice

    Please help me with the rectangular symbol on the top next to the speaker symbol. It seems that I turned on an option by mistake, and whenever I've make or receive a call, this symbol appears. This was not the case previously.

    For this reason, my voice call quality has declined considerably. Please help quickly.

    Thank you

    itsmits

    Of course, he was told here in the forums of many times.

    It's the Audio Boost indicator call.

    To change, press your green numbering > Menu key > Enhanced Audio Boost.

  • Please help me simplify this Script

    Hello

    I made a menu of magnyfying based on this tutorial: http://www.flashkit.com/tutorials/Interactivity/Navigation/Mac_OS_X-Aaron_Ha-722/index.php

    The problem: it's that I have 20 Menu items. Whenever I want to change something, there are too many things to change.

    The answer, I am lloking for: I guess that there is a much smarter and shorter way to do this using only a few lines of script and some xml or txt files:

    1 - create Movie Clip with button inside
    2 the list of the items to create in this txt file (lets say "list_of_movies_containing_a_button.txt")
    3 put the buttons separated by 40px on Y and X = 0
    4-instance name each button with this other txt file
    5 - put inside each button, the text on this third file. text_appearing_in_each_button.txt
    6 - for all buttons, use this color on Over and another color on the mouse to the top of style.css (?)
    Links 7 - each button to the url defined in the file Links.txt.
    8-all buttons behave in the way...

    Do you understand what I mean?
    Can you help me please? Thank you very much

    Here is the script of the 17th century, that I use now (with only 10 points in this example)


    onClipEvent (load) {}
    function checkOffset (LARGE_INTEGER) {}
    If (LARGE_INTEGER <-120) {}
    LARGE_INTEGER = - 120;
    } ElseIf (LARGE_INTEGER > 120) {}
    LARGE_INTEGER = 120;
    }

    LARGE_INTEGER return;
    }
    function if (offset) {}
    Return 100 * (2-(1 * (Math.abs (offset) / 120)));
    }
    }
    onClipEvent (mouseMove) {}
    Get the x cursor and is coordinated
    y = getProperty ("_root.drag", FLF);
    x = getProperty ("_root.drag", _x);
    Find the offset of the cursor for each icon based on the starting location of the icon
    HomeOffset = y - 200;
    NewsEventsOffset = y - 240;
    ScheduleOffset = y - 280;
    ManualOffset = y - 320;
    DirectionsOffset = y - 360;
    LessonOffset = y - 400;
    ContactUsOffset = y - 440;
    MP3CollectionOffset = y - 460;
    BookmarkOffset = y - 500;
    LinksOffset = y - 540;
    If the cursor is in menu
    If (x > = 0 and x < = 100 and y > = 100 and y < = 700) {}
    Make sure that the offsets are within acceptable limits
    HomeOffset = checkOffset (HomeOffset);
    NewsEventsOffset = checkOffset (NewsEventsOffset);
    ScheduleOffset = checkOffset (ScheduleOffset);
    ManualOffset = checkOffset (ManualOffset);
    DirectionsOffset = checkOffset (DirectionsOffset);
    LessonOffset = checkOffset (LessonOffset);
    ContactUsOffset = checkOffset (ContactUsOffset);
    MP3CollectionOffset = checkOffset (MP3CollectionOffset);
    BookmarkOffset = checkOffset (BookmarkOffset);
    LinksOffset = checkOffset (LinksOffset);
    Move the Home icon
    setProperty ("_root. Home page', FLF, 200-HomeOffset);
    setProperty ("_root. (Homepage», _xscale, if (HomeOffset));
    setProperty ("_root. (Homepage», _yscale, if (HomeOffset));
    Move news and events icon
    setProperty ("_root. NewsEvents", FLF, 230-NewsEventsOffset);
    setProperty ("_root. NewsEvents ", _xscale, if (NewsEventsOffset));
    setProperty ("_root. NewsEvents ", _yscale, if (NewsEventsOffset));
    Move the calendar icon
    setProperty ("_root. Planning', FLF, 260-ScheduleOffset);
    setProperty ("_root. Planning', _xscale, if (ScheduleOffset));
    setProperty ("_root. Planning', _yscale, if (ScheduleOffset));
    Move the manual icon
    setProperty ("_root. Manuel', FLF, 290-ManualOffset);
    setProperty ("_root. Manual', _xscale, if (ManualOffset));
    setProperty ("_root. Manual', _yscale, if (ManualOffset));
    Move the fashion icon
    setProperty ("_root. Route", FLF, 320-DirectionsOffset);
    setProperty ("_root. (Operating instructions", _xscale, if (DirectionsOffset));
    setProperty ("_root. (Operating instructions", _yscale, if (DirectionsOffset));
    Move the icon of the lesson
    setProperty ("_root. Lesson', FLF, 350-LessonOffset);
    setProperty ("_root. Lesson,"_xscale, if (LessonOffset));
    setProperty ("_root. Lesson,"_yscale, if (LessonOffset));
    Move the Contact us icon
    setProperty ("_root. ContactUs', FLF, 380-ContactUsOffset);
    setProperty ("_root. ContactUs', _xscale, if (ContactUsOffset));
    setProperty ("_root. ContactUs', _yscale, if (ContactUsOffset));
    Move the icon Collection MP3
    setProperty ("_root. MP3Collection', FLF, 410-MP3CollectionOffset);
    setProperty ("_root. MP3Collection ', _xscale, if (MP3CollectionOffset));
    setProperty ("_root. MP3Collection ', _yscale, if (MP3CollectionOffset));
    Move the bookmark icon
    setProperty ("_root. Bookmark", FLF, 440-BookmarkOffset);
    setProperty ("_root. Bookmark", _xscale, if (BookmarkOffset));
    setProperty ("_root. Bookmark", _yscale, if (BookmarkOffset));
    Move the icon links
    setProperty ("_root. Links', FLF, 470-LinksOffset);
    setProperty ("_root. Links,"_xscale, if (LinksOffset));
    setProperty ("_root. Links', _yscale, if (LinksOffset));
    } else {}
    setProperty ("_root. («Home», FLF, 200);
    setProperty ("_root. «Home», _xscale, 100);
    setProperty ("_root. «Home», _yscale, 100);
    setProperty ("_root. (NewsEvents", FLF, 240);
    setProperty ("_root. NewsEvents", _xscale, 100);
    setProperty ("_root. NewsEvents", _yscale, 100);
    setProperty ("_root. (Annex", FLF, 280);
    setProperty ("_root. Annex', _xscale, 100);
    setProperty ("_root. Annex', _yscale, 100);
    setProperty ("_root. (Manual", FLF, 290);
    setProperty ("_root. Manuel', _xscale, 100);
    setProperty ("_root. Manuel', _yscale, 100);
    setProperty ("_root. (Operating instructions", FLF, 320);
    setProperty ("_root. Operating instructions", _xscale, 100);
    setProperty ("_root. Operating instructions", _yscale, 100);
    setProperty ("_root. (Lesson', FLF, 350);
    setProperty ("_root. Lesson,"_xscale, 100);
    setProperty ("_root. Lesson,"_yscale, 100);
    setProperty ("_root. (ContactUs', FLF, 380);
    setProperty ("_root. ContactUs', _xscale, 100);
    setProperty ("_root. ContactUs', _yscale, 100);
    setProperty ("_root. (MP3Collection', FLF, 410);
    setProperty ("_root. MP3Collection', _xscale, 100);
    setProperty ("_root. MP3Collection', _yscale, 100);
    setProperty ("_root. (Signet', FLF, 440);
    setProperty ("_root. Bookmark", _xscale, 100);
    setProperty ("_root. Bookmark", _yscale, 100);
    setProperty ("_root. (Links", FLF, 470);
    setProperty ("_root. Links,"_xscale, 100);
    setProperty ("_root. Links', _yscale, 100);
    }
    }

    .

  • Please help me with this vi

    Hello friends I m new learner

    Please help me

    I have this program Please tell me how to send readings and data in table vi and wwhen I press the button log file it should save the file one by one? and

    Please tell me the logic also when I press next, he must go to the next page and back then return to the page and pressing out he must go out and finally next page button should disappear...

    someone help me please

    Thanks in advance

    concerning

    Naomie

    Please use complete words when entering posts on the forum and not 'text speak '.  A plea for words full

    A problem I see is that you have lots of tunnels in the structure of your case where you do not connect the data in all cases.  You end up with the tunnels for "Use default if unwired", feeding the default data in your shift register which later get used.  Probably not what you want.

  • Please help me with this &#60; I have a virus, a bug, malware or something...

    There is something called Firewall Builder windows (activate ultimate protection then asks a credit card on an anonymous line) that keeps popping up and saying I have all sorts of things wrong... but I can't find a way to remove it, it blocks my anti virus and the scanner tools Microsoft apparently can't find it I need help with this... He also does something to my to my system restore, I can't go back today... This bug also always flashes something on torrent link detected everytime I try to download something from Microsoft... it's very frustrating please help.

    sincerely of Tanya Willis

    http://www.bleepingcomputer.com/virus-removal/remove-Windows-Firewall-constructor

  • Please help me with this request - I'm trying with Dense rank

    version 10g

    I got a quote for an account. If the same quote is received under different account I should mark the old account has received as being deleted.
    Please help me.
    /* Formatted on 2010/06/28 14:13 (Formatter Plus v4.8.8) */
    WITH temp AS
         (SELECT '1-11TWQL' quote_id, 'COPS' ACCOUNT, 'Ordered' status,
                 TO_DATE ('12/23/2009 3:37:54',
                          'mm/dd/yyyy hh:mi:ss PM'
                         ) captured_date
            FROM DUAL
          UNION ALL
          SELECT '1-11TWQL', 'COPS', 'RFS',
                 TO_DATE ('12/23/2009 3:37:50', 'mm/dd/yyyy hh:mi:ss PM')
            FROM DUAL
          UNION ALL
          SELECT '1-11TWQL', 'COPS', 'Rejected',
                 TO_DATE ('12/23/2009 3:37:52', 'mm/dd/yyyy hh:mi:ss PM')
            FROM DUAL
          UNION ALL
          SELECT '1-11TWQL', 'COPS', 'Validated',
                 TO_DATE ('12/23/2009 3:37:51', 'mm/dd/yyyy hh:mi:ss PM')
            FROM DUAL
          UNION ALL
          SELECT '1-11TWQL', 'D1', 'Ordered',
                 TO_DATE ('12/23/2009 3:04:24', 'mm/dd/yyyy hh:mi:ss PM')
            FROM DUAL
          UNION ALL
          SELECT '1-11TWQL', 'D1', 'RFS',
                 TO_DATE ('12/23/2009 3:04:23', 'mm/dd/yyyy hh:mi:ss PM')
            FROM DUAL
          UNION ALL
          SELECT '1-11TWQL', 'D1', 'Rejected',
                 TO_DATE ('12/23/2009 3:04:22', 'mm/dd/yyyy hh:mi:ss PM')
            FROM DUAL
          UNION ALL
          SELECT '1-11TWQL', 'D1', 'Validated',
                 TO_DATE ('12/23/2009 3:04:23', 'mm/dd/yyyy hh:mi:ss PM')
            FROM DUAL
          UNION ALL
          SELECT '1-249A8X', 'COPS', 'RFS',
                 TO_DATE ('3/5/2010 12:04:24', 'mm/dd/yyyy hh:mi:ss PM')
            FROM DUAL
          UNION ALL
          SELECT '1-249A8X', 'COPS', 'RFS',
                 TO_DATE ('3/16/2010 7:55:50', 'mm/dd/yyyy hh:mi:ss PM')
            FROM DUAL
          UNION ALL
          SELECT '1-249A8X', 'COPS', 'RFS',
                 TO_DATE ('3/16/2010 7:55:51', 'mm/dd/yyyy hh:mi:ss PM')
            FROM DUAL
          UNION ALL
          SELECT '1-249A8X', 'COPS', 'Rejected',
                 TO_DATE ('3/5/2010 12:04:24', 'mm/dd/yyyy hh:mi:ss PM')
            FROM DUAL
          UNION ALL
          SELECT '1-249A8X', 'COPS', 'Rejected',
                 TO_DATE ('3/16/2010 7:55:50', 'mm/dd/yyyy hh:mi:ss PM')
            FROM DUAL
          UNION ALL
          SELECT '1-249A8X', 'COPS', 'Rejected',
                 TO_DATE ('3/16/2010 7:55:51', 'mm/dd/yyyy hh:mi:ss PM')
            FROM DUAL
          UNION ALL
          SELECT '1-249A8X', 'COPS', 'Validated',
                 TO_DATE ('12/23/2009 3:37:54', 'mm/dd/yyyy hh:mi:ss PM')
            FROM DUAL
          UNION ALL
          SELECT '1-249A8X', 'COPS', 'Validated',
                 TO_DATE ('12/23/2009 3:37:54', 'mm/dd/yyyy hh:mi:ss PM')
            FROM DUAL
          UNION ALL
          SELECT '1-249A8X', 'COPS', 'Validated',
                 TO_DATE ('12/23/2009 3:37:54', 'mm/dd/yyyy hh:mi:ss PM')
            FROM DUAL
          UNION ALL
          SELECT '1-249A8X', 'D1', 'Ordered',
                 TO_DATE ('3/26/2010 12:32:27', 'mm/dd/yyyy hh:mi:ss PM')
            FROM DUAL
          UNION ALL
          SELECT '1-249A8X', 'D1', 'Ordered',
                 TO_DATE ('3/26/2010 12:32:27', 'mm/dd/yyyy hh:mi:ss PM')
            FROM DUAL
          UNION ALL
          SELECT '1-249A8X', 'D1', 'RFS',
                 TO_DATE ('3/26/2010 12:32:27', 'mm/dd/yyyy hh:mi:ss PM')
            FROM DUAL
          UNION ALL
          SELECT '1-249A8X', 'D1', 'RFS',
                 TO_DATE ('3/26/2010 12:32:27', 'mm/dd/yyyy hh:mi:ss PM')
            FROM DUAL
          UNION ALL
          SELECT '1-249A8X', 'D1', 'Validated',
                 TO_DATE ('3/26/2010 12:32:27', 'mm/dd/yyyy hh:mi:ss PM')
            FROM DUAL
          UNION ALL
          SELECT '1-249A8X', 'D1', 'Validated',
                 TO_DATE ('3/26/2010 12:32:27', 'mm/dd/yyyy hh:mi:ss PM')
            FROM DUAL
          UNION ALL
          SELECT '1-249A8Z', 'COPS', 'Validated',
                 TO_DATE ('3/26/2010 12:32:27', 'mm/dd/yyyy hh:mi:ss PM')
            FROM DUAL
          UNION ALL
          SELECT '1-249A8Z', 'COPS', 'Ordered',
                 TO_DATE ('3/26/2010 12:32:27', 'mm/dd/yyyy hh:mi:ss PM')
            FROM DUAL)
    SELECT   quote_id, ACCOUNT, status, captured_date,
             DENSE_RANK () OVER (PARTITION BY quote_id ORDER BY quote_id,
              ACCOUNT) rn
    --         ,CASE DENSE_RANK () OVER (PARTITION BY quote_id ORDER BY quote_id,
    --              ACCOUNT)
    --            WHEN 1
    --               THEN 'Y'
    --            ELSE 'N'
    --         END deleted_flag
        FROM temp
    ORDER BY quote_id, captured_date;
    power required
    WITH temp AS
         (SELECT '1-11TWQL' quote_id, 'COPS' ACCOUNT, 'Ordered' status,
                 TO_DATE ('12/23/2009 3:37:54',
                          'mm/dd/yyyy hh:mi:ss PM'
                         ) captured_date, 'N' deleted_flag
            FROM DUAL
          UNION ALL
          SELECT '1-11TWQL', 'COPS', 'RFS',
                 TO_DATE ('12/23/2009 3:37:50', 'mm/dd/yyyy hh:mi:ss PM'), 'N' deleted_flag
            FROM DUAL
          UNION ALL
          SELECT '1-11TWQL', 'COPS', 'Rejected',
                 TO_DATE ('12/23/2009 3:37:52', 'mm/dd/yyyy hh:mi:ss PM'), 'N' deleted_flag
            FROM DUAL
          UNION ALL
          SELECT '1-11TWQL', 'COPS', 'Validated',
                 TO_DATE ('12/23/2009 3:37:51', 'mm/dd/yyyy hh:mi:ss PM'), 'N' deleted_flag
            FROM DUAL
          UNION ALL
          SELECT '1-11TWQL', 'D1', 'Ordered',
                 TO_DATE ('12/23/2009 3:04:24', 'mm/dd/yyyy hh:mi:ss PM'), 'Y' deleted_flag
            FROM DUAL
          UNION ALL
          SELECT '1-11TWQL', 'D1', 'RFS',
                 TO_DATE ('12/23/2009 3:04:23', 'mm/dd/yyyy hh:mi:ss PM'), 'Y' deleted_flag
            FROM DUAL
          UNION ALL
          SELECT '1-11TWQL', 'D1', 'Rejected',
                 TO_DATE ('12/23/2009 3:04:22', 'mm/dd/yyyy hh:mi:ss PM'), 'Y' deleted_flag
            FROM DUAL
          UNION ALL
          SELECT '1-11TWQL', 'D1', 'Validated',
                 TO_DATE ('12/23/2009 3:04:23', 'mm/dd/yyyy hh:mi:ss PM'), 'Y' deleted_flag
            FROM DUAL
          UNION ALL
          SELECT '1-249A8X', 'COPS', 'RFS',
                 TO_DATE ('3/5/2010 12:04:24', 'mm/dd/yyyy hh:mi:ss PM'), 'Y' deleted_flag
            FROM DUAL
          UNION ALL
          SELECT '1-249A8X', 'COPS', 'RFS',
                 TO_DATE ('3/16/2010 7:55:50', 'mm/dd/yyyy hh:mi:ss PM'), 'Y' deleted_flag
            FROM DUAL
          UNION ALL
          SELECT '1-249A8X', 'COPS', 'RFS',
                 TO_DATE ('3/16/2010 7:55:51', 'mm/dd/yyyy hh:mi:ss PM'), 'Y' deleted_flag
            FROM DUAL
          UNION ALL
          SELECT '1-249A8X', 'COPS', 'Rejected',
                 TO_DATE ('3/5/2010 12:04:24', 'mm/dd/yyyy hh:mi:ss PM'), 'Y' deleted_flag
            FROM DUAL
          UNION ALL
          SELECT '1-249A8X', 'COPS', 'Rejected',
                 TO_DATE ('3/16/2010 7:55:50', 'mm/dd/yyyy hh:mi:ss PM'), 'Y' deleted_flag
            FROM DUAL
          UNION ALL
          SELECT '1-249A8X', 'COPS', 'Rejected',
                 TO_DATE ('3/16/2010 7:55:51', 'mm/dd/yyyy hh:mi:ss PM'), 'Y' deleted_flag
            FROM DUAL
          UNION ALL
          SELECT '1-249A8X', 'COPS', 'Validated',
                 TO_DATE ('12/23/2009 3:37:54', 'mm/dd/yyyy hh:mi:ss PM'), 'Y' deleted_flag
            FROM DUAL
          UNION ALL
          SELECT '1-249A8X', 'COPS', 'Validated',
                 TO_DATE ('12/23/2009 3:37:54', 'mm/dd/yyyy hh:mi:ss PM'), 'Y' deleted_flag
            FROM DUAL
          UNION ALL
          SELECT '1-249A8X', 'COPS', 'Validated',
                 TO_DATE ('12/23/2009 3:37:54', 'mm/dd/yyyy hh:mi:ss PM'), 'Y' deleted_flag
            FROM DUAL
          UNION ALL
          SELECT '1-249A8X', 'D1', 'Ordered',
                 TO_DATE ('3/26/2010 12:32:27', 'mm/dd/yyyy hh:mi:ss PM'), 'N' deleted_flag
            FROM DUAL
          UNION ALL
          SELECT '1-249A8X', 'D1', 'Ordered',
                 TO_DATE ('3/26/2010 12:32:27', 'mm/dd/yyyy hh:mi:ss PM'), 'N' deleted_flag
            FROM DUAL
          UNION ALL
          SELECT '1-249A8X', 'D1', 'RFS',
                 TO_DATE ('3/26/2010 12:32:27', 'mm/dd/yyyy hh:mi:ss PM'), 'N' deleted_flag
            FROM DUAL
          UNION ALL
          SELECT '1-249A8X', 'D1', 'RFS',
                 TO_DATE ('3/26/2010 12:32:27', 'mm/dd/yyyy hh:mi:ss PM'), 'N' deleted_flag
            FROM DUAL
          UNION ALL
          SELECT '1-249A8X', 'D1', 'Validated',
                 TO_DATE ('3/26/2010 12:32:27', 'mm/dd/yyyy hh:mi:ss PM'), 'N' deleted_flag
            FROM DUAL
          UNION ALL
          SELECT '1-249A8X', 'D1', 'Validated',
                 TO_DATE ('3/26/2010 12:32:27', 'mm/dd/yyyy hh:mi:ss PM'), 'N' deleted_flag
            FROM DUAL
          UNION ALL
          SELECT '1-249A8Z', 'COPS', 'Validated',
                 TO_DATE ('3/26/2010 12:32:27', 'mm/dd/yyyy hh:mi:ss PM'), 'N' deleted_flag
            FROM DUAL
          UNION ALL
          SELECT '1-249A8Z', 'COPS', 'Ordered',
                 TO_DATE ('3/26/2010 12:32:27', 'mm/dd/yyyy hh:mi:ss PM'), 'N' deleted_flag
            FROM DUAL)
    SELECT   quote_id, ACCOUNT, status, captured_date, deleted_flag
        FROM temp
    ORDER BY quote_id, captured_date;

    This gives a shot:

    SELECT quote_id
         , account
         , status
         , captured_date
         , CASE
                WHEN account_cnt  = 1
                  OR account     != first_account
                THEN 'N'
                ELSE 'Y'
           END                                     AS deleted_flag
    FROM
    (
      SELECT quote_id
           , account
           , status
           , captured_date
           , FIRST_VALUE(account) OVER (PARTITION BY quote_id ORDER BY captured_date) AS first_account
           , COUNT(DISTINCT account) OVER (PARTITION BY quote_id) AS account_cnt
      FROM   temp
    )
    ORDER BY quote_id, captured_date;
    
  • Please help me with this SQL query

    I'm practicing of SQL queries and met one involving the extraction of data from 3 different tables.

    The three paintings are as below

    < pre >
    Country
    Location_id country
    LOC1 Spain
    loc2 England
    LOC3 Spain
    loc4 USA
    loc5 Italy
    loc6 USA
    loc7 USA
    < / pre >
    < pre >


    User
    user_id location_id
    loc1 U1
    loc1 U2
    loc2 U3
    loc2 U4
    loc1 U5
    U6 loc3
    < / pre >
    < pre >


    Publish
    user_id post_id
    P1 u1
    P2 u1
    U2 P3
    P4 u3
    P5 u1
    P6 u2
    < / pre >

    I am trying to write a SQL query - for each country of the users, showing the average number of positions

    I understand the logic behind all this that we must first consolidate all locations, and then the users in one country and then find the way to their positions.
    But, I'm having a difficulty to this format SQL. Could someone help me please with this request.

    Thank you.

    Select
    Country.Country,
    Count (*) Totalpostspercountry,
    Count (distinct post.user_id) Totaldistincuserspercountry,
    count (*) / count (distinct post.user_id) Avgpostsperuserbycountry
    Of
    countries, have, post
    where country.location_id = muser.location_id
    and muser.user_id = post.user_id
    Country.country group

    The output is like this for your sample data - hope that's what you're looking for :)

    COUNTRY, TOTALPOSTSPERCOUNTRY, TOTALDISTINCUSERSPERCOUNTRY, AVGPOSTSPERUSERBYCOUNTRY
    In England, 1, 1, 1.
    Spain, 5, 2, 2.5.

  • Please help me with this question...

    Hello world

    Sorry to ask the same question that has been published several times in this forum.

    I have the following scenario...
    Database name: database1
    
    schema names: schema1
                  schema2
                  schema3
                  schema4
                  schema5 
                  schema6
                  schema7
    
    workspace is with: schema1
                       schema2
    
    
    1. can i create 1 application that need to access tables in both schema1 and schema2 ?
    comments: I think we have to choose "parsing schema" when i am creating an application.
              if i choose the parsing schema as "schema1". 
    2.how can i create a "form on a table" or some other wizard based forms which is in schema2?
    3.what priviliges do i need to create "form on a table" or some other wizard based forms which is in schema2?
    
    4.As my workspace is with schema1 and schema2. How can i create "forms" on tables which are in
     schema3? do i need to "create a view of table in schema3"  in schema1?
    
    
    
    All the above question will raise if i have to create forms or reports with "wizards". Is this stmt correct?
    
    I mean if i create a form "manually" all i need to look whether i have insert,update and delete priv on
    that object? is it correct?
    I think that this question has been answered several times.sorry for the repost.

    Thank you

    It is not necessary to say "Please help me" as aid happens almost always. Maybe sometimes you need to get back your question after a while. However, back to your question. I can tell you how to solve this problem:

    grant select, insert, update, delete on all the tables in the schema of analysis
    grant select on all the analysis schema views
    grant to run on all procedures and packages to the scheme of analysis
    creation of synonyms in the scheme of analysis for all tables, views, sequences, etc.

    You can do all this programmatically in a loop instead of write for each object separatelly.

    Denes Kubicek
    ------------------------------------------------------------------------------
    http://deneskubicek.blogspot.com/
    http://www.Opal-consulting.de/training
    http://Apex.Oracle.com/pls/OTN/f?p=31517:1
    ------------------------------------------------------------------------------

  • My computer is saying, 'you can be a victim of software counterfeiting ". Can someone please help me with this?

    My grandmother gave me her old computer a few months ago and now it says I could be victim software counterfeiting... Please help me to solve this

    Thank you

    For help, see Genuine Microsoft software web page.

  • Please help me with this procedure

    Hi guys. I am trying to create a procedure that inserts into the table of withdrawal and then print the user balance. Yet once, I created a function called get_authority that checks whether the user is allowed or not. I could write the procedure but still get an error. Please help me to correct my mistake. Thank you

    create or replace procedure (do_withdrawal)

    p_cust_id in varchar2,

    p_acc_id number,

    p_amount number

    )

    as

    v_cnr number (9);

    Exception not allowed;

    Start

    Select pk_seq.nextval in the double v_cnr;

    insert into deposits (wit_id, cust_id, acc_id, amount, Date_Time) values (v_cnr, p_cust_id, p_acc_id, p_amount, sysdate);

    commit;

    EXCEPTION

    Where (get_authority = 0 ;) then)

    Unauthorized, Sunrise

    dbms_output.put_line ("'User Unauthrorized")

    on the other

    dbms_output.put_line (' Dear customer: your balance is ')

    end;

    Yes, you can

    create or replace procedure do_withdrawal

    (

    p_cust_id in varchar2,

    p_acc_id number,

    p_amount number

    )

    as

    exception unathurozied;

    Start

    If get_authority = 0 then

    raise unathurozied;

    on the other

    Insert in deposits

    (

    wit_id,

    cust_id,

    acc_id,

    amount,

    Date_Time

    )

    values

    (

    pk_seq.nextval,

    p_cust_id,

    p_acc_id,

    p_amount,

    SYSDATE

    );

    end if;

    exception

    When unathurozied then

    raise_application_error (-20010, "Unathorized user");

    end;

  • Help! with this script

    Im making a strategy game and ive got this script to move my people

    How could I do so I don't need a script for unit1 and unit 1 just for both script and how can I do so you can click unit1 and unit then and you can click on and thay, as both move to the location where you clicked.

    Import mx.transitions.Tween;

    Import mx.transitions.easing. *;

    unit.onRelease = function() {}

    unit.onMouseUp = function() {}

    var t1:Tween = new Tween (unit, "_x", None.easeNone, unit._x, _xmouse, 5, true);

    var t2:Tween = new Tween (unit, "FLF", None.easeNone, unit._y, _ymouse, 5, true ");

    DY = _root._ymouse - this ._y;
    DX = _root._xmouse - this ._x;
    radianrotation = Math.atan2 (dy, dx);
    radianrotation = radianrotation * 180/Math.PI;
    This ._rotation = radianrotation;

    delete unit.onMouseUp;
    }
    }

    Unit1.onRelease = function() {}

    Unit1.OnMouseUp = function() {}

    var t1:Tween = new Tween (unit1, "_x", None.easeNone, unit1._x, _xmouse, 5, true);

    var t2:Tween = new Tween (unit1, ' FLF", None.easeNone, unit1._y, _ymouse, 5, true");

    DY = _root._ymouse - this ._y;
    DX = _root._xmouse - this ._x;
    radianrotation = Math.atan2 (dy, dx);
    radianrotation = radianrotation * 180/Math.PI;
    This ._rotation = radianrotation;

    delete unit1.onMouseUp;
    }
    }

    affect your units in the table, unitA.  that (and the interpolation settings) are the only things you need to change in the code below.

    When you want to select units call startSelect

    Import mx.transitions.Tween;
    Import mx.transitions.easing.None;

    var tl:MovieClip =;

    var unitA:Array = [];
    var selectedUnitA:Array;

    function startSelectF (): Void {}
    tl.onMouseDown = startF;
    tl.onMouseUp = stopF;
    }
    function stopSelectF (): Void {}
    delete tl.onMouseDown;
    delete tl.onMouseUp;
    }
    function startF (): Void {}
    START_X = tl._xmouse;
    start_y = tl._ymouse;
    }
    function stopF (): Void {}
    stopSelectF();
    stop_x = tl._xmouse;
    stop_y = tl._ymouse;
    selectedF();
    tl.onMouseUp = moveF;
    }
    function moveF() {}
    delete tl.onMouseUp;
    for (var i: Number = 0; i
    new Tween (selectedUnitA [i], "_x", None.easeNone, selectedUnitA [i] ._x, tl._xmouse, 5, true);
    new Tween (selectedUnitA [i], ' FLF", None.easeNone, selectedUnitA [i] ._y, tl._ymouse, 5, true");
    }
    }
    function selectedF (): Void {}
    var begin_x:Number = Math.min (start_x, stop_x);
    var end_x:Number = Math.max (start_x, stop_x);
    var begin_y:Number = Math.min (stop_y, start_y);
    var end_y:Number = Math.max (start_y, stop_y);
    selectedUnitA = [];
    If (begin_x == end_x & begin_y == end_y) {}
    for (var i: Number = 0; i
    {if (unitA [i]. HitTest (begin_x, begin_y))}
    selectedUnitA.push (unitA [i]);
    }
    }
    } else {}
    for (var i: Number = 0; i
    If (the unitA [i] ._x > = begin_x & unitA [i] ._x<=end_x &&="" unita[i]._y="">= begin_y & the unitA [i] ._y)<=end_y)>
    selectedUnitA.push (unitA [i]);
    }
    }
    }
    }

  • I get this message. TypeError: PlacesUtils.nodeIsLivemarkContainer is not a function. Please help me with this.

    I get this POPUP error constantly. TypeError: PlacesUtils.nodeIsLivemarkContainer is not a function.

    It just started today and I had not had any problems until today.
    I tried to find an answer by searching and the only thing I found was something on 'ViewMarks' originally this problem BUT I didn't Viewmarks and don't know what it is.

    Hello

    The reset Firefox feature can solve a lot of problems in restaurant Firefox to its factory default condition while saving your vital information.
    Note: This will make you lose all the Extensions, open Web sites and preferences.

    To reset Firefox, perform the following steps:

    1. Go to Firefox > help > troubleshooting information.
    2. Click on the button 'Reset Firefox'.
    3. Firefox will close and reset. After Firefox is finished, it will display a window with the imported information. Click Finish.
    4. Firefox opens with all the default settings applied.

    Information can be found in the article Firefox Refresh - reset the settings and Add-ons .

    This solve your problems? Please report to us!

    Thank you.

Maybe you are looking for

  • Autotune in Garageband with MIDI

    Hi, is it possible to autotune voice in garageband by MIDI sequence? Just add singing and force developed by the noon (no external device, only file .mid midi sequence)

  • Mac book air display problem

    having display problems with my macbook air, first version of 2015. When I turn on my macbook, after entering the password and pressing on enter three lines (not really lines they look more like lightning, appear from the top of the screen) in the co

  • Frames Jumbo on MD3200i

    Hi, I am trying to set up the frames on my MD3200i. I have increased the jumbo frames to 9000 in the interface of management of storage for all network adapters and have set my switch to use frames but when I go to 2012 Windows frames on the NETWORK

  • CCTK - valsetuppwd agreeing not to current BIOS password

    Hello I try to activate the LAN wireless for a hundred computers D630 laptop using a sequence of tasks SCCM. However, when I run the command cctk-i = D630BIOS.cctk - valsetuppwd = mypassword, I get an error saying "this password provided is incorrect

  • Windows 7 on multiple computers

    I was gifted a laptop with Vista 64-bit Home Premium installed. I consider upgrading this computer and perhaps a few XP computers I own, to Windows 7. So far after the fact, it is very difficult to find new copies of sale retail of Windows 7 professi