How to set the default value of a column from the value of the 2 columns given

Is it possible to set the default value for a column A, as the concatenated values of columns B and C of the create table statement itself without using the trigger.

for example, in a line, if column B is 'James' and column C is "smith" then the column has must be "james Smith".
in another line if column B is 'Bob' and column C is "Taylor" then column should be "Bob Taylor"

Thank you
YG

Yes, it is possible. But what is your version of the database? Try to use "virtual column. Search for a virtual column in the following link.
http://www.Oracle.com/technology/pub/articles/Oracle-database-11g-top-features/11g-schemamanagement.html
http://download.Oracle.com/docs/CD/B28359_01/server.111/b28286/statements_7002.htm

Tags: Database

Similar Questions

  • How to set a default value in the Import Wizard delimited for the date?

    Hello community,

    I am currently trying to import some files delimited in a SQL table via the Import Wizard (right-click on a Table "import data... ") with delimited as input (.dsv) files.

    In step 4 of the wizard, I put the columns in the Source files for the target of the columns of the Table.

    Now, this is where my problem. Whenever a target column has the format "date", I define the mask of translation you want for each column.

    I would like to define a mask by default so that the same format is always used.

    User interface, it looks like this field also exists:

    field_greyed_out.png

    However I can't put it in the wizard itself, and I'm not able to find the option in the preferences.

    I tried the following preferences (Oracle SQL Developer 4.0.2):

    Preferences-> database->-> all NLS date 3 preferences set to "HH24:MI:SS DD. MM YYYY ".

    Preferences-> Migration-> translators-> Format of Date Source default value "HH24:MI:SS DD. MM YYYY ".

    Preference-> Migration-> data move Options->

    DataMove.PNG

    But still, I have to type it every time.

    Can someone explain how to set the default value?

    You can not.

    But.

    In the next major release, we seek to:

    • selection of a menu selector common date formats drop-down
    • Save your import settings session and their reloading for later import

    I think you have a good idea, maybe it defaults to MRU. When we start the process of the Beta/early adopter, be sure to check and let us know what you think. For the moment, and what I'm doing, I copy the date format string and paste them in such as required. I'm not a super big fan of having default values in 'automatically' added because it can lead to mistakes, and in this case, data corruption issues.

  • How to set a default value for the bar to EXPLORE in Office XP Explorer?

    When I explore my PC Explorer bar to the default left hand blue component with what is called frequent tasks. I ALWAYS click on the folder icon (or view > bar explore > files).

    I would like to open like that by default - is a registry setting or remove this?

    Thank you
    Neal

    1st post!

    Hey Neal.uj,

    Welcome to the forum!

    You can set the default action on a folder to explore instead of to achieve this effect. To do this:

    ·         Click Start

    ·         Click on Control Panel

    ·         Open Folder Options

    ·         Click the File Types tab

    ·         Click the folder

    ·         Click on Advanced

    ·         Click on Explorer

    ·         Click set as default

    ·         Click OK

    ·         Repeat the same process for file

    ·         When you're done, click close

    Hope that helps, I look forward to hearing from you.

    Steven
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think

  • How to set a default value for a page element

    I work with an array of facilities that has the name and the address. The user can add information to the contact person on a separate page. Because the address of the establishment and his contact is generally the same, I want to add a default value to the contact address. The installation page is on 201 and the link to add a new line of contact is on page 202. I showed in the default value: P201_street to the address of the contact. But, when I run the page, contact the address field shows the: P201_street, not the address of the actual plant. Do I leave? Must be something obvious?
    Thank you very much.
    Judy

    Hello

    Use: P202_STREET1 for PL/SQL expression, or just P202_STREET1 if you use the value of the item condition.

    See you soon

    Ben

  • How to set a default value for analysis the length of the page for the HP Photosmart C8180?

    When I scan documents using the HP Solution Center software on my printer HP Photosmart C8180, the default page length always 12 inches.  While I can't change 11 inches on each scanned page, it's a big pain when scanning multi-page documents.  Is there a direct solution or work around it?  Thank you.

    When you scan a document for example, solutions Center, one of the screens that should appear, will have (depending on the exact version of Windows for wordage) a button for Advanced Document settings. There should be an option to tick to automatically crop to the document. That could clear up the white border at the bottom without having to do it manually.

    When you scan an image (or document) to file, usually the default settings save who to the original size.

    As side note, usually printers has a document feeder, will automatically manage the images/documents in the way you want, without changing the settings by default simply had to be fed physically in front of a window scan.

  • How to set the default value for the digital control on front panel?

    How to set a default value for a numeric control of LabVIEW 2009 Front Panel? I have several input values that are actually configuration settings I want to settle with the default values of zero. I want them to be the values displayed when the façade first appears until the code is executed.

    I really want to use the Minimum and Maximum limits by default for this because I still want to be able to define acceptable limits for values.

    I would not be able to specify a default value of zero for these entries?

    Enter the desired value, then "right click...... of default data of value to operations. Save the VI.

  • Windows Explorer - list: how to set the default value to display all the contents of the folder 'List' not 'Tiles '.

    Using the Windows Explorer of Windows 7, how I have by default set to display all the contents of the folder 'List' not 'Tiles '.  I want set a default value for the new folders and edit globally all folders that I have.

    Thank you, Steve

    Hi Steve Menker,.

    Visit the links that measures to work with files and folders in Windows Explorer below:

    1. working with files and folders:http://windows.microsoft.com/en-US/windows7/Working-with-files-and-folders

    2. change the folder options:http://windows.microsoft.com/en-US/windows7/Change-folder-options

    3. organize, sort, or group your files:http://windows.microsoft.com/en-US/windows7/Arrange-sort-or-group-your-files

    With regard to:

    Samhrutha G S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • How to set the default value of the attribute with a sequence number? Is it possible to add a string to seq.no. like abc0001?

    Mr President.

    How to set the default value of the attribute with a sequence number? Is it possible to add a string to seq.no. like abc0001?

    Concerning

    For the date, you can use groovy expression adf.currentDate to set the current date. reference http://adfgouravtkiet.blogspot.in/2012/11/how-to-set-default-values-for-entity.html

    You already have ways to use the sequence.

    How do you add a new value in the form. You're creating a new line of your page (user interface) and by engaging with validation operation? Unless you commit you will not be able to see anything in the table.

    Thank you

  • How to set the default value for the Group of radio buttons

    Hello
    Here's my situation.
    I have a form of HTML text. In the form, I have an element called "* drinks * ' and its options in the radio button group or coffee, tea. Now, I want to put a default value("NA") to the radio of drinks group. Is it feasible. If so, how. Advice would be useful. Thank you

    Hello!

    You can also set a default value in the radio unit of page article under the default setings. Here, you must put the result value (if you have static: Café;) One, the; B, NA; C you write C if you want NA default choice) of your radio.

    concerning

  • How to set up default InDesign CS5 in the system with InDesign CS4 has the default value?

    How to set the application default .indd InDesign CS5 when you installed CS5 and InDesign CS4 and InDesign CS4 is the current default (InDesign CS4 has been installed after the installation of CS5)

    Thanks, but I already tried at first, but is not effective.

    I think that its because of this reason:
    The two - InDesign CS4 and InDesign CS5 have their application/program/exe named "indesign.exe".

    Installation of either InDesign CS4 or InDesign CS5, sets a default for the 'indesign.exe' Windows path. In this case, since InDesign CS4 was installed later (after InDesign CS5 was already installed), the "indesign.exe" which has been staged "Indesign.exe" of InDesign CS5 has been replaced by "Indesign.exe" of InDesign CS4.

    But after long google and searching through regedit, I have the solution:

    1. Search for HKEY_CLASSES_ROOT\InDesign.Document\Shell\Open\Command in regedit
    2. Change the value of the attribute (default) for "C:\Program Files (x 86) \Adobe\Adobe" '%1' / / including the quotes

    Post edited by: Vidit Kothari

  • How to set the default value of a column?

    Hello
    While creating a table a lack that certain field value is set to a default value, like:

    create table t2
    (a number;
    b number not null);

    In this table, I want to put a value to a certain default value, as in the case where a value is not entered then a field will be automatically filled with the default value. How to do this?

    Very simple:

    create table t2
    (a number default 10,
    b number not null);
    

    You can also set a default value and keep it as NOT NULL, to prevent it from being updated with NULL value later.

    create table t2
    (a number default 10 not null,
    b number not null);
    

    You can probably get faster answers glancing http://tahiti.oracle.com/ to more simple questions, in which case you would be looking for.

    Kind regards
    Francisco.

  • How to set the value of a variable in a cluster in LabVIEW to c#?

    Hi guys, I'm working on a small c# program, which by using the interface provided by LabVIEW.  And I know that, with the help of lv. SetControlValue (name, value) can set a variable just on the front panel. But in my case, there are several groups on the front panel. Then it confused me how to set the variables in these groups. For example, there is a cluster named clusterA and a variable named a., I tried something like this:

    lv.SetControlValue("clusterA.valueA",1);
    

    but it totally inoperable. Everyone has some experience with this sort of thing? Thank you very much!!

    Hey guys, thanks a lot for all your response. I just found a simple way to solve this problem. For example, there is a cluster named "ClusterA", and there are only two witnesses, who are: an int value named "IntA" (default = 10 IntA value) and a string value named "StringA" (by default the StringA = 'abc'). In c#, if you call the method:

    var clusterA is vi (Array). GetControlValue ("ClusterA");

    you will get a table looks like: clusterA = {10, 'abc'}; So if you want to change IntA 123, you simply do:

    clusterA.SetValue (123, 0); 123 the value, 0 is the index of IntA in clusterA, after this clusterA table = {123, 'abc'}

    After that, simply to make the table in LabVIEW using:

    VI. SetControlValue ("ClusterA", clusterA);

    and now you see the LabVIEW, IntA is changed.

  • How to set the default boot drive? I can get to about 8 choices but only one is correct and I don't know how to do that by default.

    I hit F10 and get a choice. The default value is a flash drive with no boot of the stuff.  How do I pick up and save the right choice that the computer always looking to when it is turned on.

    Hi Herbertrosenthal,

    Welcome to the Microsoft community where you can find the answers related to windows.

    If you get multiple entries start during the connection to the Windows 7 operating system then I suggest you to refer to the following methods.

    This problem can occur because interties incorrect startup, that I suggest to read the following steps and check if it helps.

    a. log in the computer using an account with administrator rights.

    b. Click Start, type msconfig.exe in the start search box and press ENTER to start the System Configuration utility.

    c. Select the Startup tab. in the list of boot tab, select the one you want to set a default value.

    d. click on apply, OK and then click on restart and check if it helps.

    Note: If you want to change the boot drive settings then I suggest you to read the following steps:

    a. new computers often display a startup (or boot) menu. In the start menu, choose "Configuration of the BIOS," or "BIOS settings," or something similar.

    Procedures vary depending on the manufacturer of the BIOS. Usually, you must press a key (for example, F2, F12, DELETE, ESC) or a key combination whenever you turn on your computer but before Windows starts. If the Windows logo appears, you must try again by waiting until the Windows logon prompt appears, and then stop and restart your computer again.

    b. the BIOS configuration screen appears. On the BIOS Setup screen, choose the option called "Boot order" or something similar. Startup command parameters may also be listed under "Advanced settings" or something similar.

    c. Select your drive from DVD or USB drive as first boot device. (The USB flash drive can be listed under "Removable devices" or other similar term).

    d. save the setting changes, and then exit the BIOS.

    Note: BIOS change / semiconductor (CMOS) to complementary metal oxide settings can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the configuration of the BIOS/CMOS settings can be solved. Changes to settings are at your own risk.

    If you need Windows guru, do not hesitate to post your questions and we will be happy to help you.

  • How to set the initial value programmatically in af:selectOneChoice

    Hi all

    How to set the initial value programmatically in af:selectOneChoice

    filled with view object instance, but I want to show the value initial programmactically

    This can help you: Re: how to set the default value of the component selectOneChoice in ADF

    and the default af:selectOneChoice programmatically from backing bean

  • How to set the ARX as default

    I can't Adobe Reader X by default to open PDFs on my PC. I have Vista Ultimate. I've just updated to this version 7 and it screwed with all. I can open a PDF of the program itself, but right click on a PDF file and setting as default value is unavailable and does not work. How can I fix it?

    The best way to fix file associations is to run a repair Adobe Reader installation, or a reinstall full; Download the installer from http://get.adobe.com/reader/enterprise/

  • How to set the default prompt of dashboard?

    Hello
    In my dashboard prompt, I get values such as:

    March 2010
    Apr 2010
    May 2010
    June 2010

    How to set the default value for the month in progress (June 2010). I don't want to use "specific value. I want to use the 'SQL result' to populate the default value.

    Appreciate your help

    You can use select to_char (trunc (sysdate), 'Mon-YYYY') of the double

    see you soon,
    Vineeth

Maybe you are looking for

  • I have no wifi in settings on the iPhone 6, with

    I have no wifi, the call option in the phone settings on my iPhone 6plus

  • try to synchronize the ipad pro with my laptop

    my laptop is unable to sync my ipod pro, saying I need to download the latest version of itunes, which I have any solution for this? Thank you

  • Equium A60-155 - CD/DVD drive is not recognized

    You just bought second-hand Equium EA60-155 works OK but no CD/DVD being recognized.Power learning to drive because it can eject and seeing orange lights. I am running Windows XP. Any ideas?Thank you.

  • RAW for DV7T-6100 sata driver

    I am looking for the raw for the DV7T-6100 .ini files and can not find them anywhere. I am trying to install Win 7 on this system and it comes up with "no cd/dvd device driver installed etc etc which really means I need drivers SATA on my Win 7 insta

  • Saving audio files to low

    Hello - I have an upgrade to Windows 10 Pro and now when I try to save an audio file for a captivate project, the volume is very low and it seems that recording is muffled.  I have tried different helmets, appeared the volume on the computer and can