How to put constraint??

hi,
1st case
i have a table ABC , in this i have 3 columns col1 col2 col3
now i want to put constraint on table level that col1 n col2 always b unique together like
col1 col2 col3
100 1 item
100 2 item
100 3 item
200 1 item
200 2 item
2nd case
i have a table XYZ contains columns col1 col2 col3.. here i want col3 should be unique as per col1 and col2 like
col1 col2 col3
100 1 10
100 1 11
100 1 12
100 1 13
100 1 14
i know that unique can b possible in for every column individually but considering more than one column dont know...
please tell how to resolve??
thanks

Hi FRNzzz!! wrote:
2nd case
i have a table XYZ contains columns col1 col2 col3.. here i want col3 should be unique as per col1 and col2 like
col1 col2 col3
100 1 10
100 1 11
100 1 12
100 1 13
100 1 14
Create a unique constraint on (col1, col2, col3).
test@ORA11G>
test@ORA11G> --
test@ORA11G> create table xyz (col1 number, col2 number, col3 number);
Table created.
test@ORA11G> alter table xyz add constraint xyz_u1 unique (col1, col2, col3);
Table altered.
test@ORA11G> --
test@ORA11G> insert into xyz (col1, col2, col3) values (100, 1, 10);
1 row created.
test@ORA11G>
test@ORA11G> -- try inserting a repetition of col3 for the same combination of (col1, col2)
test@ORA11G> insert into xyz (col1, col2, col3) values (100, 1, 10);
insert into xyz (col1, col2, col3) values (100, 1, 10)
ERROR at line 1:
ORA-00001: unique constraint (TEST.XYZ_U1) violated
test@ORA11G>
test@ORA11G> -- doesn't work !
test@ORA11G> -- now try with a different value of col3; col1 and col2 remaining the same
test@ORA11G> insert into xyz (col1, col2, col3) values (100, 1, 11);
1 row created.
test@ORA11G>
test@ORA11G> -- works now
test@ORA11G>isotope

Similar Messages

  • How to put constraint for a property in ATG Search

    Hi
    We are facing an issue with search 10.0.2
    We have added a functionality to search promotions along with catalog.
    Now, if we search by promo id and if an exact match is found then the results come fine.
    like if i search for "promo123" and if there are 5 products associated to promo123 then it displays correctly.
    The problem comes when we search for a promo that does not have any product linked to it.
    like if i search for "promo456" then there are no results associated with it but the search now brings the search related to "promo" excluding the 456 from it and displays them all.
    Is there a way i can tell my search to bring exact match results corresponding to "promo456" and if there is no exact match then display 0?
    Thanks

    Hello,
    You can try this,
    If your promotions item descriptor is part of the index then add the following input field in your search form.
    Eg:
    <dsp:input bean="/atg/commerce/search/catalog/QueryFormHandler.searchRequest.relQuestSettings.activeSolutionZones" type="hidden" value="role:promotionitemdescriptorpropertyname.id"/>
    Here the value of this hidden field is
    role:promotionitemdescriptorpropertyname.id
    You need to change the promotionitemdescriptorpropertyname with your property name in productcatalogoutputconfig and if you search on id then add
    whatever is the id name of the property you need to pass that.
    Hope this helps...
    You can have the documentation at following URL:
    http://download.oracle.com/docs/cd/E22630_01/Search.1002/pdf/ATGSearchQuery.pdf
    and in that pdf take a look at this chapter "Setting the relQuestSettings Property"
    Edited by: 890963 on Oct 12, 2011 1:32 AM
    Edited by: 890963 on Oct 12, 2011 1:35 AM

  • How to put web app to Oracle 8i Jserver ?

    I've developed a web app with JDev3.1 , Oracle8i 8.1.6 on NTServer4.0.
    and want to put it on Oracle Jserver 8.1.6:
    The app works well within JDev3.1.
    I depolyed my Business Components project and test well.
    I would like to know how to put web app to Jserver. Is it possible?

    when you say "web app" i am assuming you mean an applet, servlet or java server page(jsp) ??
    if you mean this, then you need to move to the rdbms 8.1.7 environment for this support.
    rdbms 8.1.7 supports servlets and jsp's in two different ways :
    externally -- on the rdbms 8.1.7 platform
    they can be run in an external apache front end included with the 8.1.7 rdbms.
    internally -- inside the rdbms 8.1.7
    they can be deployed internally to 8.1.7 in the "oracle servlet engine" (ose)
    applets and html static pages still need to be deployed to a web server on the mid-tier OR the external apache front end included with the 8.1.7 rdbms to optimize performance.
    i hope this helps ...
    p.s. if i've misunderstood your question , please restate it.
    null

  • How to put a few pages together as a panel group in the same screen ?

    Dear Friends,
    Hello. I am developing the accounting application of Journal Entry module. I have developed 5 pages for a journal entry: Journal header, Journal Line, Journal total, Journal Error and Journal Approval. I want to put 5 pages together as a panel group in the same screen so that users are convenient to use them. The format is as follows:
    Header | Lines | Total | Error | Approval
    When a user click on Header or Lines or Total or Error or Approval, its related page is displayed below it on the screen. But I don't understand how to put "Header", "Lines", "Total", "Error" and "Approval" together as above format and link them to its related page. Can anybody tell me how to do that ? Thanks.
    Lucy

    Mike,
    It's correct to make 5 pages as a seperate component.
    I am developing an accounting system using PeopleTools by myself.
    Because you understand PeopleSoft financial application, please tell me the 2 questions as follows:
    First, In Journal Line page, when select "edit Journal" and click button "process", the system check the Journal against Budget, if it's Ok, the System assign Journal ID for the Journal and put "valid" into the field of "Budget Status" and "Journal Status" in Total page. If it's not OK, the system send error message into Error page. Do you know how developer do that ?
    Second, In Journal Line Page, when select "Submit Journal" and click button "process", the system send the Journal to Approval page for approval. Do you know how developer do that ?
    Lucy

  • How to put text line just for a moment ?

    Hi,
    Do you know how to put a text line  just  for one photo? I mean I have more photos  in one portfolio but i need the text line to be seen just for one photo for the others no.
    Thank you in advance.

    You can use composition for this , where you can insert text frame for that specific photo where you want to add some description and for rest dont use text frame.
    Thanks,
    Sanjit

  • How to put separator lines in menu items in a gui status ?

    Hi,
    I have created gui status for my z transaction
    I need the separator lines in the menu items like it is seen in std transactions
    For example, in any screen , in the Help menu, we can see the following.
    Application Help
    SAP Library
    Glossary
    (line)
    Release notes
    (line)
    SAP Service Marketplace
    could you please help me how to put the lines ?
    thanks

    Hi,
    Goto Your GUI status.click on your  MENU bar.
    under the menu bar you will have your own menu items.
    where ever you want separator line  do the following way.
    you will have 2 columns under menu bar
    1) code
    2) text.
    under code dont put anything.
    but under text column you put dashes and enter or select right click there and choose separator line.
    you will get separator line.
    activate and run the ztcode.you will get .
    code                                            text
    Application Help                         
    SAP Library
    Glossary
    Release notes
    SAP Service Marketplace
    Thanks
    Parvathi

  • I have an ipod touch and i put cds on itunes on my pc , but i cant figure out how to put the music from the cds on my ipod .. can u help me ?

    i have an ipod touch and i put cds on itunes onmy computer , but i cant figure out how to put the music from the cds on my ipod touch can anyone help me?

    ok i select th e music from my music libary and go to file and click sync to my ipod and when it gets to step 3.. it says waiting for changes to be made.. yes the songs play on the itunes ..  and no it wasnt the same computer i used last time

  • Can't figure out how to PUT

    First off, I'm a Newbie to Dreamweaver. So. I'm in a real
    learning phase.
    I can't figure out how to "Put" my development file to my web
    Server. I have an ftp connection. At least I think I do since I
    have file list that seems to be pointing to the files I have on
    webserver. I manually copied my files from my development folder to
    my web server. Now I want to use Dreamweaver to put my files and
    then I want to have Dreamweaver manage my file so that next time I
    one have to upload my "Changed" files. I searched Dreamweaver Help
    and didn't understand what I read. Sorry..
    Appreciate any help you can give me, or point me to somewhere
    on the web that my a step by step procedure.
    Thanks....

    Please tell me this - when you look at the name of the site
    in the drop-down
    list of defined sites on the left top of the Files panel, do
    you see a
    folder icon, or a little computer icon?
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "bruceaj" <[email protected]> wrote in
    message
    news:epr3mt$4mu$[email protected]..
    > First off, I'm a Newbie to Dreamweaver. So. I'm in a
    real learning phase.
    >
    > I can't figure out how to "Put" my development file to
    my web Server. I
    > have
    > an ftp connection. At least I think I do since I have
    file list that seems
    > to
    > be pointing to the files I have on webserver. I manually
    copied my files
    > from
    > my development folder to my web server. Now I want to
    use Dreamweaver to
    > put my
    > files and then I want to have Dreamweaver manage my file
    so that next
    > time I
    > one have to upload my "Changed" files. I searched
    Dreamweaver Help and
    > didn't
    > understand what I read. Sorry..
    >
    > Appreciate any help you can give me, or point me to
    somewhere on the web
    > that
    > my a step by step procedure.
    >
    > Thanks....
    >

  • How to put Video/DVD/games/eBook to Nokia

    Nokia phone still the NO.1 of all the phones, As a fan to Nokia phone, I want to share with you some tips to play Nokia. Only some experience of play Nokia phone, just enjoy it.
    This guide will show you how to put videos to Nokia, DVD to Nokia, games to Nokia and eBook to Nokia.
    1 How to convert DVD/Video to Nokia
    2 How to free download games to Nokia
    3 How to put eBook to Nokia
    1 How to convert Video/DVD to Nokia
    After you download [url=http://www.daniusoft.com/dvd-to-nokia-suite.html]Daniusoft DVD to Nokia Suite[/url], you may find there are two options for you to choose for DVD to Nokia or Video to Nokia.
    1 Run “DVD to Nokia Converter” to load Daniusoft DVD to Nokia Converter.
    Insert your DVD disc into your DVD-Rom. Click “Load DVD” button to add the DVD file. You can also click “Load File” to add DVD/IFO from your hard disk.
    [img]http://www.daniusoft.com/article-image/nokia/dvd-nokia.jpg[/img]
    A regular DVD movie has several titles, by default, this software will merge all the DVD chapters into one video clips, you can check the click box before the title list to select any DVD clips you want to rip. Then just check the box “Merge into one file” to join file.
    2 Open the drop download list to choose the Audio and Subtitle you like, you can also change the output files location.
    3 Click on “Start” button to start the conversion.
    Video to Nokia
    Click “Video to Nokia Converter” to load the Daniusoft Video to Nokia Converter.
    The convert video to Nokia is similar with the operation of convert DVD to Nokia
    “Add” button to load video -> Choose output “format” -> “Start” Convert
    This software supports batch conversion, so you can add several video clips at one time.
    Tips:
    Cut off the black edge of DVD- Click on “Effect” button. Move your mouse cursor to a box on the frame around the video to cut off black edge.
    Control file size- You also click on the “Settings” button to customize the resolution, such as: video bit rate, encoder, frame rate, audio bit rate, channel, etc. This program also lets you create a profile and save it, then you can use different settings for each video clips.
    With the “trim” function, you can trim any segment of videos to convert as you want:
    Edit video effect – Click on “Effect” button. You can Adjust Brightness, Contract, Saturation of the video and the adjust the volume of music.
    2 How to download games to Nokia (Free Nokia Java Games Installation guide)
    Step 1 Download one of the Free Nokia Java Game files to your computer, and unzip the contents to a folder called 'Games' on your desktop.
    Step 2. Download and install Nokia PC Suite
    Step 3. Connect your Nokia to your computer with a cable or Bluetooth Dongle or infra-red cable
    Step 4. Launch the Application Installer and continue. (Tutorial is based on the Nokia 7210)
    Click the Install Application Icon Pictured
    Here is a webpage which contains the games and themes list for Nokia, you may find many useful information here:
    http://www.daniusoft.com//nokia-resource-list.html
    How to transfer between Nokia and computer
    Bluetooth - To send a game to your mobile via Bluetooth. You simply right click the desired theme on your desktop, select Send To/Bluetooth/Nokia 6600
    A new message will arrive on your phone, open it and you will be able to install the new game. Once installed, delete the message and press the menu button and your game will have been added.
    infra red connection cable - Firstly you will need an infra red connection cable. Download the SIS file to your computer. Enable infrared port in your phone. Select your sis file on PC, press right mouse button and select "Send to -> Infrared". The file will arrive as new message. Open Messaging application, then open the message. Installer will be started automatically.
    [img]http://www.daniusoft.com/article-image/nokia/game-nokia.jpg[/img]
    Then go to the folder where your files have been downloaded and unzipped into, and select a game folder. For this tutorial we are going to install Blackjack, because we have a gambling problem Double click the Blackjack folder.
    Now you will see the all important Blackjack.jad file double click it to download it to your Nokia 7210
    Wait until the installation process has finished (indicated below). Blackjack is now installed and you can gamble to your hearts content
    3 How to read eBook on Nokia
    1 Download and install the Ebook for Nokia to use as your eBook reader.
    2 Download the Doc or TCR version of an eBook (perhaps Frankenstein).
    3 Transfer the downloaded file to your phone in the standard way.
    Recommended eBooks:
    1 eReader http://www.ereader.com/product/detail/18841?refid=45377
    Formats: eReader, Doc.
    2 MicroReader http://home.c2i.net/thvoslef/midlets/mrinfo.html
    For java-enabled Siemens mobile phones.
    Formats: Doc, TCR, text. Freeware.
    3 ReadM http://my-symbian.com/7650/applications/applications.php?faq=18&fldAuto=347
    Formats: Doc, TCR, and gzipped text files. Freeware.
    4 eBook for Nokia http://www.geocities.com/ebooknokia/
    Formats: Doc, TCR, text, and HTML. Freeware.
    5 iSilo http://www.isilo.com/
    iSilo reads Doc eBooks in addition to its own iSilo format, and it's very easy to convert text, HTML, or DOC files into an iSilo document using free desktop tools.
    Formats: Doc and iSilo.

    Re: Ebooks
    Your explanation for adding ebooks to the phone:
    "3 How to read eBook on Nokia
    1 Download and install the Ebook for Nokia to use as your eBook reader.
    2 Download the Doc or TCR version of an eBook (perhaps Frankenstein).
    3 Transfer the downloaded file to your phone in the standard way."
    Well the only way I know how to put ANYTHING on there is ZOON and ZOON DOES NOT HAVE AN OPTION IN IT FOR EBOOKS THAT I CAN SEE.  
    How is "IN THE STANDARD WAY" supposed to be of any use or help to me whatsoever when STANDARD WAY FOR EBOOKS IS NOT EVIDENT TO ME???

  • How to put two ipods on one computer

    how to put two ipods on one computer

    Set up the second exactly the same way as you set up the first. If iTunes is already installed, it doesn't need to be installed again.
    (64746)

  • How do you transfer the content from an iPhone to a PC? I have to use a PC for a while and don't know how to put my stuff on to there from my phone

    How do you transfer the content from an iPhone to a PC? I have to use a PC for a while and don't know how to put my stuff on to there from my phone

    If you're talking about music and movies an i-device was not designed for unique storage of media. It is not a backup device and media transfer was planned with you maintaining a master copy of your media on a computer which is itself properly backed up against loss. Syncing music and movies is one way, computer to device, updating the device content to the content on the computer, not updating or restoring content on a computer. The exception is iTunes Store purchases which can be transferred from a device to a computer.
    iTunes Store: Transferring purchases from your iOS device or iPod to a computer - http://support.apple.com/kb/HT1848 - only purchases from iTunes Store
    For transferring other items from an i-device to a computer you will have to use third party commercial software.  See this document by turingtest2: Recovering your iTunes library from your iPod or iOS device - https://discussions.apple.com/docs/DOC-3991

  • How to put scrol bar in table viw control in module pool programming

    how to put scrool bar in table-view control in module pool programming

    Hi Rani,
       You need not insert Scrollbar in the table control, it appears automcatically once the amount of data vertical or horizontal limit of table control.
    Regards,
    Sathish
    Note : Reward useful Answers

  • I forgot my password for my apple ID. Any ideas on how to put in a new one without knowing the old one?

    I forgot my password for my Apple ID. Anyone have a solution on how to put in a new one without knowing the old one?
    Thanks

    Welcome to Apple Support Communities
    You have to reset your password. You can do this in this site > http://iforgot.apple.com

  • How to put a single stack item to an album?

    Maybe a silly question, but I can't find out how to put a single item from a stack into an album. When I drag a stacked item to an album, the entire stack appears in the album. This is not what I want, I want to get the single item in the album.
    I know I can make a single stacked item in an album to be the albumpick. But this is not enough. Sometimes I need to put two items from the same stack into this album.
    Koen
    Message was edited by: Koen van Dijken

    Koen van Dijken wrote:
    Would this be as designed, and so a wrong use of stacks by me?
    It is as designed but I don't think what you want to do is a particularly wrong use of stacks. I can see using stacks as a way to reduce clutter in the browser but still wanting to be able to get to individual images in the stack to use..
    What is interesting is the wording in the Aperture users guide concerning stacks:
    Dragging Stacks
    You can drag an entire stack to a new location, *and you can drag specific images within a stack to a new location*. When a stack is closed, dragging the stack moves the entire stack. *When a stack is open, you can drag individual images to new locations in the Browser*. You can also drag images into a stack. If you drag an image within a stack into a different project, however, the entire stack moves to the new location.
    (emphasis added)
    So the first part sounds like you should be able to drag an image out of the stack to an album, the second just mentions dragging an image out of the stack in the browser.
    And in way you can do this, the only thing is what you end up doing is unstacking the image you drag out. Not exactly what you would want to do.
    I think it should be OK to place individual stack items into albums and have them remain in the stack. Any reason this would be a bad idea?

  • . How to put Check box in every row in Table

    Hi Friends,
    I have one doubt in Webdynpro with java. How to put Check box in every row in Table?
    For Exam My requirement is I am getting BAPI from ECC System. So I have to go given input details in first view and output details in SecondView. So in Second View I will taken Table that data will displayed in rows. I need each and every row first I need check box.
    Here Select Check Box of particular row then click GetData button.  That row data will be displayed in one popup window.
    In table suppose 6 rows available in table. Every Row first Check box available.
                             empid, name, sal  ,firstname, last Name
                             empid, name, sal  ,firstname, last Name
                             empid, name, sal  ,firstname, last Name 
    How to put Check box in every row in Table?  can you send any examples applications
    Regards
    Vijay

    Hi Friend,
    When we are getting BAPI From ECC System. that BAPI Have nodes and Attribues...in under node we can't create "CheckBox"
    attribute.
    So i am doing like this.I am create on Checbox attribue out side of Node. Check Box data type is boolean.
    next i am creating table ( that table having rows and columns) Right click on table-->Click on Insert GroupedColumn->again right click on nsert GroupedColumn---> Here Select Check Box.
    Okay...here i am getting one problem. i have got Check boxes .But i am select check box in  first row. that time all check boxes will be selected.
    i need select first row check box that only first row will be selected suppose i selected second row check box that only second will be selected.
    i need this can u help me....
    Regards
    Vijay

Maybe you are looking for

  • Could I have two Time Machine backup disks?

    I have a MacPro with a second internal HD, that I have running Time Machine. I just bought an external drive for backup, which I thought I'd also have running Time Machine.  But I see that TM will not really allow one to use two different drives auto

  • Video transmission with multithreading. I am having a problem?

    I am doing an application for sending video streams to multiple clients at the same time. So am using multithreading. I have the following codes to do the transmission. When I am using it with one thread only it is working fine. But when I use it wit

  • Bulk screen caps

    Wondering if anyone could help me out here. I have a 30 minute sequence, and I want to grab a ton of still screen caps to use as jpgs of the clip. Is there a way to do a kind of batch job where i specify to grab one frame every 5 seconds or every so

  • Error Log showing Line Items missing in APP Cheque Printing

    Hi Am working on APP Cheque Printing... i hav run here the F110 Steps ..Spool is also generated ...everything is cuming correct...but in spool one error log is also generated as below : Error log F0251                    In form YCHEQUE_NEW1 / window

  • One more noob question, after effects hates me today

    So I used to be able to move the crusor left and right and watch my animation happen on the comp and now that no longer happens.  I also used to be able to scrub a vaule like position and it would show the change on the comp in reall time while I scr