How can I create a constraint on the combination of four columns...

Dear Guru,

I have a question... I created the table with columns like "CCode', 'Size1', 'Size2', 'Sch1', 'Sch2', 'Description', 'CCdate '.

Here I wanted to create a unique constraint on the combination of four columns "CCode', 'Size1', 'Size2', 'Sch1', 'Sch2.

My requirement is that I don't want to allow duplicate records in the table for the four columns only.

for example: "CC123", 10, 25, S110, S250,.

If the new record comes with the same data. Then, I do not want to insert this record.i want to get a constraint voilated error.

How can I create a constraint on the combination of four columns...

Pls help me on this issue...

Kind regards

Shitab...

I suggested already here the syntax,

ALTER table your_table

Add constraint cons_name unique (col1, col2, col3, col4, col5);

And don't call me 'Sir '.

See you soon!

Tags: Database

Similar Questions

  • How can I create a hyperlink in the title in first Pro CC?

    How can I create a hyperlink in the title in first Pro CC?

    How to put a clickable link on a youtube video 2014 - YouTube

    MtD

  • How can I create a profile of the camera with camera raw?

    Hello

    How can I create a profile of the camera with camera raw without x-rite or any other third party software?

    I have a color checker, with a different shade of colors gray and different

    I remember on a script or something like that

    I have a lot of google, but without luck

    can I create my camera raw profile using a corrector of color with photoshop acr?

    I don't know, but this should be the script http://Simon.Tindemans.EU/tools/AcrCalibrator , non ?

    but I don't know how to use it

    Is there a tutorial? Perhaps a video to create a profile with camera raw

    Thank you

    Greetings

    Hello, I think you are looking https://www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5Fdngprofileeditor

    Here is a PDF from adobe on this subject: http://wwwimages.adobe.com/www.adobe.com/content/dam/Adobe/en/products/photoshop/pdfs/cs6/ DNGProfile_EditorDocumentation.pdf

    And an article: http://www.luminous-landscape.com/reviews/accessories/dng-profiles.shtml

  • How can I create a query with the data control to the web service?

    I need to create a query with the order of web service data, WSDL, it is query operation, there is a message of parameter with possible query criteria and a return message contains the results. I googled but can't find anything on the query with the web service. I can't find a criterion "named" to the data control of web service as normal data control. Blog of Shay, I saw the topics on the update with the data of web service command. How can I create a query with the data control to the web service? Thank you.

    Hello

    This might help

    * 054.     Search form using control data WS ADF and complex of entry types *.

    http://www.Oracle.com/technetwork/developer-tools/ADF/learnmore/index-101235.html

  • How can I create a shortcut for the recycling bin in my office?

    Original title: Recycle bin shortcut.

    Anyone know how I can create a shortcut for the recycling bin in my office context menu (context menu)?

    Sorry Manu B G, but I think I understand what he wants exactly. This isn't a desktop shortcut but a shortcut context Menu. He wants a right-click on any empty space in the office and click Recycler Bin shortcut in the menu to go to the basket. Any way to do it?

  • How can I create 2 albums in the same name and the same artist

    The guy is anyway to make the 2 albums in the same name for the same artist? If there is no way so please someone tell me how can I suggest updating to iTunes

    Faisal,

    If they have the same artist and eponymous album, iTunes will think they are from the same album.  The best way would be to change the title for the second version, for example 'Loveless' and 'Loveless 2.'  Or you could put parts in separate lists.

    If you don't want to make a suggestion to Apple, here's the link:

    http://www.Apple.com/feedback/itunesapp.html

    "In the dropdown for" Type of comment ", select"Enhancement request.""

  • How can I create a directory at the same time more then

    I have this path 'c:\test\' and I want to create this "c:\test\aaa\bbbb".

    The problem I have is that I have to create each time a different number of directories.

    I have to creat a Dir again, I need to create three s Dir and so on.

    I can only creat on dir both with makedir

    Thanks for the help

    The Windows SDK defines this handy function:

    int SHCreateDirectory (HWND hwnd, LPCWSTR pszPath);

    You must #include "shlobj.h" and finally to add 'shell32.lib' to the project. Use NULL for the handle of the window if you do not. This will create any intermediate path. looking in the documentation for the SDK or on the net for more details on return values.

  • srvrmgr syntax: How can I create subsystem named with the name and Description of the values?

    Looking through the library, he did discuss are of syntax that allows you to include the value of name and the named value of the Description of a subsystem/Profile Configuration.  In the screenshot, the circled values were created with the server online order Manager.

    NamedSubsystems.gif

    On the other hand, pouvez create a definition of the element with a name (full name) and a Description.

    For CompDef, it works:
    create the CompDefTest1_enu component definition for the type of component AppObjMgr component fins group run mode interactive full name 'Test Comp Def Test 1' description 'Test 1 CompDef Manager object.

    For named Subsytem, it does NOT work:
    create named subsystem Test5 subsystem EAITransportDataHandlingSubsys full name 'Test 5' description 'Test 5 Description'

    Someone can tell me if there is a good for a named subsystem, syntax to include the name and Description of the values in the command line, or is the only way to create it manually in the UI?

    Hello

    I spent reviewing aid to create the order in srvrmgr, it does not give the full name and description as parameters for the creation of subsystem. However, as you noted these settings are available for creating components definition:

    srvrmgr > help to create

    Create {component group | compgrp}

    [full name: ]

    [{description | desc} ]

    create {definition component: compdef}

    for {component type | comptype}

    {Component group | compgrp}

    run in mode {batch | interactive | background}

    [full name: ]

    [{description | desc} ]

    [with [ param =[, =...]]]

    [[fixparam =[,...]]]

    create the subsystem named for

    subsystem with = [,...]

    Shelf also has an example of creation of subsystem that doesn't include no description, name and first name:

    http://docs.Oracle.com/CD/E14004_01/books/StoreFwdMsg/StoreFwdMsg_InstallConfig14.html#wp1351472

    In this case I suggest that allows you to create a ticket on My Oracle Support to confirm this srvrmgr does not support the creation of a new subsystem with the full name and description settings and request an enhancement for these settings include request in create statement for new subsystems when using srvrmgr.

    It will be useful,

    WSiebel

  • How can we create a document in the user interface?

    Hi all

    Is there an API to create a document in the user interface? Please help me...

    Oh, I you you now. This is something that was queried on before but most often to get the glimpse of another program. You can get an overview of the current document, open but I don't think that there is an exposed method for a document not open. Obviously, I has this ability, but unfortunately it's not in the API, at least that I've ever seen.

  • How can I create a space on the side of my text frames?

    I have a long document with just blocks of text and text, paragraph styles and variable text running headers and feet. The margins of the document are set to fill most of the page, but now I've decided I want to create a space on the right side of the page, put notes various and other items for the player.

    Could someone tell me the best way to do it, now that I have my document all set up, in a way that will be most effective?

    I think that what you are really after to change the margin and have adjusted the text, no block?

    If this is the case, the page layout > layout adjustment... Turn the page layout setting, and enter the master page and adjust the margins. Frameworks, aligned with margin guides should adapt to the new size.

  • How can I create a cluster on the fly?

    I insert rows in a table from database as part of an effort to logging for our program.  The table in question has a lot of columns, many of which can be NULL at any given time.  As such, I would decide at run time (as situations warrant) columns that get a value when I add the new line.  The columns are of types of mixed data... strings, floats, some ints, etc.

    For example...

    • On one pass, I want to fill the columns 'temp', 'volume' and 'weight '.
    • On another pass, I can want to fill columns 'temp', 'color' and 'notes '.

    I have gen table of column names.  This part is easy

    How (in the world) to create the cluster which feeds the entry "DB tools insert data" VI?

    Sometimes, maybe I need an int, a float, and a Boolean value.

    Other times I might have need of two integers (ints) and a string.

    Thank you!

    Gazpacho99 wrote:

    How (in the world) to create the cluster which feeds the entry "DB tools insert data" VI?

    What I did before, is to make a copy of "DB tools Insert Data.vi" and change internally in order to accept an array of variant instead of a cluster.  Then I can build programmatically to a picture of what I want insert, leaving the fields not used as Null.  A few years ago when I did, but I think it was pretty easy to do.

    -James

  • How can I create an object for the vista HP 64 bit operating system installation disc?

    My PC shows signs a failure and I want to save my 'operating system', so I can "reinstall it later." Everything I saw in the forums are just consider my manufacturer. My Builder can not handle make me backups. I had to send them back 7 DOA (dead on arrival) and they never gave me a working copy. So in the end I just receive a refund. and geeksquad is way to expensive. so, how do I go about creating a disc of resettlement?

    Also the backup center and repair is more than the option to backup my operating system.

    Hello

    If you have a recovery disk partition hard HP are the people to contact about this

    It's their recovery partiton not microsofts

    and they have their own special way to make the recovery partition recovery disks

    If as you say your backup centers is not more work you can use 3rd party software to make a complete picture pc

    http://www.Acronis.com/homecomputing/products/TrueImage/

    or if you just want to reinstall a new copy of vista, read this:

    borrow a microsoft dvd vista

    Make sure that you borrow the correct 32-bit or 64-bit microsoft dvd to your computer

    they contain all versions of vista

    This is the product key that determines which version of vista is installed

    then get the hp vista drivers

  • How can I create a table of the "party" or code

    Hello

    I still have some problem of thought on my code and how I had to do. (Newbie here! )

    The question is that I want to create a member code of the 'Party' for 10 heroes or more with all the separate stats.

    I wonder if I should create a table that I send across or there is another solution, like a temporary file which stock upward and save.

    The table should look like this:

    LVL 1 of table: part of article

    LVL 2 of table: name, attack, defense, xp lvl of the character.

    Example: [["rodolf", 1300, 3, 4, 78], ['Tak', 1301, 4, 3, 79], ["mukmuk", 80, 103, 2, 3], etc...]

    I know that I can blow up when a character matrix or leave the party, but I think that's not a good solution for this. The party is a very active variable and can change many times. So I need your help to guide me! Please, I beg you!

    Please read my problem and try to help me!

    Use an object:

    var obj:Object = {};

    updateParty('rudolf',1300,3,4,78);

    function updateParty(nameS:String,_xp:int,_attack:int,_defense:int,_lvl:int):void {}

    obj [names] = {attack: _attack, xp:_xp, lvl:_lvl, defence: _defense};

    }

    function retrieveParty (names): object {}

    return items [names];

    }

    ///////////////

    so if you want to recover the mukmuk lvl, use:

    trace (retrieveParty('mukmuk'). LVL);

  • In acrobat pro, how can I create a stamp with the fields that I can change in the stamp?

    So I have this stamp and I want to make the fields in each box, so I can edit them? That would be on top of an existing PDF document. Is this possible? I tried to create the stamp as an another 'form', but the fields are not editable once you create the stamp on the final pdf. Any help is very appreciated!

    stamp.png

    It is not possible to edit stamps as soon as they are applied. You can add fields for the stamp and then prompts the user to enter their values just before the buffer is applied, but not thereafter. It is a very complex, however. Search these forums for "dynamic stamps" for more information.

  • Ss12: How can I create a dent in the timeline?

    In timeline Expert, is there a way to create a gap, so that copies of the other clips on the timeline can be copied in it without covering the other clips?

    The goal is to insert a series of copies of very short duration of various clips to create a section with multiple rapid changes from one image to the other.

    I've been using a work around (screen black insert, then copy / paste extracted from the timeline above) but it is very tedious and ineffective, adding additional steps to the process.

    I have so many things in the timeline as lasso and dragging back everything is even less effective.  And sometimes causes crashes.

    VDOS,

    Thank you.  It would be good but I have a ton of stuff on the timeline and when I drag a lasso operation - half the time the program crashes.  Also, I try to avoid all select them and then drag - a lot of your time.

    Actually, to my question, I found the answer last night:

    1. copy clip (s) that need to be copied in a different location of the timeline (Ctrl-C).

    2 put CTI to location target on the timeline,

    3 Shift-Ctrl-V

    This will copy the clips to the location of the CTI, sliding to the right to make room.

    As you note, if you have anything on any other track ss12 will chop her upwards and move, that I learned the hard way.  So I had to remove the soundtrack, to be later.  I consider it very bad design; There are countless situations in which the soundtrack is essentially a background music which has absolutely no specific link to a specific scene or clip, and failure to allow a substitution of synchronization is very poor design.

    It seems to simply create a gap for a reason, maybe the fastest way is

    1 set the CTI at the location target for gap

    2. create black screen

    3. Insert a black screen to the timeline.  Everything will slip just to accommodate.

    4 R click on black screen, click on delete.  Screen is removed, leaving a vacuum.

    5 clear black display of active project (to avoid to fill this space with useless junk).  Or leave if you think you'll use it again.

    This may be a marker handy to find quickly to the area or clip that you need to work later.  Or to indicate the areas that you want to export later.

    Post edited by: Kawika808 - syntax

Maybe you are looking for