Help with aging query. not sure how to acomplish this???

Guys im a bit stuck usually i have a slight idea how to even start my query but for this particular one I just dont even know where to start to tackle
i have a table like so.
       create table TRRACCD (
       TRRACCD_GRNT_CODE varchar2(6),
       TRRACCD_TRANS_dATE date,
       TRRACCD_AMOUNT number(17,2),
       trraccd_detail_code varchar2(6))with data like so
INSERT INTO TRRACCD (TRRACCD_GRNT_CODE, TRRACCD_TRANS_DATE, TRRACCD_AMOUNT, TRRACCD_DETAIL_CODE) VALUES ('400364',to_date('15-FEB-10', 'DD-MM-RR'),19764.77,'GBIL');
INSERT INTO TRRACCD (TRRACCD_GRNT_CODE, TRRACCD_TRANS_DATE, TRRACCD_AMOUNT, TRRACCD_DETAIL_CODE) VALUES ('400364',to_date('12-MAR-10', 'DD-MM-RR'),2054.29,'GBIL');
INSERT INTO TRRACCD (TRRACCD_GRNT_CODE, TRRACCD_TRANS_DATE, TRRACCD_AMOUNT, TRRACCD_DETAIL_CODE) VALUES ('400364',to_date('20-APR-10', 'DD-MM-RR'),4111.46,'GBIL');
INSERT INTO TRRACCD (TRRACCD_GRNT_CODE, TRRACCD_TRANS_DATE, TRRACCD_AMOUNT, TRRACCD_DETAIL_CODE) VALUES ('400364',to_date('14-MAY-10', 'DD-MM-RR'),2570.1,'GBIL');
INSERT INTO TRRACCD (TRRACCD_GRNT_CODE, TRRACCD_TRANS_DATE, TRRACCD_AMOUNT, TRRACCD_DETAIL_CODE) VALUES ('400364',to_date('10-JUN-10', 'DD-MM-RR'),2176.16,'GBIL');
INSERT INTO TRRACCD (TRRACCD_GRNT_CODE, TRRACCD_TRANS_DATE, TRRACCD_AMOUNT, TRRACCD_DETAIL_CODE) VALUES ('400364',to_date('12-JUL-10', 'DD-MM-RR'),4756.29,'GBIL');
INSERT INTO TRRACCD (TRRACCD_GRNT_CODE, TRRACCD_TRANS_DATE, TRRACCD_AMOUNT, TRRACCD_DETAIL_CODE) VALUES ('400364',to_date('13-AUG-10', 'DD-MM-RR'),28500.62,'GCSH');
INSERT INTO TRRACCD (TRRACCD_GRNT_CODE, TRRACCD_TRANS_DATE, TRRACCD_AMOUNT, TRRACCD_DETAIL_CODE) VALUES ('400364',to_date('16-AUG-10', 'DD-MM-RR'),3602.3,'GBIL');
INSERT INTO TRRACCD (TRRACCD_GRNT_CODE, TRRACCD_TRANS_DATE, TRRACCD_AMOUNT, TRRACCD_DETAIL_CODE) VALUES ('400364',to_date('17-SEP-10', 'DD-MM-RR'),3995.79,'GBIL');
INSERT INTO TRRACCD (TRRACCD_GRNT_CODE, TRRACCD_TRANS_DATE, TRRACCD_AMOUNT, TRRACCD_DETAIL_CODE) VALUES ('400364',to_date('11-OCT-10', 'DD-MM-RR'),3413.6,'GBIL');
INSERT INTO TRRACCD (TRRACCD_GRNT_CODE, TRRACCD_TRANS_DATE, TRRACCD_AMOUNT, TRRACCD_DETAIL_CODE) VALUES ('400364',to_date('11-NOV-10', 'DD-MM-RR'),2119.86,'GBIL');
INSERT INTO TRRACCD (TRRACCD_GRNT_CODE, TRRACCD_TRANS_DATE, TRRACCD_AMOUNT, TRRACCD_DETAIL_CODE) VALUES ('400364',to_date('10-DEC-10', 'DD-MM-RR'),5905.52,'GBIL');
INSERT INTO TRRACCD (TRRACCD_GRNT_CODE, TRRACCD_TRANS_DATE, TRRACCD_AMOUNT, TRRACCD_DETAIL_CODE) VALUES ('400364',to_date('10-DEC-10', 'DD-MM-RR'),12008.21,'GBIL');
INSERT INTO TRRACCD (TRRACCD_GRNT_CODE, TRRACCD_TRANS_DATE, TRRACCD_AMOUNT, TRRACCD_DETAIL_CODE) VALUES ('400364',to_date('11-JAN-11', 'DD-MM-RR'),-10574.05,'GBIL');
INSERT INTO TRRACCD (TRRACCD_GRNT_CODE, TRRACCD_TRANS_DATE, TRRACCD_AMOUNT, TRRACCD_DETAIL_CODE) VALUES ('400364',to_date('11-JAN-11', 'DD-MM-RR'),20241.9,'GBIL');however what i need to do is end up with an aging for the items summarize so the expected output should be something like
tbrraccd_grnt_Code      30-60                    60-90         over90
400364                      20,241.90              2119.86       7,370.09 
if your confused about how i arrived at the 7370.90 is because i have to subtract entries with GCSH on them and i also need to take
entries that are - and applied them to the oldest period if the balance of the period is positive. im inclined to say that i can do this with sql but the only other way i can think of is using plsql?... any suggestions or solutions would be greatly appreciated.
the closest that i have gotten to acomplishing this query without pl is this. i know is lame but i need help.
SELECT TRRACCD_GRNT_CODE,
       TRRACCD_TRANS_dATE,
       TRRACCD_AMOUNT,
       trraccd_detail_code,
       round(sysdate - TRRACCD_TRANS_dATE) "total days"
       --sum(case when round(sysdate - TRRACCD_TRANS_dATE)>190 then "greater then 190"end )
       FROM TRRACCD
       where trraccd_grnt_Code = '400364'
       ORDER BY TRRACCD_GRNT_CODE,
                TRRACCD_TRANS_dATE,
                trraccd_detail_code;  

Hi, Miguel,
I should have mentioned this before: I'm assuming SYSDATE is some point on January 22, 2011, after 00:00. I don't think this has caused any confusion so far, but if the discussion continues for a day or two, let's be clear about that.
I think I see what you want regarding the rows where trraccd+detailcode='GSCH'. If we completly ignored all the GSCH rows, we would get this output:
TRRACC       0-29      30-59      60-89    90-over
400364   ...
400404   19904.97    6625.27    4757.01   67618.68You want GSCH amounts to cancel other amounts in the last column only until that column reaches 0 ; the remaining GSCH amount will cancel amounts in to "60-89" column, again, only until that amount reaches 0 . If there is anything left over, it will cancel amounts in the "30-59" column, and if there is still some left over, the "0-29" column.
To be specific, trraccd_grnt_code=400404 has a total of 72475.69 from GSCH rows. That counts against the "90-over" total.
67618.68 - 72475.69 = -4757.01; you want to dispaly 0 in the "90-over" column, and apply the remaining 4757.01 to the next column to the left.
That column contains 4757.01, which happens to be the exact maount left over from the previous subtraction, so you want to diesplay 0 in the "60-89" column.
The remaining columns to the left should contain their regular totals.
Here's one way to do that:
WITH     got_col_num     AS
     SELECT     trraccd_grnt_code
     ,     CASE
               WHEN  trraccd_detail_code != 'GCSH'     THEN  trraccd_amount
          END          AS net_amount
     ,     SUM ( CASE
                    WHEN trraccd_detail_code = 'GCSH'     THEN  trraccd_amount
                END
              ) OVER (PARTITION BY trraccd_grnt_code)     
                             AS gsch_total
     ,     CASE
              WHEN  trraccd_amount < 0               THEN  4
              WHEN  trraccd_trans_date > SYSDATE - 30     THEN  1
              WHEN  trraccd_trans_date > SYSDATE - 60     THEN  2
              WHEN  trraccd_trans_date > SYSDATE - 90     THEN  3
                                        ELSE  4
          END          AS col_num
     FROM     trraccd
     WHERE     trraccd_trans_date     <= SYSDATE
,     got_sum          AS
     SELECT       trraccd_grnt_code
     ,       col_num
     ,       LEAST ( SUM (net_amount)
                 , GREATEST ( 0
                            , SUM (SUM (net_amount)) OVER ( PARTITION BY  trraccd_grnt_code
                                                             ORDER BY        col_num   DESC
                              - gsch_total
               )  AS total
     FROM       got_col_num
     GROUP BY  trraccd_grnt_code
     ,       col_num
     ,       gsch_total
SELECT       trraccd_grnt_code
,       SUM (CASE WHEN col_num = 1 THEN total END)     AS "0-29"
,       SUM (CASE WHEN col_num = 2 THEN total END)     AS "30-59"
,       SUM (CASE WHEN col_num = 3 THEN total END)     AS "60-89"
,       SUM (CASE WHEN col_num = 4 THEN total END)     AS "90-over"
FROM       got_sum
GROUP BY  trraccd_grnt_code
ORDER BY  trraccd_grnt_code
;Whenever you want to understand a query like this, run just the first sub-query (in this case, got_col_num) and make sure you understand what it's doing. When you do, add one more sub-query, and make sure you understand what it's doing.
Add morte columns to the display to help you understand it better. For example, when you get to the point where you're trying to understand the 2nd sub-query above, got_sum, you might run this query:
WITH     got_col_num     AS
     SELECT     trraccd_grnt_code
     ,     CASE
               WHEN  trraccd_detail_code != 'GCSH'     THEN  trraccd_amount
          END          AS net_amount
     ,     SUM ( CASE
                    WHEN trraccd_detail_code = 'GCSH'     THEN  trraccd_amount
                END
              ) OVER (PARTITION BY trraccd_grnt_code)     
                             AS gsch_total
     ,     CASE
              WHEN  trraccd_amount < 0               THEN  4
              WHEN  trraccd_trans_date > SYSDATE - 30     THEN  1
              WHEN  trraccd_trans_date > SYSDATE - 60     THEN  2
              WHEN  trraccd_trans_date > SYSDATE - 90     THEN  3
                                        ELSE  4
          END          AS col_num
     FROM     trraccd
     WHERE     trraccd_trans_date     <= SYSDATE
,     got_sum          AS
     SELECT       trraccd_grnt_code
     ,       col_num
     ,       gsch_total
     ,       SUM (net_amount)               AS period_sum
     ,       SUM (SUM (net_amount)) OVER ( PARTITION BY  trraccd_grnt_code
                                          ORDER BY      col_num     DESC
                               )         AS running_sum
     ,       LEAST ( SUM (net_amount)
                 , GREATEST ( 0
                            , SUM (SUM (net_amount)) OVER ( PARTITION BY  trraccd_grnt_code
                                                             ORDER BY        col_num   DESC
                              - gsch_total
               )  AS total
     FROM       got_col_num
     GROUP BY  trraccd_grnt_code
     ,       col_num
     ,       gsch_total
SELECT       *
FROM       got_sum
ORDER BY  trraccd_grnt_code
,            col_num
;which produces this output:
TRRACC    COL_NUM GSCH_TOTAL PERIOD_SUM RUNNING_SUM      TOTAL
400364          1   28500.62    20241.9     76146.2    20241.9
400364          2   28500.62   17913.73     55904.3   17913.73
400364          3   28500.62    2119.86    37990.57    2119.86
400364          4   28500.62   35870.71    35870.71    7370.09
400404          1   72475.69   19904.97    99005.93   19904.97
400404          2   72475.69    6625.27    79100.96    6625.27
400404          3   72475.69    4857.01    72475.69          0
400404          4   72475.69   67618.68    67618.68          0The total column in that sub-query is very complicated, so break it down some. You can see that it is based on an analytic SUM whose argumenet is an aggregate SUM, all wrapped in LEAST and GREATEST. That can be very hard to underrstand, so break it down. Display the aggregate SUM by itself (period_sum) and also display the analytic SUM, without the GREATEST and LEAST.
mlov83 wrote:
where can i get more information about these types of querys?Can you be more specific? What types of queries do you mean? Complicated queries? Pivots? GROUP BY?
... I'm always leary of using a solution that i dont understand Excellent reaction!
would you mind expalining it to me a little.Again, could you be more specific? I don't mind explaining things to you, but I don't want to explain parts you already understand. If something is new, you'll want to read the SQL Language manual, or other sources, anyway, so it's more efficient to do that first, and then post specific questions on this forum.
An example of a more specific question is: "When I looked up "WITH clause" in the SQL Language reference, I found this page:
http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_10002.htm#sthref9758
but I don't understand where it says ...
The query above says ... Is that what the manual is talking about when it says ...?"
Another example of a good question is
"The query you posted says ... I don't understand what that's doing. I looked for ... and ... but that didn't seem to have anything to do with this query. What should I look for?
The Oracle 10 SQL Language manual is indexed pretty poorly. If you can't find something, it may not be your fault.

Similar Messages

  • Help with background image (Not sure how to ask this..........)

    I have just started to try and make my first site. I designed it in Photoshop first as I learned in many tutorials. I don't know why my background image looks like this when I scale down below 100%, but at 100% or "fit all"&"fit width" it doesn't change and I can't move it with the hand tool or scroll it. I'm sorry, I'm just learning.
    Thank you.

    Hello,
    in addition, I tried this (page properties = translated from my German DW) too an the only difference had been this "missing end bracket".
    <!doctype html>
    <html>
    <head>
    <meta charset="utf-8">
    <title>ioneglines.com</title>
    <style type="text/css">
    body {
    background-image: url(myImage.png);
    background-repeat: no-repeat;
    </style>
    </head>
    <body>
    </body>
    </html>
    ... before you insert your image as a background image, you have to give it the dimensions, you want to see in your file. Please use try and error method.
    Hans-Günter

  • I'm having problems (1)selecting onscreen text, (2) having problems resizing menu boxes and selecting menues with the cursor. I'm not able to select menus and move them. I'm not sure how to correct this.

    I'm having problems (1) selecting onscreen text, (2) resizing menu boxes and selecting menues with the cursor. I'm not able to select menus and move them. I'm not sure how to correct this.

    1) This is because of software version 1.1. See this
    thread for some options as to how to go back to 1.0,
    which will correct the problem...
    http://discussions.apple.com/thread.jspa?threadID=3754
    59&tstart=0
    2) This tends to happen after videos. Give the iPod a
    minute or two to readjust. It should now be more
    accurate.
    3) This?
    iPod shows a folder icon with exclamation
    point
    4) Restore the iPod
    5) Try these...
    iPod Only Shows An Apple Logo and Will Not Start
    Up
    iPod Only Shows An Apple Logo
    I think 3,4, and 5 are related. Try the options I
    posted for each one.
    btabz
    I just noticed that one of the restore methods you posted was to put it into Disk Mode First rather than just use the resstore straight off, I Have tried that and seems to have solved the problem, If it has thank you. previously I have only tried just restoring it skipping this extra step. Hope my iPod stays healthy, if it doesnt its a warrenty job me thinks any way thanks again

  • TS1363 ipod classic not working with win xp not sure how to sync it?

    ipod classic not working with win xp not sure how to sync it?

    Have you read this?
    iTunes: How to move your music to a new computer
    http://support.apple.com/kb/HT4527
    The Apple web site has lots of other guidance, for example if you are migrating from Windows to Mac, read this.
    Switch 101: Migrate your Windows files or system to your Mac
    http://support.apple.com/kb/HT2518

  • I registered my new iPhone 5s to my usual Apple ID, however it isn't showing in my devices when I log in. I tried to register it by adding a new device, but it tells me it's already registered to a different Apple ID. I'm really not sure how to fix this.

    I registered my new iPhone 5s to my usual Apple ID, however it isn't showing in my devices when I log in. I tried to register it by adding a new device, but it tells me it's already registered to a different Apple ID. I'm really not sure how to fix this. I only have the one Apple ID and the phone is brand new, purchased directly from Apple.
    When I check on the phone itself (iCloud and App Store settings) the Apple ID is correct. I'm not sure where else to check.
    Whilst setting up the phone, it prompted me to register, which I did. Then when connecting to my laptop through iTunes it prompted me again so I registered again. I even got a confirmation email to the email address associated with my Apple ID that the registration was successful.
    How can I add my iPhone 5s to the list of devices on the correct Apple ID?
    Thanks in advance for any advice.

    Found the answer to my question after posting (in related discussions)
    https://discussions.apple.com/message/12331666#12331666
    Will call Apple Care as soon as I can.

  • I'm not sure how to use this site....but here goes, I have a samsung galaxy and it's fully charged but it will not turn on, can someone give me some solutions as to how I can get it to work?

    I'm not sure how to use this site....but here goes, I have a samsung galaxy and it's fully charged but it won't turn on, can someone give me some solutions I can use to fix this problem???

    Try this website. Yes its sprint but it might help you. http://support.sprint.com/support/article/Troubleshoot_issues_related_to_your_Sa msung_Galaxy_S_II_not_turning_on_completely/WTroubleshootingGuide_542_GKB51165-T rend?INTNAV=SU:DP:OV:TSIS:SamsungGalaxySIi-AsYouGo:TroubleshootIssuesRelatedToYo urSamsungG

  • Why all of a sudden am I having difficulty sending Gmail emails? I get a send error. When I run diagnostics there is a SMTP and IMAP account for Gmail and I am not sure how to fix this.

    Why all of a sudden am I having difficulty sending Gmail emails? I get a send error. When I run diagnostics there is a SMTP and IMAP account for Gmail and I am not sure how to fix this.

    Hi jodilynnf,
    When using Connection Doctor to see what is could be causing the issue, look for the red dots to let you know what is wrong. Then all you have to do is correct that information. You can double click on the section that is giving you issue and it will take you there. Most issues could be just password being entered incorrectly. Take a look at the article below to walk you through troubleshooting issues with Mail.
    OS X Mail: Troubleshooting sending and receiving email messages
    http://support.apple.com/en-us/TS3276
     Take it easy,
    -Norm G.

  • Sync session failed to start on my ipod touch. tried to delete back up history but it only shows my daughters ipod touch and not mine! Im unable to update or purchase new aps, not sure how to fix this problem?

    sync session has failed to start on my ipod touch. Tried to delete the back up but it only shows my daughters ipod touch. Iam unable to update or purchase new aps, not sure how to fix this problem?

    Try:
    https://discussions.apple.com/thread/3415227?start=0&tstart=0
    https://discussions.apple.com/message/16400530#16400530

  • My mac will not send or receive email's... its not internet connection... my iPhone still receives emails... so I'm not sure how to troubleshoot this problem, any ideas?

    my mac will not send or receive email's... its not internet connection... my iPhone still receives emails... so I'm not sure how to troubleshoot this problem, any ideas?

    What does the Mail Connection Doctor return?
    The link in my first replay included :
    If you still can’t send or receive email
    Mail Connection Doctor may be able to tell you more about the issue.

  • I'm not sure how to fix this problem?

    I made my original Apple ID a long time ago, and basically, the e-mail account I had used it with was deleted.  I've made a new Apple ID since.  My i-pod is still connected to the old ID, and I'm not sure how to change it.  I also don't remember the information I had used for the original ID.  My i-pod won't transfer all of my music unless I "authorize the computer" and I can't do that with my new ID becuause it "hasn't been used with the computer" yet.  I have no idea what to do now.  Please help?

    Instead of posting this just hit options to the right off any post and scroll down to Report Abuse, select that and leave a message there.I know it's not abuse but it works when you want to report any posts.
    Message Edited by grayburn on 04-Aug-2009 02:06 PM
    Grayburn @ www.nokiausers.net & www.dailymobile.se....come say Hello!!!
    If you appreciate ANY help from a member,then show it by clicking on the Blue Star button, cheers

  • Not sure how to work this

    I have a problem that im not sure how to solve.
    Basically, i need to use a StringTokenizer to split up a list of names into individual strings and them put them into a collection of some sort.
    Then, I need to sort the strings into alphabetical order from A-Z so I can put them in a JList in order.
    I really dont know how to go about this.
    Reading the strings into the collection is fine but after that i dunno.
    I know that String has a method where you can extract an individual char so i thought maybe iterate through the collection and take out the first char...maybe somehow use it as a condition to check other strings or something i dunno.
    I dont really have a time limit on this as its just part of a week program im working on, but any ideas or suggestions might help.
    Thanks in advance guys.

    Which part are you stuck on? It was a little hard to tell. From what I read, it looks like you just don't know how to sort the Strings once you've put everything in the collection. You should be able to simple call:Collections.sort(yourStringCollection);To sort the list.

  • I'm not sure how to explain this but PLEASE HELP! ...

    okay so I'm not quite sure if anyone is going to understand what I'm talking about...
    But for some reason when someone adds me to skype (sends me a request) it says "Hi, White Asian!... so and so wants to add you.. blahblah etc." It says something other than my current user name, or my current display name, or my first and last name. I have know idea why it says this. I've had skype for a long time now and several years ago I believe that I changed my display name to "White Asian" as a joke. It hasn't been that for a long time now and I have no idea why it shows up like that when someone sends me a request on skype. I've tried changing every possible thing to do with a name in the profile/user settings to no avail. THe only time it shows up (that I'm aware of) is when someone adds me.
    So if you have any idea how I can fix this or why it's happening please let me know immediately!
    Its driving me mad because I don't know how to fix this!
    Thanks!
    Attachments:
    Untitled.png ‏11 KB

    Try this website. Yes its sprint but it might help you. http://support.sprint.com/support/article/Troubleshoot_issues_related_to_your_Sa msung_Galaxy_S_II_not_turning_on_completely/WTroubleshootingGuide_542_GKB51165-T rend?INTNAV=SU:DP:OV:TSIS:SamsungGalaxySIi-AsYouGo:TroubleshootIssuesRelatedToYo urSamsungG

  • When I turn on my iMac, it shows a black screen and says 'No bootable device - enter boot cd and press any key'.  Not sure how to fix this.

    When I turn on my iMac, it shows a black screen and says 'No bootable device - enter boot cd and press any key'.
    I'm not sure what to do, I did not recieve a cd with my mac to boot it up (I ordered it online).
    Also I can't find my harware serial number (I've tried many times to input what I thought it may be from my receipt).  I saw that I need this number to contact apple support, my 90 day complimentary support is still valid so I wish to contact them.
    I don't know much about apple products as this is my first apple computer so any information is helpful.

    Hold down the Alt/Option-key at startup of your iMac to get the Boot Selection screen.
    From that choose to boot into OSX.
    Once in OSX go to System Preferences then Startup Volume and reset your OSX to be the default.
    The new iMacs have OSX 10.7 Lion preinstalled and don't come with any CD/DVD anymore.
    Instead OSX Lion includes a new feature called "Lion Recovery".
    Have a read here About Lion Recovery
    Stefan

  • Not sure how to classify this problem, nor what to do about it...

    Hi,
    I am currently working on a web application that utilizes various media (video) types. So far I am using quicktime, wmv, and flv.
    So, basically, when I view my app with firefox or safari, and play some of the videos that I have uploaded, suddenly if I launch quicktime or iTunes, I get the spinning ball of death, and quicktime and iTunes just bounce on my dock forever.
    I have to reboot my computer to get them to launch... This happens each and every time, and it's becoming very frustrating. Like I said, I don't even know who to go to about this problem.. It definitely didn't happen on 10.5.. but it makes no sense, I can't understand how viewing media in a browser can make stand-alone apps not launch...
    -patrick

    Hello, Wyseup. 
    Thank you for visiting Apple Support Communities.
    Most likely this email address has been attempted to be setup as an Apple ID at some point.  You can reset your Apple ID password via the steps in the first article below.  If you do not have access to the email account, need assistance or are not receiving the password reset link, see the second article.
    Apple ID: If you forget your password
    http://support.apple.com/kb/ht5787
    Apple ID: Contacting Apple for help with Apple ID account security
    http://support.apple.com/kb/HT5699
    Cheers,
    Jason H.

  • Not sure how to ask this

    not sure what a title would be for this but anyway,
    I write a lot of programs for clients, i use a table system to input the exercise name, picture information and about 3 other columns.
    my qeustion is, in one of the columns I have a description of how to do the exercise. Instead of writing this description out every single time for every new program, is there a way to have that cell of the table reference a generic file that I have, that will automatically input the information for that exercise into the table cell? and this is before printing, most of the times I will convert to a pdf and then email the program to the client.
    any info on how to do this would be great
    regards
    bret

    I write a lot of programs for clients, i use a table system to input the exercise name, picture information and about 3 other columns.
    my qeustion is, in one of the columns I have a description of how to do the exercise. Instead of writing this description out every single time for every new program, is there a way to have that cell of the table reference a generic file that I have, that will automatically input the information for that exercise into the table cell? and this is before printing, most of the times I will convert to a pdf and then email the program to the client.
    Hi Bret,
    You could use the text clippings feature of the Mac OS. Select the text you want to keep (I chose your second paragraph above), then drag it to the desktop. It will be saved to the Desktop as a clipping, with a name generated from the first few words of the text.
    Once saved, you can rename the file, and move it to a folder where you keep clipping on this topic.
    To use the clipping, select the file and drag it into the document where you want to use it. For the example, I've renamed the file as shown:
    Then dragged that file into a Pages document, on the line after the words "File here".
    If you have several pieces of boiler plate like this, place them into a folder after renaming each to say what it contains,
    regards,
    Barry

Maybe you are looking for

  • Multiple jar files from different locations

    Hello, I am having an applet that access code from two different jar files. Of them one is a common jar file for many applets. So I couldn't place it in the local dir as that of the applet's html. I am not using any web server.      Just to give you

  • Creating TOC: order of anchored objects

    Hey scripting experts, i have a question creating an automated table of contents. The problem is, that I am using anchored objects (text) in a text frame/story. Let's assume there is a text frame, starting with the anchor of an anchored object that c

  • I can't email photos from Windows Photo Gallery anymore, it says the host "mozilla firefox" cannot be found. what do I do?

    A window pops up and says, "The host "Mozilla Firefox" could not be found. Please verify that you have entered the server name correctly. Subject "remove", account; 'pop3', server; 'mozilla firefox', protocol: smtp, port; 25, secure (SSL); no, socket

  • External Keyboard

    I am using my Mac Book Pro as a desktop computer with an external keyboard. Every time I use the numeric keypad the computer screen freezes, everything still works, such as I get emails, but I can't do anything because the screen is frozen. Help!!!

  • Multiple instances of a table & join supported in OBIEE SQLQuery report

    Hello All, I am creating a report in BIP based on the RPD created in OBIEE. I have to use multiple instances of same table in this case. But when I do that, I am getting "'The query contains a self join/This is a non-supported operation" error. Have