Quotes in a column alias

Possible to have double quotes in a column alias in a SQL projection? Long story involving Apex, Anychart v5 and how Apex names data serie in XML generated for multiple Y axis.
This problem can be easily solved if I can add a double quote into a column alias. E.g.
select
  some_col as "COL1"" param1=123"
from dualNo comment about Apex using column labels for generating XML tag name-values... {noformat} ;-) {noformat}
Of course, the SQL parser does not like the above format at all.
Had a look at the SQL Reference guide and it does not say much in this regard. Seems like there's no workaround - correct?

Hi,
I can't think of any way to do that in SQL.
In SQL*Plus, you can use COLUMN ... HEADING, with doubled double-quotes:
COLUMN     dummy     FORMAT     A20     HEADING     "COL1"" param=123"
SELECT     *
FROM     dual;Output:
COL1" param=123
X
{code}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Similar Messages

  • Quote q' and column alias'

    Hi, I know I can do the following...
    select q'[The job Id for the ]'||job_title||q'['s is ]'||job_id "q[]" from jobs;
    but if I attempt to add an alias it fails with ora-00923 From keyword...
    select q'[The job Id for the ]'||job_title||q'['s is ]'||job_id "q[]" as "Job Description" from jobs;
    Is this possible or not?
    Thanks.
    James.

    Hi,
    James Gordon wrote:
    Hi the q'[ is to define a different quoting character to allow imbedded quotes rather then using two single quotes.
    So rather than 'President''s' I can write q'[President's]' "q[]".Not exactly. Instead of
    'President''s'you can write
    q'[President's]'Nothing more is required. When a string literal is preceded by Q, the first character after the opening single-quote (or its mirror-image, if it has one, as it does in this case) will be expected to end the string.
    If you add "q[]" after that,
    q'[President's]'   "q[]"it's equivalent to saying
    q'[President's]'   AS "q[]"The keyword AS is optional before column aliases.
    I wanted to see if you can combine the second example with alising the column at the same time.Since "q[]" is already an alias, the answer is no, because a column can have only one alias.
    I realise that it might look like an alias.The reason why it looks like an alias is because it is an alias. What is "q[]", if not an alias?
    If you want the alias to be "Title" (capital T, then all small letters) then say
    SELECT  q'[President's]'   AS "Title"
    FROM    dual;

  • Column alias error in a query of views

    Hi
    I was trying to workout this query
    create view dept_sal as
    select d.department_name,sum(e.salary)
    from departments d left outer join employees e
    on d.department_id= e.department_id
    group by d.department_name;
    and i recieved this error message .............
    Error at Command Line:2 Column:25
    Error report:
    SQL Error: ORA-00998: must name this expression with a column alias
    00998. 00000 - "must name this expression with a column alias"
    *Cause:   
    *Action:
    I tried to put an alias for sum(e.salary) function and it worked but i dont understand why it is required or is the problem somewhere else and why an alias is needed here ???
    Actually the book hasnt specfied the need for an alias at this place ...so i wanted to know why am getting this error ..
    create or replace view dept_sal as
    select d.department_name,sum(e.salary) as d_sal
    from departments d left outer join employees e
    on d.department_id= e.department_id
    group by d.department_name;
    view DEPT_SAL created.
    Also i wanted to know if i can start a thread each time i want have a problem or can i add my questions to somebody
    else's thread ..
    Thanks
    Jayshree

    Hi, Jayshree,
    to_learn wrote:
    Hi
    I was trying to workout this query
    create view dept_sal as
    select d.department_name,sum(e.salary)
    from departments d left outer join employees e
    on d.department_id= e.department_id
    group by d.department_name;
    and i recieved this error message .............
    Error at Command Line:2 Column:25
    Error report:
    SQL Error: ORA-00998: must name this expression with a column alias
    00998. 00000 - "must name this expression with a column alias"
    *Cause:   
    *Action:
    I tried to put an alias for sum(e.salary) function and it worked but i dont understand why it is required or is the problem somewhere else and why an alias is needed here ???Every column in a table or view must have a unique name. If you don't explicitly specify a name for the output column, Oracle will try to generate one based on the input expression. If the name does not follow the normal rules for identifiers (one of which is that the name can't contain special symbols, like parentheses) then the name must be enclosed in double-quotes.
    Notice that these rules are a little different from the rules about result sets. In the result set of a main query, for example, column names do not have to be unique, and a system-generated name like 'SUM(E.SALARY)" is acceptable.
    Actually the book hasnt specfied the need for an alias at this place ...so i wanted to know why am getting this error ..I can't see which book you're reading. Post a quote. If the book is available on line, post a link, too.
    create or replace view dept_sal as
    select d.department_name,sum(e.salary) as d_sal
    from departments d left outer join employees e
    on d.department_id= e.department_id
    group by d.department_name;
    view DEPT_SAL created.That's the right way to do it.
    Also i wanted to know if i can start a thread each time i want have a problem or can i add my questions to somebody
    else's thread ..It's better to start your own thread.

  • Group by with column alias does not work?

    Hello,
    The column alias is not working in the group clause?
    select col1,col2-col3 "col23", sum(col4)
    from table1
    group by col1,col23
    Error is col23 is invalid identifier.
    Thank you.

    I guess it's the double quotes around bonus:
    SQL> select empno, deptno, sum(bonus)
      2  from
      3  (
      4     select empno, (sal + 500) bonus, deptno
      5     from emp
      6  )
      7  group by empno, deptno
      8  ;
                   EMPNO               DEPTNO           SUM(BONUS)
                    7900                   30                 1450
                    7369                   20                 1300
                    7499                   30                 2100
                    7521                   30                 1750
                    7566                   20                 3475
                    7654                   30                 1750
                    7698                   30                 3350
                    7782                   10                 2950
                    7788                   20                 3500
                    7839                   10                 5500
                    7844                   30                 2000
                    7876                   20                 1600
                    7902                   20                 3500
                    7934                   10                 1800
    14 rows selected.

  • Column alias declaration in package.

    Hi,
    <br><br>
    OS - XP
    <br><br>
    Version - Oracle Database 10g Express Edition Release 10.2.0.1.0 - Product
    <br><br>
    How do I declare a column alias in a cursor?
    <br><br>
    I have the following in a package procedure and get the following error
    <br><br>
    Error(107,35): PLS-00302: component 'EMAIL_FROM' must be declared
    <br><br>
    I have hilighted what I assume is the offending lines, but the error is pointing to the lines in bold italics towards end of code.
    <br><br>
      FOR c2 IN
        (SELECT b.eml_id
              , a.email "email_from"
    , to_address.email "email_to"
              , to_address.subject
              , to_address.header
              , to_address.footer   
           FROM mySchema.table_1 a
          HTMLDB_MAIL.SEND(p_to   => c2.email_from  
                         , p_from => c2.email_to
    ...<br><br>
    Thank You<br>
    Ben
    Message was edited by:
    Benton

    You dont need double quotes " "
    (SELECT b.eml_id
              , a.email email_from
              , to_address.email email_to
              , to_address.subject
              , to_address.header
              , to_address.footer   
           FROM mySchema.table_1 a    
              , mySchema.table_4 b
              , mySchema.table_5 c
              , (SELECT e.eml_id          

  • Using column alias with CASE

    It is possible to use a column alias with a CASE in a SELECT? e.g. I have this code
    SELECT
    CASE WHEN categ_1 = 'BASIC' THEN total_1 WHEN categ_2 = 'BASIC' THEN total_2 END
    FROM totalsBut the results column name comes out as CASEWHENCATEG_1='BASIC'THENTOTAL_1WHENCATEG_2='BASIC'THENTOTAL_2END
    I want to use an alias but can't get it to work with the CASE. I guessed at
    SELECT
    CASE WHEN categ_1 = 'BASIC' THEN total_1 WHEN categ_2 = 'BASIC' THEN total_2 END 'alias'
    FROM totalswhich doesn't work.

    Try without the single quotes after END
    Christopher Soza
    Oracle BI DBA
    Orix Consultancy Services Ltd
    b: http://sozaman.blogspot.com

  • Issue with Column Alias Name in a SELECT statement

    I am trying to run sql query(IN ORACLE) to get the data from a remote database(TERADATA). The query is
    select (table1.exp_date - table1.setup_date) AS day_diff,
    CASE
    WHEN day_diff = '0'
    THEN 'YES'
    WHEN day_diff > '0'
    THEN 'NO'
    ELSE 'Unknown'
    END AS alias_type
    from table1@remote_database_name;
    The query is running fine when I run it in TERADATA environment directly without the remote database link since it is not necessary. If I run the above query in Oracle I am getting an error ORA-00904: invalid identifier.(this error is pointing to day_diff alias name)
    Can anyone help me with this?
    Thanks

    The Column alias can be used in the ORDER BY clause, but not other clauses,like WHERE clause, in the query.
    Use..
    select (table1.exp_date - table1.setup_date) AS day_diff,
    CASE
    WHEN (table1.exp_date - table1.setup_date) = '0'
    THEN 'YES'
    WHEN (table1.exp_date - table1.setup_date) > '0'
    THEN 'NO'
    ELSE 'Unknown'
    END AS alias_type                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • How to Include Double Quotes in the Column Name

    Hi,
    I am using Dynamic Sql for creating the columns of a table. I am getting a situation where the user will give the double quotes for some column names. So,Can we add double quote to the column name.
    Thanks in advance.
    Regards,
    Alok Dubey

    http://download.oracle.com/docs/cd/B28359_01/server.111/b28286/sql_elements008.htm
    However, neither quoted nor nonquoted identifiers can contain double quotation marks or the null character

  • Comma in report column alias breaking PDF Printing?

    It appears that some (but not all) special characters (e.g., a comma) in a report column alias causes an error when using PDF printing under "Print Attributes" for reports.
    This query works fine:
    select sysdate as "Date Today" from dual
    But the query below causes the error "Adobe could not open 'report[1].pdf' because it is either not a supported file type or because the file has been damaged...":
    select sysdate as "Date, Today" from dual
    Does anyone know a work-around? My real alias is "Lastname, Firstname" so I would like to keep the comma!
    We're using APEX 3.0.1 and PDF printing with Apache FOP.
    Thanks ahead of time.
    Cindy

    Hi Cindy,
    why not use the "Heading" property of a report column to show a speaking column heading? The column alias isn't really intended for that purpose.
    Set the "Heading Type" to "Custom" then you are able to change them for each column.
    Patrick
    My APEX Blog: http://inside-apex.blogspot.com
    The ApexLib Framework: http://apexlib.sourceforge.net
    The APEX Builder Plugin: http://sourceforge.net/projects/apexplugin/

  • Column alias

    Hi,
    in oracle express, on a report querry region I give this :
    select 'PINS - # of times an item in the library cache was executed - '||
    sum(pins),
    'RELOADS - # of library cache misses on execution steps - '||
    sum (reloads),
    'RELOADS / PINS * 100 = '||round((sum(reloads) / sum(pins) *
    100),2)||'%'
    from v$librarycache
    But I receive :
    1 error has occurred
    query column #1 ('PINS-#OFTIMESANITEMINTHELIBRARYCACHEWASEXECUTED-'||SUM(PINS)) is invalid, use column alias
    Any idea ? Any help ?
    Many thanks.

    You need to define column aliases.
    SQL> SELECT 'PINS - # of times an item in the library cache was executed - ' || SUM (pins) AS LibRatio,
      2         'RELOADS - # of library cache misses on execution steps - ' || SUM (reloads) AS MissRatio,
      3         'RELOADS / PINS * 100 = ' || ROUND ((SUM (reloads) / SUM (pins) * 100), 2) || '%' AS Ratio
      4    FROM v$librarycache
      5  ;
    LIBRATIO                                                                                               MISSRATIO
    PINS - # of times an item in the library cache was executed - 10455253                                 RELOADS - #

  • Column alias name

    Hi All,
    can we use the column alias name in expression in a select query?
    example,
    select (10+20) as col1, (col1+30) as col2 from dual;
    when i execute the above query, i am getting "col1 is invalid identifier".
    can please some one answer to my query OR is there any other way to get the answer to my query?

    As you found out, you can't do it that way... What you can do is something like
    select (col1+30) as col2
      from (select 10+20 as col1
                  from  dual
    )

  • Column alias results in ORA-00972

    Hi,
    I am using Eclipselink v1.0.2 on glassfish.
    I have a query where I have set the maxResults to 1 like so:
    this.entityManager.createQuery("SELECT t FROM Tbl t where t.name='271040300018**'")
                        .setMaxResults(1)
                        .getResultList();
    The resultant query contains a column alias that has more than 30 characters which causes an ORA-00972 error. I've noticed that if I don't call setMaxResults the query does not contain aliased column names. Is there a way to either make sure that the query generator does not generate invalid column names or get it to not alias columns when I have a result set limit?
    Thanks,
    Drew
    Edited by: user10816727 on Jan 27, 2009 1:02 PM

    Here is the generated query with the problematic aliases bolded. Note that I cannot change the length of the non aliased column names as a workaround.
    Thanks,
    Drew
    SELECT * FROM (SELECT /*+ FIRST_ROWS */ a.*, ROWNUM rnum FROM (SELECT new_drug_status AS new_drug_status1, message AS message2, message_stop_date AS message_stop_date3, termination_date AS termination_date4, cms_drug_status AS cms_drug_status5, drug_status_ovrd AS drug_status_ovrd6, min_rx_qty AS min_rx_qty7, max_rx_qty AS max_rx_qty8, min_rx_days AS min_rx_days9, max_rx_days AS max_rx_days10, max_dose AS max_dose11, min_age AS min_age12, max_age AS max_age13, min_age_dob_opt AS min_age_dob_opt14, max_age_dob_opt AS max_age_dob_opt15, sex_restriction AS sex_restriction16, qty_dsup_compare_rule AS qty_dsup_compare_rule17, max_qty_over_time AS max_qty_over_time18, rx_qty_opt_multiplier AS rx_qty_opt_multiplier19, specialty_drug_ind AS specialty_drug_ind20, ssb_copay_tier AS ssb_copay_tier21, msb_copay_tier AS msb_copay_tier22, bga_copay_tier AS bga_copay_tier23, gen_copay_tier AS gen_copay_tier24, bng_sngl_inc_exc_ind AS bng_sngl_inc_exc_ind25, bng_multi_inc_exc_ind AS bng_multi_inc_exc_ind26, bga_inc_exc_ind AS bga_inc_exc_ind27, gen_inc_exc_ind AS gen_inc_exc_ind28, merge_defaults AS merge_defaults29, otc_chk_flag AS otc_chk_flag30, physician_list AS physician_list31, physician_specialty_list AS physician_specialty_list32, alternate_price_schedule AS alternate_price_schedule33, alternate_copay_sched AS alternate_copay_sched34, max_rxs_patient AS max_rxs_patient35, max_rxs_time_flag AS max_rxs_time_flag36, copay_network_ovrd AS copay_network_ovrd37, max_days_supply_opt AS max_days_supply_opt38, max_days_over_time AS max_days_over_time39, reject_only_msg_flag AS reject_only_msg_flag40, max_qty_per_fill AS max_qty_per_fill41, days_supply_opt_multiplier AS days_supply_opt_multiplier42, recalc_price_schedule AS recalc_price_schedule43, alternate_pricing_strategy AS alternate_pricing_strategy44, alternate_copay_strategy AS alternate_copay_strategy45, max_days_over_time_drug_list AS max_days_over_time_drug_list46, max_qty_over_time_drug_list AS max_qty_over_time_drug_list47, max_rxs_patient_drug_list AS max_rxs_patient_drug_list48, max_price_patient_drug_list AS max_price_patient_drug_list49, max_rxs_time_flag_mult AS max_rxs_time_flag_mult50, max_price_patient AS max_price_patient51, max_price_time_flag AS max_price_time_flag52, max_price_patient_opt AS max_price_patient_opt53, max_price_patient_split_opt AS max_price_patient_split_opt54, max_price_patient_pricing_opt AS max_price_patient_pricing_opt55, max_price_patient_split_copay AS max_price_patient_split_copay56, max_price_patient_copay AS max_price_patient_copay57, misc_data_1 AS misc_data_158, misc_data_2 AS misc_data_259, misc_data_3 AS misc_data_360, misc_data_4 AS misc_data_461, misc_data_5 AS misc_data_562, user_id_created AS user_id_created63, gpi_exception_list AS gpi_exception_list64, pharmacy_country_code AS pharmacy_country_code65, generic_product_id AS generic_product_id66, pharmacy_state AS pharmacy_state67, effective_date AS effective_date68, process_rule AS process_rule69, apply_on_group_renewal_ind AS apply_on_group_renewal_ind70 FROM PHIDBA.gpi_exception_lists WHERE (generic_product_id = ?)) a WHERE ROWNUM <= ?) WHERE rnum > ?
         bind => [271040300018**, 1, 0]

  • Alternative to Column alias in a Where clause

    This question is related to earlier thread: https://forums.oracle.com/thread/2578735
    The below query gives me millions of records which is unacceptable from performance point of view. I am only interested in Tickets that are closed in a particular week. I cannot use closed_date in the inner query as closed_date >= '08/18/2013' AND closed_date < '08/24/2013' because close_date is column alias. I can't put it in the where condition of parent query because it makes no sense because by the time control raches to WHERE condition of parent query the subquery would have already fetched millions of records.
    Any alternative to this?
    SELECT  b.ticket_id, b.ticket_status, b.created_date, b.closed_status, b.closed_date 
      FROM 
      (SELECT  ticket_id, ticket_status, created_date, lead(ticket_status) over (partition BY ticket_id order by created_date) AS closed_status, lead(created_date) over (partition BY ticket_id order by created_date) AS closed_date 
      FROM cc_ticket_history 
      WHERE ticket_status IN ('NEW', 'REOPENED', 'CLOSED')                                   /* AND closed_date >= '08/18/2013' AND closed_date < '08/24/2013'      gives error */
      ) b 
      WHERE b.ticket_status != 'CLOSED' and b.closed_status = 'CLOSED                 /*AND b.closed_date >= '08/18/2013' AND b.closed_date < '08/24/2013'     -- makes no sense */';
    Ticket_ID
    TICKET_STATUS
    CREATED_DATE
    CLOSED_STATUS
    CLOSED_DATE
    D21207155
    NEW
    06/28/2013 17.28.59.000000000
    CLOSED
    06/28/2013 18.54.23.000000000
    D21207155
    REOPENED
    07/02/2013 19.55.04.000000000
    CLOSED
    07/02/2013 23.06.16.000000000

    Ora-aff wrote:
    Point Noted.
    It's not just a point, it's a fundamental bug in the code.
    Consider this...
    SQL> ed
    Wrote file afiedt.buf
      1  select 'Wrong' from dual
      2* where '03/18/2012' > '02/15/2013'
    SQL> /
    'WRON
    Wrong
    Comparing strings is not the same as comparing dates.
    SQL> ed
    Wrote file afiedt.buf
      1  select 'Wrong' from dual
      2* where to_date('03/18/2012','MM/DD/YYYY') > to_date('02/15/2013','MM/DD/YYYY')
    SQL> /
    no rows selected

  • Problem with column alias: Unknown column 'avg_rating' in 'where clause'

    Hello,
    I have a basic sql statement as follows:
    SELECT
    e.establishment_id,
    e.establishment_name,
    avg(r.rating) avg_rating
    FROM
    establishment e,
    rating r,
    comment com,
    establishment_country ec,
    country_ref cou
    where
    etc...
    and avg_rating >= 1
    and 0=0
    group by e.establishment_id
    order by e.establishment_idI have used a column alias for "avg(r.rating)" and named it "avg_rating".
    It works in my Mysql Query browser without problem but when I run it from Java I get this:
    java.sql.SQLException: Unknown column 'avg_rating' in 'where clause'
        at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2928)
        at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1571)
        at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1666)
        at com.mysql.jdbc.Connection.execSQL(Connection.java:2988)
        at com.mysql.jdbc.Connection.execSQL(Connection.java:2917)
        at com.mysql.jdbc.Statement.executeQuery(Statement.java:824)
        at org.jboss.resource.adapter.jdbc.WrappedStatement.executeQuery(WrappedStatement.java:145)
        at arcoiris.SearchSessionBean.performSearch(SearchSessionBean.java:73)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.jboss.invocation.Invocation.performCall(Invocation.java:345)
        at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:214)
        at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:149)
        at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:154)
        at org.jboss.webservice.server.ServiceEndpointInterceptor.invoke(ServiceEndpointInterceptor.java:54)
        at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:48)
        at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:106)
        at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:335)
        at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:166)
        at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:153)
        at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:192)
        at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)
        at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:624)
        at org.jboss.ejb.Container.invoke(Container.java:873)
        at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:415)
        at org.jboss.ejb.plugins.local.StatelessSessionProxy.invoke(StatelessSessionProxy.java:88)
        at $Proxy172.performSearch(Unknown Source)
        at arcoiris.SearchManagedBean.performSearch(SearchManagedBean.java:171)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:126)
        at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:72)
        at javax.faces.component.UICommand.broadcast(UICommand.java:312)
        at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:267)
        at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:381)
        at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:75)
        at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
        at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90)
        at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
        at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
        at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159)
        at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
        at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
        at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
        at java.lang.Thread.run(Thread.java:595)Can anyone help please?
    Thanks in advance,
    Julien Martin.

    I am having the similiar problem, the query in java creator IDE works fine after i upgraded the J-connector and changed DataSource type for MySQL to mysql-connector-java-5.0.4-bin.jar. but still i cannot bind any control in the form to the aliased column. this is really frustrating. can anyone from Sun Developer explain?
    THX

  • Database column alias problem

    When joining the firstname and surname fields in my inital SQL query of my interactive report i.e
    INITCAP(INDSNAME)||' '||INITCAP(INDFNAME) AS FULLNAME,
    When clicking through to the record detail page I am getting the following error from the page item where in the source I am specifying FULLNAME under Source value or expression
    Column FULLNAME not found in table MYTABLENAME
    How can I get around this?
    Many Thanks

    Hi Bas
    Thanks - it will just be a view as basically I just want to print the data via jasper
    In my IA report under column attributes there is one called FULLNAME which is derived from INITCAP(INDSNAME)||' '||INITCAP(INDFNAME) AS FULLNAME,
    So how can I get the data displayed in the FULLNAME column in the IA report into a single record view.  At the moment my IA report the Link Column is currently linked to a 'Link to custom target'
    the target is a 'Page in this Application'  in this case page 9
    and in Item1 under Name the value is P9_ROWID and the value is #ROWID#
    Database column alias problem 

Maybe you are looking for

  • Airport Extreme still not showing up in Airport Utility

    So after my own router wasn't working, a family member passed their Airport Extreme down to me and cited Apple's extremely easy set-up. Plug in the power, plug in the ethernet cable, then we should be good to go. The green light is on (not flashing)

  • View mail messages as plain text by default in Mail (7.0)

    It appears as if Apple removed this very useful feature. I prefer to look at e-mail in plain text. It gets rid of ridiculous formatting choices and inline images and most importantly, web bugs. So I've always set my mail clients to disable any kind o

  • Why wouldn't indexOf ArrayList function work?

    I can't post EXACT code since it's company information. I will try to replicate it here though so please bare with me. BEAN: public class Product { String name; String soldDate; Long id; // set and get functions for each also }Product are in a databa

  • Adobe Acrobat Distiller XI pdf-help file

    Hello, Thank you for answer to the Acrobat XI Pro pdf help file. I forgot to ask, if a similar file for Adobe Acrobat Distiller XI is available. Regards

  • Photoshop CS6: cmd+F1: how to change that keyboard shortcut?

    I want to change the keyboard shortcut cmd+F1. it's set in Preferences to change the background color to black. I looked in Preferences to see if I can set it to none, and in PS keyboard shortcuts. But in the keyboad shortcut menu, preferences is not