Displaying only the column names

hi there,
is there any query to fetch only the column names from a table, excluding the datas from that particular column?
Thanks,
Balu.

SQL> select * from dual
  2  where rownum < 1;
no rows selected                                                                                                                                                                               

Similar Messages

  • Report Column Attributes Does Not Display All the Column Names

    Good Morning,
    I have an interactive query Select * from table_name. I have to select * since my query returns well over 32k. I have 162 columns in the query. On the screen, all the columns are displayed; however, on the report tab, only about half of the columns are displayed. The rest are cut off. I need to be able to go into these field's attributes. Is this an APEX bug, or am I just missing something.
    Regards,
    Kelly

    Hello Tony,
    I can't break them out because APEX is limited to one interactive report per page. There is need to be able to do computations on the data, which interactive reports allows. The data is all statistical.
    Regards,
    Kelly

  • Can we display only the required columns dynamically?

    Hi All,
    I have a scenario where in I have 30 columns in the rtf template. All the columns will never be displayed, only a select few will be available for display. So the output file is show blank columns. Now I want to display only the columns which contain data.
    FYI- We cannot know which columns consist data until we run the report.
    Any Advice.
    Thanks in advance.
    Madhav.

    Hi,
    You can use the following:
    Column header:
    <?if@column:/node/child_node="PUBLIC"?>My label<?end if?>
    Column data:
    <?if:/node/child_node="PUBLIC"?>My data<?end if?>
    The @column will tell XMLP wheater or not the column shall be shown.
    I hope this helps you.
    BR Kenneth

  • Graph label in Drill down graph to display only the lowest level label

    Recently I have upgraded from OBIEE 10 to 11g.
    Some reports have a country -> region -> branch drilldown, for which hierarchy is created in business layer of RPD. The graph, drills down from Country -> Regions -> Branches and displays the measures accordingly. But the horizontal label displays the full hierarchy , like CountryName,RegionName and Branch Name. In 10g, I used to get the Branch name only in the axis label.
    I would like to display only the Region names when Country is drilled down and the branch name alone when the Region is drilled down.
    Kindly help.

    In 11g it is bug....
    For this u should create 3 individual reports (1 for country, 2. Region, 3. Branch) and give action link one to another.
    for filter make sure the required column "Is Prompted" for every detailed reports.
    Pls mark if it helps
    -Chinna

  • I want a sql query to diffrentiate the column names between two schemas

    The structure of the dba_tab_cols table is owner, table_name, column_name, data_type,.....
    So I have a ACCT_ALT_ID table under owner SEODS01 and in that therse are column names
    IBD_ID
    ACCT_ALT_ID_CNTX_CDE
    EODS_ACCT_ID
    DATA_GRP_CDE
    UPDT_DTE
    AND I have a ACCT_ALT_ID table under owner SEODS02 and in that therse are column names
    IBD_ID
    ACCT_ALT_ID_CNTX_CDE
    EODS_ACCT_ID
    DATA_GRP_CDE
    CRTE_PGM
    CRTE_TSTP
    UPDT_PGM
    UPDT_TSTP
    so I want select query to display like this
    SEODS1_ACCT_ALT_ID SEODS02_ACCT_ALT_ID (COLUMN HEADER)
    IBD_ID IBD_ID
    ACCT_ALT_ID_CNTX_CDE ACCT_ALT_ID_CNTX_CDE
    EODS_ACCT_ID EODS_ACCT_ID
    DATA_GRP_CDE DATA_GRP_CDE
    UPDT_DTE CRTE_PGM
    CRTE_TSTP
    UPDT_PGM
    UPDT_TSTP
    AND ALSO I NEED ONE MORE QUERY THAT I DO NOT WANT DISPLAY HAVING SAME COLUMN_NAME LIKE ACCT_ALT_ID_CNTX_CDE ,EODS_ACCT_ID,IBD_ID
    DATA_GRP_CDE

    Hi,
    Welcome to the forum!
    876793 wrote:
    The structure of the dba_tab_cols table is owner, table_name, column_name, data_type,.....
    So I have a ACCT_ALT_ID table under owner SEODS01 and in that therse are column names
    IBD_ID
    ACCT_ALT_ID_CNTX_CDE
    EODS_ACCT_ID
    DATA_GRP_CDE
    UPDT_DTE
    AND I have a ACCT_ALT_ID table under owner SEODS02 and in that therse are column names
    IBD_ID
    ACCT_ALT_ID_CNTX_CDE
    EODS_ACCT_ID
    DATA_GRP_CDE
    CRTE_PGM
    CRTE_TSTP
    UPDT_PGM
    UPDT_TSTP
    so I want select query to display like this
    SEODS1_ACCT_ALT_ID SEODS02_ACCT_ALT_ID (COLUMN HEADER)
    IBD_ID IBD_ID
    ACCT_ALT_ID_CNTX_CDE ACCT_ALT_ID_CNTX_CDE
    EODS_ACCT_ID EODS_ACCT_ID
    DATA_GRP_CDE DATA_GRP_CDE
    UPDT_DTE CRTE_PGM
    CRTE_TSTP
    UPDT_PGM
    UPDT_TSTPYou may have noticed that this site normally doesn't display multiple spaces in a row.
    Whenever you post formatted text (such as query results) on this site, type these 6 characters:
    \(small letters only, inside curly brackets) before and after each section of formatted text, to preserve spacing.
    That way, your message will look like this:SEODS1_ACCT_ALT_ID SEODS02_ACCT_ALT_ID (COLUMN HEADER)
    IBD_ID IBD_ID
    ACCT_ALT_ID_CNTX_CDE ACCT_ALT_ID_CNTX_CDE
    EODS_ACCT_ID EODS_ACCT_ID
    DATA_GRP_CDE DATA_GRP_CDE
    UPDT_DTE CRTE_PGM
    CRTE_TSTP
    UPDT_PGM
    UPDT_TSTP
    This sounds like a jon for a FULL OUTER JOIN:SELECT     s1.column_name     AS seods1_acct_alt_id
    ,     s2.column_name     AS seods2_acct_alt_id
    FROM          dba_tab_cols     s1
    FULL OUTER JOIN     dba_tab_cols     s2 ON s1.column_name     = s2.column_name
    WHERE     s1.owner     = 'SEODS1'
    AND     s1.table_name = 'ACCT_ALT_ID'
    AND     s2.owner     = 'SEODS2'
    AND     s2.table_name = 'ACCT_ALT_ID'
    AND ALSO I NEED ONE MORE QUERY THAT I DO NOT WANT DISPLAY HAVING SAME COLUMN_NAME LIKE ACCT_ALT_ID_CNTX_CDE ,EODS_ACCT_ID,IBD_ID
    DATA_GRP_CDESorry, I don;t understand.
    Post the results you want (formatted, between \ tags, of course).
    Do you want only the column names that appear in one table or the other, but not in both?
    In that case, you can add a condition like this to the WHERE clause:
    AND       (   s1.column_name  IS NULL
           OR  s2.column_name  IS NULL
           )

  • How to make the display of custom column names in UWL(not bother abt values

    Hi all
    i want to make the display of custom column names in UWL ( for example GP)
    i dont want or not looking about values for those custom columns . i know that thru custom connector we can achieve to retrieve the values for those custom columns. but currently i am looking only just to display the custom column names( for example GP custom column names, just i want to display the name of the columns ) in UWL .
    Thanks
    Sunil

    Hello Prashant,
    You can add the control to your custom pagelayout, the following article has an example:
    http://spandps.com/2012/02/22/showing-the-audience-target-field-in-an-editmodepanel-sharepoint-sp2010-in-projectserver-ps2010/
    Btw, the SPFieldTargetToControl has a required property:
    http://msdn.microsoft.com/en-us/library/microsoft.office.server.webcontrols.fieldtypes.spfieldtargettocontrol.required(v=office.14).aspx
    - Dennis | Netherlands | Blog |
    Twitter

  • How to display only selected columns in the table on the tableview

    Hi All,
    I am displaying in the below tableview the data from the SFLIGHTS tables in the tableview using flow logic. It displays all the columns in the database table. How can I set in the code to display only selected columns and not all columns.
    Also, in these columns displayed I want to make the key columns of SFLIGHT as non editable and the rest of the columns in SFLIGHT editiable. Can you please kindly share the code to implement this.
    <%@page language="abap" %>
    <%@extension name="htmlb" prefix="htmlb" %>
    <htmlb:content design="design2003" >
      <htmlb:page>
        <htmlb:form>
          <htmlb:tableView id              = "tv1"
                           visibleRowCount = "10"
                           selectionMode   = "lineEdit"
                           table           = "<%= flights %>"
                           filter = "SERVER"
                           sort = "server"
                           iterator        = "<%= iterator %>" />
        </htmlb:form>
      </htmlb:page>
    </htmlb:content>
    Thanks
    Karen

    Hi,
       Please try this code.
    <!-- To display Table control on BSP page with table internal table it_hist  --!>
              <htmlb:tableView id              = "TV_HIST"
                               headerText      = "Previous History"
                               headerVisible   = "TRUE"
                               footerVisible   = "TRUE"
                               design          = "ALTERNATING"
                               selectionMode   = "LINEEDIT"
                               visibleRowCount = "5"
                               fillUpEmptyRows = "TRUE"
                               table           = "<%= it_hist %>"
                               width           = "500" >
    <!--  to show selected columns give required field name --!>
    <htmlb:tableViewColumns>
      <htmlb:tableViewColumn columnName          = "FIELD1"
                                         title               = "COLUMN1"
                                         horizontalAlignment = "CENTER"
                                         width               = "65" >
                  </htmlb:tableViewColumn>
      <htmlb:tableViewColumn columnName          = "FIELD2"
                                         title               = "COLUMN2"
                                         horizontalAlignment = "CENTER"
                                         width               = "65" >
                  </htmlb:tableViewColumn>
      <htmlb:tableViewColumn columnName          = "FIELD3"
                                         title               = "COLUMN3"
                                         horizontalAlignment = "CENTER"
                                         width               = "65" >
                  </htmlb:tableViewColumn>
      <htmlb:tableViewColumn columnName          = "FIELD4"
                                         title               = "COLUMN4"
                                         horizontalAlignment = "CENTER"
                                         width               = "65" >
                  </htmlb:tableViewColumn>
    <!--  to make column editable set edit property to TRUE --!>
      <htmlb:tableViewColumn columnName          = "FIELD4"
                                         title               = "COLUMN4"
                                         edit = "TRUE"
                                         horizontalAlignment = "CENTER"
                                         width               = "65" >
                  </htmlb:tableViewColumn>
                </htmlb:tableViewColumns>
              </htmlb:tableView>

  • Displaying the column names in a spreadsheet

    Hello All,
    I am downloading data from SAP into a spreadsheet using the FM MS_EXCEL_OLE_STANDARD_DAT. The data is coming fine.
    But I need to display the column names too in the spreadsheet. Could anyone please tell me how to do that.
    Thanks in advance.
    Regards
    Indrajit

    Hi Pawan,
    I am using the following piece of code.
    TYPES:  BEGIN OF ty_fieldname,
                     text(20) TYPE c,
                  END OF ty_fieldname.
    DATA: gs_fieldname TYPE ty_fieldname.
               gt_fieldname TYPE STANDARD TABLE OF ty_fieldname.
    gs_fieldname-text = 'Material'.
    APPEND gs_fieldname TO gt_fieldname.
    gs_fieldname-text = 'Ad Size'.
    APPEND gs_fieldname TO gt_fieldname.
    gs_fieldname-text = 'Classification Group'.
    APPEND gs_fieldname TO gt_fieldname.
    gs_fieldname-text = 'Old Ceiling'.
    APPEND gs_fieldname TO gt_fieldname.
    gs_fieldname-text = 'Message Type'.
    APPEND gs_fieldname TO gt_fieldname.
    gs_fieldname-text = 'Message'.
    APPEND gs_fieldname TO gt_fieldname.
    CALL FUNCTION 'MS_EXCEL_OLE_STANDARD_DAT'
          EXPORTING
            file_name                 = p_file
            data_sheet_name           = text-014
          TABLES
            data_tab                  = gt_rate
            fieldnames                = gt_fieldname
          EXCEPTIONS
            file_not_exist            = 1
            filename_expected         = 2
            communication_error       = 3
            ole_object_method_error   = 4
            ole_object_property_error = 5
            invalid_pivot_fields      = 6
            download_problem          = 7
            OTHERS                    = 8.
    I am getting a short dump on this which says -
    "Only flat, character-type data objects are supported at the argument    
    position "dest" for the statement                                       
      "WRITE src TO dest".                                                                 
    In this case, the operand "dest" has the non-character-type or deep type
    "P". The current program is flagged as a Unicode program. In the Unicode
    context, type X fields are seen as non-character-type, as are          
    structures that contain non-character-type components."                  
    Indrajit

  • Changing the column names displayed via an ODBC driver

    Hi we are just starting to used Crystal Reports to improve the reporting capabaility of a legacy application, we can access the data fine using an ODBC driver. What we want to do is change the column names that are displayed within Crystal Reports so they are more user friendly and not in techno speak,, so that the users can create their own reports. Do we need to used Business Objects to setup a Universe to do this, is their a simple cheaper method sorry if this post is in the wrong section

    Can you set up "views" in your database? That would probably be the easiest way to do this.
    -Dell
    - A computer only does what you told it to, not what you thought you told it to!</p>

  • How to display the column names of a table in the output

    Hi,
    I want to display the name of the columns of the table without using literals in a abap report.
    EX: Consider the table KNA1
    KUNNR NAME  ADDRESS
    I want to display the column names in the above fashion without using hardcoded write statements.
    Thanking in anticipation

    You can use this FM <b>DDIF_FIELDINFO_GET</b> It gives you all the names related to fields in a table -:)
    Greetings,
    Blag.

  • In the new Numbers, How can I get a 2D stacked column chart to display only 1 column?

    In the new Numbers, How can I get a 2D stacked column chart to display only 1 column?

    This is one of those things that I find really strange about Numbers 3. The control for what you want to do is not where anyone would expect to find it.
    Select the Chart
    Click on Edit Data References
    Look at the bottom left corner of the Numbers window. It should say "Plot Columns as Series" or "Plot Rows as Series"
    Click on it and change it to the other

  • How to get the Column names of output that is displaying in Sql Developer(Oracle 11g).

    Hi,
        I am using OCCI to interact with DB through code, which means I am writing a vc++ file to interact with Data Base and execute the Stored Procedure which I am calling from the C++ Code. And  also displaying the output of the Stored Procedures to the Front End. I am succeeded in this, but now I should be able to display  the Column names of the output to Front End. Can any one help me on this.
    Example:
    Sno  |   Sname
    ------- |-------------
    1          ABC
    2          DEF
    I am getting (1,ABC) and (2,DEF) as the output of the Stored Procedure but I need the Column names also to display. How to get them.
    Thanks in Advance..:)

    Look at Re: exporting csv via pl/sql - select statement?
    It has an example how to extract the column name from a cursor. You have to check, whether you can use DBMS_SQL.DESCRIBE_COLUMNS
    Your procedure might need another out parameter, that returns the column names , e.g. as comma separated list or as varray.

  • JTable : How to display an icon near the column name ?

    Hi all,
    I'd like to display an icon near the column name of my JTable when an user click on the column; the icon specify the sorting applied to the data of JTable.
    I know that i have to write a render, but how ?
    Cheers.
    Stefano

    Hi all,
    I found the solution at http://exampledepot.com/egs/javax.swing.table/IconHead.html
    Cheers anyway.
    Stefano

  • How to change the column names in display

    Hi,
    I want to change the columns names and give the display names as more User friendly..
    How should I acheive this in WebI reports.
    Regards,
    BOB

    Hi,
    the columns names are normal text fields. Just selecdt to edit your report , go to the editor panel and select the column header you want to modify. You can enter the text you want to display
    Regards,
    Stratos

  • Not showing the column name

    Hi
    I am using jdev 11.1.1.3
    .i i dragged an adf table from data control.it has got 3 columns.i changed the name of first column as Lang grades.when i run that it is showing the column name as lang grades.then in that table two fields r mandatory.so in the property inspector i put the show required as true.but after that on running it is not showing the column name as lang grades.there is only the star sign for showing the attribute as required only.

    Hi,
    not enough information. So from your description, a column that is not marked required on its cell renderer component is not displayed at runtime. I am not aware of such a problem and suggest to try a later version of 11g R1 (11.1.1.6) to see if this reproduces. This allows you to exclude a probelm with 11.1.1.3 only
    Frank

Maybe you are looking for

  • Possible to Stream a Flash Presentation?

    Hi all! I work for a university and we have some faculty that are creating some huge flash presentations. I know that flash is remarkably fast when it comes to downloading, but with these large presentations it's still taking some time. Is it possibl

  • Can I install Leopard on MacBook Air?

    I have a MacBook Air running on OS 10.7.5. Recently it has been acting up, problems with fonts, e-mails, etc.. Actually I was never completely satisfied with this computer particularly if I compared it with a MacBook Pro running on OS 10.6.8 that wor

  • Finding Angle with respect to X axis in VB?

    In my VB program, I used the FindStraightEdge function to get a line for a particular edge. I would like to know what is the angle with respect to X axis. In the Measurement Studio, I use the "Caliper" to find this angle; however, in VB the Caliper f

  • Info on support patches

    Hi, Just need someone to point me in the right direction.  I remembered seeing SAP Notes on what bugs a particular patch will fix but I've been looking high and low in SAP Marketplace and can't seem to find it. Can someone point me in the right direc

  • Problem while using a user function

    Hi, I just want to learn how a user function in ODI works. I have created a user function(for Oracle technology). In Definition Tab, I gave bfun($(branchc)) In implementation I gave if ($(branchc) = 'it' || 'cse') then return('IT') else return('Non-I