How to create the constraint to take two or more columns at once?

Hello
I use Oracle 9i, and I want to create a table like this:

create table t1
(a number not null,
b is the number not null check(b>a));


Make it clear to you that I want the value of column b is always greater than value column. But it is giving error check constraint cannot reference other columns... and then how to bind this constraint to my columns in the table.
Connected to Oracle Database 11g Enterprise Edition Release 11.1.0.6.0
Connected as SYS

SQL>
SQL> create table t1
  2  (a number not null,
  3  b number not null);

Table created

SQL> alter table t1 add constraint b_greater_than_a check (b > a);

Table altered

SQL> 

Tags: Database

Similar Questions

  • How to create the home group and how to connect two computers that are running windows 7. and also Remote Desktop connection!

    Someone help me how to create the home group and how to connect two computers that are running windows 7. and also Remote Desktop connection!
    step by step information!

    Hello

    I suggest you to refer to the links and check if it helps:

    Create a homegroup

    http://Windows.Microsoft.com/en-us/Windows7/create-a-HomeGroup

    Join a homegroup

    http://Windows.Microsoft.com/en-us/Windows7/join-a-HomeGroup

    Setting up a network home

    http://Windows.Microsoft.com/en-us/Windows7/setting-up-a-home-network

    Remote Desktop connection

    http://Windows.Microsoft.com/en-us/Windows7/products/features/Remote-Desktop-connection

    What types of connections remote desktop should I allow?

    http://Windows.Microsoft.com/en-us/Windows7/what-types-of-Remote-Desktop-connections-should-I-allow

    Remote Desktop connection: frequently asked questions

    http://Windows.Microsoft.com/en-us/Windows7/Remote-Desktop-connection-frequently-asked-questions

    Let us know if it helps.

  • How to create the link between the two drop-down lists

    Hi all

    I've created a form in which there are two drop-down lists.

    Let's say a drop-down list contains three elements A, B, C

    and another drop-down list contains three elements, Apple, banana and cherry.

    So, my request is how to create a relationship between these two drop-down lists, so that if I choose 'A' in the 1st drop-down list, Apple will be selected automatically in the 2nd drop-down list.

    Thank you

    Stéphane

    Hi Scott,.

    Niall is great. You can also use a hidden field to update the second drop-down list value.

    The first drop-down list change event script.

    Select var = xfa.event.change;
    var Items = List1.resolveNode("#items[0]").nodes;
    for (var i = 0; i)
    {
    if(Select == items.) Item (i) .value)
    {
    break;
    }
    }

    If (List1.Length > 1)

    {

    var Items_List2 = SecondDropdownlist.resolveNode("#items[0]").nodes;
    HiddenTextField.rawValue = Items_List2.item (i) .value;
    SecondDropdownlist.rawValue = HiddenTextField.rawValue;

    }

    Thank you

    Sidonie.

  • Satellite P750 PSAY1A: how to create the recovery Toshiba on the new HARD drive partition

    Hello

    I have an old Toshiba Satellite P750 (PSAY1A-01Y022). I just upgraded my memory from 4 GB to 8 GB and am preparing to take my 500 GB HARD drive 1 TB. I had to order the disk online and wait to happen.

    I always try to understand how to create the arrival of my new HARD drive Toshiba Recovery Partition. I do the same thing for an old book, I handled based on something similar to it's original factory State.

    I have reflected on the recovery partition, but does not know how it was created. It is not NTFS. Does anyone have experience in the creation of a Toshiba Recovery on a new HARD drive Partition?

    And the help is very appreciated.

    Thanks and regards,
    Dinesh

    Recovery partition can be created when you use the original Toshiba Recovery disk and install recovery image. Before the partitions to boot OS install will be automatically created, recovery image copied on a recovery and then partition as last step recovery image installation starts.

    A sort of migration of files from one to the other HARD disk is not solution.

    Only for laptop with factory will work and the usable recovery partition.

  • How to create the rule to trigger only 5 and 20th of each month in Foglight

    Hi team,

    One needs to create a rule in Foglight that fire only a day as the 5th and 20th of each month and check the status. I tried to create it, but I've not found an option less create rule. I think we can do it by Time Driven option or calendar drove but I'm confuse. Can someone let me know how or the document where it mentioned.

    Thank you for your help in advance.

    Thank you

    Shashank Soni.

    That sounds more like a rule-based program.  First, create a new calendar and choose the monthly option and enter one of the days of the month.  I think it might be difficult to get a calendar to be true on two different days, you may create two programs and then create a rule for each.  We can be one simple copy of the other.  Once the calendar is created, you can create a rule, choose led calendar and choose one of your two annexes.

    Maybe someone can be smarter about how to create a monthly calendar for two different dates.

    I hope this helps.
    Jeff (I work for Dell)

  • How to create the .cod file to run on the Simulator BB9900

    Hi, I already from the zip package in order to use the bbwp command to create the .cod file and be able to run on the simulator of BB9900, but when I run this command as described in: https://developer.blackberry.com/html5/documentation/compile_ww_app_for_smartphones_1873321_11.html

    It creates two files, each with a .bar file, this type of file, I can't run it on the 9900 Simulator but a .cod file is required to run applications on the sim card.

    I don't know how to create the .cod file.

    Thank you

    Have you used Blackberry Webworks SDK for smartphone or Tablet SDK? The .cod files should be located in the subfolder OTAInstall of your output folder if you are using the Webworks SDK for Smartphone

  • How to create the logical tables & how to give joints according to obiee 11g?

    Hello

    I have again to obiee 11g. I want to create the logical tables in MDB layer.

    After that I want to give joins according to MDB.

    I don't know, how to create the logical tables and how to give joints according to obiee 11g?

    Please help me.

    Thanks in advance,

    A.Kavya

    Hello

    The new logical table is right click on the MDB itself, for the join you generally in the business model diagram (again right click on objects).

    Maybe it's better if you start from a kind of tutorial to at least have an overview of what is happening where (layer business and physical layer etc.).

    Take a look at what Oracle has available: Oracle BI EE 11 g

    And no doubt, it can be a good start: https://apexapps.oracle.com/pls/apex/f?p=44785:24:0:NO:P24_CONTENT_ID, P24_PREV_PAGE:9787, 2

  • How to create the hard disk volume/partition in windows 8?

    I bought a new Sony Vaio with windows 8 OS. I need to create a new partition/hard disk volume. How to create the hard disk volume/partition in windows 8?

    I bought a new Sony Vaio with windows 8 OS. I need to create a new partition/hard disk volume. How to create the hard disk volume/partition in windows 8?

    shrink the volume c: http://www.sevenforums.com/tutorials/2672-partition-volume-shrink.html

    Then create a new volume u want http://www.pcandtablet.com/windows-8-drivers/1216/how-to-extend-volume-in-widows-8-and-take-extra-space-for-a-drive.html

  • How to create the cluster in weblogic

    Hello to all the ups...

    We pass our 6i has 11 GR 1 material. After the migration of our very poor server performance. So now, we want to use clusters. After a google search, I have not found any better way to do. We create two independent with machine

    Server Admin

    Forms

    Reports

    Lets assume that the machine name is SACHIN1 and SACHIN2.

    Now, how to create the cluster on SACHIN1?

    Please help me.

    Thank you

    Sachin

    Hi salah

    I understand, he has several steps. The steps apply only to the WebLogic Server.

    To ensure high availability with a top layer products it is WDM. I did research more far and I found that there is a WDM for forms and reports.

    I found WDM for forms and reports 11.1.1.2:

    http://www.Oracle.com/technetwork/database/features/availability/MAA-EDG-frd-129690.PDF

    Is there a reason on why migration is 11 GR 1 matter? first support for 11 GR 1 matter ended in June 2014

    http://www.Oracle.com/us/support/library/LSP-middleware-chart-069287.PDF

    We could get help on the following forums:

    Oracle reports (MOSC)

    Oracle Forms (MOSC)

    Best regards

    Luz

  • How to create the column of the table for long-form Master detail relationship

    Apex 4.1

    Oracle 11g

    I created a form master detail and see the main table hotel_list and table hotel_mapping as detailed below.

    Hotel_list

    ID HOTEL_NAME

    1 Holiday Inn

    Hotel Hilton 2

    Hotel_mapping

    ID HOTEL_NAME MAPPING_NAME

    1 Inn Holiday Inn Select hotel

    2 holiday hotel Holiday Inn Select

    3 hotel Holiday Inn Holiday Inn Hotel

    4 Hilton Hotel Hilton Hotel chain

    Hotel Hilton 5 HiltonHotel

    Table Hotel_name Hotel_list is a linked table Hotel_mapping

    When I add a line to the Hotel_mapping table for the selected row in the hotel_list table, mapping_name of column is null, therefore impossible to create the relationship between the main table and the secondary table.

    I would like to know, how to create the relationship?

    Thank you very much

    Best regards

    Yong Huang,

    simple step see creating a form detailed master with APEX - Assistant Master retail

    and check how to maintain the relationship between two tables,

    simple return the packaged application «Sample of Masters details»

    and try to understand this concept...

    In your example, use Hotel_list.ID as a foreign key in the table Hotel_mapping

    and maintain the relationship with the column ID...

    and choose the display type of the column Hotel_list.ID in table Hotel_mapping as List(Query Based LOV) select.

    otherwise the best way is to create sample on oracle.apex.com

    I hope this helps...

    Leave.

  • How to create the BC4J Package in JDev 10 g (with OAF)?

    How to create the BC4J Package in JDev 10 g (with OAF)?

    I use JDev 10.1.3.3.0 with Extension OA release 12.0.6. Right-click on the project of the new option Business Package of components is missing, I tried the business components of the Tables option but could not continiue as steps in the tutorial have does not match this wizard individual. I read on this forum that you can use this option to create the EOs and your and then specify packages later.

    Any help will be appreciated. The tutorial that I'm following is the Oracle Application Framework (tutorials) the JDevDoc\Index.html Toolbox

    Thank you
    Vijay

    Hello

    Tutorial is not being updated, Jdeveloper 10 g, there is no need to create the BC4j package explicitly, you just create AM OT or VO and mention the name of package, JDeveloper will take care rest of things, create new your EOs

    Right-click on the project--> New--> business components ADF (under the enterprise level)---> Module object/Application/view of object entity.

    Thank you
    Pratap

  • How to create the hyperlink by region

    I have the page that contains two region.i you want to create a link to each region. When I click on the first link

    first region must display, vice versa

    Actually how to create the link to the region?

    Thanks and greetings
    SKUD

    SKUD,
    Here is a detailed explanation of what I proposed before the ApEx 4.0 region selector

  • How to create the object rectangular box with a pure action script.

    How to create the object rectangular box with a pure action script?

    I think, it can be done through the clip library, but I'm not sure. Please, I want to take the suggestion to create a rectangular box as a script through

    Take a new file and write about the first image the code below, it works fine:

    var rect = new Shape();
    rect.graphics.beginFill (0xFF0000);
    rect.graphics.drawRect (0, 0, 100,50);
    rect.graphics.endFill ();

    var MC = new MovieClip();
    mc.addChild (rect);
    addChild (mc);

    If this doesn't solve your problem then paste the error you get

  • How to open the case or take the panels on a desktop HP A6202

    How to open the case or take the panels on a desktop HP A6202

    Just a manual for the love of God or an image. Now I searched the Net for an hour - no luck

    See this guide HP titled "opening the box" for instructions on how to open the case. Be aware that there are several "HP a6202" computers and your may be different than what I have listed. Please provide the full name of the HP model and/or the product name of the computer in question during a request for assistance.

  • HP pavilion dv7-4114tx: can the dv7-4114tx, take two 8 gig of ram sticks?

    Hi guys, I have a Pavilion dv7-4114tx, which comes standard with 2 x 4 equal concert stick with 8 GB of ram. Can the dv7-4114tx, take two 8-gig sticks to match the 16 GB of ram. If so, what speed/configuration Ram should I buy? Thank you. There seems to be various options - hp told me yes today on the phone, but the forums indicate no?

    Thanks in advance.

    Gazzzz

    PS: the machine is out of warranty and it runs win7 64 bit and has an Intel i7 processor. The bios will address 16?

    Hi @Gazzzz,

    Please consult the page # 3 of the manual below where it shows the maximum RAM supported on this device is 8 GB. It is 4 GB on each slot.

    http://h10032.www1.HP.com/CTG/manual/c02666747

Maybe you are looking for

  • What is the color of the bar in disk utility?

    Using disk utility, I ran a check on my main HD and my three external drives. The S.M.A.R.T. status of my main HD has been "verified". External drives were 'not supported '. I guess that means that Dick Utility is unable to "verify". What concerns me

  • I try the installation key OEM Office or upgrade to another version of Vista

    Hi, I had the same problem here. until someone shows me at the door, shouting that I have tried the vista OEM key to install office or upgrade to another version of vista, here are the facts: -C' is my work laptop.-It was installed with a volume work

  • Windows Mail will not send or receive e-mail

    After a recent upgrade to Vista, my computer has lost it. I got a new hard drive installed, but am still not able to use windows mail. I can use Windows live mail, but it is not as convenient. How can I go back to using windows mail? I checked put th

  • Install XP to Media Center Edition 2005 discs

    Start my laptop I get the error "missing or corrupt hal.dll file" my problem is without XP Media Center Edition 2005 installation discs.  Download anything from Microsoft?  Or is there another way to get such an animal?

  • HP 6570 b: Installation of the graphics processor dedicated HP 6570 b

    I have a HP ProBook 6570b with the i5 and 4 GBof RAM and Windows 7 Professional, but notdiscrete graphics option. Reading on theManual, I see that some of these models are sold withan AMD Radeon HD M 7570. BUT, those who have a 90.not the adapter 65