With the help of table 'helper' to fill the 2 different columns in the same table

I have a table that contains two columns that use abbreviations that I want to join to another table "assistance" that develops on what mean these abbreviations. I have my query to display the full name of these abbreviations, rather than the abbreviated name.

For example,.

Table 1

Name acronym
====== ======
MY Monday
KILL Tuesday
WEDNESDAY Wednesday


Table 2

Entry day due date
====== ======
LUN MAR
MAR SEA
SEA OF LUN


I want to create a query that will show you:

Entry day due date
====== ======
Monday Tuesday
Tuesday, Wednesday
Wednesday Monday

I can get it to map a column, but not both. Any help?

Assuming that you really do need the table of the acronym (i.e. Oracle includes functions to translate date abbreviations).

SELECT a.full_name entry_date,
       b.full_name due_date
  FROM table1 a,
       table1 b,
       table2 c
 WHERE a.acronym = c.entry_day
   AND b.acronym = c.entry_day

Justin

Tags: Database

Similar Questions

  • Help! Need a script to automatically open files with the same name but in another location.

    Good morning friends,

    So for my work, I need a script to open files with the same name but located in a different folder. But since I'm a total noob when it comes to programming, I can't understand how do. That's what I have in mind:

    -J' I manually open an image.

    -The script will look for a file with the same name in another folder that I've specified.

    -The script will then select the channel CMYK of the second file and copy and paste it into the first file.

    -The second file is then closed without saving the changes.

    I have problems with the part where the script searches for a file with the same name as the opened file. I would really appreciate help. Thanks in advance.

    If (app.documents.length > 0) {}

    myDocument var = app.activeDocument;

    var Nomdoc = myDocument.name;

    try {var basename = docName.match (/(.*)-.)} [ ^\.] +$/)[1]}

    catch (e) {var basename = thedoc.name};

    var path = / * path of folder to insert as a string here * / + ' / ' + base name + / * insert file extension, including the period as a string here * /;

    If (queue (path) .exists == true) {var otherDocument = app.open (File (path))};

    };

  • Need help to open two images with the same file with different exposures on the screen at the same time in the Photoshop creative cloud (in previous versions we could open two images of the same nef (raw) file and then combine them on the screen with the

    Need help to open two images with the same file with different exposures on the screen at the same time in the Photoshop creative cloud (in previous versions we could open two images of the same nef (raw) file and then combine them on the screen with the move tool. They have become a composite of two layers which could be developed further with the mask tool.

    Hello

    Please go to the preferences > workspace and uncheck the option 'open the document in the tabs '.

    Now you can click on file and choose file > open and open the two images in two different windows which can be arranged side by side.

    Thank you

  • [SOLVED] Help fixing 'file two systems with the same uuid were detected.

    I have a Setup ESXi embedded (installed on a USB key connected to the internal USB port) on a Dell T710 with few of the SAS drives.  I tried the upgrade to 4.0 - 294855 to 4.1 - 348481 by following the instructions here via:

    esxupdate--bundle=/vmfs/volumes/datastore_name/path/to/upgrade-from-esxi4.0-to-4.1-update01-348481.zip update

    Even if it is done correctly, when I restarted I got a purple screen with this message on this subject:

    The system has found a problem on your machine and cannot continue.

    Two systems with the same UUID files have been detected.  Make sure that you do not have two installations of ESXi.

    So, he tried to update one of the SAS drives internal versus inside USB key...?

    I studied this time before & found a threadwhere posted to help, but it wasn't enough to get me going.  Tonight, I found KB1035107 which details how to fix this, but I have a few concerns:

    • How can I identify the drive that has the invalid ESXi installation?
    • Better yet: How can I identify who / disc is the one with the ESXi installation I want to keep?
      • I know that I can use esxcfg-mpath-l., esxcfg-mpath-band esxcfg-scsidevs-l to collect the disk & LUN information.  But what happens if it wasn't a built-in installation?  If ESXi was installed on one of the SAS drives, how could I confirm which drive it actually installed on?
    • What is the worst that could happen with the performance he commands in the KB above?
      • Do I need to worry about migration whatever data is stored elsewhere there until I can get through this?

    Finally, and perhaps more important than these other issues:

    It is for me a way to specify which disk/drive/device to target when executing upgrades, more precisely from 4.0 to 4.1?

    How can I perform upgrades in the future without having to worry about this nonsense?  I don't want to have to disconnect from the LUN/warehouses of data whenever there is an upgrade (major or minor).


    Thank you very much.

    Did the HD with the data store show other partitions if your running fdisk-l?

  • Merge paths with the same fill color

    Hello

    I'm trying to use pathfinder to merge paths with the same colors. I have a lot of colors, so that Select > same fill color would solve my problem, it is very slow.

    My typical workflow is basically by selecting the same colorful and using pathfinder (unite) paths to combine. If the paths have different colors that he would do all the unique color of merged paths. It does not work.

    I want to combine only the paths with the same fill color with the other, but I couldn't come up with a good workflow.

    Someone had a similar problem/situation? What are my options?

    I appreciate all the help.

    Screen Shot 2016-03-23 at 11.37.03.png

    Select all, and then click 'Merge' pathfinder

  • How to export data to excel that has 2 tables with the same number of columns and the column names?

    Hi everyone, yet once landed upward with a problem.

    After trying many things to myself, finally decided to post here...

    I created a form in form builder 6i in which clicking on a button, the data gets exported to the excel sheet.

    It works very well with a single table. The problem now is that I cannot do the same with 2 tables.

    Because the tables have the same number of columns and the columns names.

    Here are the 2 tables with column names:

    Table-1 (MONTHLY_PART_1) Table-2 (MONTHLY_PART_2)
    SL_NOSL_NO
    MODELMODEL
    END_DATEEND_DATE
    U-1U-1
    U-2U-2
    U-4U-4
    ..................
    ..................
    U-20U-20
    U-25U-25

    Given that the tables have the same column names, I get the following error :

    402 error at line 103, column 4

    required aliases in the SELECT list of the slider to avoid duplicate column names.

    So how to export data to excel that has 2 tables with the same number of columns and the column names?

    Should I paste the code? Should I publish this query in 'SQL and PL/SQL ' Forum?

    Help me with this please.

    Thank you.

    Wait a second... is this a kind of House of partitioning? Shouldn't it is a union of two tables instead a join?

    see you soon

  • CF8 cfquery multiple table join with the same names of columns - default

    This seems to be a defect in the CF8 cfquery object. I'm at a loss as to a solution or a good work around. With regard to the substance, this query is generated dynamically on the fly based on what is happening in it a user. This isn't the most elegent SQL but work and return all columns. The app itself is a data viewer to look at the logs. Here is an example of a query being generated.

    Select *.

    of web_trans, web_info_trans, web_res_trans

    where (web_info_trans.trans_dte > = '' 2008-12-1)

    and web_info_trans.trans_dte < '' 2008-12-2)

    and (web_info_trans.trans_dte = web_trans.trans_dte)

    and (web_info_trans.trans_num = 5060345)

    and (web_info_trans.trans_num = web_trans.trans_num)

    and (web_res_trans.trans_num = 5060345)

    and (web_res_trans.trans_num = web_trans.trans_num)

    and (web_trans.web_trans_cde = "NTUI")

    and (web_trans.web_status_cde = 'P')

    and (web_trans. TRANS_NUM < 5060347)

    order of web_trans. TRANS_NUM / / desc

    These three tables contain a similar column called ZIP_CDE. They contain different values, and when this query is executed in Microsoft Query Analyzer results are displayed correctly. Run this same query SQL with CFQUERY and the value of one of the other tables (web_trans) will eventually replace the value for the other columns called ZIP_CDE. The exact amount columns are retruned only values some how get corrupted.

    This is a defect of cf8 is a book autour or an update that resolves this problem that I may have missed?

    Thank you for the ideas.

    Thus it seems still as a default since CF is essentially where, except for the return value play. Other query tools return results correctly so for me, it turns out be CF bug at a certain level.

    Actually I'm swinging to agree with you here, but not for the same reason.  CF actually * is * get all the columns back (as you say), it just doesn't expose a way to tell the difference between a column called 'x' and an another column called 'x', because the way to access the data in columns is simple queryname [columnName] [rowNumber] (or a Variant fo this, but all the amount of variations to that or abbrev. it).  This code shows how he has all four columns of the original two queries (being a stand-in for tables, in this case):


    Q1 = queryNew("");
    Q2 = queryNew("");
       
    queryAddColumn (q1, 'id', [1,2,3,4]);
    queryAddColumn (q1, "data", ["one", "two", "three", "four"]);
    queryAddColumn (q2, 'id', [1,2,3,4]);
    queryAddColumn (q2, "data", ["tahi", "rua", "toru", "wha"]); It's Maori, in case you are interested


    SELECT *.
    Q1, q2
    WHERE q1.id = q2.id

    So CF knows there are four columns (a call getMetadata (q3) get also demonstrates this), but it does not expose a way to approach the second (or even greater) column of the same name.  This is the bug/shortfall.

    However, relying on an underlying coldfusion.sql.QueryTable method, you can rename the columns, so:

    Then you're OK.

    I would be normally reluctant to recommend doing this, because these methods change from version to version of CF, but it's your call whether this approach will help you.

    To be honest, I'm with Owain who, even in SQL one generally doesn't work with columns with the same name, an alias them qualified with a table name/alias. As the table columns from of is not returned by SQL with the result set, it must be evidence against this by folding the columns in the first place.

    Also, I wonder at the bottom of the extraction of data, you don't really know the structure, that is to say, do SELECT *.  How can you know not even that is ours as the first column, second column, etc.?  I don't think that SQL applies in fact a contract that, t - it?  (I don't know).

    What are you actually do here?

    --

    Adam

  • Drop a large number of tables with the same prefix

    Hello

    can you help me to make a script to move all the tables with the same prefix = TEST_LINK_?

    Thank you very much.
    Crystal

    Hi crystal,

    Here's something to start. It does not all FK constraints on those tables and assumes that the executor is the owner.

    declare
      pstmt  constant varchar2(255) := 'drop table :t purge';
      vstmt varchar2(255);
    begin
    for rec in (select table_name
                  from user_tables
                 where table_name like 'TEST_LINK\_%' escape '\')
       loop
          vstmt := replace(pstmt, ':t', rec.table_name);
          dbms_output.put_line(vstmt || ';');
    --      execute immediate vstmt;
       end loop;
    end;
    /
    

    Concerning
    Peter

  • How to take a column of duplicate names and fill a different column with the same names, excluding duplicates?

    How to take a column of duplicate names and fill a different column with the same names, excluding duplicates?

    I find easier to use this copy separate Automator Service (download Dropbox).

    To install in your numbers > Services, double-click menu just the package downloaded .workflow and if necessary give permissions in system preferences > security & privacy.

    To use, just:

    1. Select the cells in the column with duplicate names.
    2. Choose separate copy in numbers > Services menu.
    3. Click once in the upper cell where you want the deduplicated values appear.
    4. Command-v to paste.

    SG

  • All the fields are filled automatically with the same information as in the field.  When deleting, all delte also fields.

    Whenever I type information in the first field of the form, it automatically fills the same information in all areas.  How can I stop this

    If you don't have Adobe Acrobat Reader for free, you can not.

    It was more than likely a mistake by the creator of forms. No doubt, they have created a field copy and paste this one to create others. Usually, it's ok, but must be given to all fields different identifiers (names). All the fields with the same name will be filled with the same content.

  • Need to create a new line in the table with the same data as the primary key, but new PK

    Hello gurus,

    I have a table with a column as a primary key, I need to create a new row in the table, but with the same data in one of the lines, but with different primary keys, focus a double row with key primary diferent...

    Any ideas of how it can be done without much complication?

    Thanks in advance for your answer.

    Agress,
    Karim idrissi

    user9970447 wrote:
    Hello gurus,

    I have a table with a column as a primary key, I need to create a new row in the table, but with the same data in one of the lines, but with different primary keys, focus a double row with key primary diferent...

    Any ideas of how it can be done without much complication?

    Thanks in advance for your answer.

    Agress,
    Karim idrissi

    something like

    insert into mytable values ('literal for new pk',
                                           select non-pk-1,
                                                    non-pk-2,
                                                    non-pk-n
                                           from mytable
                                           where pk-col = 'literal for existing pk')
    
  • It is possible to have two tables with the same name in Oracle!

    Oracle Version: 10 gr 2

    MS Access 2007, I had to use the 'Export' by which I copy a table (and its data) to an Oracle schema via an ODBC connection. Later, I realized that, during the copy of tables with a mix of lower and upper case names, the table does not copied (exported). But MS Access will give you the message that table obtained export successfully.

    MS-Access mess around Oracle data dictionary.

    When you issue
    SQL>select * from tab;
    
    TNAME                          TABTYPE  CLUSTERID
    ------------------------------ ------- ----------
    AMStates                       TABLE
    Version                        TABLE
    You will see the names of the tables. But when you try to DESCRIBE or SELECT this table, you will
    SQL>desc Version
    ERROR:
    ORA-04043: object Version does not exist
    You can even create another table with the same name in the schema
    SQL>create table VERSION (X NUMBER);
    
    Table created.
    Why this is happening and how can I bring these items 'non-existent '?

    Hello

    Use

    SQL > desc 'Version '.

    Or

    SQL > select * from 'Version '.

    Or

    SQL > drop table 'Version '.

    To overcome the problems of mixed-case.

  • Create a schema of the user with the same name and tables within this scheme

    I am a newbie with Oracle.
    I installed my first Oracle 10 g database in my life.
    I need to create a user and a new schema with the same name.
    Subsequently, I need to create tables in this schema using the * isqlPlus.
    I got to create the user via the Oracle Enterprise Manager Console.
    I tried to create a schema through the same tool, but I have not found a possibility to do using GUI.
    Is it possible to do so through Oracle Enterprise Manager Console?
    What are the permissions the user must have access isqlPlus to create the tables in the schema?

    Thank you!!!

    Felipe

    A schema is just a collection of objects belonged to a particular user. If you do not need to create a separate schema: the schema is created automatically when you create the user.

    To connect to the database, a user must CREATE SESSION privilege. To create a table, the user has the CREATE TABLE privilege and should be given a quota on any tablespace will be created in the table. If you don't care management quota or limit the storage space that a user can create tables, you can grant the user the UNLIMITED TABLESPACE privilege. If you care the management of quota, you must run commands like

    ALTER USER <>
      QUOTA <>
      ON <>
    

    for each tablespace for the user to be able to use.

    Justin

  • Best way to horizontally align a row of images with the same amount of filling

    Basically, I want to line up a row of images horizonally each with the same amount of space between each. What would be the best way to go about this? should I put in a div?

    I want to watch how images would be aligned in a clothing site. Thus, for example, like this - http://shop.thehundreds.com/c-439-tees.aspx

    Thank you

    Hi Hannah (?),

    You can try one of the models of Nancy O. from here: http://alt-web.com/TEMPLATES/CSS-Semi-liq-photo-sheet.shtml.

    Hans-Günter

  • My I phone was lost a few months a go but I was recivin a subventio of Apple Inc. which is see my phone and I can activat again but not using the phone now then, what can I do about it, but I am now using a moment I phone with the same Apple ID

    My iPhone6 more was lost a few months a go but I received a notice for a while at Apple Inc. that my phone is a must see and I can't activator and again one time, but I'm not one using this phone now, so what can I do on this, but now use an iPhone now with the same Apple ID? If no help on how to use the IMEI of iPhone lost to lock fill?

    I doubt that Apple is you send messages. I suspect it is a pirate who is trying to steal your personal information.

  • Group forms with the same domain name?

    I have a form of single page put online for people to fill out.  This is a monthly budget. They choose the month where they are reporting to then fill the whites.  I get often months / multiple forms sent to me an individual at a time that I want to combine in a single PDF file.  When I try to combine Acrobat files generates an error message saying that I can't combine the forms because the field names are the same, and I have to use a 'wallet' otherwise is will give all the fields with the same name, the same value.  Is there an easy way to combine these forms and keep the single value in each field on each form? Thank you very much for your HELP!

    There are different ways to do... You can use this free tool, to

    example: http://www.uvsar.com/projects/acrobat/flattener/

    If you want to process several files (and you have Acrobat Pro), create a

    Action with this JS code:

    this.flattenPages ();

Maybe you are looking for