How to create an incremental key in a Matrialized View created from Union?

I am trying to create some sort of incremental key in a materialized view that is formed from several Select and Union statements.
Why? My materialized view has a composite inteligent key of 5 columns. So, when I want to find a particular records, I don't want to have to do a select statement with some many WHERE and AND clauses.
The ROWNUM I tried didn't work (as I thought) because my Materialized view is made out of several union and each select statement of the UNION generates a new set of incremental numbers.
I also tried creating a SEQUENCE (I understand the sequence number will keep growing each time I do a refresh ) but it doesn't look like I can create a SEQUENCE on Matrialized View.
Anyone has any suggestion as how do I create some kind of incremental number in a materilized view created from an Union.
Thank you.
H

I'm assuming that this is a continusation of your earlier message
Re: Can I create Sequence on Materialized Views?
It doesn't seem to make sense, as others mentioned in that thread, to try to add this sort of key to a materialized view. Since the key would change every time you refreshed the materialized view, I'm having difficulty understanding how this will simplify your life. Your code would still have to refer to all 5 columns of the composite key since that would be the only constant.
Justin

Similar Messages

  • How to create ''from to '' parameter in XL reporter for templates

    Hi,
    How to create ''from to '' parameter in XL reporter for templates
    Can anyone help me in this regard
    thanks,
    Suresh Kannan

    Suresh,
    1. Goto Report Designer
    2. there u can find "Advanced Report Builder" on left side of the window
    3. At the below u can find three buttons like "Parameters", "Properties","Apply"
    4. Click on "Parameters"
    5. then Parameters window will populate
    6. Click the new Button
    7. Name: give as u like
    Category: Literal
    Type: Date
    Attribute: Leave blank
    Default Vale: Leave Blank
    Prompt: From Date
    This is the process to create the parameters.

  • How to create a UNION between two custom folders

    Hi all, I have two different dataset based respectively on two custom folders: CF1 and CF2
    The first custom folder (CF1) is joined with a custom folder called Groups and retrieve the amount of tickets_id which are owned by the groups.
    The second custom folder (CF2) is joined with another custom folder called User and retrieve the amount of tickets_id which have been created by the users.
    This two sets, as you have understood are independents and not correlated, because the two different amount of tickets_id follow two different logics....
    However, now I need to have a single field called TICKET_ID which is the UNION (not UNION ALL) of all tickets_id retrieved by CF1 and CF2
    I tried to use a complex folder...but it showed always two distinct fields...instead I want to merge the two dataset into a single field called TICKET_ID
    Is there a way or a workaround to resolve this problem ???
    Thanks a lot in advance
    Alex

    Hi Rod, just an explanation...
    I red and follow the threads you mentioned in your previous mails and I'm using the context.
    I summarized what I did
    1) I created the context and the package (with the 2 functions inside)
    2) I created on the Administrator a custom folder with the following sql:
    select vl.user_id,g.group_id
    from apps.jtf_rs_emp_dtls_vl vl,
    apps.jtf_rs_group_members_vl g
    where g.resource_id = vl.resource_id
    and (g.delete_flag = 'N' AND vl.end_date_active IS NULL)
    and g.group_id = COMPLAINTS_GET_GROUP_ID(SYS_CONTEXT('DISCO_CONTEXT','GROUP'))
    where COMPLAINTS_GET_GROUP_ID is the package name which contains the 2 function SET_CONTEXT and SHOW_CONTEXT, even if I use directly the SYS_CONTEXT function....
    3) Inside my workbook I have 2 sheets and one parameter (called GROUP):
    a. inside the first sheet I created the calculated field which set the parameter value with the following code : SET_CONTEXT('GROUP',:GROUP)
    b. inside the second sheet I show the list of user_id retrieved from the select above
    This mechanism works perfectly, even if the refresh of the parameters on the first sheet is mandatory to see the right data on the second one. But this works ONLY if my parameter GROUP has ONLY one value....
    Now I have the necessity to pass to the select a LOV of groups !
    Reading the previous threads I saw that there are two ways to solve this problem: (Re: Parameters in SubQuery
    a. - join your subquery to you list of values folder. If you have a parameter that is based on a LOV then there will be a folder that defines the LOV. You should be able to join the subquery folder to the LOV folder either in the EUL or in a custom folder and use the parameter to select from the LOV folder.
    I can't use this option because inside the same custom folder I need to have a UNION of 2 different select with their separated joins
    b. use multiple parameters, so you define a fixed number of optional parameters, say, PARAM1,PARAM2,PARAM3,PARAM4 and PARAM5. Then set them in a separate workbook and then use a condition col IN (SYS_CONTEXT('NAMESPACE','PARAM1'), SYS_CONTEXT('NAMESPACE','PARAM2'), SYS_CONTEXT('NAMESPACE','PARAM3'), SYS_CONTEXT('NAMESPACE','PARAM4'), SYS_CONTEXT('NAMESPACE','PARAM5'))
    This solution is very interesting but I didn't understand how to implement it (remember that I have only one parameter "GROUP" with more than on value).
    How can I modify the calculation and the condition inside the select ?
    Thanks a lot

  • How to create from date to date parameter

    Hi all
    i have a report which have to have a date range parameter, so they user choose the data range of the report
    how it can be done ?
    thanks

    I am sure you have tried to do this before you posted your question, so just in case you are havining issues here is a quick
    1)  create sql condition with either
    WHERE
    Date_column >= :P_DATE1
    AND Date_column <= :P_DATE2
    OR if using Oracle you can use BETWEEN operator
    WHERE
    Date_column BETWEEN  :P_DATE1  AND :P_DATE2
    2)  Make sure the Bind parameters are created and in correct order and that they are Set to DATE in the Parameter Type
    When you go to get XML data you will see the calendars for selecting your two dates.
    HTH
    -w

  • How to store reports on cr server 2008 and view them from web application

    Hi, I want to store my rpt files on the crystal reports server, under "Folders", and then from my web application use  "CrystalReportViewer" control to show these reports.
    Now I setup a crystal reports server 2008 on my server, and install crystal reports 2008 on my client develp machine. I have searched some sample codes from Internet, but many Business Objects dlls they used I could not find from my computer, for example, I can not find infostore dll and  Business Objects.sdk. It seems I have to install some sdk to use these objects.
    Could you tell if which sdk I have to setup to achieve my goal, or if can give me a sample would be highly appriecatied.

    Q. From your information, it likes this function above can not be done now?
    A. At the moment, the only way you can view reports stored on CR Server 2008 are with the Java SDK or OpenDocument.
    OpenDocument may be a nice option for you, as there would not be much programming involved. Please see this documentation for information how to use this. Please note that in CR Server 2008, you will be using Java OpenDocument.
    http://help.sap.com/businessobject/product_guides/boexir31/en/xi3-1_url_reporting_opendocument_en.pdf
    Q. can use CR server XI instead, this version has been a while, so certainly has .net sdk available for realize this function, does'nt it?
    A. CR Server XI has the .NET SDK. You can find .NET samples here:
    https://www.sdn.sap.com/irj/boc/businessobjects-sdklibrary
    Q.  I download CRRedist2008_x86.msi and install it on my develope machine, from the instruction said it will install lots of .net dll on my computer, but I just can not find them, do you know where they are?
    A. It should install the necessary files to C:Program FilesBusiness Objects
    You can find more information about the Crystal Reports .NET distributables in the CR .NET help file, in the deployment chapter:
    https://www.sdn.sap.com/irj/boc/crystalreports-sdk
    Cheers,
    Fritz

  • How To Create User-Defined DateTo and DateFrom?

    This document https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/6ce7b0a4-0b01-0010-52ac-a6e813c35a84 describe techniques used to create BI Infocubes.
    In chapter 4.4.2.4 Report only on data for constellations valid today and yesterday (comparable results) - today and yesterday.
    ...Report only on data for constellations valid today and yesterday (comparable results): Solution
    Given an attribute&#8211;characteristic relation.
    Define the dependent attribute as a time-dependent navigational attribute of the characteristic. Define
    additionally user-defined DateTo and DateFrom time-dependent navigational attributes. Together with the
    query key date and a filter on DateTo and DateFrom excluding your reporting time span, you will get the
    desired result.
    MatGr-SID  From-User   To-User    From-Sys   To-Sys   Material   Material-SID
         910        01/1000       12/9999     01/1000    12/9999     AAA    001
         910        01/1000       09/1998     01/1000    09/1998     BBB    002
         920        10/1998       12/9999     10/1998    12/9999     BBB    002
         920        01/1000       12/9999     01/1000    12/9999     CCC    003
         920        01/1000       12/9999     01/1000    12/9999     DDD    004
         920        10/1998       12/9999     10/1998    12/9999     EEE    005
    Report  showing comparable results
    Material group  Rev 09/98     Rev 10/98 
        X                  100             100
        Y                  200             200   
    HOW TO Create From-User   To-User attributes?

    Hi Monica
    Third party software is available,from AccessVia, that can be used to create and update templates. Sample sample sqt can help you to understand the required inputs (batchID, templateID, departmentID, locale).
    Thanks
    Himanshu

  • How to create a user in oracle.

    how to create a user in oracle level.i know how to create from front end.can any body suggest.how to create oracle user from backend.
    Thanks,
    Dave

    Hi,
    We can use the 'hr_user_acct_internal.create_fnd_user' API to create the users. The sample code is as follows:
    BEGIN
    apps.hr_user_acct_internal.create_fnd_user
    (p_user_name => 'XXX',
    p_password => 'XXX',
    p_employee_id => 1234(This is the person id from per_all_people_f),
    p_user_id => x_user_id,
    p_user_start_date => SYSDATE,
    p_email_address => 'XXX',
    p_description => 'XXX',
    p_password_date => NULL
    COMMIT;
    END;
    and to add the responsibility to the user, we can use the following code.
    BEGIN
    fnd_user_pkg.addresp
    (username => 'XXX',
    resp_app => user_res_rec.application_short_name,
    resp_key => user_res_rec.responsibility_key,
    security_group => 'STANDARD',
    description => 'DESCRIPTION',
    start_date => SYSDATE,
    end_date => NULL
    END
    Best Regards
    Arun Kumar S.R
    Apps Associates

  • How to create WAR file in eclipse?

    Hello everybody,
    M using eclipse.
    m facing problem to create WAR file.i dont know how to create it.
    m using -cvf command for it.
    Let me know how to create from eclipse IDE.

    You need to export a project to war file or to create a war file ?

  • How to create PDF without embedded fonts from Indesign

    Can anyone tell me how to create from Indesign a PDF that certainly does not contain any fonts I don't want to include? But that would appear in the same layout in a substituted font, including italics and small caps?

    You can't, InDesign will embed the fonts for  you.
    To unembed fonts you need Acrobat Professional. Go to Tools>Print Production>Pdf Optimiser
    go to Fonts
    And select the fonts to unembed.
    You could select any text and change the Transparency to 99.9%.
    Then in Edit>Transparency Flattener make a new one using High as a base for the new
    Select Convert Text to Outlines.
    When you Export to pdf, choose Adobe PDF 1.3, and go to Flattening, choose the new Flattener Preset that you just made.
    And when you export it, any text forced through the Flattener will be converted to outlines. (this could violate the terms of the Font Licencing.)

  • How to outer join within a view link from (VO-VL-VO)

    I've got a table that stores the values of pre-defined attributes.
    I'd like to create an advancedTable region that shows all of the attributes with or without values, in my view object i have....
    select attribute, value
    from attributes, values
    where attributes.attribute_id = values.attribute_id (+)
    This is working, but a have another view object that is the master and this is the details.
    How can I do an outer join on the view link from master to detail? A simple (+) in the where condition does not do the trick.
    If I try anything fancy within the view link, I get a JBO-27122.
    Thank you,
    Jerry.

    Understand the concept of VL. Vl is nothing but a link between two VOs, with one VO row column serve as binding column for another VO.If u understand this u go to VL wizard and make VL declaratively. If not, refer to dev guide to know about VL.
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • How do I set up my new HP laptop to view photos from a DVD?

    How do I set up my HP laptop to view photos from a DVD?

    Hi,
    Do you know the format of the DVD ? Is it a normal DVD movie or a DVD with a whole buch of images or a slideshow ? And what is the Operating system on your computer ?
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • HT1657 If I rented a movie on my iPhone how can I get it on my iPad to view?

    If I rented a movie on my iPhone how can I get it on my iPad to view?

    From http://support.apple.com/kb/HT1657 :
    If you download a rented movie on your iPhone 4 or later, iPad, iPod touch (4th generation or later), or Apple TV: It is not transferable to any other device or computer.

  • How to create an encrypted key for a user table

    I have an airshow website where volunteers and vendors can apply online (www.hollisterairshow.com) . The city attorney requires that we have a wet signature on a printed application form so the volunteer/ vendor currently has to print their application at the time they apply online, then sign it and mail it in and this works fine. Unfortunately, we have had a lot of instances where volunteers/ vendors needed to print their application again and the only way we could do this was for an administrator to print their application to a pdf file and e-mail the file to them. So, I'd like to improve this process by automatically sending an e-mail to the applicant when they apply online with a link to a printable page and containing a key pointing to their application. This way, volunteers/ vendors could print and sign their application whenever they want and as many times as they need to. Each volunteer is a single row in a volunteer table and each vendor is a single row in a vendor table.
    The key I use in the tables is a sequential key automatically incremented by MySQL so I would end up sending them a link looking something like www.hollisterairshow.com/printvolunteerapp.php?volunteernumber=27 . This would work, but it wouldn't be hard for a volunteer to change it to a different volunteernumber and so get access to someone else's personal information, which would not be acceptable. So, I'm thinking I need a secondary key that is somehow scrambled and used as an secondary index in the table so I'd be sending a link that mght look like www.hollisterairshow.com/printvolunteerapp.php?volunteerkey=sygew . So I'd really appreciate some advice on how to create a scrambled secondary index for each volunteer or vendor and plug it into the link I send them in the e-mail.
    Thanks for any advice.
    Tony

    Your question is not clear whether you want to create account or you want to create agent.
    For creating local agent you can refer
    http://bhabaniranjan.com/configure-odi-11g-local-agent/
    For creating EE Agent you can refer
    http://bhabaniranjan.com/configure-odi-java-ee-agent-on-windows-server-2008-64-bit/
    For creating account, login to supervisor and then go to security tab. There you can create different user to login to odi Studio. Let me know If i understand you correctly or not.
    Thanks.

  • How to create a block key default for documents created by MIRO?

    Hi All,
    How to create a block key (BSEG-ZLSPR) default for documents created by MIRO?
    Could anyone tell me?
    Thanks
    Gandalf

    HI,
    The payment block--BSEG-ZLSPR can be made defaulted by two  ways.
    Means you want to fix one value all the times for the same ,you have to do the same in Vendor master
    ie in the Vendor Master in the Payment Transactions Selection screen. make the Payment Block you want to be defaulted in MIRO.
    you can do for all vendor master in mass change -- XK99.(LFB1)
    if you are not OK with the Above .then there is another way to do the same
    it is by Screen layout setting in SHD0
    in this enter the Transaction MIRO and create a Transaction variant Z*** and click on create
    and also create a Screen variant in OMLRLIST 
    T code MIRO
    Screen variant name Z**
    Program-SAPLFDCB
    Screen Number 0020
    and create it .
    in creating ---enter the default value in the Payment block and in the varinat just check the box w.content
    KNow in SHd0 add this screen variant for the above Trasaction variant
    and then activate this trasaction variant by going into the tab Standard variants.
    so that when ever you do miro this variant will be called and you can get this payment block defaulted.
    hope so it helps
    Regards
    Anjanna

  • How to create a shortcut key for email ?

    how to create a short key on mac book pro

    You do not say what OS X you are running.  If it is 10.8.3 you simply can have Mail a 4-finger swipe away.
    No short key neccessary?
    If some earlier OS X see >System Preferences>Keyboard>KeyboardShortcuts>ApplicationsShortcuts

Maybe you are looking for

  • Sharing iTunes library with another user on the same computer

    My husband and I use the same iMac and have the same iTunes login, but have different user accounts on our computer. When I download things from iTunes, they only show up in my library and do not show up in his. In addition, the two libraries are not

  • Foreign Currency rounding off while conversion

    Hi All, I am experiencing a scenario while foreign currency conversion. I have searched for a solultion but i am unlucky to find one regarding this problem. The scenario: Example: Foreign Curr      |    Value    |       Rate     |     SAP converted L

  • Factory Calender - Help Needed

    I am getting this messges when i try and transaction MICN...PID for cycle count... The date 14.07.2009 comes after the end of the validity period of the factory calendar that is assigned to the given plant Could someone tell me how i fix this

  • Web Agent - MEDIAPUT ORA-3113

    Hi, I'm running an 8.1.6 db and using WebAgent on Redhat 6.1. I have a running application to upload files into blob columns that usually works well except that from time to time the following error message appears: "Oracle interMedia Web Agent An er

  • IBook died. Panthr. Can to save/transfr  info to another Mac? with Tiger?

    Let's say a person for some reason didn't have a back up. And then his iBook G4 stopped working and was advised not worth fixing cuz could buy a better, upgraded, but used Mac computer. Can his info, all his docs and bookmarks and favorites, etc., ev