Where is the sql in a custom folder stored in the  db tables?

Hi
Does anyone know the name of the table & column that holds the sql that you write in a custom folder. I thought it might be EUL_OBJS as there are 4 columns called obj_object_sql1-4 but for a recently created custom folder these columns are blank.
I hope someone knows the answer to this as I have to investigate whether a value has been hard-coded into all our customised sql & would rather not have to go through each folder in turn!
Thanks in advance
Claire

Chris CA wrote:
It is in the song file itself.
Most of the information gets stored in the file tags. Exceptions include files that don't support tags, e.g. wav & mov. Other information that is only ever stored in the library, rather than the tag, includes date added/modified, rating, last played, podcast details, playlist membership etc.
tt2

Similar Messages

  • Where in the icx tables are price break and price break quantities stored?

    I am trying to build a query from the icx tables that will show me all the BPA line price breaks and quantities.
    I cannot seem to find any documentation on what is specifically is extracted from the BPA lines when an internal catalog build is performed. I am able to validate that in iP, the price breaks are being taken into consideration when I create Requisitions with various quantities, but I do not know where iP is storing this information. Perhaps the data isn't stored and is taken from the core app po_line_locations_all table at the time the requisition is being created?
    I have a BPA, line 27, that has multiple price break lines.
    select rt_item_id, price_type, contract_num, contract_line_num, allow_price_override_flag, not_to_exceed_price, value_basis
    from apps.icx_cat_item_prices
    where contract_num = 'xxxxxx' and contract_line_num = '27'
    and price_type = 'BLANKET';
    All I could find when running this query was the price break information for the first price break line, none of the other price break lines.
    If anybody knows where the documentation is that tells me exactly what is extracted from the core application BPA to the icx tables, I would be greatly appreciative. Even better, if someone already knows the answer to either 1) price break and quantity are not stored in icx tables or 2) they are stored and you have SQL that shows me how to find it, I would be so very appreciative to have this information.
    Edited by: user6287397 on Jan 24, 2009 6:40 AM

    I got the answer. :-)
    Price breaks details are not stored in any icx tables. iP retrieves the information based on the need by date entered on the requisition.
    Oracle support referred me to the Oracle® Purchasing Release 11i10 Open Interfaces and APIs.
    The java code - SourceDocHelper.java - is responsible to get the price information by calling the procedure po_price_break_grp.get_price_break (POXPRBKB.pls DefaultPricing ) For a given a Source Document (Quotation/Catalog), Quantity and Unit of Measure, this procedure derives the best price for the calling routine.
    The SQL used to get the price information that was sent to me is attached. Note that this SQL uses the need by date to get the right price in case of price break used at the distribution level.
    SELECT poll.price_override
    , round(poll.price_override * v_conversion_rate,
    l_base_curr_ext_precision )
    , poh.rate_date
    , poh.rate
    , poh.currency_code
    , poh.rate_type
    , poll.price_discount
    , poll.price_override
    , decode( poll.line_location_id,
    null, pol.unit_meas_lookup_code,
    poll.unit_meas_lookup_code)
    , poll.line_location_id -- SERVICES FPJ
    FROM po_headers_all poh -- FPI GA
    , po_lines_all pol -- FPI GA
    , po_line_locations_all poll -- FPI GA
    WHERE poh.po_header_id = p_source_document_header_id
    and poh.po_header_id = pol.po_header_id
    and pol.line_num = p_source_document_line_num
    and pol.po_line_id = poll.po_line_id
    and ( p_required_currency is null
    or poh.currency_code = p_required_currency )
    and ( p_required_rate_type is null
    or poh.rate_type = p_required_rate_type )
    and nvl(poll.unit_meas_lookup_code, nvl(p_unit_of_measure,
    pol.unit_meas_lookup_code))
    = nvl(p_unit_of_measure, pol.unit_meas_lookup_code)
    Change sysdate to l_pricing_date in order to use the Need By
    Date
    to determine the price.
    and (trunc(nvl(l_pricing_date, trunc(sysdate))) >= trunc(poll.
    start_date) -- FPJ Custom Price
    OR
    poll.start_date is null)
    and (trunc(nvl(l_pricing_date, trunc(sysdate))) <= trunc(poll.
    end_date) -- FPJ Custom Price
    OR
    poll.end_date is null)
    --Bug #2693408: added nvl clause to quantity check
    and nvl(poll.quantity, 0) <= nvl(p_in_quantity, 0)
    Determining the price based on ship-to-location and
    destination organization
    and ((poll.ship_to_location_id = v_ship_to_location_id OR poll.
    ship_to_location_id is null)
    AND
    (poll.ship_to_organization_id = p_destination_org_id OR poll.
    ship_to_organization_id is null))
    and poll.shipment_type in ('PRICE BREAK', 'QUOTATION')
    -- <2721775 START>: Make sure Quotation Price Breaks are Approved.
    AND ( -- ( poll.shipment_type IS NULL )
    ( poll.shipment_type = 'PRICE BREAK' )
    OR ( ( poll.shipment_type = 'QUOTATION' )
    AND ( ( poh.approval_required_flag <> 'Y' )
    OR ( EXISTS ( SELECT ('Price Break is Approved')
    FROM po_quotation_approvals pqa
    WHERE pqa.line_location_id = poll.line_location_id
    AND pqa.approval_type IN ('ALL
    ORDERS', 'REQUISITIONS')
    AND trunc(nvl(l_pricing_date,
    sysdate)) -- FPJ Custom Price
    BETWEEN
    trunc(nvl(start_date_active, sysdate-1))
    AND trunc(nvl(end_date
    _active, sysdate+1)))))))
    -- <2721775 END>
    order by poll.ship_to_organization_id ASC, poll.ship_to_location_id ASC,
    NVL(poll.quantity, 0) DESC,
    trunc(poll.creation_date) DESC, poll.price_override ASC; /*
    */

  • Where is the employees table in hr 10g xe database?

    when i connect to oracle 10g express edition (xe) through an application called crystal reports, i see an hr with tables that include employees, jobs, countries etc.
    however, when i use sqlplus from my c prompt and execute the following query:
    select * from tab;
    the above tables do not show up whatsoever.
    how can i get to hr? where is it hiding?
    thank you.

    Have you executed the script that I gave you?
    You could query in hr schema using crystal reports?
    Check the owner name of the table usinf all_objects.
    SQL> desc all_objects
    Name                                      Null?    Type
    OWNER                                     NOT NULL VARCHAR2(30)
    OBJECT_NAME                               NOT NULL VARCHAR2(30)
    SUBOBJECT_NAME                                     VARCHAR2(30)
    OBJECT_ID                                 NOT NULL NUMBER
    DATA_OBJECT_ID                                     NUMBER
    OBJECT_TYPE                                        VARCHAR2(19)
    CREATED                                   NOT NULL DATE
    LAST_DDL_TIME                             NOT NULL DATE
    TIMESTAMP                                          VARCHAR2(19)
    STATUS                                             VARCHAR2(7)
    TEMPORARY                                          VARCHAR2(1)
    GENERATED                                          VARCHAR2(1)
    SECONDARY                                          VARCHAR2(1)
    SQL> Cheers
    Sarma.

  • Creating table types for procedures at design time: Where is the "Local Table Type" tab?

    Hello,
    I want to write a stored procedure (development perspective, repository object) and need to create a table type for the result table.I am working on HANA Studio 1.80.1 and the documentation tells me that I should open the "Local Table Types" tab. However, I do not see where this tab is.
    I get an SQLScript tab nothing else. Any hints?
    Regards,
    Andreas

    Hi ,
    Have a look on this discussion:
    Table type creation via HS repository / CDS / DDl Source
    Regards,
    Krishna Tangudu

  • Where is the build table express vi located in the function table?

    I must be blind but I can't locate the build table express vi in lv8 or 8.5.  Someone slap be upside the head and point it out.  Thanks

    It's on the Controls palette. Were you looking on the Functions palette?
    Message Edited by Dennis Knutson on 04-23-2008 08:22 PM
    Attachments:
    Express XY Graph.PNG ‏17 KB

  • After running sql scripts in SQL plus, where are the results(tables) stored

    Hi ,
    I am using oracleDb10g . i have used SQL plus to create a database. I have run 2 sql scripts and constructed the tables , but i dont know where the data is stored and how to make the data into a database, so that i can use it for connection through some UI.
    for example: schema.sql, data.sql script files.
    SQL> start schema.sql
    SQL> start data.sql
    The tables are created.
    Now how can i group those table into a database and name it.(i mean i can create a database using SQL plus, but how to dump the tables into the database created). Because i want to use this database name for connecting to MS SQL, so i need the name.
    Thanks
    babu.

    when you are in Rome, sing with the romans !
    Oracle is different from SQL Server.
    Time to read some basic books.
    --> http://tahiti.oracle.com

  • OIM-DB - Where is the right table?

    Hi,
    i need the table in the OIM-DB (10.2) where i can find the User Data and resource information?
    WWSEC??? Which User? ORASSO...?
    Please i need your help...

    OIM 9.1.0.2 Schema there is no table with all of these information together. But SQL Statement should help you with those. If you need more details from users include in join USR table and desired columns.
    select oiu.usr_key usrkey, orc.orc_tos_instance_key toskey,obj.obj_key objkey
    from oiu , orc , ost, obj
    where orc.orc_key = oiu.orc_key
    and oiu.ost_key = ost.ost_key
    and ost.obj_key = obj.obj_key
    and obj.obj_name like 'RESOURCE%'
    join this with USR to find by name ORASSO or just get usr_key of ORASSO user.
    and oiu.usr_key usrkey = KEYOFUSER_ORASSO
    group by oiu.usr_key, orc.orc_tos_instance_key, obj.obj_key
    I hope this helps.
    Thiago L Guimaraes

  • RSPLAN filter - where is the data table stored

    hi
    When rsplan planning modeller saves the filter, where could I read the value from a function module or transparent table?
    thanks.

    Hi,
    Filter is an object that describes a multidimensional segment of data from a data set. Filters are used in reporting, analysis and planning, for example, to restrict data to a certain business area, certain product groups or certain time periods. You segment data in this way so that users or user groups only have access to the data that is relevant to them or so that only certain data areas are available within an application scenario.
    Within BI Integrated Planning, filters determine the selection of data upon which a planning function is executed. A planning sequence comprises a set of planning functions. A filter is assigned to each of these functions.It holds the set of data isa n underlying table accessed by system when ever this filter is called for.
    You want to revaluate the transaction data in your InfoProviders by a factor of
    10%. However, you only want to perform the revaluation for certain groups of
    customers. To do this, you create a filter that contains the group of customers
    for which you want to revaluate data.
    Filters can be reused in planning functions and in queries.
    Integration
    You can create multiple filters for an InfoProvider. You do this using the Planning Modeler or Planning Wizard or the Query Designer. In the Planning Modeler or Planning Wizard, you can only define filters on aggregation levels.
    Hope this helps
    Cheers
    Raja

  • Creation of a Custom Folder in Oracle Discoverer Administration Edition

    Hi
    Could anybody help me in solving this problem while creating a Custom Folder in Oracle Discoverer Administration Edition ?
    My Requirement is :
    I Connect to EUL_US/EUL_US@<HOST_STRING> under Oracle Discoverer Administration Edition.
    I selected a Pre-Defined Business Area Eg. General Ledger
    There i created a Custom Folder by Name Test Custom Folder
    The Query which i used in my Custom Folder is
    SELECT NAME FROM GL.GL_JE_BATCHES
    When i Used this Query it says Table or view does not exist.
    The Folder is getting created but without a Query.
    I am not able to preceed further.
    Any Help would be appreciated
    Regards
    Nakul Venkataraman

    Hi Nakul, you may be running into a problem with the sql for your custom folder. For some reason Discoverer Admin will allow you to create a custom folder with sql, but then if you change it and it has any advanced sql, i.e. grouping sets, analytic functions etc., you probably receive an error.
    An option is to create a view using the same sql and create a folder from the database using this view.
    Hope this helps.
    Brent.

  • Two columns in the same table that are foreign keys to the same master key

    i want to create a table let say X, which have two columns that are foreign key that reference the same column in the master table, so does this count as bad database design.

    here is the full ddl for the two table, where in the second table there are two columns that represent the primary key and they are also two foreign keys to the same columns in the master table (items)
    Desc item table;
    Item_id
    Item_name
    Item_price
    Item_quantitiy
    Create table item_recommendation ( item_id varchar(20), recommended_item varchar(20),
    CONSTRAINT recom_primary PRIMARY KEY (item_id, recommended_item),
    CONSTRAINT F1 FOREIGN KEY (item_id) REFERENCES items(item_id), ),
    CONSTRAINT F2 FOREIGN KEY (recommended_item) REFERENCES items(item_id));

  • How to pass parameter in where clause in custom folder?

    I have the follow query
    blue color are the parameters
    i have paste this to a custom folder
    and
    select last_update_date, creation_date
    from ra_customer_trx_all
    where trunc(last_update_date)='29-SEP-2012'
    and customer_trx_id=1109
    to another custom folder returning 1 row only and create another worksheet in the same workbook and create
    3 parameter and 2 of them pointing to the 1 row query and create calcualtion
    SET_CONTEXT('Date_From',TO_CHAR(:Date From)) and SET_CONTEXT('Date_TO',TO_CHAR(:Date To))
    and 1 condition 1= SET_PARAM3(:Period)
    but this doesnt work for me, no data return please help
    select m.party_name TENANT_NAME 
    , b.interface_line_attribute10 lease_num
    --, b.interface_line_attribute12 "PPS Number" 
    ,b.interface_line_attribute2 LOCATION_CODE
    ,flexv.description property_name
    , a2.trx_number INVOICE_NUMBER
    --, t.name "Transaction Type" 
    --, e.attribute15 "AS400 Key" 
    , b2.description "BILL_ITEM_INVOCIE_DESCRIPTION" 
    ,case when gcc.segment5 like '6%' then 'P/L'
    when gcc.segment5 like '7%' then 'P/L'
    when gcc.segment5 like '8%' then 'P/L'
    when gcc.segment5 like '9%' then 'P/L'
    else 'B/S'
    end as account_nature
    --, gcc.concatenated_segments as "Charge Account" 
    ,gcc.segment1 company_code
    ,gcc.segment2 department_code
    ,gcc.segment3 property_code
    ,gcc.segment4 business_segment
    ,gcc.segment5 account_code
    ,gcc.segment6 project_code
    ,gcc.segment7 intercom_code
    ,gcc.segment8 spare1
    ,gcc.segment9 spare2
    , b2.extended_amount BILL_ITEM_INVOICE_AMOUNT
    ,to_char(substr(ps.gl_date,4,8)) gl_period
    , b.interface_line_attribute11 bill_start_date
    , b.interface_line_attribute14 bill_end_date 
    , decode(a2.invoicing_rule_id, '-2',  
       DECODE(TO_CHAR(b.RULE_START_DATE, 'YYYYMM'), to_char(to_date(to_char(TRUNC(to_date(SETPARAM.GET_PARAM3,'yyyymm') , 'Month')-1),'DD-MON-YYYY'),'YYYYMM'), 'Current', 'In Advance'), 
       'Current') bill_nature 
    , to_char(a2.trx_date, 'DD-MON-YYYY') invoice_date
    ,pal.lease_commencement_date
    ,pal.lease_termination_date
    ,h.user_name created_by
    --, NULL as remarks 
    from ra_customer_trx_all a 
    , ra_customer_trx_lines_all b 
    , pn_leases_all d 
    , pn_tenancies_all e 
    , hz_cust_accounts l 
    , hz_parties m 
    , fnd_user h 
    , ar_payment_schedules_all ps 
    , RA_CUST_TRX_LINE_GL_DIST_ALL dist 
    , gl_code_combinations_kfv gcc 
    , AR_RECEIVABLE_APPLICATIONS_all app 
    , ra_customer_trx_all a2 
    , ra_customer_trx_lines_all b2 
    , RA_CUST_TRX_TYPES_all t 
    , fnd_flex_values_vl flexv
    ,pn_lease_details_all pal
    where  
    app.APPLICATION_TYPE = 'CM' 
    and flexv.flex_value=gcc.segment3
    and flexv.FLEX_VALUE_SET_ID=1014916
    and pal.lease_id=d.lease_id
    and app.applied_customer_trx_id = a.customer_trx_id 
    and app.customer_trx_id = a2.customer_trx_id 
    and a2.cust_trx_type_id = t.cust_trx_type_id(+) 
    and a2.org_id = t.org_id(+) 
    and b.customer_trx_line_id = b2.previous_customer_trx_line_id 
    and dist.CUSTOMER_TRX_LINE_ID = b2.CUSTOMER_TRX_LINE_ID 
    and dist.account_class = 'REV' 
    and dist.account_set_flag = DECODE(NVL(a2.invoicing_rule_id,1), -2, 'Y', 'N') 
    and gcc.CODE_COMBINATION_ID(+) = dist.CODE_COMBINATION_ID 
    and b.interface_line_attribute10 = d.lease_num 
    and d.lease_id = e.lease_id 
    and e.primary_flag = 'Y' 
    and b2.customer_trx_id = a2.customer_trx_id 
    and a2.bill_to_customer_id = l.cust_account_id 
    and l.party_id = m.party_id 
    and a2.created_by = h.user_id 
    and ps.customer_trx_id = app.customer_trx_id 
    and ps.gl_date between trunc(trunc(TO_DATE(SYS_CONTEXT('DISCO_CONTEXT','Date_From')),'MM')-1,'MM') and trunc(TO_DATE(SYS_CONTEXT('DISCO_CONTEXT','Date_To')),'MM')-1

    What exactly is wrong with the results? Can you make the report include the gl_date so that you can see exactly what is being included?
    The only way to troubleshoot this is to go back to basics. You have to be 100% certain that the parameter and calculations for the dates are working. You have granted execute permission over the function to your EUL owner - yes? What I did was create the function in a package owned by EUL_US then I had no issue with grants or permissions.
    Also, gl_date is a DATE and not a string right? I ask because if it is not a date but a string then some dates might be left out.
    Assuming you are 100% certain of the building blocks you should start by including only the gl_date and primary key from the table you are using. Once you are sure you are getting the right data you can start to add in more fields.
    I do notice you are using E-Business Suite objects. I copied the code into my system where I am not using leasing. So I commented out the references to the 3 PN tables. I got 150 rows of data when I queried using the parameter and again when I hard coded the BETWEEN for the gl_date. You do have to make sure that your EUL owner has been granted SELECT right from all the tables and views used in your code and, if you intend to share this code with someone else, you will also need to have GRANT rights.
    Try your code in a SQL tool such as TOAD and see what happens. Are you absolutely sure that every one of your transactions has an entry in the PN tables? This might be why you are not getting the results you expect. You could try, as I did, to comment those lines out and then see what happens.
    Hope this has given you enough to solve your issue
    Michael
    PS. It would be nice to know your name. You haven't used it once in your thread.

  • Can we implement the custom sql query in CR for joining the two tables

    Hi All,
    Is there anyway to implement the custom sql query in CR for joining the two tables?
    My requirement here is I need to write sql logics for joining the two tables...
    Thanks,
    Gana

    In the Database Expert, expand the Create New Connection folder and browse the subfolders to locate your data source.
    Log on to your data source if necessary.
    Under your data source, double-click the Add Command node.
    In the Add Command to Report dialog box, enter an appropriate query/command for the data source you have opened.
    For example:
    SELECT
        Customer.`Customer ID`,
        Customer.`Customer Name`,
        Customer.`Last Year's Sales`,
        Customer.`Region`,
        Customer.`Country`,
        Orders.`Order Amount`,
        Orders.`Customer ID`,
        Orders.`Order Date`
    FROM
        Customer Customer INNER JOIN Orders Orders ON
            Customer.`Customer ID` = Orders.`Customer ID`
    WHERE
        (Customer.`Country` = 'USA' OR
        Customer.`Country` = 'Canada') AND
        Customer.`Last Year's Sales` < 10000.
    ORDER BY
        Customer.`Country` ASC,
        Customer.`Region` ASC
    Note: The use of double or single quotes (and other SQL syntax) is determined by the database driver used by your report. You must, however, manually add the quotes and other elements of the syntax as you create the command.
    Optionally, you can create a parameter for your command by clicking Create and entering information in the Command Parameter dialog box.
    For more information about creating parameters, see To create a parameter for a command object.
    Click OK.
    You are returned to the Report Designer. In the Field Explorer, under Database Fields, a Command table appears listing the database fields you specified.
    Note:
    To construct the virtual table from your Command, the command must be executed once. If the command has parameters, you will be prompted to enter values for each one.
    By default, your command is called Command. You can change its alias by selecting it and pressing F2.

  • Custom Folder SQL Error

    Hi,
    I am constantly getting the following error trying to create a custom folder in Disc Admin 9.02.00.00
    "The custom SQL entered contains enhanced aggregation and is therefore invalid"
    The first time I tried to create the folder the SQL did have aggregation ie:
    select dim3.group_id, dim3.description, sum(fact2.revenue)
    from dim3, fact2
    where dim3.group_id = fact2.group_id
    group by dim3.group_id, dim3.description
    Q1. Can you aggregate like this in a custom foler?
    But I still get the error without aggregation ie:
    select dim3.group_id, dim3.description, fact2.revenue
    from dim3, fact2
    where dim3.group_id = fact2.group_id
    and even with:
    select dim3.group_id from dim3
    I have restarted admin a couple of times but that has not helped.
    Q2. Why am I still getting the above error message with the simpler SQL statements.
    Thanks Phil

    PS: I also tried creating the folder in a new business area with the SQL:
    select dim3.group_id from dim3
    Phil

  • Parameter value in sql statement (Custom Folder)

    Hi ,
    I want to formulate a custom folder - consisting of a sql statement , inside of which there is a parameter. Then in Desktop , the users can select a number as the searching criteria and this value will replace the parameter in sql statement , as in the following:
    select CODE_FARMAKOU,EMP_NAME,PACKTYPE,PACKSIZE , SUM_POSOTITA from
    select CODE_FARMAKOU,EMP_NAME,PACKTYPE,PACKSIZE , SUM_POSOTITA , row_number() over (order by sum_posotita desc) rw  from
      (SELECT CODE_FARMAKOU,EMP_NAME,PACKTYPE,PACKSIZE, TO_DATE(DATES_EKTELESIS,'DD/MM/RRRR') DATES ,SUM(POSOTITA) SUM_POSOTITA
              FROM  EKTELESI_AT_SINT_CLINIC A, MITROO_FARMAKOU B
               WHERE CODE_FARMAKOU = FARMAK_CODE
               GROUP BY CODE_FARMAKOU,EMP_NAME,PACKTYPE,PACKSIZE, DATES_EKTELESIS))
      where rw<=&p
      order by SUM_POSOTITA desc The problem is that the use of parameter , whereas in sql*plus is valid, in Discoverer is not....
    What can i do in this situation...????
    Thanks , a lot
    Simon

    However , a peculiar event happens....
    whereas the sql statement is:
    select CODE_FARMAKOU,EMP_NAME,PACKTYPE,PACKSIZE , SUM_POSOTITA,RW from
    select CODE_FARMAKOU,EMP_NAME,PACKTYPE,PACKSIZE , SUM_POSOTITA , row_number() over (order by sum_posotita desc) rw  from
      (SELECT CODE_FARMAKOU,EMP_NAME,PACKTYPE,PACKSIZE, TO_DATE(DATES_EKTELESIS,'DD/MM/RRRR') DATES ,SUM(POSOTITA) SUM_POSOTITA
              FROM  EKTELESI_AT_SINT_CLINIC A, MITROO_FARMAKOU B
               WHERE CODE_FARMAKOU = FARMAK_CODE
               GROUP BY CODE_FARMAKOU,EMP_NAME,PACKTYPE,PACKSIZE, DATES_EKTELESIS
      UNION ALL
      SELECT CODE_FARMAKOU,EMP_NAME,PACKTYPE,PACKSIZE, TO_DATE(DATES_EKTELESIS,'DD/MM/RRRR') DATES,SUM(POSOTITA) SUM_POSOTITA
              FROM  EKTELESI_AT_SINT_EX_IATR A, MITROO_FARMAKOU B
               WHERE CODE_FARMAKOU = FARMAK_CODE
               GROUP BY CODE_FARMAKOU,EMP_NAME,PACKTYPE,PACKSIZE, DATES_EKTELESIS
      UNION ALL
      SELECT CODE_FARMAKOU,EMP_NAME,PACKTYPE,PACKSIZE, TO_DATE(DATES_EKTELESIS,'DD/MM/RRRR') DATES,SUM(POSOTITA) SUM_POSOTITA
              FROM  EKTELESI_AT_SINT_FOREON_MS A, MITROO_FARMAKOU B
               WHERE CODE_FARMAKOU = FARMAK_CODE
               GROUP BY CODE_FARMAKOU,EMP_NAME,PACKTYPE,PACKSIZE, DATES_EKTELESIS
      UNION ALL
      SELECT CODE_FARMAKOU,EMP_NAME,PACKTYPE,PACKSIZE, TO_DATE(DATES_EKTELESIS,'DD/MM/RRRR') DATES,SUM(POSOTITA) SUM_POSOTITA
              FROM  EKTELESI_GEN_SINT_KLIN A, MITROO_FARMAKOU B
               WHERE CODE_FARMAKOU = FARMAK_CODE
               GROUP BY CODE_FARMAKOU,EMP_NAME,PACKTYPE,PACKSIZE, DATES_EKTELESIS
      UNION ALL
      SELECT CODE_FARMAKOU,EMP_NAME,PACKTYPE,PACKSIZE, TO_DATE(DATES_EKTELESIS,'DD/MM/RRRR') DATES,SUM(POSOTITA) SUM_POSOTITA
              FROM  EKTELESI_GEN_SINT_EX_IATR A, MITROO_FARMAKOU B
               WHERE CODE_FARMAKOU = FARMAK_CODE
               GROUP BY CODE_FARMAKOU,EMP_NAME,PACKTYPE,PACKSIZE, DATES_EKTELESIS))
      order by RW ascand produces the results....
    CODE_FARMAKOU                            EMP_NAME                                                                         PACKTYPE                     PACKSIZE                  SUM_POSOTITA         RW
    1000003279                               MOXACEF                                                                          BT                           40(BLIST10X4)                       45          1
    0000014071                               DOPAMINE HYDROCHLORIDE                                                           VIAL                         5 ML X 25                           30          2
    1000016655                               KABIVEN                                                                          BT                           50ÖÕÓ.×1,7ML                        21          3
    1000014127                               DEPON VIT. C                                                                     BT                           2TUBX10                              6          4
    0000002419                               FACTREL INJECTION                                                                VIAL                         2 ML                                 5          5
    0000086289                               DETUSSIN EXPECTORANT                                                             BOT                          120 ML                               3          6
    1000016655                               KABIVEN                                                                          BT                           50ÖÕÓ.×1,7ML                         2          7
    1000014127                               DEPON VIT. C                                                                     BT                           2TUBX10                              2          8
    1000000760                               DEPON                                                                            BT                           20(BLIST2X10)                        2          9
    1000003279                               MOXACEF                                                                          BT                           40(BLIST10X4)                        1         10
    1000003279                               MOXACEF                                                                          BT                           40(BLIST10X4)                        1         11
    1000000760                               DEPON                                                                            BT                           20(BLIST2X10)                        1         12
    12 rows selectedIn Discoverer , even i select to see -as parameter- let's say the 10 first records, the system displays the 7 first records , whereas when i want to see the 1,2,3,4,5,6,7 first records the system works fine....and displays accordingly 1,2,3,4,5,6,7 first records. The problem occurs above the 8th record-as parameter selected..!!!!!
    I defined the parameter as :Rw<=:Rw
    What may be the problem...????
    SORRY!!!!! I FOUND THE PROBLEM ....!!!!
    Regards and many thanks,
    Simon
    Message was edited by:
    sgalaxy

  • Where's the My Templates folder in Yosemite, or How to delete a Numbers template.

    I have Numbers 3.5.2 - where'd the My Templates folder go? I don't see it in Library/Application Support. .... In other words, I'm trying to delete unwanted templates. Could it be that it's now easier to find than in earlier iWorks, but I'm missing the obvious???

    When in doubt, check HELP. (duh).............
    Rename or delete a custom template
    After you install a template, it appears in the My Templates category in the template chooser.
    In the template chooser, Control-click the template name, then choose Rename or Delete.
    If you’re renaming, type a new name, then press Return.
    You can’t rearrange templates; they always appear in the order in which they were added.

Maybe you are looking for

  • USB device (Logitech QuickCam Messenger) stopped working (SOLVED)

    Hey there, I have a logitech quickcam messenger, which used to work perfectly 2 days ago. I updated my system yesterday and this morning, but I tried the cam again only now, and neither cheese nor webcamstudio work anymore (it never worked in skype s

  • CM-ImportDriver failure

    Hi all, i got the following error Import-CMDriver : Validation of input parameters failed. Cannot continue. At line:53 char:1 + Import-CMDriver -UncFileLocation $item.FullName -ImportDuplicateDriverOption App ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  • RFC Function Call - System not available

    Hello, in my own program i´m using an RFC function call to get data out of our BW - System like this: CALL FUNCTION 'RRW3_GET_QUERY_VIEW_DATA' DESTINATION i_dest     EXPORTING       i_query               = i_query       i_view_id             = i_view

  • Uninstallation of Hyp analyzer 7.x

    Hi, I am trying to uninstall Hyp analyzer but I am getting an error saying can't delete tomcat.exe, few files are unistalled but I can't even delete tomcat.exe manually The uninstall log says as follows (Jun 10, 2009 10:02:42 AM), Uninstall, com.inst

  • How do u clean the Mighty Mouse Scroller Ball?!

    my scroller ball on my mighty mouse doesnt scroll down because its dirty (ive chheckd system preferences), but i can seem to clean it! Anyone know how? Cheers, Si