How to select columns in a table by their column id and not the column name

Hello,
How do you select columns from a table based on their column_id.
I have create a view
but other than Select * , i cant now select one just one column from it
the view as follow:
create view count_student as
select a.acode "acode",aname "Activity Name",count(ae.acode) "Number of student joined"
from aenrol ae, activity a
where a.acode= ae.acode
group by a.acode,aname;

The issue is that you have decided to use quoted column names. A pretty horrible idea (mostly for the reasons that you are now finding).
Re-create the view and get rid of the silly double quotes.

Similar Messages

  • How to select data from AZure table storage without row key and partition key

    Hi 
    I need to select a data from azure table storage without rowkey and partition key. how  in azure storage emulator click query it display all data from that table. 
    thanks 
    rajesh 

    Hi rajesh,
    It seems that you didn't click query data using storage emulator. But I recommend you could use the azure server explore in your VS to view your data and query data. Please see this document (http://msdn.microsoft.com/en-us/library/azure/ff683677.aspx).
    And base on my experience, you may need input the command on Azure storage emulator, such as this page(http://msdn.microsoft.com/en-us/library/azure/gg433005.aspx).
    Regards,
    Will
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • HT3406 when using my old iphone as a itouch how do i get itunes to recognize as a different device and not the new phone?

    When using my old iphone4 as an itouch - how do i get itunes to recognize as a new and seperate device

    You don't need to do anything. iTunes will automatically recognise different devices as different devices. Just plug it in.
    You can rename the device by clicking the name in the side panel in iTunes for your own identification purposes, but this name does not matter to iTunes.

  • How confgure applet to use latest jre from its own family and not the next

    Hi!
    I have configured oracle forms for using latest 1.4.2 sun jre. The problem is, that dynamic versioning uses the latest installed sun jre. This is in my case 1.5.0_02. But I have installed several 1.4.2 versions too. How can I restrict dynamic versioning to 1.4.2 family?
    Actual configuration:
    jpi_classid=clsid:8AD9C840-044E-11D1-B3E9-00805F499D93
    jpi_codebase=https://java.sun.com/products/plugin/autodl/jinstall-1_4_2-windows-i586.cab#Version=1,4,2,5
    jpi_mimetype=application/x-java-applet;version=1.4.2
    regard
    Torsten Kleiber

    I also have this problem - and I am looking to use a CLSID that runs the latest version of 1.4.2 but does NOT run 1.5, even if it is installed.
    Alternatively, I investigated writing a javascript to get the JRE version installed on the client machine, but this requires an Active X object and is only available for Windows systems.
    var javaVersion;
    var shell;
    try
    shell = new ActiveXObject("WScript.Shell");
    if (shell != null)
    try
    javaVersion = shell.regRead("HKEY_LOCAL_MACHINE\\Software\\JavaSoft\\Java Runtime Environment\\CurrentVersion");
    You could see if 1.5 is installed and then either not load java and request user download 1.4.2, or use the "dynamic CLSID" clsid:8AD9C840-044E-11D1-B3E9-00805F499D93 in the case where 1.5 is not installed and you will get the latest version of 1.4.2
    The CLSID would be the simplest solution - have Sun thought of this and are not telling!!?

  • How do I get the List REST method to return the results with the display name and not the internal name. I also need the hyperlink to the attached document.

    FileSystemObjectType: 0
    Id: 2
    ContentTypeId: "0x010100517BCCBD1C63034A8C1141184DAB12C5"
    Title: null
    OData__dlc_DocId: null
    OData__dlc_DocIdUrl: null
    zopv: "Paint Specification"
    s2ue: "J"
    We'd prefer to make a single call. It's too bad the REST Api doesn't return the data in the same format as the WCF service, which uses the Display Name and not Internal Name. It also includes the hyperlink to the document.

    Hi,
    You can get the display name of fields with typedisplayname property.For more information,you can refer to the article:
    http://msdn.microsoft.com/en-us/library/office/dn600182(v=office.15).aspx#bk_Field
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • How to delete one perticular message from a user and not the whole messages

    hi
    i would like to know how can i delete a single message sent by a person and not the complete list of message received by me from the same person also how can i forward a message received by me

    beesani
    Sorry. ;( You can"t delete part of a message. You can only delete the entire message from that person.
    will2b

  • How to get servername from a request but not the cluster name?

    hi all,
    how do i get server name from the request? This is the scenario, When ever a request is made, its handed to a cluster and then directed to one of the server in the cluster.
    When i say request.getServerName();---- This is giving me the cluster name and not the server name.
    any suggestions/idea ? Thanks alot in advance.
    Edited by: new_member on Apr 18, 2008 9:11 PM

    ADJavaUser wrote:
    You could try this:
    Create a batch or shell script that executes ifconfig or ipconfig and writes the IP address out to a file.
    Place each shell script file at different locations on each server within the cluster.
    Then within the code, try to execute each script from an external process (Runtime.exec). Since the files are at different locations within each server only the correct shell script for each server should execute and write the IP Address to a file. You'll have to detect which one ran. Then open the file that was written, possible parse it for the IP Address and use the code that I already provided.
    This is a time consuming process that will slow your application. Additionally depending on how your cluster is set up it might not work and still return the cluster's IP address.I got the solution....java.net.InetAddress.getLocalHost().getHostName(); works fine...But thanks guyz for ur responses

  • Re: how to get servername from a request but not the cluster name?

    hi all,
    how do i get server name from the request? This is the scenario, When ever a request is made, its handed to a cluster and then directed to one of the server in the cluster.
    When i say request.getServerName();---- This is giving me the cluster name and not the server name. Say cluster1 has server1 and server2 and request is dispatched to any of one these servers. request.getServerName() - gives me cluster1 but I need to get server1/server2.
    any suggestions/idea ? Thanks alot in advance.

    http://forum.java.sun.com/thread.jspa?threadID=5287623

  • How to rename column name of table?

    Hello...
    How to rename column name of table?
    The column have data.
    Thanks.
    Martonio.

    The following should work in 9i release 2 and above.
    SQL> create table mytable(col1 varchar2(2),
      2  col2 date);
    Table created.
    SQL> insert into mytable values('t1',sysdate);
    1 row created.
    SQL> select * from mytable;
    CO COL2
    t1 30-NOV-04
    1 row selected.
    SQL> desc mytable
    Name                                      Null?    Type
    COL1                                               VARCHAR2(2)
    COL2                                               DATE
    SQL> alter table mytable rename column col2 to mydate;
    Table altered.
    SQL> desc mytable
    Name                                      Null?    Type
    COL1                                               VARCHAR2(2)
    MYDATE                                             DATE
    SQL> select * from mytable;
    CO MYDATE
    t1 30-NOV-04
    1 row selected.
    SQL> disconnect
    Disconnected from Oracle9i Enterprise Edition Release 9.2.0.3.0 - 64bit Production
    With the Partitioning option
    JServer Release 9.2.0.3.0 - Productionhttp://download-west.oracle.com/docs/cd/B10501_01/server.920/a96540/wnsql.htm#972698

  • How to find column names in a table

    Am learning the basics of SQL Plus.
    Have entered the following query:
    SELECT * FROM t_ebb_session;
    This gives me the following output.
    USER_ID SESSION_ID LAST_ACCE
    However LAST_ACCE is not the full name of the column as I get 'Invalid column name when I use it in a select statement.
    How do I display the full name?

    By default, SQL*Plus will set the column display width of a character column to its size in the database, and the heading will be the column name in uppercase, truncated to fit that width if necessary. (There is a different rule for numeric columns.)
    You can override this with the COLUMN command, e.g:
    COLUMN some_column_name FORMAT a30 HEADING "Alternative Name"
    Check out the SQL*Plus documentation for all the COLUMN options.

  • How to select data from a table using a date field in the where condition?

    How to select data from a table using a date field in the where condition?
    For eg:
    data itab like equk occurs 0 with header line.
    select * from equk into table itab where werks = 'C001'
                                                      and bdatu = '31129999'.
    thanks.

    Hi Ramesh,
    Specify the date format as YYYYMMDD in where condition.
    Dates are internally stored in SAP as YYYYMMDD only.
    Change your date format in WHERE condition as follows.
    data itab like equk occurs 0 with header line.
    select * from equk into table itab where werks = 'C001'
    and bdatu = <b>'99991231'.</b>
    I doubt check your data base table EQUK on this date for the existince of data.
    Otherwise, just change the conidition on BDATU like below to see all entries prior to this date.
    data itab like equk occurs 0 with header line.
    select * from equk into table itab where werks = 'C001'
    and <b> bdatu <= '99991231'.</b>
    Thanks,
    Vinay
    Thanks,
    Vinay

  • How to select data from a table by passing document number from another tab

    How to select data from a table by passing document number from another table.
    for eg:-
    I want to display name, adres, region from ADRC table
    by using field delivery document number
    Kind Regards,
    Shanbagavalli.S

    Hi Shanbagavalli,
    There are multiple solutions to this questions a few i will try to answer and then you can take the best required for your requirements.
    **Consider that you have a Internal table having document number from other table..
    SELECT NAME ADRES REGION FROM ADRC
           INTO IT_ADRC
           FOR ALL ENTRIES IN IT_DOC
           WHERE DOCUMENT_NO = IT_DOC-DOCUMENT_NO.
    **Consider that you have 1 document number then
    SELECT NAME ADRES REGION FROM ADRC
         INTO IT_ADRC
         WHERE DOCUMENT_NO = W_DOCUMENT_NO.
    Hope this solves your problem.
    Regards,
    Kunjal

  • How to get column names in table maintenance dialog?

    I created a new Z table and created a maintanance dialog so that I can maintain the table through sm30. i don't see columns names on maintenance screen, just a "+" sign for each column! Could someone please tell me how to display column name?
    Thanks.
    Mithun

    Hello Mithun
    The column texts are taken from the field descriptions of the data elements used in your z-table. A "+" sign usually indicates that none of the field descriptions of the data element has been maintained.
    Regards
      Uwe

  • How to select data from cluster table

    hi experts,
                   I have a report which picks data from bseg (cluster table ) for a month report it is taking around 4 minutes to process.I feel it is not good when take the report after some months.
    how to select data from these table???how to declare itab for these cluster tables????can we include any search condition or any other kind of internal table???
    please advice.
    mani

    Hi Manikandan,
    The following code may be helpful to understand how to select the data from cluster table.
    Types: Begin of ty_kna1,
    Kunnr type kna1-kunnr,
    adrnr type kna1-adrnr,
    end of ty_kna1,
    begin of ty_bseg,
    belnr type bseg-belnr,
    kunnr type bseg-kunnr,
    end of ty_bseg,
    begin of ty_final,
    belnr type bseg-belnr,
    kunnr type kna1-kunnr,
    adrnr type kna1-adrnr,
    end of ty_final.
    Data: it_kna1 type table of ty_kna1,
    wa_kna1 type ty_kna1,
    it_bseg type table of ty_bseg,
    wa_bseg type ty_bseg,
    it_final type table of ty_final,
    wa_final type ty_final.
    Select kunnr adrnr from kna1 into table it_kna1 where....
    if sy-subrc = 0.
    select belnr kunnr into table it_bseg for all entries in it_kna1 where kunnr = it_kna1-kunnr.
    endif.
    sort it_kna1 by kunnr.
    Loop at it_bseg into wa_bseg.
    move wa_bseg-belnr to wa_final-belnr.
    read table it_kna1 into wa_kna1 with kunnr = wa_bseg-kunnr binary search.
    if sy-subrc = 0.
    move: wa_kna1-kunnr to wa_final-kunnr,
    wa_kna1-belnr to wa_final-belnr.
    endif.
    append wa_final to it_final.
    clear wa_final.
    endloop.
    Loop at it_final into wa_final.
    write: / wa_final-belnr, wa_final-kunnr, wa_final-adrnr.
    endloop.
    Reward if useful.
    Thankyou,
    Regards.

  • How do you select n rows and not the whole table

    Hi
    I would like to only select the first 50 rows from a table and not the entire table. how do i accomplish this
    Thanks

    Sayeed's example will work great if you don't care which 50 rows you get back. If you do, you can use an inline view to sort them first and get back a ranked result set:
    select *
      from (select whatever
            from table
           order by key desc
    where rownum <= 50

  • How to pass column name as a   values from one page  to another

    hi
    i have created a report(pivot) from a table
    SQL> SELECT * FROM T;
    C1  C2          C3 D                SEQ
    A   AA           2                    1
    A   AB           3                    2
    A   AC           2                    3
    B   AB           5                    4
    B   AC           6                    5
    SQL> SELECT C1
      2  ,NVL(MAX(CASE WHEN C2='AA' THEN C3 END),'') AA
      3  ,NVL(MAX(CASE WHEN C2='AB' THEN C3 END),'') AB
      4  ,NVL(MAX(CASE WHEN C2='AC' THEN C3 END),'') AC
      5  ,SUM(C3) FROM T GROUP BY C1;
    C1          AA         AB         AC    SUM(C3)
    A            2          3          2          7
    B                       5          6         11
    SQL>
    my requirement in Apex is like this(reverse)
    eg-
    when i click on cell values '2' then,it should return
    C1  C2          C3 D                SEQ
    A   AA           2                    1
    {quote}how to pass column name as a  values from one page to another
    for example i have to pass 'c2' as a value to next page{quote}for report pivot you can reffer below link
    Report
    Amu

    thanks for your reply
    i 'm doing what exactly you mention here .
    my problem here is
    i have 15 columns
    i am executing a query based on the values of the column(column name)  in the target page
    1)here i am passing(all) the column values to the next page-but  i want to pass only one column values(column name)
    when i click on any cell of that  column
    OR
    2)i can pass all column name to target page -there(in the target page) i can filter out
    i think option 1 would good if you filter out the unwanted columns
    Regards
    Amul

Maybe you are looking for

  • USING SEQUENCE IN PACKAGE SPEC

    I Want to Use Sequence.NEXTVAL & Sequence.CURRVAL throughout the package. How can i declare the global sequence variable and make them available for all the stored procedures inside the package ? Any help highly appreciated.. Thank you all in advance

  • .VOB for Quicktime X in Snow Leopard

    In Leopard I purchased the MPEG 2 and Pro upgrades for Quicktime. This allowed me to open files from DVD with the extension .VOB. I could play the file (with no audio) and that is all I wanted. I can longer do this with the new Quicktime in Snow Leop

  • Linking property nodes to two cursors in one graph

    Hello, I have got one graph with 2 cursors. And I need to by able to set the coordinates of each cursor by using property nodes. However, if I click right button mouse button - create - property node - cursor - cursor position - -then there are only

  • Making secure cookies with cfscript

    With the ability to make components in CF9, I thought we would get the ability to make cookies via cfscript.  Am I missing something or is this still not available?

  • Can I save my library content? Such as ratings, song plays, dates, etc...

    I need to un- then reinstall iTunes because I keep getting an error message when trying to update. The error message says something along the lines of "A program did not run as part of the setup. Contact support..." So following, the sites run-thru I