Parameter query returns no results

Hello

I need a parameter query to return all customers for the locality.

The name of the locality is given as a parameter.

The problem with me is that the query is not even a single line when it should return at least fifty!. Locality is not unique, and there are a lot of consumers with the same value for the LOCALITY. The query I use is given below:

SELECT ROWID, of GEOM FROM NOT_MY_CONSUMERS WHERE'= a ' and LOCALITY =: var1;

When I try to use an ObjectID as parameter the result is returned property. ObjectID is unique for each line and thus a single row is returned
in the result.

Is it not possible to use the parameter query for non-unique settings?

Help, please!
I'm stuck with my project.

Thank you very much!!

Neha

Published by: Neha39 on March 16, 2012 04:53

Published by: Neha39 on March 16, 2012 05:15

As your column data type, please use this one:

SELECT ROWID, of GEOM FROM NOT_MY_CONSUMERS WHERE'= a ' and trim (TOWN) =: var1;

Tags: Database

Similar Questions

  • query returns different results depends on the length of the day

    Hello!

    I have a query:

    INSERT /*+ APPEND */ INTO pwa_process (
    id,
    id_session,
    id_customer,
    s2k_account,
    service_seq_num,
    msisdn,
    id_tariff,
    contract_end_date,
    last_contract_date,
    next_available_contract_date,
    tariff_name,
    description,
    description_long,
    imei_old,
    activation_date,
    id_customer_number,
    arpu,
    value0,
    value1,
    value2,
    value3,
    value4,
    value5,
    id_pricing_plan)
    WITH msisdns AS (SELECT msisdn ms FROM customer_number cn
    JOIN customer_s2kaccount cs ON cn.s2k_account = cs.s2k_account AND cs.id_customer = v_customerId)
    SELECT
    seq_pwa_process.NEXTVAL,
    v_sessionId,
    customer_s2kaccount.id_customer,
    customer_s2kaccount.s2k_account,
    customer_number.service_seq_num,
    msisdn.msisdn,
    tariff.id,
    NVL(CASE WHEN date_contract_end IS NULL AND le_contract_end_date IS NOT NULL OR (date_contract_end < le_contract_end_date)
             THEN le_contract_end_date
             ELSE NVL(date_contract_end, ADD_MONTHS(customer_number.date_start, customer_number.ada_availability))
        END, TO_DATE('01.01.1970', 'DD.MM.YYYY')) contract_end_date,
    CASE WHEN NOT customer_number.date_first_activation IS NULL AND customer_number.date_first_activation >      (CASE WHEN ada_priority = 1 THEN ada_date_pwa
            WHEN ada_priority <> 1 AND (date_pwa IS NULL AND exchange_date IS NOT NULL OR date_pwa < exchange_date) 
            THEN exchange_date 
            ELSE date_pwa 
      END) 
         THEN customer_number.date_first_activation
         ELSE   (CASE WHEN ada_priority = 1 THEN ada_date_pwa
            WHEN ada_priority <> 1 AND (date_pwa IS NULL AND exchange_date IS NOT NULL OR date_pwa < exchange_date) 
            THEN exchange_date 
            ELSE date_pwa 
      END) 
    END last_contract_date,
    ADD_MONTHS(CASE WHEN NOT customer_number.date_first_activation IS NULL AND customer_number.date_first_activation > NVL(  (CASE WHEN ada_priority = 1 THEN ada_date_pwa
            WHEN ada_priority <> 1 AND (date_pwa IS NULL AND exchange_date IS NOT NULL OR date_pwa < exchange_date) 
            THEN exchange_date 
            ELSE date_pwa 
      END) ,
                                                                                                                           NVL(customer_number.date_first_activation, NVL(customer_number.date_start, customer_number.date_effective)))
                    THEN customer_number.date_first_activation
                    ELSE NVL(  (CASE WHEN ada_priority = 1 THEN ada_date_pwa
            WHEN ada_priority <> 1 AND (date_pwa IS NULL AND exchange_date IS NOT NULL OR date_pwa < exchange_date) 
            THEN exchange_date 
            ELSE date_pwa 
      END) , NVL(customer_number.date_first_activation, NVL(customer_number.date_start, customer_number.date_effective)))
               END, customer_number.ada_availability - DECODE(NVL(customer_number.current_contract_type, 0), 2, DECODE(customer_number.reduced_contract_used, 0, NVL(customer_number.el_contract_calculated_reduc,0), 0), 0)) next_available_contract_date,
    tariff.name_ada,
    DECODE(msisdn_group.def_column, 0, msisdn.value0, 1, msisdn.value1, 2, msisdn.value2, 3, msisdn.value3, 4, msisdn.value4, 5, msisdn.value5, msisdn.value0),
    msisdn.value0 || ';' || NVL(msisdn.value1, '') || ';' || NVL(msisdn.value2,'') || ';' || NVL(msisdn.value3,'') || ';' || NVL(msisdn.value4, '') || ';' || NVL(msisdn.value5, ''),
    customer_number.imei,
    NVL(customer_number.date_first_activation, NVL(customer_number.date_start, customer_number.date_effective)) date_start,
    customer_number.id,
    NVL(s2kaccount.arpu1,0),
    msisdn.value0,
    msisdn.value1,
    msisdn.value2,
    msisdn.value3,
    msisdn.value4,
    msisdn.value5,
    customer_number.id_pricing_plan
    FROM customer_s2kaccount
    JOIN customer_number ON customer_number.s2k_account = customer_s2kaccount.s2k_account AND customer_number.service_state = 'AB'
    JOIN msisdn ON msisdn.msisdn = customer_number.msisdn
    JOIN TABLE(CAST(v_tmp_table AS ADA.NUMBER_TABLE)) ids ON ids.column_value = msisdn.id
    JOIN msisdn_group ON msisdn_group.id = msisdn.id_msisdn_group
    JOIN pricing_plan ON pricing_plan.id = customer_number.id_pricing_plan AND pricing_plan.is_for_pwa = 1
    JOIN tariff ON tariff.name = pricing_plan.id
    JOIN s2kaccount ON s2kaccount.s2k_account = customer_number.s2k_account
    LEFT
    JOIN (SELECT msisdn, exchange_date, ADD_MONTHS(exchange_date, MAX(prolongation)) le_contract_end_date
    FROM loyalty_exchange a, msisdns
    WHERE a.msisdn = msisdns.ms AND exchange_date >= ALL (SELECT exchange_date FROM loyalty_exchange b WHERE b.msisdn = a.msisdn)
    GROUP BY msisdn, exchange_date) le ON le.msisdn = customer_number.msisdn
    WHERE customer_s2kaccount.id_customer = v_customerId;
    This query returns different results in the morning (09:00) and afternoon (16:00) on the same database for the same input data (I have prepared a script to test).
    Oracle 9.2.0.6 @solaris
    I checked the query plans, but they look the same in the morning and the afternoon. I don't know where to look for a problem/bug.
    Please help me with suggestions. is in bug with join ansi? or a left outer join?

    Published by: batonoff on February 16, 2009 16:56

    Published by: batonoff on February 16, 2009 16:58

    Published by: batonoff on February 16, 2009 17:00

    I recommend you post your declaration in the {} code tags (without the spaces) so that we can actually read.

    You are absolutely positive that nothing has changed on the data between when you run in the morning and in the afternoon?

  • SQL query return different result 11 GR 1 material and GR 11, 2

    Problem: SQL returns different results in 11 GR 1 material and GR 11, 2 games.

    Example script:

    create the table tab_main
    (
    SOS number (2) not null,
    contract number (2) null
    )
    /

    create the table tab_sub
    (
    number (2) of contract non-null,.
    SOS number (2) null
    )
    /

    insert into tab_main values (1, 10);
    insert into tab_main values (2, 20);
    insert into tab_main values (3, null);
    insert into tab_main values (4, null);

    insert into tab_sub values (1, 10);
    insert into tab_sub (20, 2) values;
    commit;

    The SQL code:

    SELECT *.
    OF tab_main.
    tab_sub
    WHERE tab_main.sos = tab_sub.sos (+) AND
    tab_main. Contract = tab_sub.contract (+) and
    tab_main. Contract not in (select 1 of the double);

    The above query gives more results
    -by 11.2.0.4
    1 10 10 1
    2 20 20 2

    -in 11.1.0.7
    1 10 10 1
    2 20 20 2
    4
    3


    Please tell us what could be the reason for the behaviour of offset lines thie.


    Thank you

    Piesset

    I think it is probably a bug in 11.1.0.7 (and possibly other versions), I get the same results as your 11.2.0.4 9.2.0.7, 10.2.0.3 and 11.2.0.3, and this is the result, I expect.

    Your not in the paragraph is equivalent to:

    SELECT *.

    OF tab_main, tab_sub

    WHERE tab_main.sos = tab_sub.sos (+) AND

    tab_main. Contract = tab_sub.contract (+) and

    tab_main. Contract <> 1;

    Since you have null values in tab_main.contract they are lost by the predicate since null = value is never true (or false).

    John

  • Database query returns no results

    Hello

    I timesten arrangement with Oracle as backend, the passthroughlevel is set to 1, which means that if the table is not found in timesten then go to Oracle, but I am facing a problem when querying for what anyone using ttIsql, there is no return line, although when I run the same query in Oracle directely I get the desired result.

    Here is the operation made by me:

    Command > connect myOraCache
    Successful login: DSN = myOraCache; UID = EIT; DataStore = / usr/ptyagi/timesten/datastore/ietds; DatabaseCharacterSet = WE8ISO8859P1; ConnectionCharacterSet=US7ASCII;DurableCommits=1;DRIVER=/usr/iris/timesten/TimesTen/tt70/lib/libtten.so;OracleId=iet
    ; Authenticate = 0; PermSize = 400; PassThrough = 1; TypeMode = 0;
    (Default AutoCommit = 1).
    Command > select * from category WHERE = iris_codes "side."
    0 rows found.

    Pramod salvation,

    There is no space or time here for a full tutorial on TimesTen Cache Connect; You should study the documentation TimesTen Cache to better understand how it works.

    Briefly...

    A cache group TimesTen is an SQL object that defines one or more tables that will be cached to Oracle, as well as the relationship of foreign key between them. Foreign key relationships defined in Oracle generally will also be defined in TimesTen if there may be exceptions to this rule.

    Cache group definitions can be created in TimesTen via SQL (usually by taking a copy of the schema creation script Oracle and editiing it) or through the interface of Administration of Cache TimesTen.

    However, the first step is to decide which tables you want to cache and why. The goal of caching is to improve performance for the application key functions. Although it is sometimes possible to cache all tables in Oracle, it is often not practical and not desirable (for example, it may need too much memory for TimesTen).

    I would say that yiu address the issue as follows:

    1 study the documentation for cache TimesTen understand how TimesTen caching works, the different types of cache groups and their functionality (and limitations)

    2. If looks help TimesTen as a cache may be feasible for you, perform some simple tests for key areas see what level of performance improvement you get by doing TimesTen. This can be very variable, a well-written application that is well suited to caching can see huge improvements while an application that is not well suited to caching or which is poorly implemented may see little or no improvement.

    3. If after these two steps, it is clear TimesTen will provide you a significant bnefist then you will be in a good position to decide how best to implement TimesTen for your application.

    It is important to understand that TimesTen is almost never just a kind of "Plug and performance is much better" solution. Detailed thought and planning must be done from the outset in order to achieve the best of TimesTen.

    Chris

  • Unable to display the entire contents of the CF query return the result on my Web see page

    Hello

    I'm trying to extract data from a table (project_reports), which is to have a column of type CLOB (details) inside data.

    Details this column takes a huge amount of data in it.

    And I use the code to retrieve and display the data on my CF Web page below.


    < cfquery name = "getReport" datasource = "myDS" >
    Select details in project_reports where project = 54516
    < / cfquery >

    < cfoutput query = "getReport" > #getReport.details # < / cfoutput >


    ColdFusion is able to process and display a quantity limited data, but not the full data.
    I want to retrieve and display all of the data using ColdFusion.
    Can someone help me on this? Thanks in advance.

    Kind regards
    Jacques.

    Mamidela wrote:

    ColdFusion is able to treat & display a quantity limited data, but not the full data.

    Check the data source settings in the CF administrator. Make sure that the CLOB parameter (enable Long Text Retrieval) is checked.  When this box is _not_ checked, CF retrieves only the 64000 bytes.

  • OUTER JOIN query returns the results of JOIN IN-HOUSE 11.2.0.1.0

    I'm data transfer in 11.2.01.0 (Windows XP 32-bit) and I wanted to compare the sizes of table with the same Table name in two different patterns, ML and SILENT, with a FULL OUTER JOIN (to account for all the tables and NULL values in a diagram).

    The scheme of ML has 176 tables: schema TUT a 133 tables. The use of a standard INNER JOIN gives 131 paintings.

    I get precisely the results with a FULL OUTER JOIN I get with an INTERNAL JOIN (not the same NULL values so I know they exist).

    This happens in SQL-Plus, SQL_Developer and using Oracle Wire pilot of Data_Direct.

    Here is the code:

    Login: SYS as SYSDBA or SYSTEM (same results for either)

    SELECT M.TABLE_NAME, M.NUM_ROWS, T.TABLE_NAME, T.NUM_ROWS
    OF SYS. ALL_TABLES M FULL OUTER JOIN SYS. ALL_TABLES T ON M.TABLE_NAME = T.TABLE_NAME
    WHERE
    M.OWNER = 'ML' AND
    T.OWNER = 'TUT';

    Produce the same results with LEFT OUTER joins and RIGHT OUTER joins in ASI and Oracle (+) syntax.

    Any thoughts?

    Hello

    If you read what I posted, forget it. MScallion (below) gave the correct answerr.

    If conditions such as

    owner   = 'ML'
    

    in the WHERE clause, and then they will reject the rows of the result set formed by the join condition.

    The inner join returns only 131 lines where the two 'paintings' have the same table_names.
    The outer joins return multiple lines (133, 176 or 178) before the place WHERE the provision is applied , but the WHERE clause eliminates all lines except the 131 found by the inner join.

    Published by: Frank Kulash, July 10, 2010 14:23

  • cfinclude query: return the result to the specific line

    I tried to crack this all day and I feel like if I just had a little nudge in the right direction I could succeed.

    I have a query that returns records of some textbooks that are at a specific school. I standardized the database manuals so that the categories of primary, secondary and tertiary subjects are represented by the primary key of this category in its own table. The application loops through the records, I want to go back to the topic (varchar) category that goes with this (digital) key in the table.

    Since Coldfusion will not allow nested cfoutput, I tried to use cfinclude to enter the specific name for the subject category that accompanies the current manual - but what I have until this returns all subjects for school in each row id - they are the subjects of law! but I'm not all, just the right with the good book/record one. Can anyone suggest what I need to do? I enclose the code for the home page and for one of the cfincludes (they are identical, except for the "primary", "secondary" and "tertiary").

    I know I should leave something but I can't understand that. Thank you very much in advance.

    Cow Holy, I managed to do work! Code attached... and thank you so much, everyone! * Phew *.

  • Select from another table, when the query returns no result

    Hello

    I have a question where I'm supposed to retrieve the address of an account id-based billing. However, the table of billing may not have an address. There is a table of addresses that always has an address for an account. If the billing address exists, it should be used, so I can't use the address table. Is it possible in a select statement to query to the billing address and if it does not exist, use the address table.

    SELECT * FROM accounts a, b billings WHERE a.accountid = b.accountid

    Any help will be greatly appreciated.

    Thank you.

    user10407139 wrote:
    Hello

    I have a question where I'm supposed to retrieve the address of an account id-based billing. However, the table of billing may not have an address. There is a table of addresses that always has an address for an account. If the billing address exists, it should be used, so I can't use the address table. Is it possible in a select statement to query to the billing address and if it does not exist, use the address table.

    SELECT * FROM accounts a, b billings WHERE a.accountid = b.accountid

    Any help will be greatly appreciated.

    I think you need to explain more clearly if

    -you only have a couple of "billing" columns which is empty and in this case, you want to use the columns from the table 'accounts '.

    - or you have a join with another table that doesn't return data, for example a foreign key "address_id" "billing" is zero and therefore the join to other tables 'address' will return all the data

    In the first case, you have already been provided with some examples here, how to use NVL or similar functions to achieve, even if the first post first evaluates the information of 'accounts' and if it is white using information from "billing". According to your description you need the other way around. The second post a subquery recursive useless in my opinion.

    In the latter case, you should probably use an "outer" join so that the data in your table "bills" are returned, even if the join to another table is not at all the lines.

    SELECT
    NVL(AD1.ADDRESS_ATTR1, AD2.ADDRESS_ATTR1) as ADDRESS_ATTR1,
    NVL(AD1.ADDRESS_ATTR2, AD2.ADDRESS_ATTR2) as ADDRESS_ATTR2,
    NVL(AD1.ADDRESS_STREET, AD2.ADDRESS_STREET) as ADDRESS_STREET,
    ...
    FROM accounts a
    INNER JOIN billings b
    ON a.accountid = b.accountid
    LEFT OUTER JOIN address ad1
    ON b.address_id = ad1.address_id
    INNER JOIN address ad2
    ON a.address_id = ad2.address_id;
    

    In this way you pick up the address stored in the "invoices" table, if it existed, otherwise you pick up the address assigned to the "accounts" table I used an inner for the second address join join because you said that the account always has an assigned address.

    Kind regards
    Randolf

    Oracle related blog stuff:
    http://Oracle-Randolf.blogspot.com/

    SQLTools ++ for Oracle (Open source Oracle GUI for Windows):
    http://www.sqltools-plusplus.org:7676 /.
    http://sourceforge.NET/projects/SQLT-pp/

  • Basic there IS NO query didn't return any results

    DB version: 10 gr 2

    One of our tables in the schema of the test is to have less number of columns as the shema of PROD.
    To determine missing columns of this table in the Test schema, I did the following.
    -----In Test Schema
    CREATE TABLE XYZ2
    (COL1 NUMBER);        ----------only one column
    
    
    SQL > CREATE TABLE tables_test_list AS SELECT TABLE_NAME,COLUMN_NAME FROM USER_TAB_COLS;
    
    Table created.
    -In the scheme of prod
    SQL> CREATE TABLE XYZ2 
      2  (COL1 NUMBER,
      3  COL2 NUMBER       ----------- same table name with an extra column
      4  );
     
    Table created
    And the scheme of PROD I have run the following SQL to determine what are the columns that do not appear in the TEST schema
    select column_name from User_Tab_Cols  outer
    where table_name='XYZ2'
    and not exists (select 1 from TEST_SCHEMA.tables_test_list inner where outer.TABLE_NAME=inner.TABLE_NAME )
    But the above query returns no results. No idea why?

    10 gr 2 is not a version. Version numbers have four numbers and no letters.

    Your statement is simply not true.
    It returns nothing if registration occurs in both tables, as you test existence: the number of records, according to your request is irrelevant.

    Differences can and should be identified by a simple less,

    Select...
    FROM table1
    less
    Select...
    from table2

    ----------
    Sybrand Bakker
    Senior Oracle DBA

  • PLSQL function to return the result of the query

    Dear all,

    Oracle Database SE1 11.2.0.1

    I need to create a plsql function which should accept SQL as a parameter, execute it and return the result set.

    Is this possible?

    Madhu.149 wrote:

    I need to create a plsql function which should accept SQL as a parameter, execute it and return the result set.

    Be careful - results games indicate a set of data stored in memory. This is not what are sliders. This isn't how Oracle should be used.

    Imagine that you implement such a result set function - which, on average, requires 1 MB of memory (private server) to store the results of the SQL query. A 100 users mean a 100 MB of memory required server. This is not suitable. Not at all. Never.

    The correct back 'thing' is a handle to SQL cursor (called a ref cursor in this case). A SQL cursor is a "program" - that the appellant runs via the fetch command and generates one or more lines accordingly. Appellant repeatedly runs this slider through calls to fetch until this slider found and returns all rows affected (using consistent readings).

    If you want an abstraction interface that the client can call via PL/SQL code in the database, so this crafting optimal SQL interface, creates the SQL cursor and returns the handle of the cursor (via the ref cursor data type) to the client.

  • I need to return the result of a query on a stored procedure

    I need to return the result of a query to a stored procedure, I mean when I run a stored procedure it returns a result set in a select statement.
    Best regards...

    Hello.

    Do you really want a stored procedure for this?
    Why not just a script that contains the query?

    Assuming that you don't really want a stored procedure, you'll have to decide what to do with the results.
    An option is a slider.

    For example, you can write a procedure of this type to hold the query:

    CREATE OR REPLACE PROCEDURE USP_TEST
    (     out_cursor     OUT     SYS_REFCURSOR
    )
    IS
    BEGIN
         OPEN  out_cursor
         FOR     SELECT     *
              FROM     scott.emp;
    END  USP_TEST;
    /
    SHOW ERRORS
    

    You can move the cursor to another procedure for handling.

    You could test this in SQL * more by creating a variable blond:

    VARIABLE     usp_test_cursor     REFCURSOR;
    
    EXEC  usp_test (:usp_test_cursor);
    
    PRINT     :usp_test_cursor
    
  • the coil does not return the result of the query

    Hi people, I just my adventure begins with oracle sql basics course and I encountered the first problem.

    as I wrote in the topic, after you run the statement I get only query itself in the output file with no query results.

    exsample:

    coil C:\Users\Tomasz\Desktop\cw1.txt

    SELECT STARTDATE AS hire_date, employe_id, last_name, job_id

    Employees;

    spool off;

    all advice?

    Thanks in advance,

    Tomasz.

    Hi people, I just my adventure begins with oracle sql basics course and I encountered the first problem.

    as I wrote in the topic, after you run the statement I get only query itself in the output file with no query results.

    exsample:

    coil C:\Users\Tomasz\Desktop\cw1.txt

    SELECT STARTDATE AS hire_date, employe_id, last_name, job_id

    Employees;

    spool off;

    You said "after the execution of the statement.

    What you posted is NOT a statement; It is a script.

    I select Run Script (F5) and the file contains the query and the result set.

    If you use "Run the statement", you will get a file.

  • Simple query with a subquery returns the result of 'bad '.

    DB version: 11.2

    We have created approximately 27 patterns in the last 4 days. The query below confirms that.
    SQL > select username, created from dba_users where created > sysdate-4;
    
    USERNAME                       CREATED
    ------------------------------ --------------------
    MANHSMPTOM_DEV_01              12 Jul 2012 11:55:16
    PRSM01_OAT_IAU                 13 Jul 2012 01:51:03
    F_SW                           11 Jul 2012 17:52:42
    FUN_CDD_HK_SIT                 09 Jul 2012 15:33:57
    CEMSCOMPTOM_UAT_01             12 Jul 2012 11:43:45
    STORM02_OAT_IAU                13 Jul 2012 02:06:29
    .
    .
    27 rows selected.  -------------> Truncated output
    DBA_TS_QUOTAS.max_bytes column, we can determine the quota of space allocated for a user/schema
    SQL > desc dba_ts_quotas
     Name                                      Null?    Type
     ----------------------------------------- -------- ----------------------------
     TABLESPACE_NAME                           NOT NULL VARCHAR2(30)
     USERNAME                                  NOT NULL VARCHAR2(30)
     BYTES                                              NUMBER
     MAX_BYTES                                          NUMBER
     BLOCKS                                             NUMBER
     MAX_BLOCKS                                         NUMBER
     DROPPED                                            VARCHAR2(3)
    So, I wanted to see the space allocated for users created in the last 4 days. The following query should return only 27 cases because the subquery returns only 27 records. Instead, he returned 66 entries!
    select username, tablespace_name, max_bytes/1024/1024 quotaInMB
    from dba_ts_quotas
    where username in (select username from dba_users where created > sysdate-4);
    No idea why? I know this isn't a bug with oracle. It's just that I didn't eat fish lately.

    Hello

    J.Kiechle wrote:
    So, I wanted to see the space allocated for users created in the last 4 days.

    DBA_TS_QUOTAS does not have the space, but rather the maximum allowed for a given user.

    J.Kiechle wrote:
    The following query should return only 27 cases because the subquery returns only 27 records. Instead, he returned 66 entries!

    What happens if your user John has Quotas on 3 tablespace TBS1 and TBS3 and TBS2?
    You can't expect the outer query to retrieve only the more than 27 just line because the inner query returns 27 rows.

    For the space allocated by the storage space for newly created users, you'd better ask dba_segments. something like:

    select owner, tablespace_name, trunc(sum(bytes)/1024/1024) alloc_mb
    from dba_segments
    where owner in (select username from dba_users where created > sysdate - 4)
    group by owner, tablespace_name
    order by owner, tablespace_name;
    
  • Parameter query DCT - strange behavior

    I use the database connectivity toolkit to create a parameter query, but it does not work as expected. I have four parameters, one of which is defined by an array of values. When the value of each array is passed individually (table 1), the query works. During the passage of two values, the order determines if two recordsets are returned. Before "Moisture" returns two recordsets expected, but reverse the order causes the second return empty, that is by the way of "Temperature." Also has anyone seen this kind of behavior before?

    I don't know how to do a query set in SQL Server Management Studio, but who's next on my list of troubleshooting.

    Details:

    LabVIEW Full 2011 SP1 (11.0.1f2)

    DCT (11.0.0)

    SQL Server Express 2012

    This should help you really loved ones.  Just wire your entries in the right setting and create the stored procedure in your database.

  • OBIEE logical column has same SQL but returns different results

    I have a SQL query with a case statement that returns the correct results by operating in Oracle SQL Developer. I've created several logical columns in OBIEE, one for each case in the original query. However, the results returned by each logical column OBIEE are radically different from the original SQL query results, even if the SQL code is virtually identical.

    For example, a column logical OBIEE that returns incorrect results contains the following SQL code:

    SUM (CASE when

    ("Registration - College". "" Effective colleges F. ("" Postal code "like '% a %') or

    ("Registration - College". "" Effective colleges F. ("" Postal code "like '%B %') or

    ("Registration - College". "" Effective colleges F. ("" Postal code "like '%c %') or

    ("Registration - College". "" Effective colleges F. ("" Postal code "like"% %") or

    ("Registration - College". "" Effective colleges F. ("" Postal code "like '%G %') or

    ("Registration - College". "" Effective colleges F. ("" Postal code "like"hour %") or

    ("Registration - College". "" Effective colleges F. ("" Postal code "like"%%J") or

    ("Registration - College". "" Effective colleges F. ("' Postal code ' like '%R %') or

    ("Registration - College". "" Effective colleges F. ("" Postal code "like '%s %') or

    ("Registration - College". "" Effective colleges F. ("" Postal code "like '%T %') or

    ("Registration - College". "" Effective colleges F. ("" Postal code "like"% %") or

    ("Registration - College". "" Effective colleges F. ("" Postal code "like '%x %') or

    ("Registration - College". "" Effective colleges F. ("' Postal code ' like '%Y %')

    THEN 0 OTHERWISE 1 END)

    The case statement in the original SQL query, which returns the correct results, is as follows:

    CASE

    WHEN (postal_zip_code_permanent like "%%K") or (postal_zip_code_permanent like '% %') or (postal_zip_code_permanent like '%m %') or (postal_zip_code_permanent like '%n %') or (postal_zip_code_permanent like "%p %") THEN "Ontario".

    WHEN (postal_zip_code_permanent like '% a %') or (postal_zip_code_permanent like '%B %') or (postal_zip_code_permanent like '%c %') or (postal_zip_code_permanent like '% %') or (postal_zip_code_permanent like '%G %') or (postal_zip_code_permanent like "%hour") or (postal_zip_code_permanent like "%%J") or (postal_zip_code_permanent like "%%R") or (postal_zip_code_permanent like '%s %') or (postal_zip_code_permanent like '%t %') or (postal_zip_code_permanent like '% %') or (postal_zip_ code_permanent like '%x %') or (postal_zip_code_permanent like "%%Y") THEN "Canada, other than Ontario.

    WHEN (substr(postal_zip_code_permanent,1,1) IN ('1 ', '2', '3', '4', '5', '6' ', 7',' 8 ', ' 9',' 0') or (postal_zip_code_permanent like '%d %') or (postal_zip_code_permanent like '%f %') or (postal_zip_code_permanent like ' % I %') or (postal_zip_code_permanent like "% O") or (postal_zip_code_permanent like "%%Q") or (postal_zip_code_permanent like "%%U") or (postal_zip_code_permanent like ' % W ') or (postal_zip_code_permanent like "%%Z")) THEN 'other')

    WHEN (postal_zip_code_permanent like '% + %') or (postal_zip_code_permanent like '%. %') or (postal_zip_code_permanent like ' %? %') or (postal_zip_code_permanent like '% %') or postal_zip_code_permanent IN ('+ ','.', '?)) (',',') And THEN "Invalid."

    WHEN postal_zip_code_permanent is null THEN 'Blank '.

    Of OTHER postal_zip_code_permanent

    END

    Now I see what the problem was. In the original SQL query, each condition is exclusive, for each record will only be categorized in one of the scenarios WHEN. But in OBIEE, each logical column is autonomous, so some records were classified into more than logical column, even if each logical column was supposed to be exclusive.

Maybe you are looking for