Queries in numbers

Is it possible to do a query in Numbers?
For instance. I have a list of rows where it is something like:
LocationA $15,000 47 91 A
LocationB $23,000 27 105 L
LocationA ....
LocationC ...
LocationB ...
And I want to have a separate table where I pull out just the lines for LocationA or LocationB.
I see Vlookup but it appears to find the first and only the first one and the data in the column you specify. That is ok except that I can't figure out how to pull it out for the rest of the rows. I hope that makes sense. I realize I have to do this in each cell (at least I expect to). So basically I'm looking for a query more than a lookup.
The result would be:
LocationB ...
LocationB ...
LocationB ...

Sorry, I've been away from the computer for a while...
Spreadsheets, Numbers or others, can be quite obtuse. This concept of filtering one table into another I think is generally useful and it would behoove Apple to make this simpler to do. Forgive me if you have figured some of this out already, but I will endeavor to explain this technique:
The crux is the formulas in column A of the "Result" table, starting in the second row. They are all basically the same so understanding the A2 formula is sufficient.
=MATCH(Query :: value $location,OFFSET(Places :: $location,A1,0,ROWS(Places :: $location)),0)+A1
Starting in the middle (naturally, ) the OFFSET function is an odd beast. It doesn't return a value as most functions do, but instead a range of cells. In this case it is used to return a range of cells in the "Places" table. The range of cells is initially the entire location column in the "Places" table, row 2 thru 6. I would tell you to try to evaluate just the OFFSET function by itself in the cell, but the result that is displayed, the value of the first cell in the range, is not really useful in understanding what it really returns. In subsequent column A formulas of table "Result", this range is narrowed by starting in the last location of the previously MATCHed result while running to the end. This is accomplished by the second argument of the OFFSET function referring to the previous cell's result.
With that understood, things get simpler. The MATCH function searches the range generated by INDEX. It searches for the value entered in the little "Query" table, allowing the desired location to be entered easily without editing formulas. The result of the MATCH is the location within the range provided by INDEX. To get the actual index, we must add to it the result from the previous formula in the column. Notice that in row 1 of column A there is a zero. This gets the first formula started and allows all the rest of the formulas to be expressed in the same way (to facilitate filling down when more query result rows are required).
The other columns in "Result" table are all similar. They use the index into the "Places" table computed in column A to copy matching "Places" table values into the result table. Obvious, perhaps, is that any subset of values could be copied, whatever is necessary; I've just done them all since I didn't really know what your example is about. Looking at the formula in any of these cells (they are all basically the same):
=IF(ISERROR($A2),"",INDEX(Places ::price ,$A2))
Again starting in the middle with the INDEX function, this time it is generating a single cell within the column of the "Places" table, in this case the price column. The cell is the index computed in the for this row's query result from column A. The $ in $A2 produces an absolute reference to the column (but not the row) which facilitates filling this formula right to produce values from other columns of the "Places" table.
The enclosing IF function simply avoids the INDEXing if the query index column A has found no more matches (the case when there are too many rows in the "Results" table).

Similar Messages

  • PL SQL Question - Need some help

    I would like to write a loop in PLSQL to run a 225 different queries on a table.
    That is i have 225 stop worded queries to run, and would like to write a procedure that could automate this, when it has run the query i would also like for it to output the results into a table (e.g. Results1). The queries are numbered 1 to 225.
    I have tried to write some code that gives an idea of what i would like to do, but as i have only been using PLSQL for 1 week i am still a newbie. Any help would be much appreciated!!
    Procedure mulitpleQuery
    FOR i =1 to 225
    searchstring string
    queryno = i
    Select stoppedwords from cranqrel
    where queryno = i
    fetch to searchstring
    replace(searchstring,' ',')
    INSERT INTO results1(DOCNO, REL_SCORE) SELECT DOCNO,SCORE(1)
    FROM CRAN1400
    WHERE CONTAINS (abstract, 'searchstring',1) > 0
    ORDER BY SCORE(1) DESC;
    END;
    Thanks
    Mark

    You've landed in the wrong forum. This one is for HTML DB.
    Scott

  • Formatting output columns - ala SQL*Plus 'column' command

    SQL_Developer 1.5
    Is there a way to format the output of queries for numbers, etc. like the 'column' command found in SQL*Plus?
    I realize I can use the TO_CHAR() function in the SQL but was hoping there was something easier.
    Thanks very much!
    -gary

    it could be that the column of the table that you are trying to insert the data has a small length.

  • Complicated Table with Complicated Calculations

    I am making a table within a form that is slightly complicated. I want teachers from six different zones to be able to fill in how many students travelled for how many nights and then have the total automatically calculate. The problem is that the total changes depending on the zone and how many nights away. For example for zone 2 the amount is $5 per student no matter how long they were away. However, for Zone 6 two nights away is calculated at $90 per student whereas three nights away is calculated at $100 and four nights away at $130 per night. Does anyone have a suggestion for how to set up this table? The six zones in the first column are drop down menus with the various school districts that fall into each zone allowing the teacher to choose which school district they are in and the corresponding row to fill in. Thank you.
    Elaine

    If you need something other than a contiguous piece of another table, say, something more like a query, you might check out the techniques I have posted for others problems in this forum. See the following messages:
    Queries in Numbers
    Extracting unique values from a list of values
    In each case you'll find a link to an example Numbers file that uses this technique to solve the problem in the thread. Perhaps you can adapt it to your situation. If you have trouble, let me know.

  • How to grep 21 roman numbers? Or how to adapt 21 queries for different styles?

    After using some grep recipes the results are poor:  problems related with numerals like c/d or something like some words in other languages have parallel meaning (mil is 1000 in Spanish) I suppose (?0 that grepping the 21 roman numbers required in some books for centuries could be enough.
    Could be processed as a grep style or just  in the f/change window?
    Making queries is a problems as each query is related to a couple specific styles and do not know how to adapt them).
    How to grep: I, II, III, IV, etc?

    Thank you for your time!
    Yes, it is a very good beginning. Implore you to check above as the variations of your formulae may be infinite for a plain person.
    Not always century/centuries is a path. Author could say: in the XIX and XX bla bla. Always roman come from Word as caps or Scaps and are easily tagged.
    Mil (M)  is a nice exception. But is not determinant. The custom is that roman numerals (at least in my daily work) usually involve centuries and numerals until C (in straight social sciences bibliographies, vol. LXI is almost unseen). Although a good limit should be C.
    I believe that a very simple grep (as the formula seems complicated) that involves all I-XXI (or I-L, or I-C) is not a problem for the processor. I have been using grep styles against the idea proclaimed here that it spins the machine.
    Here is a list of romans just for information.
    i, ii, iii, iv, v, vi, vii, viii, ix, x, xi, xii, xiii, xiv, xv, xvi, xvii, xviii, xix, xx, xxi, xxii, xxiii, xxiv, xxv,  xxvi, xxvii, xxviii, xxix, xxx, xxxi, xxxii, xxxiii, xxxiv, xxxv, xxxvi, xxxvii, xxxix, xxxviii, xl, xli, xxix, xliii, liv, xlv, xlvi, xlvii, xlviii, xlix, l, li, lii, liii, liv, lv, lvi, lvii, lviii, lix, lx, lxi, lxii, lxiii, lxiv, lxv, lxvi, lxvii, lxviii, lxix, lxx, lxxi, lxxii, lxxiii, lxxiv, lxxv, lxxvi, lxxvii, lxxviii, lxxix, lxxx, lxxxi, lxxxii, lxxxiii, lxxxiv, lxxxv, lxxxvi, lxxxvii, lxxxviii, lxxxix, xc, xci, xcii, xciii, xciv, xcv, xcvi, xcvii, xcviii, xcix, c.

  • Borre sin querer un archivo de numbers de la nube lo puedo recuperar ?

    borre sin querer un archivo de numbers de la nube puedo recuperarlo ?

    If you go to icloud.com >> sign in >> iwork >> numbers, it's gone?
    You could check ~/Library/Mobile Documents.
    Or, restore from a back, such as time machine.

  • Convert delimited list of numbers from function to use in SELECT IN () quer

    Hey guys,
    I have to create a view based on some conditions. I have to get only the rows with specific IDs. I do the calculations for the logic using a function which returns a delimited list of the IDs. When I use this string in the query, it gives me a "Invalid Number" error.
    Here's the skeleton
    Select table1.col, table2.col1, table2.col2, table2.col3
    from table1, table2
    where table2.col1 in (function(table1.col))
    function() returns 12,34,564,7657 ....
    The reason that I am using a function to get the IDs is that the logic involved is complicated to get the right IDs. Any help would be appreciated
    Thanks,
    -P

    You can do this.
    select emp.* from  emp,
    table (sys.dbms_debug_vc2coll (7499,7788,7934))
    where empno = column_value
         EMPNO ENAME      JOB              MGR HIREDATE         SAL       COMM     DEPTNO
          7499 ALLEN      SALESMAN        7698 20-FEB-81       1600        300         30
          7788 SCOTT      ANALYST         7566 19-APR-87       3630                    20
          7934 MILLER     CLERK           7782 23-JAN-82       1300    

  • Problem quering a range of numbers

    Hopefully someone can help. I have a query that I need to select results that are from the range -30 through any positive number up to 70.
    My problem is my query is looking at (for example) -95 as a number greater than -30 which is shouldn't.  Does anyone know what I can use? Here is what I have:
    <cfquery name="qcomp" datasource="mydb">
    Select id, comp_id, daysremaining, startdate, company, howmanyteams, compname, teamname, SUM(totallost) AS totallost
    FROM scoreboard WHERE daysremaining >= '-30'
    group by compname, teamname, comp_id
    order by compname, totallost ASC
    </cfquery>  

    What is the data type of the field in the database?
    If it is a number type -95 is less then -30.
    If it is a character/text type -95 is greater then -30.
    And the quotes in your where clause says it is a character/text type:
    WHERE daysremaining >= '-30'

  • SharePoint 2013 search analytics reports - 'query text' column value is empty in 'top queries by month' report

    Hi,
    We are using ContentBySearchWebPart to facilitate search through the site.
    We have used display template to format the results. We are deploying the web part on the desired page through a feature. We have below markup for web part in the elements.xml file to add the web part -
    <webPart xmlns="http://schemas.microsoft.com/WebPart/v3">
    <metaData>
    <type name="Microsoft.Office.Server.Search.WebControls.ContentBySearchWebPart, Microsoft.Office.Server.Search, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" />
    <importErrorMessage>Cannot import this Web Part.</importErrorMessage>
    </metaData>
    <data>
    <properties>
    <property name="StatesJson" type="string">{}</property>
    <property name="UseSharedDataProvider" type="bool">False</property>
    <property name="UseSimplifiedQueryBuilder" type="bool">False</property>
    <property name="QueryGroupName" type="string">f5646507-4a7a-4d75-b5c4-d435b9128e2a</property>
    <property name="LogAnalyticsViewEvent" type="bool">True</property>
    <property name="SelectedPropertiesJson" type="string">["Title","Path","Description"]</property>
    <property name="PropertyMappings" type="string" />
    <property name="ShowAdvancedLink" type="bool">True</property>
    <property name="NumberOfItems" type="int">10</property>
    <property name="EmitStyleReference" type="bool">True</property>
    <property name="ShowPreferencesLink" type="bool">True</property>
    <property name="ServerIncludeScriptsJson" type="string">null</property>
    <property name="IncludeResultTypeConstraint" type="bool">False</property>
    <property name="Height" type="string" />
    <property name="MaxPagesBeforeCurrent" type="int">4</property>
    <property name="ResultType" type="string" />
    <property name="ShowDidYouMean" type="bool">False</property>
    <property name="StartingItemIndex" type="int">1</property>
    <property name="AlwaysRenderOnServer" type="bool">False</property>
    <property name="GroupTemplateId" type="string">&#126;sitecollection/_catalogs/masterpage/Display Templates/Content Web Parts/Group_Content.js</property>
    <property name="ResultTypeId" type="string" />
    <property name="ItemTemplateId" type="string">&#126;sitecollection/_catalogs/masterpage/Display Templates/Search/Item_LearningGroup.js</property>
    <property name="AllowConnect" type="bool">True</property>
    <property name="HelpUrl" type="string" />
    <property name="ResultsPerPage" type="int">10</property>
    <property name="RenderTemplateId" type="string">&#126;sitecollection/_catalogs/masterpage/Display Templates/Content Web Parts/ListWithPaging.js</property>
    <property name="AllowEdit" type="bool">True</property>
    <property name="AllowZoneChange" type="bool">True</property>
    <property name="AddSEOPropertiesFromSearch" type="bool">False</property>
    <property name="AdvancedSearchPageAddress" type="string">advanced.aspx</property>
    <property name="HitHighlightedPropertiesJson" type="string">["Title","Path","Author","SectionNames","SiteDescription"]</property>
    <property name="TitleUrl" type="string" />
    <property name="EmptyMessage" type="string" />
    <property name="ShowBestBets" type="bool">False</property>
    <property name="ShowViewDuplicates" type="bool">False</property>
    <property name="AllowHide" type="bool">True</property>
    <property name="BypassResultTypes" type="bool">True</property>
    <property name="Description" type="string">Content Search Web Part will allow you to show items that are results of a search query you specify. When you add it to the page, this Web Part will show recently modified items from the current site. You can change this setting to show items from another site or list by editing the Web Part and changing its search criteria.As new content is discovered by search, this Web Part will display an updated list of items each time the page is viewed.</property>
    <property name="ShowSortOptions" type="bool">False</property>
    <property name="ExportMode" type="exportmode">All</property>
    <property name="AllowMinimize" type="bool">True</property>
    <property name="ShowPersonalFavorites" type="bool">False</property>
    <property name="ChromeType" type="chrometype">None</property>
    <property name="ShowPaging" type="bool">True</property>
    <property name="ChromeState" type="chromestate">Normal</property>
    <property name="CatalogIconImageUrl" type="string" />
    <property name="HelpMode" type="helpmode">Modeless</property>
    <property name="TitleIconImageUrl" type="string" />
    <property name="ItemBodyTemplateId" type="string" />
    <property name="AlternateErrorMessage" type="string" null="true" />
    <property name="Hidden" type="bool">False</property>
    <property name="TargetResultTable" type="string">RelevantResults</property>
    <property name="AllowClose" type="bool">True</property>
    <property name="MissingAssembly" type="string">Cannot import this Web Part.</property>
    <property name="ShowResultCount" type="bool">True</property>
    <property name="ShowLanguageOptions" type="bool">True</property>
    <property name="ShowUpScopeMessage" type="bool">False</property>
    <property name="Width" type="string" />
    <property name="RepositionLanguageDropDown" type="bool">False</property>
    <property name="Title" type="string">Search Learning Groups</property>
    <property name="ScrollToTopOnRedraw" type="bool">False</property>
    <property name="ShowResults" type="bool">True</property>
    <property name="ShowAlertMe" type="bool">False</property>
    <property name="OverwriteResultPath" type="bool">True</property>
    <property name="PreloadedItemTemplateIdsJson" type="string">null</property>
    <property name="MaxPagesAfterCurrent" type="int">1</property>
    <property name="ShowDefinitions" type="bool">False</property>
    <property name="ShouldHideControlWhenEmpty" type="bool">False</property>
    <property name="AvailableSortsJson" type="string">null</property>
    <property name="DataProviderJSON" type="string">{"QueryGroupName":"f5646507-4a7a-4d75-b5c4-d435b9128e2a","QueryPropertiesTemplateUrl":"sitesearch://webroot","IgnoreQueryPropertiesTemplateUrl":false,"SourceID":"8413cd39-2156-4e00-b54d-11efd9abdb89","SourceName":"Local SharePoint Results","SourceLevel":"Ssa","CollapseSpecification":"","QueryTemplate":"Path:{SiteCollection.URL} AND :{SearchBoxQuery} ","FallbackSort":[],"FallbackSortJson":"[]","RankRules":[],"RankRulesJson":"[]","AsynchronousResultRetrieval":false,"SendContentBeforeQuery":true,"BatchClientQuery":true,"FallbackLanguage":-1,"FallbackRankingModelID":"","EnableStemming":true,"EnablePhonetic":false,"EnableNicknames":false,"EnableInterleaving":false,"EnableQueryRules":true,"EnableOrderingHitHighlightedProperty":false,"HitHighlightedMultivaluePropertyLimit":-1,"IgnoreContextualScope":true,"ScopeResultsToCurrentSite":false,"TrimDuplicates":false,"Properties":{"TryCache":true,"Scope":"{Site.URL}","UpdateLinksForCatalogItems":true,"EnableStacking":true,"ListId":"60ae8593-eddc-45e0-802a-27f78059ce26","ListItemId":4},"PropertiesJson":"{\"TryCache\":true,\"Scope\":\"{Site.URL}\",\"UpdateLinksForCatalogItems\":true,\"EnableStacking\":true,\"ListId\":\"60ae8593-eddc-45e0-802a-27f78059ce26\",\"ListItemId\":4}","ClientType":"ContentSearchRegular","UpdateAjaxNavigate":true,"SummaryLength":180,"DesiredSnippetLength":90,"PersonalizedQuery":false,"FallbackRefinementFilters":null,"IgnoreStaleServerQuery":false,"RenderTemplateId":"DefaultDataProvider","AlternateErrorMessage":null,"Title":""}</property>
    <property name="Direction" type="direction">NotSet</property>
    </properties>
    </data>
    </webPart>
    When we are downloading the 'Top Queries by Month' or 'Top Queries by Day' report, while we see numbers in 'Total Queries' and '% of all queries' columns, we are not finding anything in 'Query Text' column, its empty. Not sure while the analytics is
    not able to fetch/report the 'Query Text' itself - the report doesnt make any sense without 'Query Text' information.
    Is there anything in the web part markup I pasted above- is any of the property value is affecting this?
    Or it can be some configuration/error with the logging/analytics process?
    Please suggest. Thanks in advance.
    Regards,
    Mahavir
    MOSS programmer

    Hi,
    Hope you are doing well. Would you help to try to run the script to start the timer job manually:
    Run the script to start the timer job:
    ==================
    $ua = Get-SPTimerJob -Type Microsoft.Office.Server.Search.Analytics.UsageAnalyticsJobDefinition
    $ua.GetAnalysisInfo()
    $ua = get-sptimerjob -type microsoft.office.server.search.analytics.usageanalyticsjobdefinition
    $ua.DisableTimerJobSchedule()
    $ua.StartAnalysis()
    $ua.EnableTimerJobSchedule()
    $ua = Get-SPTimerJob -Identity ("job-usage-log-file-import")
    $ua.RunNow()
    ==================
    2.  Please install the SharePoint 2013 March update if our version is before this:
    SharePoint 2013 March update:
    http://support.microsoft.com/kb/2767999
    Best Regards,
    Dats Luo

  • How to find the list of Queries/Reports which are using Exceptional Aggregation in SAP BI?

    Hi All,
    We are interested to know how to find the list of Queries/ Reports which are using Exceptional aggregation in SAP BI.
    Please let us know is there any table's to check the list of reports using Exceptional Aggregation in SAP BI.

    Hi,
    Here you go..
    1) Go to table RSZCALC and get list of ELTUID where AGGREXC is not INITIAL and AGGRCHA is not initial; now you get only exception aggregation set based on some chars. Also you can further add STEPNR = 1 since your intention is just to get query name , not the calculation details; this will reduce number of entries to lookup and save DB time for next steps.
    Here you will get list of exception aggregation UUID numbers from which you can get properties from RSZELTDIR.
    2) Pass list of RSZCALC-ELTUID to table RSZELTXREF - TELTUID and get list of RSZELTXREF -SELTUID - this table stores query to it's elements maping kind.
    3) Now again pass RSZELTXREF - SELTUID into same table but into different field RSZELTZREF - TELTUID and get RSZELTXREF - SELTUID
    This step you get query reference sheet or column or query general UUID for next step.
    4) Pass list of RSZELTXREF - SELTUID into RSZELTDIR - ELTUID with DEFTP as 'REP'. Now you get list of query names in RSZELTDIR - MAPNAME and description in TXTLG.
    Note: you can also get the reference chars used for exception aggregation from RSZCALC - AGGRCHA field.
    Hope this helps.
    Please keep in mind, it might take more time depends on how many query elements you have in the system...
    Comments added for better DB performance by: Arun Thangaraj

  • AWR reports DBMS_ALERT_INFO queries using significant elapsed time

    Hi
    10.1.0.3 / OpenVMS 8.2
    Has anyone encountered AWR reporting significant resource consumption on queries relating to DBMS_ALERT_INFO (via calls to dbms_alert.register)? The buffer busy waits % from AWR is high as well (see AWR snippets below). Oracle are suggesting this is "expected behaviour for the objects owned by
    the SYS user".
    The query takes (on average) 2.3 seconds elapsed, using 1.63 CPU seconds and is responsible for 94% of all Buffer Busy Waits.
    Elapsed CPU Elap per % Total
    Time (s) Time (s) Executions Exec (s) DB Time SQL Id
    10,965 7,746 4,756 2.3 4.7 57w71dgk5qbtx
    Module: DSA103:[CSC_ENV_1.APPLIC.][SPICE.LIB]SPC_PFS1_MA
    SELECT DISTINCT SUBSTR(KGLNAOBJ,11) SID FROM X$KGLOB WHERE KGLHDNSP = 7 AND KGLN
    AOBJ LIKE 'ORA$ALERT$%' AND BITAND(KGLHDFLG,128)!=0 UNION SELECT DISTINCT SID FR
    OM DBMS_ALERT_INFO
    Segments by Buffer Busy Waits DB/Inst: SPICE/ONLINE Snaps: 4930-5026
    Buffer
    Tablespace Subobject Obj. Busy
    Owner Name Object Name Name Type Waits %Total
    SYS SYSTEM DBMS_ALERT_INFO TABLE 130,626 93.76
    Clive

    Christophe Lize wrote:
    Closing this thread even if it's not answered...Sorry, I don't have time to test this myself now, but you shouldn't mark this thread as answered if it is not, because other people might find it and think they find an answer if they have a similar question.
    I suggest you try the following to narrow down things:
    1. Open the RAW trace file and check the cursor numbers of the "direct path reads" - check if you can find any references for those cursor numbers manually. The cursor numbers are those numbers behind the WAIT #<xx>, and you can check if you find any other entry unequal to WAIT #<xx> with the same #<xx>, for example EXEC #<xx> or FETCH #<xx>
    A short primer on how to interpret the raw trace file can also be found in MOS document 39817.1
    2. Run the RAW trace file through alternative free trace file analyzers like SQLDeveloper (yes it can process raw trace files), OraSRP or Christian Antognini's TVD$XTAT. If you have My Oracle Support access you can also try Oracle's own extended Trace Analyzer (TRCA / TRCANLZR). See MOS Note 224270.1
    Check if these tools tell you more about your specific wait event and oddities with the trace file in general.
    Regards,
    Randolf
    Oracle related stuff blog:
    http://oracle-randolf.blogspot.com/
    Co-author of the "OakTable Expert Oracle Practices" book:
    http://www.apress.com/book/view/1430226684
    http://www.amazon.com/Expert-Oracle-Practices-Database-Administration/dp/1430226684

  • Parent Child Hierarchy causes numbers to be different

    Hello,
    We have a parent child hierarchy in our chart of account dimensions. When the hierarchy is included in an analysis, the numbers are correct. If the hierarchy is not included in the analysis and a column from the dimension with the hierarchy is included, the numbers are very different. They are overstated by a large amount.
    For Example, I have two analysis:
    -In the first analysis the hierarchy is included and the grand total is 2,383,080,784.
    -The second analysis has simply excluded the hierarchy from the analysis and the total shoots all the way up to 6,901,729,527.
    I have screen shots but don't know how to include them in this kind of a post.
    Has anybody else seen such behavior? This seems like it would be a big deal so either we are doing something wrong or this is a bug that needs fixed.
    We are on 11.1.1.6
    Thanks in advance,
    Brian

    Hi,
    Thanks for the reply, I'm actually using snapshots. But even with the Type 2 Dim I don't think it will work.
    When OBIEE generates the very first sql against the Parent-Child table the fact table is not included in the query. It seems to create 2 queries - one to find the top level parent (ancestor key is null) and then one to find all the leaf nodes.
    It does not have any join to the fact table when it does this. So if you have multiple rows in the table (with date stamps) for a single row (person in this case) - it picks up both rows. Therefore, when you have a person who was, say, promoted to manager, and WAS a leaf node, and is now a manager, they show up in the leaf query and don't display in the hierarchy as a manager.
    Once it has the leaf nodes and it joins to the fact table everything works (ie the surrogate key join).
    I'm trying to figure out if there is any way to influence those initial queries against the parent-child table.
    Hopefully that made sense.
    Thanks,
    Tori

  • How do I connect two Queries?

    Hello all,
    How do I connect two Queries and add some numbers.
    Here is what I am trying to do.
    Query 1: Gets G/L Credit Amounts for Jan 2007  Feb 2007 March 2007.....Dec 2007
    Query 2: Gets G/L Debit Amounts for Jan 2007 Feb 2007 march 2007.....Dec 2007
    I need to put both these Queries in a worksheet one below the other and add the totals by each month.....so the final report looks something like this:
    I am using two structures to hold the query values.
    G/L Credit Amount        Jan 2007    Feb 2007.............Dec 2007
                                        +100         +200                   +400
    G/L Debit Amount           -50           -100                     -200
    Total                              50             100                      200
    Also, I would like to allow the users to enter Year as a variable. Any suggestions?
    Your help is greatly appreciated.

    Venkata,
    Thanks for your reply. Could you explain how I insert two query results into one worksheet? And, also how do I link the two structures ( one structure per query) so I can total the amounts by each month?
    Thank you in advance.

  • How to automate the queries

    hii everyone
    I want to automate queries.i.e they should be executed automatically on a particular day in the week. can we do it through oracle jobs..actually wht the case is i will be executing 5 queries evey tuesday.the output frm these queries are used to process another job tht runs every tuesday evening.rather than executing all these queries everytime i want to automate these queries.
    can anyone help me how to automate this job.
    thnakx

    hii justin
    thnkx for the reply..
    the queries wht im executing are little bit complex.one query is dependent on the other..im sending u the steps wht i will be doing when the queries are executed
    Below mentioned are the steps to be followed to check if the rewards job ran successfully or not –
    1.     Run the QUERY #1 in Rewards_Queries_Weekly_Test.sql
    2.     Note down the number of records returned in STEP 1.
    3.     Run the QUERY #2 in Rewards_Queries_Weekly_Test.sql.
    Enter current date as INPUT parameter.
    4.     Note down the number of records returned in STEP 3.
    5.     Compare the number of records returned in STEP 1 and
    number of records returned in STEP 3. BOTH THE NUMBERS
    SHOULD MATCH TO PROCEED TO NEXT STEP.
    6.     Copy the results of QUERY #1 to an excel sheet. Do not copy
    the serial number generated by PL/SQL Developer.
    Copy only the fields returned.
    7.     Copy the results of QUERY #2 to an excel sheet.
    Do not copy the serial number generated by PL/SQL Developer.
    Copy only the fields returned.
    8.     Assuming that the results of QUERY #1 were copied to the
    columns A1 & B1 and the results of QUERY #2 were copied to
    the columns D1 & E1, copy the following formula
    to F2 =IF((A2=D2)*(B2=E2),0,1)
    9.     The output of STEP 8 would be either 0 or 1 in the cell F2.
    1 indicates the records with mismatch and 0 indicates the correct
    records which can be ignored. It is possible that the records with
    mismatch have an entry in job special pay table and these records
    also can be ignored. These records can be filtered
    by following next steps.
    10.     Copy the data in the cells D1,E1 and F1 to H1, I1 and J1 respectively.
    While pasting use the option paste Special and select Values option
    in the dialog box.
    11.     Sort H1, I1 and J1 data by J1 descending and next by H1 ascending.
    This would list all the in correct records first and correct records next
    so that they can be ignored.
    12.     Now run the QUERY #3 and copy the results to K1. Do not copy the serial number generated by PL/SQL Developer. Copy only the fields returned. These records indicate the rewards special pay records given in the last one week.
    NOTE: The QUERY #3 expects two dates in the IN clause. These dates should be Current Date (Since the reward jobs run on Tuesday it will be always current Tuesday’s date) and Last Tuesday’s date.
    13.     Select all the incorrect records in the cells H1, I1 and J1 and apply
    the following conditional formatting formula with format as RED color.
    = VLOOKUP($H2,$K$2:$K$220,1,FALSE) <> " "
    NOTE: In the above formula change the value of K$220 based on the number of rows you get in the cell K from the results of QUERY #3.
    14.     The records with BLACK color are the actual records with some issue. Investigate each record manually and analyze the issue. Keep negative hours adjustment, 26 weeks rule in mind while doing so.
    the above are 14 steps i will be doing every tuesday when im executing the queries
    i want to automate the whole process wht im doing in the 14 steps..
    could u suggest me something on this
    srikanth

  • Scripting for different numbers of table rows in cs3

    As always thank you for the help.
    My question: is there a simple newbie way to script for stroke placements when the numbers of rows in the category between the stroke will vary. I have not even attempted to script this style, as frankly I don't know where to start, but here is an explanation of what I need:
    The table foodstuff contains:
    animal, vegetable, fruit
    Under animal there is:
    beef, lamb, pork, poultry
    Under vegetable there is:
    potato, pepper, onion
    Under fruit there is:
    orange
    If wanted a line under each category, ie after poultry, after onion, and after orange how would I go about it.
    Thank you to all who have helped me so far, either by reading answers to other people's queries, or by responding directly to my own

    Interesting ... I don't think there is a newbie-level answer to this challenge. It comes down to finding the first (left-to-right) cell that contains text, and adding a line on top of it all the way to the last cell in that row.
    Here's a first attempt:
    table = app.selection[0];
    if (table.hasOwnProperty("baseline"))
    table = table.parent;
    if (table instanceof Cell)
    table = table.parent;
    if (table instanceof Column)
    table = table.parent;
    if (table instanceof Row)
    table = table.parent;
    if (table instanceof Table)
    table.cells.everyItem().properties = {topEdgeStrokeWeight:0, bottomEdgeStrokeWeight:0, leftEdgeStrokeWeight:0, rightEdgeStrokeWeight:0};
    table.rows.lastItem().bottomEdgeStrokeWeight = 1;
    for (r=0; r<table.rows.length; r++)
      for (c=0; c<table.rows[r].cells.length; c++)
       if (table.rows[r].cells[c].contents)
        for (; c<table.rows[r].cells.length; c++)
         table.rows[r].cells[c].topEdgeStrokeWeight = 1;
        break;
    } else
    alert ("You were supposed to be somewhere inside a Table");

Maybe you are looking for

  • Vgb200 usb 2.0 video capture adaptor

    Hello I got a usb converter for analog video to digital but n \ with the imac to recognize the external drive. I need help.

  • How to increase font size in Contacts on ipod Touch?

    My aging eyes are having a hard time reading the contact info on my ipod Touch 2G. Is there a way to increase the font size in Contacts?

  • Invoicing plan process

    Hi, We are setting up invoicing plan in our system. Can anybody please help in following. 1. How can we setup invoicing date as 15th of every month. My client want to have the invoice generated on 15th. 2. For first 12 months amount should be 8000 an

  • IPhone Backup / Restore questions

    Maybe this has been covered here, but I am confused about backing up the data on my new iPhone - 1) When iTunes says "backing up iPhone" before the sync . . . what is it backing up? Contacts? Music? Pictures? Applications? 2) What does Restore do? It

  • Request in Yellow State in Delta update cube.

    Dear Exprts, In request , no. of transfered record is 73260 &  added record in cube 73212 with yellow status. Everything O.K. but in Data package  2  in update rule it has  tranfered only 16247 out of 16295. ( this is same diffrence of number of reco