Derived from the existing columns

Hello

How to create a new column that has derive data from another table on this logic:

Table A
Name identity
1 dsf
2 homeless
3 SDS

Table B
ID name tableA_ID
1 dd 1
2 of 2


I added another column in table A in desperation to denormalize our data and didn't need to make a join to table B
ID name tableB_name
1 SD dsf
2 sdf of
3 SDS

basically just try to merge 2 tables with a 1-1 relationship. I tried to fill in the data of table B in A, but by making an inner join and when I query the data, does not return a row ID 3 in table a.

In model MDB make outer join. Make sure that you select next outdoor table.

Score pls correct/good

Tags: Business Intelligence

Similar Questions

  • Concatenate two columns and store it in the existing column

    Hi all

    I created a form based interactive report and need help on that. In the report, I want to display a column with label the CANDIDATE's FULL NAME by concatenating the existing columns in the same table.

    Am mentioning the details and the following questions:

    Table name: CANDIDATE_DETAILS

    Column 1: CANDIDATE_FNAME (first name) Data Type: CHAR (50)

    Column 2: CANDIDATE_LNAME (family name) the data type: CHAR (50)

    Column 3: CANDIDATE_FULLNAME (full name) Data Type: CHAR (100)

    If in the case of column 3 that is, CANDIDATE_FULLNAME is not created in the database, I could have written in query to create one using the concatenation of columns 1 and 2 of the column

    ALTER TABLE CANDIDATE_DETAILS ADD CANDIDATE_FULLNAME TANK (100 CHAR)

    AS (CANDIDATE_FNAME |) ' ' || ( CANDIDATE_LNAME)

    Since then, I have already created CANDIDATE_FULLNAME column, I just change or simply store the concatenation of Column1 and Column2. I tried to use under request, but his does not work:

    ALTER TABLE CANDIDATE_DETAILS

    CHANGE CANDIDATE_FULLNAME ACE (CANDIDATE_FNAME |) ' ' || CANDIDATE_LNAME)

    Also I'm checking the code under SQL Workshop-> SQL commands by entering the query below and his works fine.

    Select CANDIDATE_FNAME. ' ' || CANDIDATE_LNAME

    of 'CANDIDATE_DETAILS '.

    but do not know where to enter this code in "The Page Creator" that without creating an additional column in the database my needs can be met.

    Please let me know if you need more information and really appreciate any assistance.

    Thank you

    Verhasselt

    Hello

    If the requirement is to display the columns and their contents concatenated in a third, you can try this:

    1. create a new column in the report by adding code to the selection of the report:

    Select CANDIDATE_FNAME, CANDIDATE_LNAME, "'"CANDIDATE_FULLNAME"'CANDIDATE_DETAILS'"

    2. in the page editor, select the "CANDIDATE_FULLNAME" column and his correspondents "formatting of column" > "HTML Expression" describe what you like:

    #CANDIDATE_FNAME # #CANDIDATE_LNAME #.

  • How can 1 derive / display 3 second interval lines from the existing timestamp values

    Hello

    I'm trying to produce the number of lines that occur in intervals of 3 seconds and cannot work out how to use the timestamp values existing in the table of products or the display of lines with a second gap 3? The table rows look like this:

    NAME (EDT) 1

    1111 JANUARY 30, 15 12.29.09.000000000

    PPPP JANUARY 30, 15 12.29.10.000000000

    PPPP JANUARY 30, 15 12.29.11.000011111

    1111 JANUARY 30, 15 12.29.11.000055555

    PPPP JANUARY 30, 15 12.29.17.000000000

    PPPP JANUARY 30, 15 12.29.18.000000000

    1111 JANUARY 30, 15 12.29.29.000000000

    PPPP JANUARY 30, 15 12.30.23.000000000

    PPPP JANUARY 30, 15 12.30.25.000000000

    1111 JANUARY 30, 15 12.30.27.000000000

    PPPP JANUARY 30, 15 12.30.29.000000000

    PPPP JANUARY 30, 15 12.30.31.000000000

    1111 JANUARY 30, 15 12.30.33.000000000

    PPPP JANUARY 30, 15 12.30.35.000000000

    PPPP JANUARY 30, 15 12.30.37.000000000

    1111 JANUARY 30, 15 12.30.39.000000000


    And the output that I'm trying to reach/drift (initially) is as follows:


    Timestamp1                            Count

    30 JANUARY 15 12.29.09 4

    JANUARY 30, 15 12.29.12 0

    JANUARY 30, 15 12.29.15 1

    JANUARY 30, 15 12.29.18 1

    JANUARY 30, 15 12.29.21 0

    JANUARY 30, 15 12.29.24 0

    JANUARY 30, 15 12.29.27 1

    JANUARY 30, 15 12.29.30 0

    JANUARY 30, 15 12.30.30 1

    JANUARY 30, 15 12.30.33 1

    JANUARY 30, 15 12.30.36 1

    JANUARY 30, 15 12.30.39 1


    Thus, the main problem that I see trying to derive the first column of numbers as shown above. If someone could give me help on this I would be very grateful.


    Kind regards


    Kevin.


    with (name, time 1) testdata until)

    Select "1111", to_timestamp (January 30, 15 12.29.09.000000000', 'dd-mon-yy hh24:mi:ss.ff') of all the double union

    Select "PPPP", to_timestamp (January 30, 15 12.29.10.000000000', 'dd-mon-yy hh24:mi:ss.ff') of all the double union

    Select "PPPP", to_timestamp (January 30, 15 12.29.11.000011111', 'dd-mon-yy hh24:mi:ss.ff') of all the double union

    Select "1111", to_timestamp (January 30, 15 12.29.11.000055555', 'dd-mon-yy hh24:mi:ss.ff') of all the double union

    Select "PPPP", to_timestamp (January 30, 15 12.29.17.000000000', 'dd-mon-yy hh24:mi:ss.ff') of all the double union

    Select "PPPP", to_timestamp (January 30, 15 12.29.18.000000000', 'dd-mon-yy hh24:mi:ss.ff') of all the double union

    Select "1111", to_timestamp (January 30, 15 12.29.29.000000000', 'dd-mon-yy hh24:mi:ss.ff') of all the double union

    Select "PPPP", to_timestamp (January 30, 15 12.30.23.000000000', 'dd-mon-yy hh24:mi:ss.ff') of all the double union

    Select "PPPP", to_timestamp (January 30, 15 12.30.25.000000000', 'dd-mon-yy hh24:mi:ss.ff') of all the double union

    Select "1111", to_timestamp (January 30, 15 12.30.27.000000000', 'dd-mon-yy hh24:mi:ss.ff') of all the double union

    Select "PPPP", to_timestamp (January 30, 15 12.30.29.000000000', 'dd-mon-yy hh24:mi:ss.ff') of all the double union

    Select "PPPP", to_timestamp (January 30, 15 12.30.31.000000000', 'dd-mon-yy hh24:mi:ss.ff') of all the double union

    Select "1111", to_timestamp (January 30, 15 12.30.33.000000000', 'dd-mon-yy hh24:mi:ss.ff') of all the double union

    Select "PPPP", to_timestamp (January 30, 15 12.30.35.000000000', 'dd-mon-yy hh24:mi:ss.ff') of all the double union

    Select "PPPP", to_timestamp (January 30, 15 12.30.37.000000000', 'dd-mon-yy hh24:mi:ss.ff') of all the double union

    Select "1111", to_timestamp (January 30, 15 12.30.39.000000000 ',' dd-mon-yy hh24:mi:ss.ff "") of the double

    )

    , d (mn, mx, cnt) as)

    Select min (time1) - second "3" interval

    , max (time1) - interval of second '3'

    ,      -1

    of testdata

    Union of all the

    Select

    MN + interval of second '3'

    mx

    , (select count (*) in testdata where time1 > = mn + '3' second interval and time 1)< mn="" +="" interval="" '6'="">

    d

    where mn<=>

    )

    Select

    MN

    cnt

    d

    where NTC! = - 1

    Mn, mx, NTC group

    Agenda minutes;

  • Display warning message if the user tries to update the existing column of trans_dt

    Form of Oracle 10g

    Hi gurus

    I appreciate if someone help out me. I need to display the warning message if the user try to update the existing trans_dt, and I don't know what trigger I use. Thank you

    Concerning

    Matt

    Hello

    You can select the value entered by the user and then compare it with the data from the db table

    in WHEN-VALIDATE-ITEM trigger

    SELECT trans_dt

    V_ INTOtrans_dt

    table

    WHERE THE... -PKs;

    Then

    IF: trans_dt <> v_trans_dt

    THEN

    -warning-

    -u he could leave it as what or

    raise form_trigger_failure;

    END IF;

    Amatu Allah.

  • Sort the existing column (for example: status) when the ColumnHeader click to grid VM

    Hello

    In Vsphere Webclient.

    Inventory-> grid VM:

    VMware provides a few existing columns, few are sortable such as name, State, etc on the click of columnHeader and few are not sortable.

    Is there a way to do an existing non-sortable column to the sortable?

    I wanted to do for the status"" column.

    Any help or suggestions will be much appreciated.

    Thanks in advance,

    Mayur

    If you want your newly added columns sortable, there is an example in the SDK which illustrates this.

    Please, look at the example of the chassisRackVSphere-ui .

                
                
                  com.vmware.samples.chassis.column.name
                  
                      
                        
                        #{name}
                        
                        
                            name
                        
                        
                        name
                        
                        name
                      
                  
                
    

    The sortProperty should allow sorting. And of course your back-end service that supports. In the example, it is the chassisRackVSphere-service.

  • Read data from the text column in report

    I have a sql report with an editable column created using apex_item.text (5);

    I tried to read and insert the data from the column in a table, using this process

    because me in 1.apex_application.g_f05.count
    loop
    insert into table (col_a, col_b)
    values (apex_application.g_f05 (i), apex_application.g_f04 (i));
    commit;
    end loop;
    end;

    but without success.

    The message when I execute is ORA-01403: no data found.

    What is the error?

    HI lkefur,

    Try to debug it.

    The reason behind this is that your report do not have the of4, fo5 (one) as text fields at all.

    try to delete value n f04 normal text and check, even to f05.
    I think that most probably the reason whether shud.

    You can view only the source of the page and check which names are your text fields of the report to help.

    Kind regards
    Nandini thakur.

  • 'CREATE JAVA' error: ORA-29506: derived from the USING clause invalid query

    Hello

    I created a table with the following attributes:

    name varchar2 (200);
    LOB_DATA blob


    I loaded a java source file in the lob_data blob.

    I then called the SQL:

    create or replace and compile the java source named "RemoteCommand" using blob
    Select lob_data from str_blob_table where name = 'RemoteCommand.java ';

    and I get the error:

    ORA-29506: invalid query from the USING clause
    ORA-00936: lack of expression
    29506 00000 - "query invalid derived from USING clause.
    * Cause: The USING clause does not form a valid query.
    * Action: Correct the USING clause.



    If I simply copy and paste the query part of the USING clause:

    Select lob_data from str_blob_table where name = 'RemoteCommand.java ';

    I get a valid result in SQLDeveloper.


    Any thoughts on what is happening here?

    A few notes:
    1. it is a 8i database.
    2. it works very well on a 9i database, but according to the SQL reference for 8i, it should work as well.

    Thank you
    Brent

    Try to delete "select" in the USING clause, that is to say change the SELECT BLOB SUPPORT... for BLOB to HELP... The original form of the syntax of JAVA to CREATE did not expect the SELECT token must be explicitly provided. Somewhere between 8i and 9i the parser was changed to try the provided text as well as what, with SELECT prefixed. So a CREATE JAVA statement you tried working in 9i but in 8i fails because SELECT would always be added before you try using the clause as a query, resulting a SELECT duplicate token.

  • Downloading files from the blob column

    Hello

    I had the file it is implemented for the database blob column using the document below:
    http://radio.weblogs.com/0118231/stories/2004/09/23/notYetDocumentedAdfSampleApplications.html#85

    Now can someone please tell me how to download or view the file from the database blob column?
    I use jdev 11

    Thank you

    Hello

    At the end of your download method invoke:

    ActualExceptionIter.executeQuery ();

    Kuba

  • moving from the existing dimension company key

    A key to the company's need to be removed from an existing dimension in a data warehouse.

    I couldn't find any documentation on this topic, so please let me know of any links to the documentation if you know one.

    IM needing to know if this is possible, or do I need to create another dimension (with the right keys), transfer data,
    then trade dimensions in the mapping.

    Thanks for any input.

    Yes, you will need to re-dploy the chances of corruption is quite high, so the recommended option is to create a new dimension that can be much easier since you have the definition of the already existing dimension. Thus, the approach is "LOW RISK AND HIGH EFFICIENCY".

  • Derives from the system time when calling OR-Motion screw on PXI controllers

    Hello

    Just an email to avoid others wasting time when they are facing in this fantasy bug:

    We use PXI systems with Controllers NI PXI running Windows 7 and the 7340 family cards (PXI-7344). We have noticed that when the calls when it's through screws OR-Motion to question the different registers of the State (e.g. position, ADC value, general axis or the reference state) axis, the (Windows) system clock runs FASTER either. OR-Motion calls most are performed per second, faster windows clock works. When you get into the status for 4 axes 10 times per second (lines 100 ms rate), the drift is greater than 5%!

    I include here an example of program that reproduces this behavior.

    It is an essential question, for example if save you data with or from the timestamps, and it gets even worse if Windows is configured to periodically synchronize its own clock to a server via the NTP Protocol (it's how we noticed this problem in the first place). In this case, you see large discontinuities in your data every once in a while. Our systems must be running automatically and record data continuously throughout the year, so this bug is a real challenge.

    People at NOR been able to reproduce this bug too and are working on it (no idea of any CAR # yet). Note that this problem has not been seen on a DC non - OR Office running Windows 7 64 bit...

    The exact configuration is the following:

    Chassis PXI-1036

    PXI-8101 (or PXI-8102 on another system) controller

    4 PXI-7340 axes into the Groove 4, no physical connection for this test

    (PXI-6221 in slot 2, not used in this sample program)

    Windows 7 Enterprise SP1 32-bit English

    LabVIEW 2011 SP1 32-bit English

    OR-Motion 8.3

    2.6.2 PXI platform services

    (all software OR additional distribution 2012 DS1)

    Controller BIOS: improved 1.3.1 to 2.0.1f0, problem given the two versions of the BIOS

    I'll try to post here as soon as we receive news of NEITHER.

    Kind regards

    Vincent

    Hi all

    I wanted to let you know that the driver OR Motion 8.4 coming should solve this problem.

    Best regards

  • New Mac synchronize collections from the existing collections of light room Mobile, what is happening? How can I fix it?

    I created an account of lightroom through my iPad and iPhone.  No problem with lightroom it or the PC I have.  Well, now I have a MAC and got the cloud creative apps lightroom and photoshop on it.  Open the ambient light and there is no file not found.  All he wants to import comes from the local disk.  I tried to click on synchronize with mobile and invites me to "remove all synchronized data?

    It also States:

    "Lightroom allows you to synchronize a single mobile catalog with lightroom.  You currently sync "Lightroom Catalog.lrcat".

    "Do you want to delete all the data synchronized with Lightroom Mobile and synchronize this catalog instead? This will remove all data mobile Lightroom to your mobile devices.  It deletes all the pictures stored on your computer. »

    I don't want to delete what is currently on my mobile.  There is no data on the Mac store.  That's what I'm trying to add mobile.  I want that all my data on mobile that I can't see on the two iPad iPhone no problem, to be opened on Mac.  How can I fix it?  Any help is greatly appreciated.

    Thank you!

    Just Shoot me wrote:

    LR mobile works only with a computer and a single catalog on a computer with several mobile devices, phones and or platelets running iOS or Android.

    You cannot synchronize 2 different computers with LR mobile even if you use the same catalog on both computers. Whenever LR opens a catalog, even the same, on 2 different computers the file gets catalog a unique identification number, and it is this identification number is used to mobile LR for the synchronization of the collections.

    Which to correct a catalog PC. You can move files in LR to keep the changes, and then copy the catalog. He got a little complicated when I tried and I found myself from scratch any movement. I ended up with double copies because I moved t bad but can be done. Thanks for all the help and tutorials, etc.

  • Get a NAMED check constraint when the entity attribute derived from the field

    I'm designing a new database and beginning with a logic model of the ER. I've defined several areas, such as the NO_YES field (with values of ' no and 'Y'). When I use this area as a data type of an attribute of the entity (for example, the CHANGE_REQUEST.IS_APPROVED attribute), I also specify a constraint name (for example, CR_APPROVED_CK) of the attribute (this is done in the Group of constraint, property name constraint and the properties of the attribute dialog box, default value).

    When I have the logic model to a relational model of the engineer, the constraint name is lost. Specifically, for the definition of the table that is created, for the column in question, in the default column properties and constraints Panel dialog box, the name of constraint property is empty. When I generated the DDL of the relational model, the check constraint that is generated is an inline check constraint (such as ' IS_APPROVED VARCHAR2 (1) CHECK (IS_APPROVED IN ('n', 'Y')) '). When this DDL is executed to generate database objects, the created check constraint has a system-generated name. I want the constraint to have a name that I create.

    By experimentation, I found that in the relational model, if I specify a value for the property name of the constraint in the DOF resulting constraint get named (an ALTER TABLE statement is generated that contains "ADD CONSTRAINT CR_APPROVED_CK CHECK (IS_APPROVED IN ('n', 'Y'))"). However, I have redundantly change the relational model in the same way that I edited the logic model to specify the constraint names.

    Is there a way to guarantee that the constraint names defined in a logic model transferred during the engineering of a logic model to a physical model.

    The version of the Data Modeler I use is 3.0.0.665.

    Is there a way to guarantee that the constraint names defined in a logic model transferred during the engineering of a logic model to a physical model.

    There is ' compare/copy options' tab in the technical dialogue - clear the checkbox "do not apply to new objects.

    Philippe

  • Deriving from the value of the column totals

    BI Publisher 11g:

    I have the next report, that I generated:

    BOX TYPE NUMBER OF BOXES COST COST PER BOX
    A10$100$10
    B20$140$7
    TOTAL30$240$17

    My problem is that in the TOTAL row in the column COST PER BOX, the value shouldn't be that is to say $17 ($10 + $7) it should be actually IE $8 ($240 / $30). Does anyone know how to calculate the correct value.

    Assuming that this structure of xml data:

    A

    10

    100

    B

    20

    140

    You can use the following code to get the values:

    row1:  

    row2: 

    Thank you

    Bipuser

  • Deriving from the country, state/province telephone number Codes

    Is it a practice of good (or bad)?  I want to program a step that derivative of country codes and state/province based on the initial number in the phone field (in our washer contact)?

    For example, if the phone number begins by + 091 (or 91, + 91) the country code must be IN; + 094 would be Sri Lanka.  We would run this step in the case where the perspective between our system with a address freemail (gmail, yahoo, etc.) and a phone number, but nothing else

    Countries might not be bad, but nothing else, and you might not get what you are looking for.  For example, I have 4 numbers on my 'family' of cell phone plan.  I have a number of Texas, my wife a number of Illinois, and one of my other lines is a number of Utah.  With the ease of portability of numbers from carrier to carrier and the appearance of everyone having unlimited long distance (at least here in the United States) no matter if you have a local number, or more.  I haven't lived in Utah in 6 or 7 years, but if I got an email that applied only to Salt Lake City it might not be the best experience.  I was in Illinois for a year and a half and do not rely on the number of Texas (my first) to landing any time soon.

    My 2 cents.

  • excerpt from the XMLType column

    In my XMLType column I'm storing XML content that is the xml below.

    <? XML version = "1.0" encoding = "UTF-8"? >

    < project >

    < basics >

    < attribute name = "Id" > 3197915 < / attribute >

    < attribute name = "Name" > 345 < / attribute >

    < attribute name = "Révision" / >

    < name of attribute 'Type' = > project < / attribute >

    < / basics >

    < relationship / >

    < children >

    < application >

    < basics >

    < name of attribute 'Type' = > Application < / attribute >

    < attribute name = "Name" > rty < / attribute >

    < = "Scope" attribute name > SCOPE_PROJECT < / attribute >

    < attribute name = "Révision" / >

    < attribute name = "Id" > 3197918 < / attribute >

    < / basics >

    < relationship type = "Project relationship Configuration" >

    < attribute name = "Subclassification subcomponent" / >

    < attribute name = 'Type of subcomponent' / >

    < attribute name = "Quantity" > 1 < / attribute >

    < attribute name = "Unit of measurement" / >

    < = "Scope" attribute name > SCOPE_PROJECT < / attribute >

    < attribute name = "Post number" / >

    < attribute name = "Additional Information" / >

    < / relationship >

    < children / >

    < / application >

    < typical >

    < basics >

    < name of attribute 'Type' = > rrrr < / attribute >

    < attribute name = "Name" > rrr_Mo < / attribute >

    < attribute name = "Id" > 944674 < / attribute >

    < = "Scope" attribute name > SCOPE_GLOBAL < / attribute >

    < attribute name = "Révision" / >

    < / basics >

    < children / >

    < / typical >

    < application >

    < basics >

    < name of attribute 'Type' = > Application < / attribute >

    < attribute name = "Name" > yu123 < / attribute >

    < = "Scope" attribute name > SCOPE_PROJECT < / attribute >

    < attribute name = "Révision" / >

    < attribute name = "Id" > 3197922 < / attribute >

    < / basics >

    < children / >

    < / application >

    < / children >

    < / project >

    How to write a query to extract the Application name?

    Here, it should return "anais" and "yu123".

    I'm using Oracle 11 g.

    Thanks in advance.

    Something like the following, where TMP_XML. DOC is my XMLType column:

    SQL> select x.*
      2  from tmp_xml t
      3     , xmltable('/Project/Children/Application/Basics'
      4         passing t.doc
      5         columns application_name varchar2(30) path 'Attribute[@Name="Name"]'
      6       ) x
      7  ;
    
    APPLICATION_NAME
    ------------------------------
    rty
    yu123
    

Maybe you are looking for

  • How to disable the banner?

    For the last few days or so since I've upgraded to Firefox 42 every time I open Firefox on the desktop after a few minutes while I'm already deep in reading a web page, a white slide the top of the tab banner telling my I can synchronize the bookmark

  • Hardware upgrades to Satellite Pro 6100

    I own Satellite Pro 6100 - PS610E-NGYSC-EN. What is the maximum memory (more), processor and hard drive you can put in one of these laptops. I've included the part number in the title of reference. Also where can I get a new power supply and the batt

  • Logitech Vid does not connect

    WRT610N Version 1 Firmware 1.00.03 B15. Vista x 64. Webcam Logitech Orbit AF running Logitech Vid link tanks that when I remove the router of the network. When I reconnect the router, the connection fails. Vid needs ports 9000-9005 for UDP traffic. I

  • What is dell edoc viewer?

    When starting laptop, I get the following message, there was a problem starting c:\users\username\AppData\Diagnostics\Dell Edoc Viewer\aepfemds.dll the specified module could not be found. The laptop remained, I downloaded mcafee and ran scan, it fin

  • Newspaper announces the question!

    Hi Experts,My application of HFM calendar designed in such a way that the new year begins with "October" in the first period and ends with "September" as last Period.For a purpose test should I submit reviews for 3 years, from Q1 2013. According to t