View return nothing

dear gurus i am facing one probelem.
VIEW 1:
create or replace view v_emp as SELECT
a1.empno e1, nvl2(a2.empno,a2.empno,0) e2 from
select empno from emp where
hiredate='17-DEC-80'
) a1,
select empno from emp where
hiredate='20-FEB-81'
) a2;
select * from v_emp;
E1     7369
E2     7499
VIEW 2:
create or replace view v_emp as SELECT
a1.empno e1, nvl2(a2.empno,a2.empno,0) e2 from
select empno from emp where
hiredate='17-DEC-80'
) a1,
select empno from emp where
hiredate='27-FEB-81'
) a2;
select * from v_emp;
return nothing because of date not in table.
i want data from VIEW 2 like
E1     7369
E2     
i want view return nothing or zera for only unavailable date and
return value for date available in table.

901915 wrote:
dear gurus i am facing one probelem.
VIEW 1:
create or replace view v_emp as SELECT
a1.empno e1, nvl2(a2.empno,a2.empno,0) e2 from
select empno from emp where
hiredate='17-DEC-80'
) a1,
select empno from emp where
hiredate='20-FEB-81'
) a2;
select * from v_emp;
E1     7369
E2     7499
VIEW 2:
create or replace view v_emp as SELECT
a1.empno e1, nvl2(a2.empno,a2.empno,0) e2 from
select empno from emp where
hiredate='17-DEC-80'
) a1,
select empno from emp where
hiredate='27-FEB-81'
) a2;
select * from v_emp;
return nothing because of date not in table.
i want data from VIEW 2 like
E1     7369
E2     
i want view return nothing or zera for only unavailable date and
return value for date available in table.your view is a cartesian join between those two select statements. you need to have an outer join or a union all in there somewhere.

Similar Messages

  • Oracle Workflow views return no records in JDeveloper

    Hi All,
    I have the following problem.
    When I create a jdbc connection in JDeveloper 10.1.3.0.4
    jdbc:oracle:thin:@<host>:<port>:<database>
    And I try to browse through the records of views using workflow views I can't
    retrieve any records. The view seems to be empty?
    When I try to browse this view from sqlplus or toad this view
    returns a lot of records.
    The view and the WF tables/views are in different schema's but in the same database.
    Thanks in advance....

    Hi Folks,
    I found it myself, in the view there was a where clause which restricted the
    query with the userenv. I have to change this and it will work.

  • User Profile -Purchasing -returns nothing

    I created a User Profile in Oracle Applications under -Application Developer
    Application :Purchasing
    User Profile Name: PO: SBM CHANGE
    Hierarchy type: Security
    SQL validation:
    SQL="select decode(meaning,
                   'Yes','Full',
                   'No','None') \"Access Level\",
              lookup_code
         into :visible_option_value, :profile_option_value
         from fnd_lookups
         where lookup_type = 'YES_NO'
    Now I am trying to run this query which returns Nothing. Is that because i have application level *Purchasing*
    {code}
    select apps.fnd_profile.value('PO: SBM CHANGE') from dual;
    {code}
    Thanks

    Hi,
    First you need to give values for that profile option (resp. System Administrator > Profile > System).
    Also, when using fnd_profile.value, you need to specify the internal profile option name, and not the user profile option name (maybe they are identical in your case?).
    And also, typically you need to specify your context before calling fnd_profile. You can use fnd_global.apps_initialize for that.
    Hope it helps.

  • Web Services deployment error "Server returned nothing (no headers, no data)" and more

    I'm developing a large-scale VI with an associated web service VI in 2010 SP1. The "auxiliary VI" is responsible for data capture and analysis as well as communications and data storage. It is fairly large and communicates with the web method VI via network-shared variables [and I'm using the DSC module to allow event handling on the shared variables].
    I can build and deploy the web method VI just fine and it runs great. However, I need to communicate between the auxiliary and web method VI's, and it looks like I can't do that without including the auxiliary vi in the RESTful web service build [by the way, is there any way to do this with web service builds?]. When I added the auxiliary vi to the build, it built fine, but then during the deployment I got:
    "Server returned nothing (no headers, no data)"
    The next time I tried to deploy, I got a spurious NI Auth dialog per this KnowledgeBase article. Following the instructions for case 1 ["Application Web Server failure since last start"], I ran Services.msc and found that NI Application Web Service was indeed not running. I tried to restart the service but got this error:
    "The NI Application Web Server service on Local Computer started and then stopped. Some services stop automatically if they have no work to do, for example, the Performance Logs and Alerts service."
    The KnowledgeBase article suggests restarting at this point and I did, but I still see the same behavior. So I really have a few questions:
    1. Is there any way to deploy a network-shared variable library across a deployed web service and local VI?
    2. What causes "Server returned nothing (no headers, no data)" upon deployment? A google search returned very little.
    3. What does this mean: "The NI Application Web Server service on Local Computer
    started and then stopped..." and what do I need to do to get my Application Web Server back up?
    [to heap on the pile... I tried to re-enable the Application Web Server from localhost:3580 and got an error. Then localhost:3580 went off-line also.]
    thanks!
    Solved!
    Go to Solution.

    Update.
    I noticed that the Application Web Server was trying to deploy the broken web service and was choking on it. There seemed to be no way to erase the .lvws originally created by the build. I could delete the deployment folder at $(WebServicesRoot)\UserServices\deployed\<Service Name>-<Globally Unique Identifier (GUID)> but it was recreated from the .lvws every time I attempted to restart the service.
    So I called NI and they pointed me to this directory [in XP]:
    C:\Documents and Settings\LocalService\My Documents\LabVIEW Data\WebServices\Standalone
    The .lvws was in this folder. I deleted it and now I can run the ApplicationWebService. Apparently this undocumented hidden file is a "not-quite-bug" that is recognized as needing a fix in upcoming releases.

  • Running 'netstatt' On An Interface Alias Returns Nothing.

    Hi all,
    can some one please shed some light on this behavior. We defined some network interface aliases on a SunOS machine. Running a 'netstat' on the alias returns nothing, while running it on the actuall device name returns the expected stats.
    Is this behavior by design?
    How can you get stats running this cmd on an alias interface name?
    Thank you

    It did not solve the issue. But I found it.
    I sketch what I've done .. maybe others can use that info too.
    Reason: For traditional reasons, we use Apache Configs for Aliases ... no mapping within CF itself because up to CF9 those mappings are global. Howerver, for UNC mappings, this seems to be the bad way.
    Up to today, I had no idea how Apache and CF talk to each other on paths. Obvioulsy, CF ask Apache for a path resolution, but Apache as a System Service, was not able to verify the accessibility of the UNC path. Therefore, it or CF figured that they use the webroot of this vhost.
    When I ran Apache as Administrator, it could access the UNC and therefore Apache and/or CF returned the correctly expanded path. Of course, we don't run Apache with more rights than the System Service. Resetting Apache to that also returned the wrong UNC expansion.
    So, we now go with Mappings in CF itself. Since CF 10 allows for Per App Mappings, this is no longer a problem.
    Martin

  • Hsodbc returns nothing :::Plz Help me :)

    Hi to all,
    I try to connect Oracle DB to Mysql database. I did these steps :
    1- Testing MySQL ODBC Driver using isql => Works fine
    2- Configuring the HSODBC process , my listner.ora file contains these entries :
    # listener.ora Network Configuration File: /u01/app/oracle/oracle/product/10.2.0/devxen03/network/admin/listener.ora
    # Generated by Oracle configuration tools.
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = /u01/app/oracle/oracle/product/10.2.0/devxen03)
    (PROGRAM = extproc)
    (SID_DESC =
    (PROGRAM = hsodbc)
    (ORACLE_HOME = /u01/app/oracle/oracle/product/10.2.0/devxen03)
    (SID_NAME =my_client)
    (ENVS = "LD_LIBRARY_PATH=/u01/app/oracle/oracle/product/10.2.0/devxen03/lib32:/usr/lib:/u01/app/oracle/oracle/product/10.2.0/devxen03/hs/lib32")
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    (ADDRESS = (PROTOCOL = TCP)(HOST = devxen03.es.el.lan)(PORT = 1521))
    when I tried; hsodbc in command line : nothing comes back from this command
    Any idea please? I(m working on Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 on linux redhat server.
    Thanks a lot,
    Edited by: OracleJavaLinux on Dec 1, 2009 3:20 PM

    Thanks ora-dba;
    it means returns nothing without errors;
    But strange I got erros when I execute the command below, any idea? :
    *[root@devxen03 ~]# strace /u01/app/oracle/oracle/product/10.2.0/devxen03/bin/hsodbc*
    *execve("/u01/app/oracle/oracle/product/10.2.0/devxen03/bin/hsodbc", ["/u01/app/oracle/oracle/product/1"...], [* 26 vars */]) = -1 ENOEXEC (Exec format error)*
    dup(2)                                  = 3
    fcntl(3, F_GETFL)                       = 0x8002 (flags O_RDWR|O_LARGEFILE)
    *fstat(3, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 2), ...}) = 0*
    mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2a95557000
    lseek(3, 0, SEEK_CUR)                   = -1 ESPIPE (Illegal seek)
    write(3, "strace: exec: Exec format error\n", 32strace: exec: Exec format error
    *) = 32*
    close(3)                                = 0
    munmap(0x2a95557000, 4096)              = 0
    exit_group(1)                           = ?
    *[root@devxen03 ~]# echo $?*
    *0*

  • Oracle view returns incomplete result

    Hello, I have a view on oracle table, but sometimes I found the result from the view is not complete.
    It only returns part of the rows, at the meanwhile, the performance becomes very bad.
    (the only change on the table is a new index be created on it)
    After a did the table EXP / IMP, the performance back to normal (this is what I expedted), AND THE VIEW RETURNS FULL RESULT!
    It is so weird I cannot believe this can happen...
    Is it possilbe that oracle returns incompleted result rows without error?
    Edited by: user2406411 on 20-May-2012 10:06 AM
    Edited by: user2406411 on 20-May-2012 10:07 AM

    It only returns part of the rows, at the meanwhile, the performance becomes very bad.does it mean the select from view has been stopped/interrupted before it finished itself?
    Oracle could choose different plan with the index introduced. This plan could return first portion of rows fast, then continue to work on following portion, ant that took more time, but you did not want to wait and stop it.
    After exp/imp oracle may choose different plan that returns all rows at once.
    Is it possilbe that oracle returns incompleted result rows without error?normally not.
    though years ago I had one similar situation. The cause was a corrupted index. If query used index it returned less rows, with full scan - more. I had to rebuild the index to fix it.

  • Putting variable in regexp_substr pattern returns nothing

    I'm trying to create a function to simply extract positioned text from a string, ie I want the text in position two from string X with a pattern of ' - '. I want to create a function so it is simpler for the developers but regexp_substr doesn't seem to like it.
    So I want a function like below to be executed, select text_extractor('ABC - DEF - HIJ',' - ',2) from dual; which would return DEF;
    But regexp_substr doesn't like matching on ' - '. If I tell it to give me position 2, I get '-', and if I tell it position 3, I get DEF. It seems to work fine if the '-' is substritued with a ':'
    ie
    select regexp_substr('ABC - DEF - HIJ','[^ - ]+',1,2) from dual;
    results
    select regexp_substr('ABC - DEF - HIJ','[^ - ]+',1,3) from dual;
    results
    DEF
    select regexp_substr('ABC : DEF : HIJ','[^ : ]+',1,2) from dual;
    results
    DEF
    I would further like to make a function to wrap it in but it didn't work at all.
    The following examples return nothing.
    create or replace function text_extractor (p_text varchar2, p_delimiter varchar2, p_position number)
    return varchar2
    is
    begin
    return (regexp_substr(p_text,'^p_delimiter]+', 1,p_position));
    end;
    I've also tried
    create or replace function text_extractor (p_text varchar2, p_delimiter varchar2, p_position number)
    return varchar2
    is
    v_search_expression varchar2(2000);
    begin
    v_search_expression := '''[^'||p_delimiter||']+''';
    return (regexp_substr(p_text,v_search_expression),1,p_position);
    end;
    But I get nothing. Any ideas?

    When you do this:
    select regexp_substr('ABC - DEF - HIJ','[^ - ]+',1,2) from dual;
    results
    -Your search string is a set of characters, so you are saying anything that is NOT a space or dash (or space again, but that's redundant). So the first match is ABC, the second match is "-" as that's the second non-space match, so that's why you get that. Probably what you want is to ignore the spaces and use the "-" as your delimiter, then just trim the spaces off after...
    SQL> ed
    Wrote file afiedt.buf
      1* select trim(regexp_substr('ABC - DEF - HIJ','[^-]+',1,2)) from dual
    SQL> /
    TRI
    DEF
    SQL>

  • SQL LIKE Operator return nothing

    I am working on an intranet application and use Access as the
    database.
    There is a query that I have
    <CFQUERY DATASOURCE="#DSN#" NAME="GET_SEARCH_RESULT">
    SELECT * FROM WL_TREES
    WHERE TREENAME LIKE '3*'
    </CFQUERY>
    It returns nothing in ColdFusion, if I copy just the SQL and
    run it in Access, it returns with the expected result.
    Any idea why ColdFusion query didn't work?
    Thanks,
    tofuTnT

    replace the * with a % and you should be good to go.
    HTH
    Tim Carley
    www.recfusion.com
    [email protected]

  • CRM search, request return nothing

    Hi,
    When I try to make research in our b2b applications (CRM 5, TREX 7 update26) if I use the character "*" it return all items, but any other character, (join, union) returns nothing for any requests.
    I have the following error : "An exception has occurred: Invalid attribute "TEXT_0001" in the filter printout  Invalid attribute "TEXT_0001" in the filter printout.
    com.sap.isa.catalog.impl.CatalogBuildFailedException: Invalid"
    (SRM0, RFC connections works fine, catalog is well replicated)
    The Quick Search Attributes from the WEB-INF/cfg/catalog-site-config.xml was not be modified.
    Any Help will be reward.
    Regards,
    Thomas

    This reply is way too late, but might help someone.
    There are two options in your case:
    1. Attribute "TEXT_0001" is not replicated in TREX catalog
    2. "TEXT_0001" is in P-Index, and you are doing search over the S-index (or vice-verse).
    There are 2 types of Queries in ISA.
    Catalog search which is done over the P-indexes (when you create your Quesry throug the ICatalog object).
    Category specific search which is done over the S-indexes (when you get your Query from a ICategory).
    Best regards,
    Marian

  • When selecting playback from itunes library on Mac (purchased album from itunes!) i get random song played from that album and my selected song disappears from view. Nothing to do with shuffle.Mac OSX 10.6.8. Help, doing my nut in!!

    When selecting playback from itunes library on Mac (purchased album from itunes!) i get random song played from that album and my selected song disappears from view. Nothing to do with shuffle.Mac OSX 10.6.8. Help, doing my nut in!!

    What is your iTunes version?
    If iTunes 11, have you checked the "Up Next" list? If it is not empty, try if clearing "UP Next" will help:

  • How to print - when query returns nothing

    Hi All
    I have query...
    select sum((sum(nvl(ac.amtsourcedr,0))-sum(nvl(ac.amtsourcecr,0)))) as balance
    from fact_acct ac
    where ad_client_id=1000000
    and dateacct < '1/04/2010'
    and ac.account_id=1000432
    group by  ac.account_id
    I want to print zero when query returns nothing
    how to do that ..???
    thanking you in advance
    Regards
    gaurav

    use NVL
    select nvl(sum((sum(nvl(ac.amtsourcedr,0))-sum(nvl(ac.amtsourcecr,0)))),0) as balance
    from fact_acct ac
    where ad_client_id=1000000
    and dateacct < '
    and ac.account_id=1000432
    group by ac.account_idAnd yes you need to remove the Group By as stated by Toon, forgot to mention it
    Edited by: Karthick_Arp on May 27, 2010 4:04 AM

  • Finder searches return nothing

    when i search for a file under spotlight, results appear, but when I click "show all in finder", nothing appears in the finder. similarly, searches in the finder directly return nothing. thoughts?

    Certain things are not included in "All my Files", I think some of these things include apps, internet history, etc. I would suggest you just use spotlight, it includes more.

  • ProductTextSearch return nothing

    ProductTextSearch doesn't return anything, below are the configuration i did
    <dsp:importbean bean="/atg/commerce/catalog/ProductTextSearch"/>
    <dsp:input id="search-q" bean="ProductTextSearch.searchInput" type="text" placeholder="I'm looking for..." class="se-input"/>
    <dsp:input bean="ProductTextSearch.search" type="hidden" value="Search"/>
    <dsp:input type="submit" bean="ProductTextSearch.search" class="btn btn-sml btn-alt" name="search-q" value="Go"/>
    i executed the generated query on the database and it returns nothing
    SELECT DISTINCT t1.product_id,t1.product_type
       FROM dcs_product t1, dcs_prd_catalogs t2, dcs_product_sites t3
      WHERE t2.product_id=t1.product_id
        AND t3.product_id=t1.product_id
        AND (((CONTAINS(t1.description,'desire',0) > 1
        OR CONTAINS(t1.display_name,'desire',1) > 1)
        AND t2.catalog_id = 'catalog10003')
        AND t3.site_id = 'mySiteId')

    Hi Amr,
    Have you configure the catalog to properly handle full text searching as mentioned in below link-
    http://docs.oracle.com/cd/E24152_01/Platform.10-1/ATGCommProgGuide/html/s0204configuringacatalogfororaclefull01.html
    For debugging enable the loggingDebug of that component and see if there is any error in log.
    Try with above configuration and let us know if problem is solved or not.
    Regards,
    Prateek Gupta

  • LOV return nothing

    Hi
    I have very strange problem: every lov in only one page return nothing!!! I have already regenerate this page .. all pages, create lov manually, copy same lov from another branch, BUT problem still exist! When i change lov to choice - it works.
    All this experiments I did on a test application because regeneration of my native project is impossible (I can regenerate just current page)!
    Can anybody help me?? (It would be suitable for me to do all changes manually!)

    Please ignore my last post - its not a lov problem .. I started a new thread for this problem!

Maybe you are looking for

  • How to call method in another swf file

    Hi. I am at the moment making a website in Flash 8. The website consists of a main file with the buttons and then additional files for each page. Each of the buttons uses code similar to this: content.loadMovie("home page.swf"); where content is the

  • House-keeping:  When was it last used ...

    Hi Everyone, I am doing "house-keeping" on my tables and wondered if there is a way to see when data in a particular table was last inserted or updated? Ideally, I would like to list all tables with their size (this I can already get) and the last ed

  • Crashing while printing

    I am currently using Data modeling to have the logical model of the Database after importing the relational , but can't print the tables and would not know if it is due to the huge number of tables (145 tables) I have. Is it due to a java driver I mu

  • Spport of images in ipod notes folder

    hi ... I have a question regarding the support of images and videos in notes folder Actually i am having some lecture notes from my university websites, which includes text decorated with some html tags, audio, images and videos.. in my ipod notes fo

  • MOVED: RMA Process for my board MSI NEO2

    This topic has been moved to Anything Under The Sun. RMA Process for my board MSI NEO2