How to select columns, that we need a table with pivot

Hello

How can I select only the required columns that I need the table

My goal is to keep everything in one line

Database: 11.2.0.2.0

I have a table called Table Agent

create the table AGENT_DETAIL

(

agent_id NUMBER (20) not null,

agent_type_code VARCHAR2 (10) not null,

agent_type_prefix VARCHAR2 (10) not null,

Type_Code VARCHAR2 (10) not null,

type_prefix VARCHAR2 (10) not null,

last_modified DATE not null

)

INSERT INTO agent_detail VALUES

(29709, ARE ',' OFFICE ',' DNSWEB ',' AGTDETAILS', SYSDATE);

INSERT INTO AGENT_DETAIL VALUES

(29709, ARE ',' OFFICE ',' DNSNATID ',' AGTDETAILS', SYSDATE);

INSERT INTO AGENT_DETAIL VALUES

(29709, ARE ',' OFFICE ',' DELIVERY ',' AGTDETAILS', SYSDATE);

INSERT INTO AGENT_DETAIL VALUES

(29709, ARE ', 'OFFICE', "WEBUSAGE", "WEBUSER" SYSDATE);

When you query it against the table

SELECT * FROM AGENT_DETAIL;

AGENT_IDAGENT_TYPE_CODEAGENT_TYPE_PREFIXTYPE_CODETYPE_PREFIXLAST_MODIFIED
129709REOFFICEDNSWEBAGTDETAILS22:14:15 12/09/2015
229709REOFFICEDNSNATIDAGTDETAILS09/12/2015-22:15:26
329709REOFFICEDELIVERYAGTDETAILS09/12/2015-22:21:37
429709REOFFICEWEBUSAGEWEBUSER10/12/2015-09:27:52

Because my goal is to put everything in a single line instead of get in 4 rows

My query is like that

(select *)

the Dungeon of pivot (min (TYPE_CODE) AGENT_DETAIL (last dense_rank command by LAST_MODIFIED) for TYPE_CODE in ('DNSWEB' as the WEB)

'DNSNATID' as

NATIONAL,

'DELIVERY' AS

DELIVERY,

"WEBUSAGE" AS WEBUSAGE

)

))

Result:

AGENT_IDAGENT_TYPE_CODEAGENT_TYPE_PREFIXTYPE_PREFIXWEBNATIONALDELIVERYWEBUSAGE
129709REOFFICEWEBUSERWEBUSAGE
229709REOFFICEAGTDETAILSDNSWEBDNSNATIDDELIVERY

Is it possible to get everything in one record, I know that I have two type_prefixes different (WEBUSER, AGTDETAILS)

But all I want to see my data is like this

Agent_id Agent_type_code Agent_type_prefix WEB WEBUSAGE NATIONAL DELIVERY

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

RE OFFICE DNSWEB DNSATID DELIVERY WEBUSAGE 29709

Hello

When you use SELECT... PIVOT, the result set contains 1 row for all the distinct combinations of the values of all columns except columns mentioned in the PIVOT clause.  If you want to ignore some columns completely, then let the PIVOT operated at a "table" that does not include the.  For example:

with RELEVANT_AGENT_DETAIL as

(

Select AGENT_ID, AGENT_TYPE_CODE, AGENT_TYPE_PREFIX, TYPE_CODE, LAST_MODIFIED

of AGENT_DETAIL

-where--if you filter, put it here

)

Select *.

of RELEVANT_AGENT_DETAIL

Pivot (min (TYPE_CODE) Dungeon (last dense_rank command by LAST_MODIFIED))

for TYPE_CODE in ('DNSWEB' as WEB

'DNSNATID' as NATIONAL

'DELIVERY' as DELIVERY

"WEBUSAGE" as WEBUSAGE

)

)

;

If you are lazy or trying to be cute, maybe you can give the columns unwanted some lazy jobs in the PIVOT clause, like this:

Select *.

of AGENT_DETAIL

Pivot (min (TYPE_CODE) Dungeon (dense_rank last order by LAST_MODIFIED)

TYPE_CODE

TYPE_PREFIX

)

for TYPE_CODE in ('DNSWEB' as WEB

'DNSNATID' as NATIONAL

'DELIVERY' as DELIVERY

"WEBUSAGE" as WEBUSAGE

)

)

;

But this makes the code confusing and may be difficult to maintain.

Tags: Database

Similar Questions

  • How to identify columns that have the same data in a SQL query or function?

    Deal all,

    How to identify columns that have the same data in a SQL query or function? I have the sample data as below

    DEPT_IDEMP_IDCome on
    !CITYSTATECOUNTRY111 June 1983DELHIHUMAN RESOURCESIndia1218 January 1987DELHIHUMAN RESOURCESIndia1328 November 1985DELHIHUMAN RESOURCESIndia144 June 1985DELHIHUMAN RESOURCESIndia255 June 1983MUMBAIHDIndia266 June 1983MUMBAIHDIndia277 June 1983MUMBAIHDIndia288 Jun. 1983MUMBAIHDIndia399. June 1983GURGAONDLIndia31010 June 1983GURGAONDLIndia

    Now, I want to Indify columns that have the same data for the same Department ID.

    Is it possible in sql unique or do I have to write the function for this? Pls Help how to write?

    Thanks in advance.

    You can try this?

    WITH T1)

    DEPT_ID, EMP_ID, DATE OF BIRTH, CITY, STATE, COUNTRY

    ), ()

    SELECT 1, 1, TO_DATE('1.) June 1983', 'JJ. LUN. (YYYY'), 'DELHI', 'HR', 'INDIA' OF THE DUAL UNION ALL

    SELECT 1, 2, TO_DATE('18.) January 1987', 'JJ. LUN. (YYYY'), 'DELHI', 'HR', 'INDIA' OF THE DUAL UNION ALL

    SELECT 1, 3, TO_DATE('28.) November 1985', 'JJ. LUN. (YYYY'), 'DELHI', 'HR', 'INDIA' OF THE DUAL UNION ALL

    SELECT 1, 4, TO_DATE('4.) June 1985', 'JJ. LUN. (YYYY'), 'DELHI', 'HR', 'INDIA' OF THE DUAL UNION ALL

    SELECT 2.5, TO_DATE('5.) June 1983', 'JJ. LUN. (YYYY'), 'BOMBAY', 'HD', 'INDIA' OF THE DUAL UNION ALL

    SELECT 2.6, TO_DATE('6.) June 1983', 'JJ. LUN. (YYYY'), 'BOMBAY', 'HD', 'INDIA' OF THE DUAL UNION ALL

    SELECT 2.7, TO_DATE('7.) June 1983', 'JJ. LUN. (YYYY'), 'BOMBAY', 'HD', 'INDIA' OF THE DUAL UNION ALL

    SELECT 2.8, TO_DATE('8.) June 1983', 'JJ. LUN. (YYYY'), 'BOMBAY', 'HD', 'INDIA' OF THE DUAL UNION ALL

    SELECT 3, 9, TO_DATE('9.) June 1983', 'JJ. LUN. (YYYY'), 'GURGAON', 'DL', 'INDIA' OF THE DUAL UNION ALL

    SELECT 3.10, TO_DATE('10.) June 1983', 'JJ. LUN. (YYYY'), 'GURGAON', 'DL', 'INDIA' OF THE DOUBLE)

    SELECT DEPT_ID,

    RTRIM (XMLAGG (XMLELEMENT(A,VALS||',')). Extract ('//Text ()'), ',') COLUMNS_WITH_DUPLICATE

    DE)

    SELECT * FROM)

    SELECT DEPT_ID,

    EMP_ID,

    Date of birth

    CITY,

    STATE,

    COUNTRY

    DE)

    SELECT DEPT_ID,

    EMP_ID,

    Date of birth

    CITY,

    STATE,

    COUNTRIES,

    COUNT (*) OVER(PARTITION BY DEPT_ID ORDER BY EMP_ID DESC,DOB DESC,CITY DESC,STATE DESC, COUNTRY DESC) RN

    DE)

    SELECT DEPT_ID,

    CASE WHEN(CEID>1) AND THEN 'YES' ELSE 'NO' END AS EMP_ID.

    CASE WHEN(CDOB>1) THEN 'YES' ELSE 'NO' END AS DATE OF BIRTH,

    CASE WHEN(CCITY>1) AND THEN 'YES' ELSE 'NO' END AS CITY.

    CASE WHEN(CSTATE>1) AND THEN 'YES' ELSE 'NO' END AS STATE.

    CASE WHEN(CCOUNTRY>1) THEN 'YES' ELSE 'NO' END AS A COUNTRY

    DE)

    SELECT DISTINCT

    DEPT_ID,

    CEID,

    CDOB,

    CITY,

    CSTATE,

    CCOUNTRY

    DE)

    SELECT DEPT_ID,

    COUNT (*) TO THE CEID (DEPT_ID PARTITION, EMP_ID),.

    COUNT (*) ON CDOB (DEPT_ID SCORE, DATE OF BIRTH),

    COUNT (*) ON THE CITY (DEPT_ID PARTITION, CITY),

    COUNT (*) ON CSTATE (DEPT_ID PARTITION, STATE).

    COUNT (*) ON CCOUNTRY (DEPT_ID, COUNTRY PARTITION)

    FROM T1)))

    WHERE RN = 1)

    UNPIVOT (CLO FOR (VALS) IN (EMP_ID, DATE OF BIRTH, CITY, STATE, COUNTRY)))

    WHERE COLS = "YES".

    DEPT_ID GROUP;

    OUTPUT:

    DEPT_ID COLUMNS_WITH_DUPLICATE
    --------- ------------------------

    1 CITY, COUNTRY, STATE
    2 CITY, COUNTRY, STATE
    3 CITY, COUNTRY, STATE

    Post edited by: Parth272025

  • How install an update that I need so I don't see in my updates?

    * - Original title updates

    How install an update that I need so I don't see in my updates?

    Hello

    You can download the updates from Microsoft Download Center: http://www.microsoft.com/en-us/download/default.aspx

    Reference.
    Install the Windows updates: http://windows.microsoft.com/en-us/windows-vista/Install-Windows-updates

    Keep your PC updated: http://windows.microsoft.com/en-US/windows/help/windows-update

    The problems with the installation of the updates: http://windows.microsoft.com/en-us/windows-vista/Troubleshoot-problems-with-installing-updates

    I hope this helps.

  • I can't uninstall microsoft silverlight. I get the message that I need to check with the installer of the hotfix package.

    Original title: microsoft difficulty 50747

    I can't uninstall microsoft silverlight. I get the message that I need to check with the installer of the hotfix package. Pls help!

    Hello

    Because the problem is related to Silverlight, I suggest you post this question in the Microsoft Silverlight forum.

    http://forums.Silverlight.NET/forums/

  • kindly tell how to use the unique value of a table with the index 0

    kindly tell how to use the unique value of a table with the index 0

    Hi
     
    Yep, use Index Array as Gerd says. Also, using the context help ( + h) and looking through the array palette will help you get an understanding of what each VI does.
     
    This is fundamental LabVIEW stuff, perhaps you'd be better spending some time going through the basics.
     
    -CC
  • I am trying to download Windows 7 but it asks if I want to 32-bit or 64-bit. How can I know that I need?

    What system do need me?

    I am trying to download Windows 7 but it asks if I want to 32-bit or 64-bit.  I checked the post of work and then properties, but it does not say what system I use.   Any ideas how?

    64 bit 32 vs

    http://Windows.Microsoft.com/en-us/Windows7/32-bit-and-64-bit-Windows-frequently-asked-questions

    My PC running the 32-bit version or 64-bit Windows?

    http://Windows.Microsoft.com/en-us/Windows7/find-out-32-or-64-bit

    http://Windows.Microsoft.com/en-us/Windows7/installing-and-reinstalling-Windows-7

    Windows 7 64 bit comes in handy when you need to deal with at least 4 GB of RAM or more. Windows 7 32 bit can use up to 3.2 GB of RAM. Because the address space of memory is much larger for 64-bit Windows, this means that you need two times more memory than the 32-bit Windows to accomplish some of the same task, but you are able to do much more, you can have more apps open, do things like run a virus scan in the background it will affect the performance of your system. 64-bit Windows 7 is safer too, malicious code cannot easily infiltrate it, drivers are more reliable because they must be signed before it can work with 64 bit Windows 7.

    Regarding compatibility, you need device drivers 64-bit hardware devices, you may have. In addition, there is no 16-bit subsystem in Windows 7 64-bit, which means, your applications must be 32-bit only, not 16-bit Installer or programs uninstaller.

    The upgrade of Windows Vista

    When important changes to your computer, for example an upgrade, it is always recommended that you back up your system before installing a new version of Windows. In your case, you can upgrade to Windows 7 depending on the edition and the architecture of Windows Vista, you have installed. If you are running a 32-bit version of Vista and upgrade to a 64-bit (Windows 7 edition) version, you'll have a pure make install, it is the opposite case.

    If you are using Windows Vista Home Basic or Premium consumer editions, you can only upgrade to Windows 7 Home Premium or Ultimate. In addition, you can make downgrades, which means, if you are running Windows Vista Ultimate Edition now, you cannot downgrade to Windows 7 Home Premium. You perform logical upgrades:

    Windows Vista Home Basic > Windows 7 Home Basic, Premium or Ultimate

    Windows Vista Edition Home Premium > Windows 7 Home Premium or Ultimate

    Windows Vista Business > Windows 7 Professional, enterprise or ultimate edition

    Windows Vista Business > Windows 7 Enterprise

    Windows Vista Ultimate > Windows 7 Ultimate.

    http://www.notebooks.com/2009/10/07/using-Windows-easy-transfer-in-Windows-7/

    The upgrade to Windows XP?

    Please read these instructions carefully and completely before you begin installing Windows 7: there are important steps that you must follow to upgrade your PC from Windows XP to Windows 7 in order to preserve your files and settings.

    Before you begin, you'll need to backup all your data to an external storage device, and you will need all the installation discs for the programs that you want to keep. Please make sure that you have an external hard drive (see details below).

    More detailed instructions are available at windows.microsoft.com/upgrade-windows-xp. Here are the basic steps.

    1. start Windows Upgrade Advisor (windows.microsoft.com/upgradeadvisor) to see if there are known issues that may affect the installation and the question of whether you should install the version of 32 or 64 bit Windows 7.

    2 back up your files and settings on an external hard drive using Windows Easy Transfer (windows.microsoft.com/windows-easy-transfer). If you do not have an external hard drive, you will not be able to use Windows Easy Transfer. Alternatively, you can copy the files you want to keep on a USB stick, CD or DVD.

    3. you will need to manually reinstall your programs, such as Microsoft Office, after I installed Windows 7. Gather the installation for your programs and all partner/license product key discs. You may be able to download programs from the Internet. For example, Windows Live Messenger can be installed from the download.live.com/messenger.

    4. Insert the Windows 7 DVD in your PC. When asked "which type of installation you want. Click on "Custom (advanced)."

    5. when Windows 7 is installed, use Windows Easy Transfer to restore your files and settings.

    If you are not comfortable Windows 7 installation, check with a local retail or the services of the PC company store to see if they offer upgrade services.

    http://www.notebooks.com/2009/10/13/WinXP-to-Win7/

  • How to select a picture, ignore one and many with shift click to choose several without also selecting the image that you have ignored.

    In the grid discovers how to select an image, a jump and select several images following the a l ignored without also selecting the previous image, that you have ignored as well. This is possible in opening

    Probably easier to select all the with shift-click and then deselect (ctrl-click), one that you don't want.

  • How to select and change the LabelFields / ButtonFields table 2D

    Hi everyone, I'm new here and I'm new to the blackberry development.

    For a project student I'm working, I have a table 2D-ButtonFields, (I can change LabelFields if it's easier) which I use to create a Sudoku grid.

    I understand that this is really basic but I want the user to simply scroll the table 2D to a particular cell, and be able to type in a number on the keyboard instantly change the label of the ButtonField or LabelField, IE their assumption of Sudoku.

    I have really problems that I'm not familiar with how blackberry accepts user input and how it can be used with the setText method.

    So, essentially, I would like some sort of way to determine the currently selected cell (without is activated) and then for this selected cell so that the setText() method applied

    Can someone help me? I can post a code if it helps but I'm not sure it will as you al will understand how basic it is.

    Thank you in advance and I hope I can return the favor as soon as

    You can use a focuschangelistener to be aware of policy changes. or call the getLeafFieldWithFocus() to retrieve the current field.

    You can't make buttonfields editable, but you can read user input and treat it.

    for sudoku you need only numbers, you can use the keyChar method to read the characters.

    Check if your target field is one of your buttons. Check to see if the tank is entered or Louis tank (Keypad.getAltedChar) is a number (Characters.isDigit).

    You can call setText on of the buttonfield.

  • How a select list to cascaded in a table?

    Hello

    I would like to know how to create a pick list cascading tabular.

    In the screenshot next, for example, when select "2081: Alice Fan", the next filed should watch only "ID: name of the element" belongs to Alice.

    Screen Shot 2015-07-17 at 16.35.32.png

    Usually I do this simply for an article by implementing the SQL query and cascade LOV parent as follows.

    However, I can't find it in the form of tables?

    Screen Shot 2015-07-17 at 16.37.16.png

    Screen Shot 2015-07-17 at 16.37.25.png

    One can help with the solution?

    I hope that this can be done to reload partially after the first field had changed, but not to present an entire page.

    Thank you!

    Alice

    Hi AliceFan-Oracle,

    AliceFan-Oracle wrote:

    Please see application 81653, page 2 (Test in the navigation menu).

    It's the ERT_TABLE_Item.

    If 'point ERT ID' is cascaded by ERT ID,

    When select "2221" ERT ID, it takes only the concerts "2521" and "2541" at the point of the ERT ID.

    When select "2222" ERT ID, it takes only the concerts '2561"in ERT item ID.

    ID ERT and ERT tabular item ID are columns 29th and 30th.

    Check your Application-> Page 2 81653 on your instance of apex.oracle.com. I implemented the LOV cascading using the solution of Jari.

    Reference: APEX Blog of Jari: Article Cascading select list in the form of

    Here are the steps how this is implemented:

    • Edited your Page attributes-> section JavaScript-> 'Function and Variable global statement' has added the following code:
    (function($){
    
    /*** Cascading select list ***/
    $.fn.htmldbCascade=function(parent,onDemand,options){
    
      options=$.extend({
       trigger       : false,
       extrVal       : false,
       nullShow      : false,
       nullValue     : "",
       nullDisplay   : "- Select -",
       disAlias      : "DIS",
       retAlias      : "RET",
       loadingTxt    : "Loading ...",
       loadingCss    : {"width":"80px"}
      },options);
    
      return this.each(function(i){
    
       var self=$(this);
       var lParent=$(parent).eq(i);
       var lSelfVal=self.val();
       if(!lSelfVal){lSelfVal="";};
    
       if(!lParent.data("htmldbCascade")){
        lParent.change(function(){
    
         var lParentVal=$v(this);
         if(!lParentVal){lParentVal="";};
    
         $.extend(options.loadingCss,{"height":self.parent().height()});
    
         self
          .hide()
          .empty()
          .parent()
          .find("div.ui-autocomplete-loading")
          .remove()
          .end()
          .append($("
    ",{"html":options.loadingTxt,"css":options.loadingCss}) .addClass("ui-autocomplete-loading")); if(options.nullShow){ appendOpt(self,options.nullDisplay,options.nullValue); }; $.post("wwv_flow.show",{ p_flow_id:"&APP_ID.", p_flow_step_id:"&APP_PAGE_ID.", p_instance:"&APP_SESSION.", p_request:"APPLICATION_PROCESS="+onDemand, x01:lParentVal },function(jd){ var lExists=false; $.each(jd.row,function(i,d){ if(d[options.retAlias]===lSelfVal){lExists=true;}; appendOpt(self,d[options.disAlias],d[options.retAlias]); }); if(options.extrVal&&!lExists){ appendOpt(self,lSelfVal,lSelfVal); }; self .val(lSelfVal) .show() .parent() .find("div.ui-autocomplete-loading") .remove(); if(options.trigger){self.trigger(options.trigger);}; },"json"); }).data("htmldbCascade",true).trigger("change"); } }); /*** Append option ***/ function appendOpt(pThis,pDis,pRet){ pThis.append( $("
    • Edited your ERT_ITEM_ID column and added the following code to query LOV:
    SELECT NULL d,
           NULL r
    FROM   DUAL
    WHERE  1 = 2
    
    • Application G_TEMP element created in shared components-> section elements of enforcement with Protection of Session State"set to"Unrestricted ".
    • Created AJAX callback information Page at the request of GET_ERT_ITEM_ID process with the following code:
    DECLARE
      l_sql VARCHAR2(32700);
    BEGIN
      IF APEX_APPLICATION.G_x01 IS NOT NULL THEN
        APEX_UTIL.SET_SESSION_STATE('G_TEMP', APEX_APPLICATION.G_x01);
        l_sql := '
          SELECT ERT_ITEM_ID||'': ''||VENDOR_ID DIS,
                 ERT_ITEM_ID RET
          FROM   ERT_TABLE_ITEM
          WHERE  ERT_ID = :G_TEMP
          ORDER BY 1
        ';
      APEX_UTIL.JSON_FROM_SQL(l_sql);
      ELSE
        HTP.prn('{"row":[]}');
      END IF;
      APEX_UTIL.SET_SESSION_STATE('G_TEMP', NULL);
    END;
    
    • Created the dynamic action named "Set LOV cascade after refresh and onload", with the following attributes:

    Event: After refresh

    Selection type: region

    Region: Update purchase order (15)

    Condition: No strings attached

    Action: Run the JavaScript Code

    Fire on loading the Page: Yes

    Code:

    $("[name=f30]").htmldbCascade(
    "[name=f29]",
    "GET_ERT_ITEM_ID",{
      nullShow:true,
      nullDisplay:"- Select -"
    });
    

    Assigned items: no

    • 'Action' button "ADD a line" changed "defined by the dynamic Action. Created another dynamic action named "Cascading select list Set for the new line" with the following attributes:

    Event: click on

    Selection type: button

    Region: ADD Row

    Condition: No strings attached

    Action: Run the JavaScript Code

    Fire on loading the Page: No.

    Code:

    apex.widget.tabular.addRow();
    $("[name=f30]:last").htmldbCascade(
    "[name=f29]:last",
    "GET_ERT_ITEM_ID",{
      nullShow:true,
      nullDisplay:"- Select -"
    });
    

    Assigned items: no

    Kind regards

    Kiran

  • How to select all the rows in a Table

    Hello

    JDEV 11.1.1.2.0 work.

    I need to select all the lines all in the click of a button, how can I achieve this? Here is table unique selection/multi selection.

    someone can help me.

    Published by: user5802014 on June 30, 2010 08:32

    Rather than try to direct you to the message that I want to say, I'll just copy the code here with credit to Frank Nimphius

    The post is a hyperlink on the word present in the step 5 post of my "how to search in the forum" :)

    RichTable _table = employeesBackingBean.getEmployeeTable1();
       RowKeySet rks = new RowKeySetImpl();
      CollectionModel model = (CollectionModel)_table.getValue();
      int rowCount = model.getRowCount();
          for (int i = 0; i < rowCount; i++) {
               model.setRowIndex(i);
               //note that in the simple POJO case, the row key is the same
               //as the index. However, it would be wrong to just rely on this
               //because other models or custom table models my return a more
               //comples key. Therefore we iterate over the available rows to
               //obtain the keys.
               Object key = model.getRowKey();
               //add the row keys to the RowKeySet to mark selected
               rks.add(key);
           }
       _table.setSelectedRowKeys(rks);
       AdfFacesContext.getCurrentInstance().addPartialTarget(_table);
    
  • How to read/select only the records from a table with non-English characters

    Hello
    I need to find all records in a table with non-English (mainly Chinese) characters in at least one of the varchar2 columns. Let me kow if someone knows a way by which it can be done using SQL/PLSQL.

    Best regards
    Imran
    select * from your table
    where your_column != convert(your_column, 'UTF8', 'US7ASCII)
    

    Replace UTF8 with your database character set

    Published by: thtsang on October 15, 2009 03:53 - unequal sign change of! =

  • How to select data from a remote database table?

    Hi friends,

    I think I've seen before a sqlplus program that can select data from a remote database table?

    Witnessed: IP, SID, PORT

    The following is correct?

    (I am connected to a local database)
    SELECT COUNT (*) IN THE EMP@IP:SID/PORT;


    Thank you very much


    Ms. K

    Salvation;

    I think, that you can create dblink wihtout any problem yet, it's a PROD. After your selection, you can drop dblink

    Respect of
    HELIOS

  • Firefox wants to update (again!) now at version 6. How will I know that my extensions are compatible with the new version?

    I checked with the developer of the extension sites, but they do not yet report if the extension has been tested with Firefox 6.0. 3.6-4.0 switch left me with a gap in functionality of my extensions, although the switch of 4.0 to 5.0 went smoothly. I remember that the installer for 4.0 tested my extensions for compatibility before asking me to confirm if I wanted to install. 6.0, however, says he is already downloaded and just waiting for me to restart Firefox. Mozilla seems to be getting less polite and more aggressive on updates.

    When Firefox starts to install the updated version, it shows you the Add-ons that won't be Compatible with the new Firefox version that is being installed. You can cancel the Installation at this stage.

    I'm not sure about this, but you can also use - Add-on Compatibility Reporter 0.8.7

    Check and tell if its working.

  • the selection of all colomns_names of a table, with their data types...

    HI :)

    I would like to know, how to select in SQL for all the names of columns in a table with their data types so that I get something like this:

    Table 1: table_name

    the ID of the column has the NUMBER data type
    the name of the column has Datatype Varchar2
    *....*

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

    Table 2: table_name

    the check in the column has the NUMBER data type
    the air of the column has Datatype Varchar2
    *....*


    and it must be for all the tables that I own!...

    P. S: I'm trying to do this with java, so it s would be enough if you just tell me how to select all tables_names with all their colums_names and all their data types!...

    Thanks :)



    I've heard this can be done with USER_TABLES... but I have no idea how: (...)

    Edited by: user8865125 the 17.05.2011 12:22

    Hello

    USER_TAB_COLUMNS data dictionary view has a row for each column of each table in your schema. The columns TABLE_NAME, COLUMN_NAME and DATA_TYPE contains all the information you need.
    Another view of data, USER_TABLES dictionary, can be useful, too. He has a line of table pre.

  • How to handle columns THAT?

    Hi gurus,

    I do for the target load source. Have gone through the forums for a solution to my problem, I wasn't convinced on the answer found.

    the problem I have is - " I have 4 columns - update_user, insert_date and insert_user, update_date." I have to complete everything by the loading. "

    1. I traced the insert_date and the insert_user, sysdate and user interface directly, but with each repetition of the interface, ODI mark the line as update even if it is not an update. After the exam, I found that in the I$ _ table created during the race, it inserts sysdate and user in the fields and compares. Since the sysdate will not match, it will mark the line update. so, I tried loading them via a procedure and not directly.

    2. when I try to load the columns through a procedure, all columns are updated. but I need to only load the date and user columns in rows that are inserted/updated. so, this isn't the right approach.

    I will carry out a package to load I need to maintain a journal etl load table also.

    * the solution, I found was to duplicate and edit the additional SQL IKM updated * to do this. But I feel somehow, there is an easy way to do this.

    * Please help me with this. I really appreciate your times

    * Thanks in advance

    Can you please tell me what the IKM you use? Because if mapped to the target, then the ODI doesn't consider these columns in equation I $, then cannot be the reason for the Insert or Update.

    About the Insert and update, when you click the column, find you real estate to insert / update. Select insert only for Insert and check the update only for the update.
    Also it does not solve my problem of update_date and update_user. How the IKM fails to satisfy your request.

Maybe you are looking for