Unicode : cannot filter query with NVARCHAR2 column

Hi,
this is not a POL/SQL-Developer specific problem - but help would be appreciated.
Configuration Server :
NLS_CHARACTERSET WE8ISO8859P15
NLS_NCHAR_CHARACTERSET AL16UTF16
Client :
NLS_LANG GERMAN_GERMANY.WE8MSWIN1252
Column definition :
LEGALNAME NVARCHAR2 (255);
If i store for example a kyrillic name with the application i am able to finde the row searching the for the most current modification date and with correct kyrillic coded name.
but if i want to query by the Legalname - a)/b) does not work;
A) SELECT * FROM COMPANY WHERE LEGALNAME LIKE 'View, системой%';
B) SELECT * FROM COMPANY WHERE LEGALNAME LIKE N'View, системой%';
Do you have some hints???
kind regards
Karl
Edited by: [email protected] on 10-Mar-2009 07:05
Edited by: [email protected] on 10-Mar-2009 07:10
Edited by: Spinthma on 12-Mar-2009 03:23

Hello Sergiusz,
first thanks a lot for your taking time!!
it did not work for PL/SQL-Developer (applied both registry - all oracle homes and in environment)
but it worked for Oracle SQL-Developer according your last posting;
[m-1951097]
bq. {color:#808080}By default, SQL Developer uses the JDBC Thin driver. This driver does not recognize the ORA_NCHAR_LITERAL_REPLACE, but the oracle.jdbc.convertNcharLiterals property. Try to add this property to the <SQLDEV_HOME>\sqldeveloper\bin\sqldeveloper.conf file: \\ AddVMOption -Doracle.jdbc.convertNcharLiterals=true \\ Let us know if it helps. I have no time to test myself. \\ {color} \\ {color:#808080} \\ Sergiusz{color}
{color:#000000}Karl{color}
bq. {color:#808080} \\ {color}

Similar Messages

  • Attributes selected in query with no column type found! (solved)

    Dear JHeadstart Team,
    In the view object Editor I have two entity based attributes attrib1 and attrib2
    both with type Number. Both have aliases with type number(9,0)
    If attrib1 is null I want to have the value of attrib2.
    In the expression box I put: nvl(attrib1,attrib2)
    When I press the ok button I get the next error message.
    "Attributes selected in query with no column type found!
    Specifying column-type and precision results in better query performance at runtime.
    Do you wish to set default column type for these attributes? "
    When I say ok I get the next message:
    "An error occurred. Unable to apply all the wizard changes.
    Column type cannot be changed for Entity based attribute.
    Exception: oracle.jbo.dt.objects.JboExeption."
    The details button serves no extra information.
    Since both the attributes have the same type I thought the nvl commando should work.
    But what does the "no column type found" sentence mean?
    regards,
    Marcel.
    Message was edited by:
    user571204

    Thanks Jan,
    You've put me on the right track.
    I found out that this is only possible in the entity object class.
    So I have to check my limited java skills.

  • Creating Query with dynamic columns to show results

    Hi experts,
    I need to know how to create a query with dynamic columns. Meaning, I don't want to create a query with fixed columns representing the 12 periods of the fiscal year to show me actuals as the fiscal year proceeds.
    For example, if I am currently in the middle of period 3 (March) of a fiscal year, when I execute the query, I need it to automatically only show me the 'Actuals' for periods 1 and 2, without seeing the columns from periods 3 to 12 showing blank.
    Then when I am in the middle period 5 (May) the query should ONLY show me the columns for periods 1 to 4 'Actuals', no results should be shown for periods 5 to 12 yet, and I don't want to even see blank columns for period 6 to 12.
    How do I define my columns, to achieve this.
    Maximum points will be awarded.
    Thanks Everyone.

    Hi Josh,
    I'm having a little difficuluty understanding what should be included in my restricted key figures.
    The time characteristics that I have available to use are:
    0FISCPER3 (posting period)
    0FISCYEAR (fiscal year), currently using SAP EXIT to default current fiscal year.
    0FISCVARNT (fiscal year variant).
    In addition, I have the following characteristics available to be used in the columns:
    Value type (10)
    version (currently I'm using variable for it)
    Currency type (020)
    Currency (USD).
    Can you explain what my restricted key figure should be based on and how it should look.
    I tried to create a restircted key figure using 0AMOUNT, and 0FISCPER3. For 0FISCPER3  I created a range from 1 to previous period (using SAP EXIT that supplied previous period).I also had value type, version, currency type, and currency included in that restricted key figure.Then when I tried to drag 0FISCPER3 under the restricted key figure once again, it wouldn't let me, probably because I've already used 0FISCPER3 in the restricted key figure.
    Please let me know if my explanation is not clear.
    Your step by step help would be great.
    Thanks
    Edited by: Ehab Mansour on Sep 23, 2008 2:40 PM

  • ADF BC : "Attributes selected in query with no column type found! ..."

    hi
    Using JDeveloper 10.1.3.3.0, I have this "Selected in Query" attribute, "Never" updatable, in my Entity Object.
    The Entity Object is based on the SCOTT.EMP table and the attribute, called "BonusInfo", is defined using the expression " '[bonus info ' || (SAL * 2) || ']' ".
    see http://verveja.footsteps.be/~verveja/files/oracle/NoColumnTypeFoundApp-v0.01.zip
    While creating this Entity Object, I got a "Business Components" dialog that says:
    "Column type is not specified for this attribute. Specifying column-type and precision results in better query performance at runtime. Do you wish to set column type to VARCHAR2(255)?"
    I clicked "Yes".
    I also created two View Objects based on this Entity Object.
    In the "Create View Object" wizard "Step 4 of 7: Attribute Settings" I got a "Business Components" diaglog that says:
    "Attributes selected in query with no column type found! Specifying column-type and precision results in better query performance at runtime. Do you wish to set default column type for these attributes?"
    I clicked "Yes".
    Testing the query in "Step 5 of 7: SQL Statement" showed "Query is valid.".
    question:
    Why do I keep getting the message ...
    "Attributes selected in query with no column type found! Specifying column-type and precision results in better query performance at runtime. Do you wish to set default column type for these attributes?"
    ... in the View Object Editor if I click on different attributes?
    (I don't get such a message the first time I click on an attribute after opening the View Object Editor, but after that it keeps popping up each time I click on a different attribute, no matter what I answer "Yes", "No" or "Cancel".)
    many thanks
    Jan Vervecken

    Jan,
    BC needs the column type and precision so that we can allocate the correct JDBC buffer size; otherwise we would just allocate 2k per string.
    Blaise

  • Filter query with sub query using Dropdown box

    Dear Community,
    I have 2 queries
    1. Main Query with 2 fields:  Project | Project value
    2. Sub Query with 2 fields:  Project group | Project
    Project group can be belonging to number of projects and project can be belong to number of project group (Many to Many).
    My customer wants the main query will open without any filtering.
    When I choose project group from WAD dropdown box, the main query will filtering all the projects that belong to the project group.
    I create WAD; define dropdown box as sub query, and Analysis as main query.
    In the dropdown box I choose "data binding" char and create command "set selection state by binding" (project to project) but it doesnu2019t work. 
    I also try to do this by Replacement Path in the main query, but the variable requires the attribute will be ready for input.
    Thanks a lot
    Yaniv

    I am not sure about your comments on replacement path variable. Without having tried it, here is what I would have attempted:
    The main query needs to use a replacement path variable for Project that is replaced by the results of the sub-query. Sub-query would have a regular input variable for project group. (as a quick test, if you had one analysis item for main query with variable input enabled, it should prompt you to enter Project group).
    Now the drop-down needs to be associated with a javascript function. The javascript function needs to implement command "Set variable state" for the main query data provider to selected value of the drop-down.
    The drop-down should be associated with the sub-query data provider, just used to populate the list of values in drop-down.

  • Duplication in SELECT query with XML column

    Oracle 11gR1 RHEL 5
    Hi all,
    I am having a small problem. I am selecting some rows from an XML column with the following query and for each row I get a new set of columns that are displayed.
    select extractvalue(old_row,'/xml/WORK_ITEM_RID') WORK_ITEM_RID,
    extractvalue(old_row,'/xml/PARENT_RID') PARENT_RID,
    extractvalue(old_row,'/xml/ASSIGNED_TO') ASSIGNED_TO
    from audit_trail
    where audit_trail_rid = 177147;
    So instead of getting this:
    WORK_ITEM_RID PARENT_RID ASSIGNED_TO
    4045 4044 2930
    I get:
    WORK_ITEM_RID PARENT_RID ASSIGNED_TO
    4045
    WORK_ITEM_RID PARENT_RID ASSIGNED_TO
    4044
    WORK_ITEM_RID PARENT_RID ASSIGNED_TO
    2930
    How can I get rid of this?
    Thanks.
    Edited by: JrOraDBA on Feb 12, 2010 10:14 AM

    Here is what I got so far...but it keeps telling me that I am missing right parenthesis (ORA-00907) at the assigned_date TO_CHAR(....
    insert into iswrnew.WORK_ITEM (WORK_ITEM_RID, PARENT_RID, ASSIGNED_TO, WORK_ITEM_TYPE_RID, FPRC_APPLICATION_RID, REQUEST_RID, ASSIGNED_DATE, EST_START_DATE, EST_COMPLETION_DATE, SHORT_DESCRIPTION, ASSIGNED_BY, COMPLETED, COMPLETION_DATE, LONG_DESCRIPTION)
    SELECT t1.work_item_rid, t1.parent_rid, t1.assigned_to, t1.work_item_type_rid, t1.fprc_application_rid, t1.request_rid, t1.assigned_date, t1.est_start_date, t1.est_completion_date, t1.short_description, t1.assigned_by, t1.completed, t1.completion_date, t1.long_description
      FROM fprchr.audit_trail,
           XMLTable('/xml'
                    PASSING fprchr.audit_trail.old_row
                    COLUMNS
                    work_item_rid                  NUMBER PATH 'WORK_ITEM_RID',
                    parent_rid                     NUMBER PATH 'PARENT_RID',
                    assigned_to                 NUMBER PATH 'ASSIGNED_TO',
                    work_item_type_rid            NUMBER PATH 'WORK_ITEM_TYPE_RID',
                    fprc_application_rid        NUMBER PATH 'FPRC_APPLICATION_RID',
                    request_rid                    NUMBER PATH    'REQUEST_RID',
                    *assigned_date                TO_CHAR(assigned_date,'YYYY-MM-DD HH24:MI:SS') PATH    'ASSIGNED_DATE',*
                    est_start_date                TO_CHAR(est_start_date,'YYYY-MM-DD HH24:MI:SS') PATH    'EST_START_DATE',
                    est_completion_date          TO_CHAR(est_completion_date,'YYYY-MM-DD HH24:MI:SS') PATH    'EST_COMPLETION_DATE',
                    short_description            VARCHAR2(50) PATH 'SHORT_DESCRIPTION',
                    assigned_by                    NUMBER PATH    'ASSIGNED_BY',
                    completed                    VARCHAR2(1) PATH 'COMPLETED',
                    completion_date                TO_CHAR(completion_date,'YYYY-MM-DD HH24:MI:SS') PATH 'COMPLETION_DATE',
                    long_description            VARCHAR2(4000) PATH 'LONG_DESCRIPTION') t1
    WHERE audit_trail_rid = 177147;I think I'm missing something obvious but I just cannot see it. I need a fresh pair of eyes to look at this :)
    Thanks for all your help

  • Web Service to Query with 21 Columns and up to 1000 Rows

    Hi Experts,
    I have a web service to a query that returns a table of 21 Columns and up to 1000 Rows.
    I would like to display this data in an UI element such List view / Spreadsheet table.
    When I am doing so, I have the following issues:
    1. With the Spreadsheet table I can't set the header of the columns to the name of the column in the query.
    2. with both elements I would like to have a paging capability which I am not sure if is even possible.
    3. With both elements I am not able to set the width of each column as I need, and also not able to define the correct formating (date / string....)
    Is it possible to have what I am looking for with these elements? Or there are other UI elements for it?
    Thanks in advanced,
    DoronS

    Hi Charles,
    Actually, I am using Xcelsius as you said, and wanted to use it also as I mentioned since in the Web Intelligence I could not find the way to have a good filtering mechanism.
    Meaning, there is an option to add filters based on the fields that are in the query. But you can only choose one value per filter filed. If I want filter the data with more than one value it is impossible. Furthermore, there is no way to use free text filtering.
    Do you know in what BO Tool I will be able to provide such filtering capabilities?
    DoronS

  • NullReferenceException on GetSchemaTable() for query with cursor column

    Hi,
    I'm using Oracle.DataAccess.dll v 2.111.6.20 to run queries and read data using OracleDataReader directly. When I execute a query that returns cursors in one of its columns, e.g.
    select cursor(select 1 from dual) from dual
    and then call OracleDataReader.GetSchemaTable(), I get this:
    System.NullReferenceException: Object reference not set to an instance of an object.
    at Oracle.DataAccess.Client.OracleDataReader.GetOraDbType(Int32 i)
    at Oracle.DataAccess.Client.OracleDataReader.GetSchemaTable()
    at ...
    Any idea how to fix it or work around it? The app I'm working on has to handle aribitrary SQL queries, so I can't just rewrite the query to something that doesn't return cursors.
    Thanks,
    Maciek

    Did you run the query itself in the sql-plus?(select cursor(select 1 from dual) from dual)
    from this query the result is 1 in my database.How can it show the column schema of this result set?
    I guess you should send the whole code. GetSchemaTable() does not work with cursor structure.
    The GetSchemaTable method returns a DataTable property that contains the column schema for a DataReader. The DataTable contains one row for each field in the resultset. Each column maps to a property of the field in the resultset. The ColumnName property of the DataTable column is the name of the field's property, such as the ColumnName, DataType, ColumnSize, IsKeyColumn, or IsAutoIncrement property. The value of the DataTable column is the value of the field's property, such as the FirstName value for the ColumnName property.
    Edited by: sek.NET on Dec 19, 2008 2:01 PM
    Edited by: sek.NET on Dec 19, 2008 2:03 PM
    Edited by: sek.NET on Dec 19, 2008 2:16 PM

  • Advanced query with dynamic columns

    Hi All,
    I have a table with structure shown below. I need to pull data out of this table and the output should be in a format indicated by the select statement below. I have the following questions and I appreciate if someone could help.
    1. I need to extract 3 years(current year + 2 historical years) worth of data out of this table dynamically(I can't hardcode year). How can I modify the code below so that the select statement returns 3 years worth of data dynamically?
    2. Should I instead calculate each quarter in the select statement using "CASE"? Would this be a good idea and i wouldn't have to deal with the PIVOT function?
    3. The reason I am asking about #2 is because our application requires the out field names to be as CYQ1, CYQ2, CYQ3, CYQ4, LYQ1, LYQ2, LYQ3, LYQ4 etc.(LY = last year). I am not sure if this is possible to do in Pivot table. Could the method outlines
    in #2 be the best practice in my situation?
    Thanks in advance for your thoughts.
    DECLARE @Trans_Summary TABLE(
    [Account_ID] [int] NULL,
    [End_Date] DATE NULL,
    [Amount] [float] NULL,
    [Customer_ID] [int] NULL)
    INSERT @Trans_Summary VALUES(1, '03/31/2013', 100, 123)
    INSERT @Trans_Summary VALUES( 1, '01/31/2013', 200, 123)
    INSERT @Trans_Summary VALUES( 1, '06/30/2013', 100, 123)
    INSERT @Trans_Summary VALUES( 1, '09/30/2013', 100, 123)
    INSERT @Trans_Summary VALUES( 1, '12/31/2013', 100, 123)
    SELECT *
    FROM @Trans_Summary
    PIVOT(SUM([Amount])FOR End_Date IN ([2013-01-31], [2013-03-31], [2013-06-30], [2013-09-30], [2013-12-31])) AS TT

    Yes, you should always use CASE for pivots and never use the PIVOT keyword. The latter gives you somewhat shorter query text, for very little gain.
    As I understand what you are asking for, you can easily do it with CASE without dynamic SQL:
    DECLARE @year char(4) = '2013',
            @q1 = char(4) = '0331',
            @q2 = char(4) = '0630',
            @q3 = char(4) = '0930',
            @q4 = char(4) = '1231'
    SELECT Account_ID,
           SUM(CASE WHEN End_Date = @year + @q1 THEN Amount END) AS CYQ1,
           SUM(CASE WHEN End_Date = dateadd(YEAR, -1, @year + @q1) THEN Amount END) AS LYQ1,
    FROM   tbl
    GROUP  BY Account_ID
    Well, maybe that can be done with PIVOT as well, but I have never learnt how to use the keyword. It just looks difficult to me. And useless.
    Erland Sommarskog, SQL Server MVP, [email protected]

  • Filter query with Odata in UI5

    Hello All,
    Please suggest how to perform a filter operation for a similar query as below. The query runs good in browser but does nt turn up in UI5 (chrome security is disabled )
    http://gatewayhostname:8000/sap/opu/odata/sap/ZSALESORDER_SRV/SalesOrderset/?$filter=DocNumber eq '0000001234'
    UI5 Code :
    controller.js
    onInit: function() {
    var sServiceUrl = "http://gatewayIP:8000/sap/opu/odata/sap/ZSALESORDER_SRV/";
    var oModel = new sap.ui.model.odata.ODataModel( sServiceUrl , true, "<username>", "<password>");
    sap.ui.getCore().setModel(oModel);
    var oFilter = new Array();
    var input = sap.ui.getCore().byId("salesInput");
    var MaterialNumber = input.getValue();
    oFilter[0] = new sap.ui.model.Filter("ID", sap.ui.model.FilterOperator.EQ, + DocNumber + " " );
    sap.ui.model.FilterOperator.EQ, "");
    sap.ui.getCore().getElementById('POhdr').bindRows({
      path: '/<entity set to bound>/',
      filters: oFilter
    view.xml
    <content>
      <Label text="Number" />
          <Input
            id="salesInput"
            type="Number"
            placeholder="Enter Sales ORder Number"
            valueStateText="Enter a valid Sales ORder Number."
            value="{
              path : 'Mail',
              type : '.typeEMail'
            }" />
          <Button
            text="Get Sales Order"
            press="handleContinue" />
    </content>

    your filter should be something like this,
    var oFilter = new sap.ui.model.Filter('DocNumber',sap.ui.model.FilterOperator.EQ, '0000001234');
        sap.ui.getCore().getElementById('POhdr').bindRows({ 
                                  path : 'sPath,
                                  filters : [oFilter]
    to generate, http://gatewayhostname:8000/sap/opu/odata/sap/ZSALESORDER_SRV/SalesOrderset/?$filter=DocNumber eq '0000001234'

  • Hiearchical Data Query with Row Column Level

    Hi,
    I need urgent help in framing the Query to get the date in Hiearchical format.
    I tried but unable to:
    The format is:
    I have Table Test_A and the structure format is as
    GroupNo orderheaderNumber customername orderLineNumber address1 address2 address3 city country
    1001        101                       Arjun              12                        A1          A2          A3            C1     USA
    1001        102                        Dam              13                        A11         A12         A13       C11     AUS
    II have Table Test_B and the structure format is as
    product OrderHeaderNumber Item Price Dept
    SOAP     101                       1      32   10
    paste      101                       2     80   20
    shampoo 101                      3     100  30
    SOAP     102                     1     32   10
    paste      102                     2     80   20
    shampoo 102                     3     100  30
    I want to display data in Format as
    GroupNo                    OrderHeaderNumber  customername      orderLineNumber      address1 address2 address3 city country
    1001                          101                           Arjun                    12           A1           A2           A3           C1      USA
    product                     OrderHeaderNumber Item Price Dept
    SOAP                      101                          1      32      10
    paste                        101                          2      80      20
    shampoo                   101                          3      100   30 
    1001                          102                           Dam                     13           A11          A12      A12           C11      AUS
    SOAP                          102                          1      32      10
    paste                           102                           2      80      20
    shampoo                      102                           3      100    30 
    Any help will be needful for

    Hi,
    921311 wrote:
    Hi,
    I need urgent help in framing the Query to get the date in Hiearchical format.
    I tried but unable to:
    The format is:
    I have Table Test_A and the structure format is as
    GroupNo orderheaderNumber customername orderLineNumber address1 address2 address3 city country
    1001        101                       Arjun              12                        A1          A2          A3            C1     USA
    1001        102                        Dam              13                        A11         A12         A13       C11     AUS
    II have Table Test_B and the structure format is as
    product OrderHeaderNumber Item Price Dept
    SOAP     101                       1      32   10
    paste      101                       2     80   20
    shampoo 101                      3     100  30
    SOAP     102                     1     32   10
    paste      102                     2     80   20
    shampoo 102                     3     100  30
    I want to display data in Format as
    GroupNo                    OrderHeaderNumber  customername      orderLineNumber      address1 address2 address3 city country
    1001                          101                           Arjun                    12           A1           A2           A3           C1      USA
    product                     OrderHeaderNumber Item Price Dept
    SOAP                      101                          1      32      10
    paste                        101                          2      80      20
    shampoo                   101                          3      100   30
    1001                          102                           Dam                     13           A11          A12      A12           C11      AUS
    SOAP                          102                          1      32      10
    paste                           102                           2      80      20
    shampoo                      102                           3      100    30
    Any help will be needful for
    It's rude (and counterproductive) to say things like "urgent" in your message.
    What you're asking for is called a Master-Detail Report: you want rows from a Master table (test_a in this case), followed immediately by all related rows from a Detail table (table_b).  Report writers often have tools that make that kind of thing easy; SQL (and PL/SQL) do not.  You can do what you want in SQL, but you'll have to do a lot of work that a report writer would otherwise do for you.
    The simplest way to do this in SQL is to do a UNION of 2 queries:
    (1) a query involving just the master table, and
    (2) a query involving just the detail table
    When you do a UNION of 2 queries, both must produce the same number of columns, and the datatypes of the columns must be consistent.  You can include NULL columns to make both queries have the same number of columns, and conversion functions, such as TO_CHAR, so that (for example) you can put a NUMBER like groupno in the same column as a VARCHAR2 like product.
    Do you really want interior column headings, such as
    product                     OrderHeaderNumber Item Price Dept
    in the middle of the output?  You can do that in SQL, but it's more complicated.  You may need a 3rd branch of the UNION. to produce those rows.
    If you have trouble doing this, post your best attempt, and a specific question.
    Whenever you have any question, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all the tables involved, and the results you want from that data.
    Explain, using specific examples, how you get those results from that data.
    Always say what version of Oracle you're using (e.g. 11.2.0.2.0).
    See the forum FAQ: https://forums.oracle.com/message/9362002

  • LOV query with 2 columns in the display_value

    Hello,
    I need a LOV where 2 values let's say "First Name" and "Last Name" need to be combined into the display_value of this LOV.
    How can i do this?
    I have already tried the following but this doesn't seem to work:
    select FName & " " & LName display_value, PersonId return_value
    from tbl_Persons
    order by 1
    Thanks in advance,
    Bram.

    Use the ||..
    select FName ||' '|| LName display_value, PersonId return_value
    from tbl_Persons
    order by 1

  • Report on BEx query with 2 structures (one in rows and one in columns)

    Hi, experts! I have to make Crystall report on BEx query with 2 structures, one in columns (with KF's), and one in rows. Is it possible to create such report? Because when I create such report, I cant see fields in structures, only characteristics fields.
    Ok, I found samr problem in another thread. Sorry.
    Edited by: Mikhail Sychev on Dec 5, 2009 9:53 PM

    Hey Flora,
    Happy to hear that its working now.
    Answering your question, again its upto the connection and report format you are using. Based on your question i hope you your report output should be like this.
    You cannot map to two labels for the series, again this report format is possible only in cross tab through Webi. I would suggest you to concatenate the material and month in a dimension in webi like below.
    I have done the concatenation in excel level, i would suggest you to do that in webi. Try to reduce the formula as much in excel.
    or
    If you are using Query browser connection, then i would suggest you to create a separate report which will display the actual vs plan material wise, here you need to pass the material as a prompt.
    Hope this helps in clear, please revert me for any clarification.

  • Cannot Store Greek Characters in NVARCHAR2 columns

    Can someone please help.
    I have a table TEST with one column A of type NVARCHAR2(20) and when I try to insert the greek character Ω(Omega) - it gets stored as O instead.
    I am inserting using SQL Developer using the 'N' prefix and my environment is as follows:
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    NLS_CHARACTERSET = WE8MSWIN1252
    NLS_NCHAR_CHARACTERSET = AL16UTF16
    NLS_LANG setting on client side is ENGLISH_UNITED KINGDOM.WE8MSWIN1252.
    Why can I not insert greek characters with the above setup and what do I need to do/change in order to be able to insert greek characters in a database using the national characterset for storing unicode data ?

    Result of running SELECT a, dump(a) FROM TEST after insert an 'O' and an 'Ω' is as follows:
    A DUMP(A)
    O     Typ=1 Len=2: 0,79
    O     Typ=1 Len=2: 0,79
    I added a VARCHAR column, column B, there is no difference in what is getting stored in the NVARCHAR column when inserting 'Ω', result is below:
    INSERT INTO TEST (A, B)
    VALUES(N'Ω', 'Ω');
    SELECT a, dump(a, 1016), b, dump(b, 1016) FROM TEST;
    A DUMP(A, 1016) B DUMP(B, 1016)
    O     Typ=1 Len=2 CharacterSet=AL16UTF16: 0,4f     O     Typ=1 Len=1 CharacterSet=WE8MSWIN1252: 4f
    I'm I missing something here, since my understanding is that NVARCHAR2 columns should be able to store Unicode data ?

  • How to Filter a filtered Query with in a single query

    Hi all,
    Thanks in advance , Below is the query
    SELECT *
    FROM
    (SELECT MitarbeiterListe.IDMITARBEITERLISTE,
    MITARBEITERLISTE.JAHR ,
    MITARBEITERLISTE.mitarbeiter ,
    FIRMA.FIRMA ,
    Abteilung.Abteilung ,
    MitarbeiterStatus.mitarbeiterstatus ,
    MitarbeiterListe.OEVON ,
    MitarbeiterListe.OEBIS ,
    MitarbeiterListe.SAPPERSNR ,
    MitarbeiterListe.EKPreis
    ||'.00' "MitarbeiterListe.EKPreis",
    MitarbeiterListe.InfrastrukturkostenZuschlag
    ||'.00' "InfrastrukturkostenZuschlag",
    MitarbeiterListe.VerwaltungskostenZuschlag*100
    ||'%' "VerwaltungskostenZuschlag",
    MitarbeiterListe.Tagessatz ,
    MitarbeiterListe.Arbeitsort ,
    MitarbeiterListe.Titel ,
    MitarbeiterListe.Bemerkung ,
    BERECHTIGUNGEN.BENUTZERNAME
    FROM Firma
    INNER JOIN (Abteilung
    INNER JOIN MitarbeiterListe
    ON Abteilung.IDAbteilung = MitarbeiterListe.IDAbteilung
    INNER JOIN MitarbeiterStatus
    ON MitarbeiterListe.IDMITARBEITERSTATUS=MitarbeiterStatus.IDMITARBEITERSTATUS
    INNER JOIN BERECHTIGUNGEN
    ON MITARBEITERLISTE.IDBEARBEITER=BERECHTIGUNGEN.IDBENUTZER )
    ON Firma.IDFirma = MitarbeiterListe.IDFirma
    WHERE MitarbeiterListe.Jahr = :P9_SEL_JAHR
    AND Abteilung.IDOE =
    ( SELECT IDOE FROM OE WHERE OE = :P9_SEL_OE AND JAHR = :P9_SEL_JAHR
    ) temp
    Requirement is : we need to filter this query again based on column in select list . As using AND / OR operator we are not able to give desired result ..
    As in our case we are filtering the above query based on :P9_SEL_JAHR and :P9_SEL_OE variables ther is further requirement that we can also filter the filtered given query based on column vaue so we can get the specific columns value through bind variables and can use OR operator between them .but the problem is coming on merging the columns where case with the given query ..
    As for example if we use this afer the query
    OR/AND
    MitarbeiterStatus.mitarbeiterstatus = :P9_SL_MA_STAT OR
    MitarbeiterListe.OEVON = :P9_SL_OEVON OR
    MitarbeiterListe.OEBIS = :P9_SL_OEBIS OR
    MitarbeiterListe.SAPPERSNR = :P9_SL_SAPPERNR
    for the OR case the first query will be always true so it will not filter it baseed on column value and in case of AND the second query would return true ..so we would get filtered column value based on column bind varaible not the complete query result based on JAHR and OE bind variable.
    any way to satisfy these two cases within a single query ..suggesstions are welcomed and would be truly appreciated.
    Cheers
    sachin

    Not certain I've fully understood your required logic without examples, but I think you just need to use brackets:
    WHERE MitarbeiterListe.Jahr = :P9_SEL_JAHR
    AND Abteilung.IDOE =
    ( SELECT IDOE FROM OE WHERE OE = :P9_SEL_OE AND JAHR = :P9_SEL_JAHR)
    AND
    MitarbeiterStatus.mitarbeiterstatus = :P9_SL_MA_STAT
    OR MitarbeiterListe.OEVON = :P9_SL_OEVON
    OR MitarbeiterListe.OEBIS = :P9_SL_OEBIS
    OR MitarbeiterListe.SAPPERSNR = :P9_SL_SAPPERNR
    )

Maybe you are looking for

  • Safari launches without open window?

    Hi folks. I have upgraded to ML and have an odd issue with Safari.  Its in my login items and it launches on startup.  BUT now suddenly it does not open a window on startup.  I have a set of three sites in a folder which used to be my "startup sites"

  • Enhanced Package 3 for FAGL_ACTIVATE_OP

    Hello, We need to activate FAGL_ACTIVATE_OP transaction. We are looking for SAP notes and the solution is install EHP3. In EHP3 there are a lot of packages that we don't need. Anybody knows what support package do we need to update? We thing FI modul

  • Install files x6

    how do i install files on this phone? ive sent them to my phone via usb and pc and i cant find them now. it said e mass memory Solved! Go to Solution.

  • Function module extracter

    hi, i created a function module as an extractor. FUNCTION z_biw_get_data_ps005. ""Local Interface: *"  IMPORTING *"     VALUE(I_REQUNR) TYPE  SRSC_S_IF_SIMPLE-REQUNR *"     VALUE(I_DSOURCE) TYPE  SRSC_S_IF_SIMPLE-DSOURCE OPTIONAL *"     VALUE(I_MAXSI

  • How to migrate concurrent programs?

    Hi friends, I have used FNDLOAD for concurrent program migration.But the problem is that i can migrate only one concurrent program at a time.Is there any other way to migrate more than one concurrent program at a time?