Quer needed

Hi..
I need a query to add a year to a date..

doing ADD_MONTH(date, 12 * n) should do
where n is the number of years you wish to add

Similar Messages

  • How can one decide which queries need BIA to enhance their performance?

    How can one decide which queries need BIA to enhance their performance?

    Queries with high data access times will usually require BIA. This can be found by using the Event IDs...
    Please do not post across forums - your earlier post was deleted as duplicate.
    Also search the forums before posting... this question has been answered earlier...
    Edited by: Arun Varadarajan on May 5, 2009 7:24 PM

  • OATS Queries Need Clarifications

    Hi ALL,
    I am having following Queries... ?
    Can anyone clarify.
    1. Does OATS is a platform Independent or Not?
    2.What are the supported Applications that OATS-tool can test?
    3.OATS License Tool Cost?

    1. Does OATS is a platform Independent or Not?
    Well yes and no.
    If you are referring to the platform that you can run test against, yes (as far as it's a web app or oracle db or other technology that we support ootb)
    If you are referring to the platform where you can install OATS, no (see the prerequisites in the documentation)
    2.What are the supported Applications that OATS-tool can test?
    Generally speaking and ootb, Web applications supported in a web browser (http/https)
    Web services (SOAP)
    Oracle DB
    Some other technology can be supported with some scripting effort (ftp, telnet, command line, other database and so on)
    3.OATS License Tool Cost?
    http://www.oracle.com/us/corporate/pricing/index.html
    but the best is to discuss with your sales rep.
    JB

  • ECATT Queries  - Need Some Help

    >> I have query regarding the SAPGUI recording pattern of eCATT. I could trap the messages of type 'E' ie. error and made my script to run in success mode.
    But here if any message type other than 'E'(Error) occurs then SAPGUI recording will fail to handle this.
    Specially when the info message or Warning message comes on enter key of any screen, which should ideally take to next screen as expected by recording, the script fails due to info or warning message. This won't be trapped also as one can specify only ONE message type in <Command Interface>. So how to overcome such situation.
    >> There are optional screens which don't come in normal execution but are recorded only due to possible scenarios. Is there is any way of making the SAPGUI recording screens optional to make the execution flow independent of any fixed scenarios.
    >> Again, is it possible to speed up the SAPGUI by changing the default time which the system takes, while running SAPGUI recording, for each step. (eg. enter key is automatically pressed after the customer number on screen, then next screen and so on. The time taken for pressing the enter key is default by system)
    SAPGUI Patch level 44
    Release 6.20
    Thanks & Regards.

    Whenever this kind of problem appears, the only useful option is a restore, and this is why it's essential to keep copies of the music on the computer or other back up. A restore is a common fix for iPod ills.
    Try The Five Rs, but of course the last R is a restore.

  • Few Queries -- need clarification.

    Hi guys,
    I have few functional puzzle that I'm unable to solve. With experts help, I think I would be able to do the same.!
    Note: All questions relating to SAP B1
    <b>1.</b><b>If they make an error during transaction of say Issue for production and an
    error of data entry is made, how do we reverse or cancel the transaction?</b>
    <b>2.</b><b>How do we close the sales/production order or cancel the order if they have changed the plan for the same? </b>
      i.e. If I have a situation wherein I plan for a particular sales order, thus raising the purchase and production order for the same.During the time I receive another sales order which would be of more profitable, so I want the plan to change to the new sales order, though I will produce for the previous order but the current plan should be changed to new order is it possible..?!
    Regards,
    Aditya
    Consultant Business Solutions
    (SAP B1)

    No 1.
    The cancelation of issue for production is impossible. There are no other ways except cancel the production order (PO)
    No. 2
    Could it be possible using sales quotation ?? you may try to do that. Instead of recreating new sales order based on planned sales order and closing the sales order more than one times.
    No. 3.
    This seems to be an outgoing payment but to customer. You could try using outgoing payment and in the remarks , just wrote the SO No.
    No. 4.
    As far as I know it is only in sales order logistic tab that has a thick box split PO.
    The answers are based on SAP B1 2004A. For comparison onyl.
    Rgds,

  • SQL queries help need-urgent

    Based on your inputs-I studied and created the below objects.I apologise for asking lengthy questions,but i
    need your help very much now to proceed next.
    There is a COMPANY WHICH has many divisions/departments in it.
    These divisions has employees.
    *{color:#0000ff}--Created employee table which employee_id and Salary.*
    **employees (*empid,salary){color}*
    *{color:#0000ff}***DO i need to put the DEPT_ID and Manager_id in the EMPLOYEES table? {color}*
    *{color:#0000ff}--Presently,iCreated a relationship table to have EMPLOYEE"S MANAGER information.a manager is an employee itself.{color}*
    *{color:#0000ff}--Created a table for EMPLOyee and department---RELATIONSHIP ---&gt; empl_id and dept_id{color}*
    The COMPANY has numerous Products(also we can say projects) and these project work is done by the various depts.
    *{color:#0000ff}Projects /Job table*
    *--job_id*
    *--Project_name*
    *--Budget Amount{color}*
    *{color:#0000ff}--Created a table for Project and department---RELATIONSHIP ---&gt; proj_id and dept_id*
    *--Also,Created a table for Project and Employee---RELATIONSHIP ---&gt; proj_id and employee_id{color}*
    Also,here scenario (1)Employees can work or be a part of many or multiple departments and work for multiple projects/products at a time (2)As usual-each Department has a manager.**EVery dept can handle or work only on one project.
    *{color:#0000ff}--Created a table for Project and department---RELATIONSHIP ---&gt; proj_id and dept_id*
    *--Also,Created a table for Project and Employee---RELATIONSHIP ---&gt; proj_id and employee_id*
    *{color}*
    _*{color:#000000}***(1)Are the tables and the relationships defined above enough or have i created too much tables?Please advise me.{color}*_
    Queries:-Need to write SQLs for below items.Please help me.Could you all have a look
    bq. h5. {color:#0000ff} \\ _     (2)SQL for a person see all his manager?***A person can have 2,3 managers._ \\ _     (3)need a person---&gt;manager--&gt;and their manager's MANAGER_ \\ _     (4)How will managers to view all employees reporting to him._ \\ {color} \\ h5. \\ {color:#0000ff}_(5)feasibility (SQL) to support the increase of salaries of employees in a department by percentage or amount wise._ \\ _     (6)SQL to update or change manager of a department/employee._ \\ {color} \\ h5. \\ {color:#0000ff}_(7)If a employee is removed-then all related details should also be removed._ \\ _     (8)to remove person and department,terminate a person from organisation_ \\ _     SHIFTING a person to different department,assign a person to a department_{color} \\ h5. {color:#0000ff}_SQL to collect all info of a person, his managers , departments and project this employee works._ \\ _     find Department which dont have managers._{color} \\ h5. \\ {color:#0000ff}_****find expenditure all projects together in terms of salary_{color}

    Sorry for all the confusion with the questions.So let me clear myself,i am doing this not as assignment or homework,but something
    which interests me and trying to leran.Earlier as I stated that its a part of my school(** well frnakly speaking, it was my plan if i could
    put this as an item of the school as the scope is very huge.
    *(1)one employee can be in many departments(1 TO MANY) and and each department has one manager.(1 to 1)*
    Created a table for EMPLOyee and department-RELATIONSHIP ---&gt; empl_id and dept_id*
    (2)Also,an employee can work in multiple items/projects(1-MANY) at a time. And a project HAS only one department.(1 to 1)
    **Projects table created has codes,the Project name ,Planned budget cost/amount, start_date and end_date AND DEPART_ID
    Also,Created a table for Project and Employee-RELATIONSHIP ---&gt; proj_id and employee_id*
    This is the full scenario has put above.So,i needed help as I am very confused if i have done the correct relationships.
    And,these below items are my plans to allow the schema nd tables support it.
    (2)how will a person see all his manager?***A person can have 2,3 managers.(EMP-&gt;MANAGER relationship TABLE)
    (3)SQL to be able to show a person---&gt;manager--&gt;and their manager's MANAGER
    (4)How will managers to view all employees reporting to him.
    (5)SQL to support the increase of salaries of employees in a department by percentage or amount wise.
    (6)SQL to update or change manager of a department/employee.
    (7)If a employee is removed-then all related details should also be removed.
    (8)to remove person and department,terminate a person from organisation
    SHIFTING a person to different department,assign a person to a department
    Projects /Job table EMPLOYEES TABLE-&gt; SALARY info
    --job_id
    --Project_name
    --Budget Amount

  • Bursting a report with multiple queries

    Hi,
    I need to set-up bursting in BIP for a report with multiple queries. The output format is pdf and delivery is through e-mail. Since the queries need to be linked, I'm trying to do this using data template. I've set-up split and burst based on a field (store_id) from the first query which is used as a bind variable in the subsequent queries. So I'd ideally want the report to be split based on store_id. The report works fine if I use a parameter for store_id and view the output by store_id. When I try to schedule the report for bursting, it generates and e-mails the reports but only the last report appears to have correct data output while the others have only the output from the first query (and all other queries appear to return nothing in the report).
    Any suggestions on what could be the issue here? Thanks!
    Here is the data template for the report:
    <dataTemplate name="Report" description="Report" dataSourceRef="ReportDB">
    <dataQuery>
    <sqlStatement name="STORE_VENDOR">
    <![CDATA[SELECT STORE.STORE_ID Q1_STORE_ID, VENDOR.VENDOR_ID Q1_VENDOR_ID, VENDOR.VENDOR_DESC Q1_VENDOR_DESC, PERSON.NAME Q1_NAME
                   FROM STORE, SERVICE_TICKET, VENDOR, ROLE, ROLE_TYPE, PERSON, PERIOD PERIOD_FROM, PERIOD PERIOD_TO
                   WHERE (SERVICE_TICKET.SOURCE_ID = STORE.SOURCE_ID AND SERVICE_TICKET.STORE_ID = STORE.STORE_ID)
                   AND (SERVICE_TICKET.SOURCE_ID = VENDOR.SOURCE_ID AND SERVICE_TICKET.VENDOR_ID = VENDOR.VENDOR_ID)
                   AND (STORE.SOURCE_ID = ROLE.SOURCE_ID AND STORE.STORE_ID = ROLE.STORE_ID)
                   AND (ROLE.SOURCE_ID = ROLE_TYPE.SOURCE_ID AND ROLE.ROLE_TYPE_ID = ROLE_TYPE.TYPE_ID AND ROLE_TYPE.TYPE_DESC = 'PIC')
                   AND (ROLE.SOURCE_ID = PERSON.SOURCE_ID AND ROLE.PERSON_ID = PERSON.PERSON_ID)
                   AND SERVICE_TICKET.START_DATE BETWEEN PERIOD_FROM.START_DATE AND PERIOD_TO.END_DATE
                   AND PERIOD_FROM.PERIOD_DESC = 'Cal Week 1'
                   AND PERIOD_TO.PERIOD_DESC = 'Cal Week 4'
                   GROUP BY STORE.STORE_ID, VENDOR.VENDOR_ID, VENDOR.VENDOR_DESC, PERSON.NAME
                   ORDER BY STORE.STORE_ID]]>
    </sqlStatement>
    <sqlStatement name="WO">
    <![CDATA[SELECT STORE.STORE_ID Q3_STORE_ID, 'Nightly Cleaning' Q3_NIGHTLY_CLEANING, 'Nightly Cleaning' Q3_DESCRIPTION, SERVICE_TICKET.TICKET_ID Q3_TICKET_ID, TO_CHAR(SERVICE_TICKET.END_DATE, 'MM/DD/YYYY') Q3_END_DATE, 'Excellent' Q3_QUALITY_RATING_1, 'Satisfactory' Q3_QUALITY_RATING_2, 'Unsatisfactory' Q3_QUALITY_RATING_3
                   FROM SERVICE_TICKET, STORE, PERIOD PERIOD_FROM, PERIOD PERIOD_TO
                   WHERE (SERVICE_TICKET.SOURCE_ID = STORE.SOURCE_ID AND SERVICE_TICKET.STORE_ID = STORE.STORE_ID)
                   AND SERVICE_TICKET.START_DATE BETWEEN PERIOD_FROM.START_DATE AND PERIOD_TO.END_DATE
                   AND STORE.STORE_ID = :Q1_STORE_ID
                   AND PERIOD_FROM.PERIOD_DESC = 'Cal Week 1'
                   AND PERIOD_TO.PERIOD_DESC = 'Cal Week 4']]>
    </sqlStatement>
    <sqlStatement name="SERVC_TYPE_1">
    <![CDATA[SELECT STORE.STORE_ID Q4_STORE_ID, ZONE.ZONE_DESC Q4_ZONE_DESC, SERVICE_TICKET_LINE.SERVICE_COST Q4_SERVICE_COST, SERVICE_TICKET_LINE.TICKET_ID Q4_TICKET_ID, TO_CHAR(SERVICE_TICKET_LINE.WO_END_DATE, 'MM/DD/YYYY') Q4_WO_END_DATE, 'Excellent' Q4_QUALITY_RATING_1, 'Satisfactory' Q4_QUALITY_RATING_2, 'Unsatisfactory' Q4_QUALITY_RATING_3
                   FROM SERVICE_TICKET_LINE, SERVICE_TICKET, STORE, SERVICE_TYPE, ZONE, PERIOD PERIOD_FROM, PERIOD PERIOD_TO
                   WHERE (SERVICE_TICKET.SOURCE_ID = SERVICE_TICKET_LINE.SOURCE_ID AND SERVICE_TICKET.TICKET_ID = SERVICE_TICKET_LINE.TICKET_ID)
                   AND (SERVICE_TICKET.SOURCE_ID = STORE.SOURCE_ID AND SERVICE_TICKET.STORE_ID = STORE.STORE_ID)
                   AND (SERVICE_TICKET_LINE.SOURCE_ID = SERVICE_TYPE.SOURCE_ID AND SERVICE_TICKET_LINE.SERVICE_TYPE_ID = SERVICE_TYPE.TYPE_ID)
                   AND (SERVICE_TICKET_LINE.SOURCE_ID = ZONE.SOURCE_ID AND SERVICE_TICKET_LINE.ZONE_ID = ZONE.ZONE_ID)
                   AND SERVICE_TYPE.TYPE_DESC = 'ABC'
                   AND SERVICE_TICKET.START_DATE BETWEEN PERIOD_FROM.START_DATE AND PERIOD_TO.END_DATE
                   AND STORE.STORE_ID = :Q1_STORE_ID
                   AND PERIOD_FROM.PERIOD_DESC = 'Cal Week 1'
                   AND PERIOD_TO.PERIOD_DESC = 'Cal Week 4'
                   ORDER BY SERVICE_TICKET_LINE.SOURCE_ID, SERVICE_TICKET_LINE.TICKET_ID, SERVICE_TICKET_LINE.LINE_ID]]>
    </sqlStatement>
    <sqlStatement name="SERVC_TYPE_2">
    <![CDATA[SELECT STORE.STORE_ID Q5_STORE_ID, ZONE.ZONE_DESC Q5_ZONE_DESC, SERVICE_TICKET_LINE.SERVICE_COST Q5_SERVICE_COST, SERVICE_TICKET_LINE.TICKET_ID Q5_TICKET_ID, TO_CHAR(SERVICE_TICKET_LINE.WO_END_DATE, 'MM/DD/YYYY') Q5_WO_END_DATE, 'Excellent' Q5_QUALITY_RATING_1, 'Satisfactory' Q5_QUALITY_RATING_2, 'Unsatisfactory' Q5_QUALITY_RATING_3
                   FROM SERVICE_TICKET_LINE, SERVICE_TICKET, STORE, SERVICE_TYPE, ZONE, PERIOD PERIOD_FROM, PERIOD PERIOD_TO
                   WHERE (SERVICE_TICKET.SOURCE_ID = SERVICE_TICKET_LINE.SOURCE_ID AND SERVICE_TICKET.TICKET_ID = SERVICE_TICKET_LINE.TICKET_ID)
                   AND (SERVICE_TICKET.SOURCE_ID = STORE.SOURCE_ID AND SERVICE_TICKET.STORE_ID = STORE.STORE_ID)
                   AND (SERVICE_TICKET_LINE.SOURCE_ID = SERVICE_TYPE.SOURCE_ID AND SERVICE_TICKET_LINE.SERVICE_TYPE_ID = SERVICE_TYPE.TYPE_ID)
                   AND (SERVICE_TICKET_LINE.SOURCE_ID = ZONE.SOURCE_ID AND SERVICE_TICKET_LINE.ZONE_ID = ZONE.ZONE_ID)
                   AND SERVICE_TYPE.TYPE_DESC = 'XYZ'
                   AND SERVICE_TICKET.START_DATE BETWEEN PERIOD_FROM.START_DATE AND PERIOD_TO.END_DATE
                   AND STORE.STORE_ID = :Q1_STORE_ID
                   AND PERIOD_FROM.PERIOD_DESC = 'Cal Week 1'
                   AND PERIOD_TO.PERIOD_DESC = 'Cal Week 4'
                   ORDER BY SERVICE_TICKET_LINE.SOURCE_ID, SERVICE_TICKET_LINE.TICKET_ID, SERVICE_TICKET_LINE.LINE_ID]]>
    </sqlStatement>
    <sqlStatement name="SERVC_TYPE_3">
    <![CDATA[SELECT STORE.STORE_ID Q6_STORE_ID, ZONE.ZONE_DESC Q6_ZONE_DESC, 'Excellent' Q6_QUALITY_RATING_1, 'Satisfactory' Q6_QUALITY_RATING_2, 'Unsatisfactory' Q6_QUALITY_RATING_3, 'One' Q6_QTY_MISSING_1, 'Two' Q6_QTY_MISSING_2, '3 or More' Q6_QTY_MISSING_3
                   FROM SERVICE_TICKET_LINE, SERVICE_TICKET, STORE, SERVICE_TYPE, ZONE, PERIOD PERIOD_FROM, PERIOD PERIOD_TO
                   WHERE (SERVICE_TICKET.SOURCE_ID = SERVICE_TICKET_LINE.SOURCE_ID AND SERVICE_TICKET.TICKET_ID = SERVICE_TICKET_LINE.TICKET_ID)
                   AND (SERVICE_TICKET.SOURCE_ID = STORE.SOURCE_ID AND SERVICE_TICKET.STORE_ID = STORE.STORE_ID)
                   AND (SERVICE_TICKET_LINE.SOURCE_ID = SERVICE_TYPE.SOURCE_ID AND SERVICE_TICKET_LINE.SERVICE_TYPE_ID = SERVICE_TYPE.TYPE_ID)
                   AND (SERVICE_TICKET_LINE.SOURCE_ID = ZONE.SOURCE_ID AND SERVICE_TICKET_LINE.ZONE_ID = ZONE.ZONE_ID)
                   AND SERVICE_TYPE.TYPE_DESC = 'PQR'
                   AND SERVICE_TICKET.START_DATE BETWEEN PERIOD_FROM.START_DATE AND PERIOD_TO.END_DATE
                   AND STORE.STORE_ID = :Q1_STORE_ID
                   AND PERIOD_FROM.PERIOD_DESC = 'Cal Week 1'
                   AND PERIOD_TO.PERIOD_DESC = 'Cal Week 4'
                   ORDER BY SERVICE_TYPE.TYPE_ID]]>
    </sqlStatement>
    </dataQuery>
    <dataStructure>
         <group name="G_STORE_VENDOR" source="STORE_VENDOR">
              <element name="Q1_STORE_ID" value="Q1_STORE_ID"/>
              <element name="Q1_VENDOR_ID" value="Q1_VENDOR_ID"/>
              <element name="Q1_VENDOR_DESC" value="Q1_VENDOR_DESC"/>
              <element name="Q1_NAME" value="Q1_NAME"/>
         </group>     
         <group name="G_WO" source="WO">
              <element name="Q3_NIGHTLY_CLEANING" value="Q3_NIGHTLY_CLEANING"/>
              <element name="Q3_DESCRIPTION" value="Q3_DESCRIPTION"/>
              <element name="Q3_TICKET_ID" value="Q3_TICKET_ID"/>
              <element name="Q3_END_DATE" value="Q3_END_DATE"/>
              <element name="Q3_QUALITY_RATING_1" value="Q3_QUALITY_RATING_1"/>
              <element name="Q3_QUALITY_RATING_2" value="Q3_QUALITY_RATING_2"/>
              <element name="Q3_QUALITY_RATING_3" value="Q3_QUALITY_RATING_3"/>
         </group>     
         <group name="G_SERVC_TYPE_1" source="SERVC_TYPE_1">
              <element name="Q4_ZONE_DESC" value="Q4_ZONE_DESC"/>
              <element name="Q4_SERVICE_COST" value="Q4_SERVICE_COST"/>
              <element name="Q4_TICKET_ID" value="Q4_TICKET_ID"/>
              <element name="Q4_WO_END_DATE" value="Q4_WO_END_DATE"/>
              <element name="Q4_QUALITY_RATING_1" value="Q4_QUALITY_RATING_1"/>
              <element name="Q4_QUALITY_RATING_2" value="Q4_QUALITY_RATING_2"/>
              <element name="Q4_QUALITY_RATING_3" value="Q4_QUALITY_RATING_3"/>
         </group>     
         <group name="G_SERVC_TYPE_2" source="SERVC_TYPE_2">
              <element name="Q5_ZONE_DESC" value="Q5_ZONE_DESC"/>
              <element name="Q5_SERVICE_COST" value="Q5_SERVICE_COST"/>
              <element name="Q5_TICKET_ID" value="Q5_TICKET_ID"/>
              <element name="Q5_WO_END_DATE" value="Q5_WO_END_DATE"/>
              <element name="Q5_QUALITY_RATING_1" value="Q5_QUALITY_RATING_1"/>
              <element name="Q5_QUALITY_RATING_2" value="Q5_QUALITY_RATING_2"/>
              <element name="Q5_QUALITY_RATING_3" value="Q5_QUALITY_RATING_3"/>
         </group>     
         <group name="G_SERVC_TYPE_3" source="SERVC_TYPE_3">
              <element name="Q6_ZONE_DESC" value="Q6_ZONE_DESC"/>
              <element name="Q6_QUALITY_RATING_1" value="Q6_QUALITY_RATING_1"/>
              <element name="Q6_QUALITY_RATING_2" value="Q6_QUALITY_RATING_2"/>
              <element name="Q6_QUALITY_RATING_3" value="Q6_QUALITY_RATING_3"/>
              <element name="Q6_QTY_MISSING_1" value="Q6_QTY_MISSING_1"/>
              <element name="Q6_QTY_MISSING_2" value="Q6_QTY_MISSING_2"/>
              <element name="Q6_QTY_MISSING_3" value="Q6_QTY_MISSING_3"/>
         </group>
    </dataStructure>
    </dataTemplate>

    Hello user6428199,
    When you use ":Q1_STORE_ID" in your queries, BI Publisher looks for a report parameter named Q1_STORE_ID. Change all your report queries to get data for all the store_id's available. As you are bursting the report using the store_id as the bursting key, BI Publisher will split the report based on the stored_id and delivers content based on it. No matter how many queries you may have, BI Publisher will loop through all the store_id's available and all the queries will return data for that particular id in a report.
    Thanks,
    Machaan

  • Warehouse partitioning - performance of queries across multiple partitions?

    Hi,
    We are using Oracle 11.2.0.3 and have a large central fact table with several surrogate ids which have bitmap indexes on them and have fks looking at dimension tables + several measures
    (PRODUCT_ID,
    CUSTOMER_ID,
    DAY_ID,
    TRANS_TYPE_ID,
    REGION_ID,
    QTY
    VALUE)
    We have 2 distinct sets of queries users look to run for most part, ones accessing all transactions for products regradless of the time those transactions happened (i.e. non-financial queries - about 70%,
    queries determining what happened in a particular week - 20% of queries.
    Table will have approx 4bn rows in eventually.
    Considering adding extra column to this DATE and range partition this to allow us to drop old partitions every year - however this data wouldn't be joined to any other table.
    Then considering sub-partitioning by hash of product_id which is surrogate key for product dimension.
    Thoughts on performance?
    Queries by their nature would hit several sub-partitions.
    Thoughts on query performance of queries which access several sub-partitions/partitions versus queries running aganist a single table.
    Any other thoughts on partitioning strategy in our situation much apprecaited.
    Thanks

    >
    Thoughts on query performance of queries which access several sub-partitions/partitions versus queries running aganist a single table.
    >
    Queries that access multiple partitions can improve performance for two use cases: 1) only a subset of the entire table is needed and 2) if the access is done in parallel.
    Even if 9 of 10 partitions are needed that can still be better than scanning a single table containing all of the data. And when there is a logical partitioning key (transaction date) that matches typical query predicate conditions then you can get guaranteed benefits by limiting a query to only 1 (or a small number) partition when an index on a single table might not get used at all.
    Conversely, if all table data is needed (perhaps there is no good partition key) and parallel option is not available then I wouldn't expect any performance benefit for either single table or partitioning.
    You don't mention if you have licensed the parallel option.
    >
    Any other thoughts on partitioning strategy in our situation much apprecaited.
    >
    You provide some confusing information. On the one hand you say that 70% of your queries are
    >
    ones accessing all transactions for products regradless of the time those transactions happened
    >
    But then you add that you are
    >
    Considering adding extra column to this DATE and range partition this to allow us to drop old partitions every year
    >
    How can you drop old partitions every year if 70% of the queries need product data 'regardless of the time those transactions happened'?
    What is the actual 'datetime' requirement'? And what is your definition of 'a particular week'? Does a week cross Month and Year boundaries? Does the requirement include MONTHLY, QUARTERLY or ANNUAL reporting?
    Those 'boundary' requirements (and the online/offline need) are critical inputs to the best partitioning strategy. A MONTHLY partitioning strategy means that for some weeks two partitions are needed. A weekly partitioning strategy means that for some months two partitions are needed. Which queries are run more frequently weekly or monthly?
    Why did you mention sub-partitioning? What benefit do you expect or what problem are you trying to address? And why hash? Hash partitioning guarantees that ALL partitions will be needed for predicate-based queries since Oracle can't prune partitions when it evaluates execution plans.
    The biggest performance benefit of partitioning is when the partition keys used have a high correspondence with the filter predicates used in the queries that you run.
    Contrarily the biggest management benefit of partitioning is when you can use interval partitioning to automate the creation of new partitions (and subpartitions if used) based solely on the data.
    The other big consideration for partitioning, for both performance and management, is the use of global versus local indexes. WIth global indexes (e.g. a global primary key) you can't just drop a partition in isolation; the global primary key needs to be maintained by deleting the corresponding index entries.
    On the other hand if your partition key includes the primary key column(s) then you can use a local index for the primary key. Then partition maintenance (drop, exchange) is very efficient.

  • Media Queries disappearing in DW CC

    When I set up my site, I had 3 media queries listed one with a mid width of 481 and one with a min width of 769.
    This is what is listed under the @media pane:
    GLOBAL
    @media only screen and (min-width:481px)
    What happened to my larger-screen media query? How do I style things just for the larger screen now? If I dont have this option appear anymore, I am not sure how to add features just to the larger desktop version if I can't select it.
    I also lost all media queries on the secondary style sheet I created. Does anyone have any advice on how I created this problem and how I can fix it?
    Thank you for your help.

    Media queries need to be wrapped inside a 2nd set of curly brackets.   They won't work without them.
    /**MOBILE MEDIA QUERY**/
    @media only screen and (max-width: 480px) {
          body {
              font-size: 80%;
    Nancy O.

  • Need some expert to check the effectiveness of my Query

    Hi,
    I am learner in Oracle, and i was given the scenario below and was asked to write queries for that. I have written the queries, I want someone to confirm if my queries satisfies the required scenario and gives proper output.
    Scenario: You have been employed as the database administrator in a software development team for a Book Store. The Database is built, as is the GUI to run the software and it is your job to implement the required SQL Queries to communicate the Database with the GUI. You will be using the database “Bookstore”; this database is available from INB122 blackboard unit page. The database has the following four tables as shown below. Primary key of each table is underlined.
    Publisher(publisherCode, publisherName, publisherCity, publisherState)
    Author(authorNumber, authourName, authorFirst)
    Book(bookCode, bookTitle, publisherCode, bookType, bookPrice, paperback)
    Wrote(bookCode, authorNumber, sequenceNumber)
    The Queries needs to be broken into two components. The first involves the development of SQL queries that you will test directly against the database. These will serve as the basis for the second component which will involve modifying the original queries to allow for non-static fields/conditions.
    For example, if the Query was to list all the books that are a set price (say $30), you would have
    SELECT bookTitle FROM Book WHERE bookPrice = 30;
    Here the price ($30) is something that the non-static GUI will be allowed to vary and
    consequently would take the form:
    SELECT bookTitle FROM Book WHERE bookPrice = ?;
    Question 1:
    --List the titles of all Books that are in a given price range, which are a given book type
    --and are printed by given publisher.
    --Part 1 Test Case = $40 - $60, HOR, Gale
    SELECT bookTitle from book b, publisher p
    WHERE b.publisherCode = p.publisherCode
    AND b.bookPrice BETWEEN 40 AND 60
    AND b.bookType = 'HOR'
    AND p.publisherName = 'Gale';
    SELECT bookTitle from book b, publisher p
    WHERE b.publisherCode = p.publisherCode
    AND b.bookPrice BETWEEN &minpricerange AND &maxpricerange
    AND b.bookType = '&bookType'
    AND p.publisherName = '&publisherName';
    Question 2:
    --List the titles of all Books that are in a given price range, which are written by a given
    --author and are printed by a given publisher.
    --Part 1 Test Case = $20 - $30, Smith, 'Batman Books'
    SELECT bookTitle from book b, author a, wrote w, publisher p
    WHERE b.bookcode = w.bookCode
    AND w.authorNumber = a.authorNumber
    AND b.publishercode = p.publisher code
    AND b.bookPrice BETWEEN 40 AND 60
    AND a.authourName = 'Smith'
    AND p.publishername= 'Batman Books';
    SELECT bookTitle from book b, author a, wrote w, publisher p
    WHERE b.bookcode = w.bookCode
    AND w.authorNumber = a.authorNumber
    AND b.publishercode = p.publishercode
    AND b.bookPrice BETWEEN &minpricerange AND &maxpricerange
    AND a.authourName = '&authorname'
    AND p.publishername= '&publishername';
    Question 3:
    --List the titles of all Books that are a certain book type, which are written by a given
    --author and are printed by a given publisher.
    --Part 1 Test Case = ART, Smith, 'Batman Books'
    SELECT bookTitle from book b, wrote w, author a, publisher p
    WHERE b.bookcode = w.bookcode
    AND w.authornumber = a.authornumber
    AND b.publishercode = p.publishercode
    AND b.bookType = 'ART'
    AND a.authourName = 'Smith'
    AND p.publishername= 'Batman Books';
    SELECT bookTitle from book b, wrote w, author a, publisher p
    WHERE b.bookcode = w.bookcode
    AND w.authornumber = a.authornumber
    AND b.publishercode = p.publishercode
    AND b.bookType = '&bookType'
    AND a.authourName = '&authourName'
    AND p.publishername= '&publishername';
    Edited by: Woyswer on May 8, 2012 3:49 AM

    >
    I am learner in Oracle, and i was given the scenario below and was asked to write queries for that.
    I have written the queries, I want someone to confirm if my queries satisfies the required scenario and gives proper output.Called "testing" - and we shouldn't be testing homework.
    Your queries look fine, but since you haven't provided any CREATE TABLE and particularly
    INSERT INTO TableName VALUES...
    Scenario: You have been employed... <snipetty snip>In future, if asking such questions, please provide such statements with
    tested data - i.e. the INSERT's will work.
    Oh and BTW, this is a volunteer forum - messages marked "Urgent" are a breach
    of etiquette.
    Paul...
    Edited by: Paulie on 07-May-2012 23:09

  • Transport of queries from production to developement

    Hello BI Community,
    We allow ad-hoc query development in our production system. Yet certain queries are critical and must be "certified" so that they cannot be overwritten in an ad-hoc manner.
    The method for certifying a query is to transport it from the development system, and once done the only way to change this query is to move another transport.
    As more and more sophisticated queries need to be certified, it is becoming difficult to re-create those queries in the development system for the certification process.
    Does anybody have experience or recommendations around moving a query that was originally created in the production system BACKWARDS to the development system ? Then it would be easy to move forward again via transport for certification.
    Thank you !
    Kiran

    Hi Kiran,
    1. Open production system
    2. Create transport (1) in Prod, add queries, process chains, etc.
    3. Create new transport (2) in Prod (in SE01) of type "Transport of Copies"
    4. Enter your target system on this screen (choose your Dev system here!)
    5. Include objects from transport 1 into transport 2
    6. Release transport 2 to go to Dev
    7. Delete transport 1 from Prod. This release locks on the objects.
    8. Close Prod
    8. Import transport 2 into Dev system
    OR
    The reverse transport is usually not setup , what you could do is :
    1. As BASIS to set up the connection
    2. Copy the transport object into file and then import it manually into Development
    Check this thread.............also.....
    Re: Reg : Transport  req
    Regards,
    Vijay.

  • At max how many columns is advisable to create in a table/view

    Hi All,
    I have two transaction table from which i want to create a simple view or materialized view. But the number of columns is about 200. So i want to know at max how many columns is advisable from the performance point of view.
    Even though i will create 200 columns in a view , for a perticular client installation i may not use all the columns.
    one more thing i will never use 200 columns in the select statement . At a time i will use only 4/5 columns.
    It may happen from this four column one column will be the 1st and 2nd column will be the 200th one.
    I want to know how it affects the performance and in which scenario . Please help if any body knows or already faced this kind of scenario.
    I am using oracle 10g .

    Annapurna Nayak wrote:
    thanks for ur reply .
    We are going to use this view in a report , so if i will create it as simple view it will affect report performance. because the view script is too long ...so every time quring to a view will decrease the performance.
    Are you asking me if it will? I think it probably won't but of course you have the means to test it to be sure, right?
    As u said MV should be done with minimum possible column . what can be the maximum column in MV ..??It would be defined by the limits on:
    * The maximum number of columns that a table can contain
    * The size of the query needed to define the select statement
    * Limitations on queries needed to maintain the data
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14237/limits003.htm#i288032

  • SID in Update Table of DSO

    Hi,
    What is the use of the SID in the update (or new) table of DSO? Anyway the values of the data and key fields are stored in this table. How does the SID entry help here?
    Regards,

    Hello Suraj
    Yes , you are correct why do we need SID for DSO if it supposed to have a Flat Structure like a Db table? Quite surprising really.
    But the reason lies as BEx queries are dependent on SIDs, i.e all the BEx queries need SIDs to run. This is common for queries on Cube, DSO , InfoSet of MP. That is how BEx queries have been designed.
    You can understand that by running a query and checking the work process detail from SM50. You will see all the joins are based on SID.
    In DSO settings you may / may not  choose the option of "Generation of SIDs upon Activation". If you do not choose the option, SIDs will not be generated during activation and in BW3.5 you can not report on this DSO. But in BI 7 , you can report in this case also, as system generates SIDs run time. Query response will be slower then.
    If you do not generate SIDs during activation, that does not have any impact on DTP loading time. But it has huge impact on DSO activation time. Not generating SIDs will make your DSO activation time 1/3 rd approximately.
    Hope , I could make your doubt clear. Let me know if you have any more question.
    cheers
    Anindya

  • Problem with unit in Query

    Hallo Experts,
    We encounter a problem with unit in our Query.
    Szenario:
    We use the Unit like PC, SET in Query.
    In Table T006 those Units have value 0 in the field ANDEC, so they will be rounded up and rounded down in Query.
    Our Problem is some Queries need the rounding up and down but others don't need this function.
    Where and how should we change to solve the problem.
    thanks & Best regards

    hi,
    if you want to control the rounding off while unit conversion you can do it from SPRO
    In the BW system, goto SPRO -> SAP NetWeaver -> General Settings -> Check Units of Measurement -> Units of Measurement -> Choose the unit corresponding to 'KM' -> Click on 'Details' button in the toolbar.
    Look the field 'Decimal Pl rounding'. Change this to 3 or whatever value you choose and see if it works.
    in above link i have taken example of KM, you need need to select the required unit.
    let us know if this is solves your problem. I am not sure if this can be done for individual queries but this is controlled by UOM wise as mentioned above.
    Regards,
    Rk.

  • Bex transport  in SAP BW 3.1

    Hello everybody,
    how do you organize Bex transport in SAP BW?
    In our installation, we find it necessary that some queries need to be designed in development system and tested before transport in production. We would like the person who's creating these queries to be able to create and release the transport for his query himself. With just one standard Bex transport this seems difficult to implement:  In our constellation, the standard Bex transport can not be transported to production system, because it may contain test queries, which are not wanted in productive system at all and collects changes of different projects and persons, so it may contain objects that are still in test status, while others need to be transported to production system. Collecting into different requests is only possible if the concerned objects belong to different packages?
    Collecting the needed objects in a transport request manually can't be done without releasing the Bex transport first because otherwise the objects are locked.
    How do you organize Bex transports in your system landscape?
    Thanks for any suggestions, Kathrin!

    Hi Kathrin,
    if you create a query in the development-system, the query will go to the Package $TMP, so no Transport is necessary. If you have a naming-convention, like <InfoProvder>_QU_nnnn or someting else for non-test Queries, it is easy to fetch them in the Transport Connection (Admin Workbench) and transport them in the production-system.
    Hope this helps,
    Regards
    Frank

Maybe you are looking for