Associate column data

I have two tables in the same database (Oracle 10 g) say temp1 and Temp2 with the same column names. Its as follows
Temp1
Access_ID name Destination OrderNumber
A101 AN O101 D101
A101 B D101 O102
B101 AN O103 D101
B102 C D102 O104

Temp2
Access_ID name Destination OrderNumber
A101 AN O101 D101
A101 C D101 O102
B101 AN O103 D102
B102 C D102 O104

Now, I want to create a new table that gives the answer as such
Temp3
Access_ID name Destination OrderNumber
A101 N Y Y
B101 O N O
B102 Y Y Y

Basically what it does is for each distinct (access code) he compares the corresponding columns in the two tables & if there is a delay, then it should display as n else it should display as there.

Hello

Welcome to the forum!

Whenever you have a question, please post CREATE TABLE and INSERT statements for you SAMPLES. Since this is your first post, I'll do it for you:

CREATE TABLE     temp1
(       access_id     VARCHAR2 (10)
,     name          VARCHAR2 (5)
,     destination     VARCHAR2 (10)
,     order_number     VARCHAR2 (10)
);

INSERT INTO temp1 (access_id, name, destination, order_number) VALUES ('A101', 'A', 'D101', 'O101');
INSERT INTO temp1 (access_id, name, destination, order_number) VALUES ('A101', 'B', 'D101', 'O102');
INSERT INTO temp1 (access_id, name, destination, order_number) VALUES ('B101', 'A', 'D101', 'O103');
INSERT INTO temp1 (access_id, name, destination, order_number) VALUES ('B102', 'C', 'D102', 'O104');

CREATE TABLE     temp2
(       access_id     VARCHAR2 (10)
,     name          VARCHAR2 (5)
,     destination     VARCHAR2 (10)
,     order_number     VARCHAR2 (10)
);

INSERT INTO temp2 (access_id, name, destination, order_number) VALUES ('A101', 'A', 'D101', 'O101');
INSERT INTO temp2 (access_id, name, destination, order_number) VALUES ('A101', 'C', 'D101', 'O102');
INSERT INTO temp2 (access_id, name, destination, order_number) VALUES ('B101', 'A', 'D102', 'O103');
INSERT INTO temp2 (access_id, name, destination, order_number) VALUES ('B102', 'C', 'D102', 'O104');
COMMIT;

In this way, people can recreate the problem and test their ideas.

You must always mention what version of Oracle you are using. You said you were using 10g. There is no 10f or 10, so add the g is not helping anyone. What helps me often is if you have 10.1 or 10.2. Sometimes even the finer nuances question, it is therefore better if you give the exact version (for example 10.2.0.3.0).
The following query will work in Oracle 9.1 (or most recent), but from Oracle 11.1 you can select... UNPIVOT and SELECT... PIVOT, which is better.

One thing you can do is unpivot data in the lines that contain only the access_id and another (name, destination or order_number), column and a column to identify the item that has been. In the following query, I called this column n.
Then you can do a FULL OUTER JOIN, to bring the same items, but include unparalleled features, so they can be seen...
Finally, rotate the dat in a form with one line per access_id.

WITH     cntr     AS
(
     SELECT     LEVEL     AS n
     FROM     dual
     CONNECT BY     LEVEL     <= 3
)
,     unpivoted_temp1     AS
(
     SELECT     t1.access_id
     ,     c1.n
     ,     CASE  c1.n
              WHEN  1  THEN  name
              WHEN  2  THEN  destination
              WHEN  3  THEN  order_number
          END          AS txt
     FROM          temp1     t1
     CROSS JOIN     cntr     c1
)
,     unpivoted_temp2     AS
(
     SELECT     t2.access_id
     ,     c2.n
     ,     CASE  c2.n
              WHEN  1  THEN  name
              WHEN  2  THEN  destination
              WHEN  3  THEN  order_number
          END          AS txt
     FROM          temp2     t2
     CROSS JOIN     cntr     c2
)
SELECT       NVL (u1.access_id, u2.access_id)     AS access_id
,       MIN ( CASE
                    WHEN  NVL (u1.n, u2.n) != 1    THEN  NULL
              WHEN  u1.n                  = u2.n  THEN  'Y'
                                            ELSE  'N'
          END
           )                         AS name
,       MIN ( CASE
                    WHEN  NVL (u1.n, u2.n) != 2    THEN  NULL
              WHEN  u1.n                  = u2.n  THEN  'Y'
                                            ELSE  'N'
          END
           )                         AS destination
,       MIN ( CASE
                    WHEN  NVL (u1.n, u2.n) != 3    THEN  NULL
              WHEN  u1.n                  = u2.n  THEN  'Y'
                                            ELSE  'N'
          END
           )                         AS order_number
FROM           unpivoted_temp1  u1
FULL OUTER JOIN      unpivoted_temp2  u2  ON  u1.access_id     = u2.access_id
                                   AND u1.n          = u2.n
                          AND u1.txt     = u2.txt
GROUP BY  NVL (u1.access_id, u2.access_id)
ORDER BY  access_id
;

Notice how I use MIN on a column that contains 'n', 'Y' and NULL for "n" as a result, if the column contains a ' n of and 'Y' as if it does not contain ' n of. If you use other channels (for example, "JA" and "NEJ") for output, you may need to use MAX instead of MIN.

Output:

ACCESS_ID  N D O
---------- - - -
A101       N Y Y
B101       Y N Y
B102       Y Y Y

Tags: Database

Similar Questions

  • Confusion of length of column data type

    Hi all

    To learn about my column data type and length, I have run the following query. However, when I confirm it with the table_name desc command, I see that the lengths of data do not correspond. You have an idea?

    > > select column_name | » '|| DATA_TYPE | » ('|| ( data_length|') ' col_info all_tab_columns where table_name = 'CUSTTABLE' and column_name = 'ACCOUNTNUM;

    > > ACCOUNTNUM NVARCHAR2 (24)

    > > desc CUSTTABLE.

    > > ACCOUNTNUM 1 N NVARCHAR2 (12)

    Concerning

    Charlie

    NightWing wrote:

    By the way I couln t understand what were you thinking when you explain to no.

    I missed you NVARCHAR2 column and thought it was VARCHAR2. When you declare the semantics of VARCHAR2 column length is specified explicitly or implicitly. Explicitly suffixing length with BYTE or CHAR and implicitly when you specify the length of the right itself. Then length is based on the value NLS_LENGTH_SEMANTICS session. So let's assume you generate table create statement (and it seems that you is, based on column_name |) » '|| DATA_TYPE | » ('|| ( data_length|') ' ). Then it does not matter if use use data_length or char_col_decl_length. It will be regadless semantics implied length of what you use. Therefore, when you run create table instructions column length will be interpreted as bytes if current NLS_LENGTH_SEMANTICS byte value. But same length is interpreted as the characters if current NLS_LENGTH_SEMANTICS a char value. As you can see, in order to generate create table statement we use explicit semantic length column, otherwise create table statement can produce lengths of different column in the source table.

    SY.

  • How to cut the column data

    Gurus in the morning

    I have two tables with the data in the corresponding column, BUT I need to cut the columns in a table
    the data is displayed as follows in table xpq_log
    LOG_DATE                     LOG_PTR     LOG_HDR
    01/06/2011 00:00:00     0609pro     0609IN002C_06
    04/06/2011 00:00:00     0609pro     0609IN002C_06
    05/06/2011 00:00:00     0609pro     0609IN002C_06
    06/06/2011 00:00:00     0609pro     0609IN002C_06
    07/06/2011 00:00:00     0609pro     0609IN002C_06
    09/06/2011 00:00:00     0609pro     0609IN002C_06
    10/06/2011 00:00:00     0609pro     0609IN002C_06
    12/06/2011 00:00:00     0609pro     0609IN002C_06
    01/06/2012 00:00:00     0609pro     0609IN002C_06
    02/06/2012 00:00:00     0609pro     0609IN002C_06
    03/06/2012 00:00:00     0609pro     0609IN002C_06
    06/06/2012 00:00:00     0609pro     0609IN002C_06
    07/06/2012 00:00:00     0609pro     0609IN002C_06
    08/06/2012 00:00:00     0609pro     0609IN002C_06
    09/06/2012 00:00:00     0609pro     0609IN002C_06
    In the table of printpdf as follows
    PDF_REPORT     PDF_DESCRIPTION
    IN002C                     STOCK FILE PURGE - PRINT WH CONTROL
    How can I cut the column data (log_hdr) to match column (pdf_report)?

    Any help will be much appreciated

    user11978142 wrote:
    Yes the code always starts with an alphabetic character and always ends before the underscore character and the prefix is always digital.

    And Yes to the second comment WRT 1 to many relationship.

    WRT the duplicates I want the info displayed even if there is no matching printpdf

    You talk a LEFT OUTER JOIN, then:

    See the example below (the statement are just to reproduce the paintings, just use the last query):

    WITH xpq_log AS
    (
       SELECT '0499SYS003A_06' log_hdr FROM DUAL UNION ALL
       SELECT '0612PV410W1_06' log_hdr FROM DUAL UNION ALL
       SELECT '0609IN002C_06' log_hdr FROM DUAL UNION ALL
       SELECT '2201PA100D1_30' log_hdr FROM DUAL
    )
    , printpdf AS
    (
       SELECT 'SYS003A' pdf_report, 'STOCK FILE PURGE - PRINT WH CONTROL' description FROM DUAL UNION ALL
       SELECT 'PV410W1' pdf_report, 'Description 2' description FROM DUAL
    )
    SELECT a.log_hdr, REGEXP_SUBSTR (a.log_hdr, '[[:alpha:]][^_]*') AS pdf_report
         , b.description
      FROM xpq_log a LEFT OUTER JOIN printpdf b
           ON pdf_report = REGEXP_SUBSTR (a.log_hdr, '[[:alpha:]][^_]*');
    
    Output:
    LOG_HDR        PDF_REPORT     DESCRIPTION
    -------------- -------------- -----------------------------------
    0499SYS003A_06 SYS003A        STOCK FILE PURGE - PRINT WH CONTROL
    0612PV410W1_06 PV410W1        Description 2
    2201PA100D1_30 PA100D1
    0609IN002C_06  IN002C                                           
    

    Kind regards.
    Al

  • How to associate the data store of the target for the newly created using the API Interface

    How to create a new Interface under project, need to associate the data store target for mappings for the interface by using APIs "."

    Able to get the associated interface created temporary data store. You need to associate a new database model. How to do this using the API

    My code is,

    String pCode = "DEVELOPMENT";
    Context OdiContext = (mgr.getFinder (OdiContext.class)) .findByCode (pCode) (IOdiContextFinder);
    System.out.println (Context.getLastDate ());

    OdiInterface pInterface = new OdiInterface ("toDeleted_Interface", pFolder, context);
    pFolder.addInterface (pInterface);

    The list of ds < DataSet > = pInterface.getDataSets ();
    < DataSet > iterator itr = ds.iterator ();
    DataSet ds_nxt = itr.next ();

    PAlias string = "HRA_TMPL_DEFNS_TL";
    pOrder int = 0;
    OdiModel pModel = (mgr.getFinder (OdiModel.class)) .findByCode ("FILE_PM_MODEL") (IOdiModelFinder);
    String pName = "HRA_TMPL_DEFNS_TL";
    OdiDataStore pUnderlyingOdiDataStore = new OdiDataStore (pModel, pName);
    SourceDataStore pSourceDataStore = new SourceDataStore (ds_nxt, false, pAlias, pOrder, pUnderlyingOdiDataStore);
    ds_nxt.addSourceDataStore (pSourceDataStore);

    TargetDataStore tdata = pInterface.getTargetDataStore ();

    If (tdata.isTemporaryDataStore ())
    {
    }

    http://odiexperts.com/creating-interface-for-single-source-and-target/
    http://odiexperts.com/creating-temporary-interface-using-ODI-SDK/

  • ToolTip on the column data

    Hello

    I want to display the ToolTip on the column data.
    To this end, I work with the data format.
    under data format I use custom format.
    on the format of data, I wrote the following code.

    < b title = "This" about says month"> month < /b >

    but it demonstrated ToolTip on 'months' and not on real data.

    Is any HTML that display dynamic data, then we can put this code instead of 'months '.

    Please, give me suggestion.

    Concerning

    Prashant

    Did you add the ' @' in your HTML simbol? They must state the values in your column.

    You should have something like months @

    KR,
    A

  • Addition of days for the column date of OBIEE

    Hi gurus,

    I have a date column, date alert and based on this column, I need to create another column to date, due date. The formula will be like,
    Due date alert = date + 30 days. I found a function, TimeStampAdd when you change the column formula but not sure how to use it. Pls help me to implement this.

    Thanks in advance.

    TIMESTAMPADD(SQL_TSI_DAY,30,alertdate)

    TIMESTAMPADD (interval, intExpr, timestamp)

    e.g:TIMESTAMPADD (SQL_TSI_DAY, 3, TIMESTAMP'2000-02-27 14:30:00 ')

  • Is it possible to search a single column in a multi column data store?

    Suppose I have create a context index by using a data column for the columns first_name, middle_name, last_name multi store.

    So I can search for all the columns in the index using contains().

    Is it possible to use contains() for just search one of the columns in a warehouse of multi - for example just last_name column?

    In some cases a desire to search for all of the columns, in other cases, only one of the columns.

    Yes, see the doc:
    http://download.Oracle.com/docs/CD/B14117_01/text.101/b10730/cdatadic.htm#i1006391

    If you use the default behavior, so your column data will be separated by XML tags.

    John Peter DOE

    You must then define each of these items, or to use 'auto_section_group '. You can search on them to help
    ... contains (col, "peter in middle_name") > 0

    See the example:

    SQL> drop table t;
    
    Table dropped.
    
    SQL> create table t (first varchar2(20), middle varchar2(20), last varchar2(20));
    
    Table created.
    
    SQL> insert into t values ('John', 'Peter', 'Doe');
    
    1 row created.
    
    SQL> insert into t values ('Peter', 'Frederik', 'Smith');
    
    1 row created.
    
    SQL> exec ctx_ddl.drop_preference('my_mcds')
    
    PL/SQL procedure successfully completed.
    
    SQL> exec ctx_ddl.create_preference('my_mcds', 'multi_column_datastore')
    
    PL/SQL procedure successfully completed.
    
    SQL> exec ctx_ddl.set_attribute('my_mcds', 'columns', 'first,middle,last')
    
    PL/SQL procedure successfully completed.
    
    SQL> create index ti on t (first) indextype is ctxsys.context
      2  parameters ('datastore my_mcds section group ctxsys.auto_section_group');
    
    Index created.
    
    SQL> select * from t where contains (first, 'peter')>0;
    
    FIRST               MIDDLE            LAST
    -------------------- -------------------- --------------------
    John               Peter            Doe
    Peter               Frederik            Smith
    
    SQL> select * from t where contains (first, 'peter within middle')>0;
    
    FIRST               MIDDLE            LAST
    -------------------- -------------------- --------------------
    John               Peter            Doe
    
  • Edition of text column data Format database columns of answers

    Hello

    We use Oracle Business Intelligence Enterprise Edition v10.1.3.4 on the cube for OLAP Oracle 11 g. Reports we create have (among other things) columns with an underlying type of VARCHAR data in oracle tables.

    When we try to change the properties of such a VARCHAR column column, "Data Format" tab shows only 'Plain Text' as an option under the menu drop-down "Override default data Format". Options to display the text 'HTML' or 'LINKS', etc. are not available.

    All entries on what can be done in the answers or the repository to get these options for formatting of column data are highly appreciated.

    Thank you
    Piyush

    You set your HardenXSS to false in the instanceconfig.xml file? By default, OBIEE is set to true. Setting to false allows the HTML tags to appear as options for fields VAR. check it out here... Chapter 2, page 37.

    http://download.Oracle.com/docs/CD/B40078_02/doc/bi.1013/b31766.PDF

  • What is the difference between the "Received" column &amp; "Date"?

    The entries in the columns of "Receipt" and "Date" of the re CT should be the same; When they differ, it is no more than a few minutes. I wonder, that these columns show exactly? Why do these two categories? It obviously has something to do with the header lines, but I could not find it.

    one is the date of the sending of the message, the other the arrival time. Usually it is only a minute or two different these days, hours were not uncommon in the past and even now, Google, will try and deliver a week. If your server down lovers and it takes 5 days to fix or the submarine cable is blown, you will get the google mail which takes days in the date but also fresh column like today in the received.

    I have only the date. By clicking on the right-hand column headings allow you to customize the columns are displayed

  • script process of sorting (with several column data) and average (some other column data)

    Hello

    I had a lot of help from my log of the bus data, previously.

    My interest now is to sort them according to certain values of the column and then get an average result of them.

    Given that the tiara doesn't seem to support the triage function after loading data, it seems to be a difficult issue for me;

    It would be useful that I can get all related index/approach/function/Council to do this kind of script.

    I've attached a file excel for example.

    In the first "raw" sheet, there are rows of raw data with column names of "year, month, day, ID, ID2, point, condition.

    Actual data had many more columns, but I simplified it for convenience.

    What I try to do is, with the entry (from DialogBox or simply a script as a variable; I can do this) 'year' and 'months' (e.g.: 2015, 6).

    to get the resulting data sheet 'expected results '.

    The result is sorted by value 'ID' and 'condition '. 'Condition' is 0 or 1, then the average of the values of 'point' for each ID and the condition is obtained.

    Group for the 'condition' of 2 will be the average of the results of the 'condition' 0 and 1 (collection of data). (So there are always three groups: for 'condition', 0, 1, and 2.)

    Currently, 'ID' includes 12345 and 54321, but there may be more values, too.

    "Num" column is the number of files RAW allows to get the average for the corresponding 'year-month-ID-condition'.

    Is there an effective approach or the function that you recommend?

    I think that you may need more details for example data, so please do not hesitate to ask me.

    Thanks in advance.

    Inyoung

    The interactive part to modify data in DIAdem is collected in the 'ANALYSIS' left aon tab.

    The second entry, 'Functions of channel' contains 'Values of Channel sorting' method.

    To automate this process, it is possible to use the macro recorder in the tge script module.

  • Column data reading according to the number of lines

    Hi guys,.

    I am currently stuck on the problem of recovering the data from my database (MS Access) according to the number of lines, he has at any time (without having to know how many lines there will be during the programming of this part).

    First, I show how my program works. I'm working on an automated food, order and after the customer has chosen his power, system information such as the name of the food, quantity and price of the food will be written to the MS Access database table. (for example table name "Orderingtable" in MS Access) For my case, 1 order of food will occupy 1 line of the database table. In other words, as part of the same, if he orders 3 different foods, 3 rows will be filled in my database table.

    I would then get the part number of 'Quantity' for each order of the database and summarize the amount finally to count the total number of orders in the table of database at any time. This addition of result will be then shown on the Panel before informing the customer how many orders waiting's just prior to his order. In this case, it can get out if he wants to, if the number of orders is too big for its waiting time.

    However, I do not know how many lines my 'Orderingtable' will be 'Orderingtable' because both accumulate lines and data lines until being command to remove. Therefore, I cannot predict how many lines I program the party totals the number of quantity for each line.

    Is it possible that I can get the part of the 'quantity' without having to know the number of rows in the database so that I can count the total number of pending orders just by adding up the value of the quantity for each line?

    I do not wish to "code" my program by limiting the tables of database for us are going to say, only 50 lines at any time.

    Attached below, this is how my database table "Orderingtable" looks at, which will be used to extract the 'Quantity' column so that it can count the total number of orders and be shown/shown on the front panel of my Labview program.

    I hope that you are able to help me!

    Thank you so much in advance.

    See you soon,.

    MUI

    You can also use the SUM function:

    SELECT SUM (Quantity) OF the order WHERE Queue_No = %d

    And no need of an "Order By" clause, if you add just the quantities.

  • Windows Desktop Search 4.0 how to format the column Date in results?

    Is it possible to change the date column in the result pane of Windows Desktop Search 4.0?

    It runs on a Windows 2003 Enterprise Server.

    I have users who need to modify files that arrived today and yesterday, after 17:00.  The date column only displays the time on files including today's date.  Is there a registry setting that I can shape for this column to always display the Date and time?

    Kind regards

    RN

    Hello

    Republish the issue in the Windows Server forum

    http://social.technet.Microsoft.com/forums/WindowsServer/en-us/home?Forum=winservergen

    Thread Windows Date put in - form

    http://social.technet.Microsoft.com/forums/WindowsServer/en-us/122e9210-2842-4E07-84be-8611e17bac7e/Windows-date-formating?Forum=winservergen

  • Suddenly the column Date deleted to the trash has been replaced by the update

    original title: Recycle bin sort order problem

    Suddenly the Date deleted in Recycke Bin column was replaced by update.  I am more able to sort items deleted in the trash by deleted date.

    Suddenly the Date deleted in Recycke Bin column was replaced by update.  I am more able to sort items deleted in the trash by deleted date.

    Open the Recycle Bin > menu toolbar ( not ) see > sort by > more > scroll to find Date removed,click on it > move the button to the upper right then move Date removed upward > OK

    For the benefits of others looking for answers, please mark as answer suggestion if it solves your problem.

  • Column/data varchar but req number formatting when digital.

    Hello

    I wrote some sql to retrieve data from our Oracle database.

    Number formatting is a bit unfortunate.

    The column reads:

    1 000 000

    0.010

    1 000

    0.0009

    9999999.000

    -

    null

    > NWG

    If its not all of the numbers, but if it is a number, I need to correctly format i.e.

    without decimal places if they are just led 0

    I hope that there is a regular expression that I can use to format numbers ignoring the character entries.

    Any suggestions?

    Hello

    Whenever you have a question, please post a small example of data (CREATE TABLE and only relevant columns, INSERT statements) for all of the tables involved and the accurate results you want from this data, so that people who want to help you can recreate the problem and test their ideas.

    Explain, using specific examples, how you get these results from these data.

    Always say what version of Oracle you are using (for example, 11.2.0.2.0).

    See the FAQ forum: Re: 2. How can I ask a question on the forums?

    What do you mean by "if it's a number"?  The following could all be considered numbers:

    • -1
    • -1.2E + 3
    • $9,987,54
    • 123 456,7
    • 3/4

    Depending on what you consider a 'number', you can use expressions regular, perhaps combined with other string manipulation functions, like to TRANSLATE.

    You can consider a function defined by the user who tries to convert it to a NUMBER, but never to raise an error.  See How to determine if a Varchar2 string has characters from a to z?

    Which type of formatting you want for the numbers?  You said that you don't want to end ' 0 decimal, but how about a trailing decimal point?  When you post the sample data and results, examples of all individual cases, you want to manage.

    You may need TO_CHAR and then some channel, for example, RTRIM or REGEXP_REPLACE mainpulation functions.

    As you realize you probably now, it's a really bad design.  You let people in chains that may or may not represent the numbers, then, much later, trying to guess the whehter they meant it to be number, and if so which COMP.  Guess, isn't a very good way to solve problems.  The person who knows the data if it is a number or not - make him tell you at the point where it enters the number.  For example, instead of having 1 VARHCAR2 column, you may have 2 columns (a VARCHAR2 and a NUMBER) and a CHECK constraint that requires at least 1 of them to be null.

  • alignment of the text file column data

    Hi all

    I want to format the output file as shown in need. Suggestions appreciated. I tried with lpad, rpad in the query. Also tried with justify right in the column after A5 format... (A5 size frame right)

    It is part of an important application.

    Please suggest.

    SQL file

    --------

    set verify off
    Set feedback off
    NewPage 0 value
    set pagesize 63
    set linesize 280
    TOPIC ON THE VALUE

    coil c:\test.txt.
    column heading "CTY" A5 format Change_types

    termout off Set

    Select CT of
    tab;

    output in the text file

    CTY
    -----
    N

    Power required:

    CTY
    -----
    N

    (* See space above)
    Oracle 10g
    running sqlplus

    Thank you

    HA!

    Hello

    G2500 wrote:

    Hi all

    I want to format the output file as shown in need. Suggestions appreciated. I tried with lpad, rpad in the query. Also tried with justify right in the column after A5 format... (A5 size frame right)

    It is part of an important application.

    Please suggest.

    SQL file

    --------

    set verify off
    Set feedback off
    NewPage 0 value
    set pagesize 63
    set linesize 280
    TOPIC ON THE VALUE

    coil c:\test.txt.
    column heading "CTY" A5 format Change_types

    termout off Set

    Select CT of
    tab;

    output in the text file

    CTY
    -----
    N

    Power required:

    CTY
    -----
    N

    (* See space above)
    Oracle 10g
    running sqlplus

    Thank you

    HA!

    This sounds like a job for LPAD.  What exactly have you tried?  It is difficult to say what hurts you without knowing what you were doing.

    I don't have a copy of your table, so I'll use the scott.dept table to illustrate:

    SELECT LPAD (dname, 20) department_name

    OF scott.dept

    ;

    Output:

    DEPARTMENT_NAME

    --------------------

    ACCOUNTING

    SEARCH

    SALES

    OPERATIONS

    You want to justify the right title, like this

    DEPARTMENT_NAME

    --------------------

    ACCOUNTING

    SEARCH

    SALES

    OPERATIONS

    ?

    If so, make this SQL * more order

    Department_name RIGHT-JUSTIFIED COLUMN

    before running the query.  COLUMN... JUSTIFICATION applies only to the topic, not the data.

Maybe you are looking for

  • How can I prevent imovie 10 to delete clips from my camera when importing?

    I just noticed that when I import my video into iMovie 10 clips get deleted from my camera. I don't want to do. How do you prevent iMovie to do this? I can't find anywhere preferences.

  • Switchable graphics ATI RADEON 6770 M

    Hi all I have a HP Pavilion dv7 6180SL. Everything was good until I updated to 8.1 windows today. My problem is with switchable graphics ATI RADEON 6770 M. I downloaded the latest driver from the DRIVERS of HP SUPPORT but the graphics card does not w

  • Can I Strip units of a number without changing the value?

    Hello I'm making a request that the user can select the units on the controls/indicators. I have connect data for these indicators in a data file. I want to give them the freedom to choose any unit they want (as long supports them a LabVIEW) and then

  • Synaptics Touchpad is sensitive to

    I just had my presario CQ57-319WM 7 software reinstalled windows.    The problem is when I try to type on the keyboard and I touch the keyboard, the cursor will move.   I went into the control panel mouse and there is no entry for the touchpad.   I i

  • Annoying beep

    After installing the recent updates, my computer started to emit a loud, annoying beep whenever it pops up a message. (i.e., print the completed task, do you want to save changes, etc..) I have disabled all sounds via the Control Panel, but that he d