display of the output cursor empty with null values

I have the below procedure of the State where he is shown the output to the client.

The requirement now is if the select statement does not return a value any with the input given then output parameter should see NULL values instead of no line at all.


One method is to get the number of the select query that is written in "open p_out for." And then write the condition as if count is 0 then null other show data.

Could you please suggest me any other alternative to this.

Create or replace procedure test (p_empno in number , p_out out sys_refcursor) is

begin
 open p_out for 
 select e.ename, d.deptname, s.sal , p.addr , v.age
  from emp e ,dept d, sal s, padress p , age v
 where e.deptno = d.deptno and d.deptno = s.deptno
 s.sal_id = p.sal_id and p.id = v.id
and e.empno = p_empno ;

 
exception when others then
 open p_out for 
 select null , null,null,null,null from dual;

 
end test.

Thank you

Maybe NOT TESTED!

Select x.ename, x.deptname, x.sal, x.addr, x.age

of the double

left outer join

(select e.ename, d.deptname, s.sal, p.addr, v.age

from emp e,.

d Dept,

SAL s,

padress p,

v of the age

where e.deptno = d.deptno

and d.deptno = s.deptno

and s.sal_id = p.sal_id

and p.id = v.id

and e.empno = p_empno

) x

1 = 1

Concerning

Etbin

Select x.*

of the double

left outer join

(select *)

WCP

where ename = 'ETBIN.

) x

1 = 1

EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO
- - - - - - - -

Tags: Database

Similar Questions

  • How to display the line empty as a line with null values

    Hi all

    Pls advise me if it is possible to use a single query statement to display
    Empty row (i.e. not a single return line) as a line with null values.

    For example,.

    Select the names of names_mst whose name = "sgasfgs".

    Result:
    Names of
    =====
    < null >

    Hello
    If you desire to join external to double, as shown below, you still get at least a line of production

    SELECT  nm.names
    FROM            dual
    LEFT OUTER JOIN names_mst   nm  ON nm.name='sgasfgs';
    
  • Alter the State of Session? -Apex form publishes text with null value

    Recently I discovered a problem with our Apex facility in which all selected as source for a text field value will eventually be displayed as a null value in the database.
    We run APEX version 3.2 in an Oracle 10.2.0.4 database using Oracle HTTP Server from 10 g companion disc.

    At first glance, everything seems to work as expected; I created a simple table called "oracle_sr" with 2 columns, as both not null:

    SQL > desc capacity.oracle_sr
    Name Null? Type
    ORACLE_SR_ID NOT NULL NUMBER
    TIMESTAMP NOT NULL DATE

    In APEX, the form wizard has been used to create a form on this table.
    After execution of the pages and you enter a value for the timestamp field, I can create folders without problem.

    The question arises when I choose a source for the timestamp field value.
    All the source options causes the same error (including a static value) so I'll focus on the SQL query to the source as:

    Select sysdate double;

    This should replace the date system in the area of text timestamp when the page is executed.
    As expected, the value appears in the text box, but when I submit the form to create the folder I get the error:

    ORA-01400: cannot insert NULL into ('ABILITY'. "" "" ORACLE_SR '. "" TIMESTAMP")

    I have worked with APEX for quite awhile and have successfully used this technique in many applications but just to begin to see this error in recent days. What's particularly odd about this message is by default postings "not null" created by the form wizard sees timestamp class as having a value. Session state information included below reports a value yet the database is to launch the ORA-01400.

    Someone has a similar problem? I have spent a good amount of time to try looking for this problem but can't seem to find any similar messages.

    I have included the release of my test page, debugging from what I see, it seems to be a value associated with the filed timestamp:

    0.00: a C C E P t: request = "CRΘER."
    0.00: metadata: go look up the definition and application shortcuts
    0.00: NLS: wwv_flow.g_flow_language_derived_from = FLOW_PRIMARY_LANGUAGE: wwv_flow.g_browser_language = en - us
    0.00: alter session set nls_language = "AMERICAN."
    0.00: alter session set nls_territory = 'AMERICA '.
    0.00: NLS: CSV charset = WE8MSWIN1252
    0.00:... "NLS: decimal separator Set =". »
    0.00:... NLS: Set NLS Group separator = ",".
    0.00:... NLS: Date Format Set = "DD-MON-RR.
    0.01:... Setting session time_zone in-06: 00
    0.01: setting NLS_DATE_FORMAT application date format: DD-MON-RR
    0.01:... NLS: Date Format Set = "DD-MON-RR.
    0.01: fetch database session state
    0.01:... Check the owner of the 2303701116904676 session
    0.01: setting NLS_DATE_FORMAT application date format: DD-MON-RR
    0.02:... NLS: Date Format Set = "DD-MON-RR.
    0.02:... Check for expiration of the session:
    0.02:... Metadata: Page Fetch, calculation, process and branch
    0.02: session: extract information from session header
    0.02:... Metadata: Retrieve the attributes of the page for application 109, page 50
    0.02:... Validate page affinity point.
    0.02:... Check off the items hidden_protected.
    0.03:... Check authorization security systems
    0.03: session state: Save elements of form and p_arg_values
    0.03: *... Session state: you save newValue of the object "P50_ORACLE_SR_ID" = "" "escape_on_input ="N"* 0.03: *..." " Session state: you save the object "P50_TIMESTAMP" = newValue ' 26 May 09 "" escape_on_input = "N" * ""»
    0.03:... Session state: Save "P0_CURRENT_PERSONNEL_ID" - registration of same value: "1."
    0.03:... Session state: Save "P0_OFFSET" - registration of same value: "0".
    0.03:... Session state: Save "P0_ACTIVE_WEEK" - registration of same value: "24 May 09".
    0.03: point of treatment: ON_SUBMIT_BEFORE_COMPUTATION
    0.03: branch point: BEFORE_COMPUTATION
    0.03: point of calculation: AFTER_SUBMIT
    0.03: tabs: make the connection for the tab queries
    0.03: branch point: BEFORE_VALIDATION
    0.03: perform validations:
    0.03:... Point Not Null Validation: P50_TIMESTAMP
    0.04: branch point: BEFORE_PROCESSING
    0.04: point of treatment: AFTER_SUBMIT
    0.04:... Process 'PK get': PLSQL (AFTER_SUBMIT) declare function get_pk return varchar2 is begin C1 in (select ORACLE_SR_SEQ.nextval double next_val) loop return c1.next_val; end loop; end; Start: P50_ORACLE_SR_ID: = get_pk; end;
    0.04:... * session state: saved point new value "P50_ORACLE_SR_ID" = "6."
    0.04:... Treat "Line of ORACLE_SR process": DML_PROCESS_ROW (AFTER_SUBMIT) #OWNER #:ORACLE_SR:P50_ORACLE_SR_ID:ORACLE_SR_ID | IUD
    0.04: see the error page...
    0.04: execute rollback...

    ORA-01400: cannot insert NULL into ('ABILITY'. "" "" ORACLE_SR '. "" TIMESTAMP")

    Cannot process the row in the ORACLE_SR table.
    Back by demand.

    Any thoughts would be appreciated.

    Thank you

    Justin.

    If you have changed the Source Type of an element of database column to something else, so he cannot participate in the automated line choreography Fetch/automatic line processing (DML). You must leave the Type of Source, as it was and change the default value of the element fill when the ARF process retrieves a null value for the column.

    Scott

  • Remove data with null value

    Hello

    I'm using Oracle 11 g. I have a table with an id of 3, node, the value column. Combination of the column id and node, that must be taken account for deletion on the registers.

    Here, I need to delete lines with the NULL value in the value column. If for a combination of id and node with non-null values, then I need to delete rows with a null value for this combination.

    If the combination of id, node is not null value then this records should not delete.

    Below table, I need to remove the second row, for which is a value not zero VOICE CAL '10' is there, so I need to delete the row with null values. (VOICE, CAL, NULL)

    Network, FL, there is no value is non-null then I should NOT delete this line.

    This table is to have 100 s of this association, we can delete data in a single delete query?

    Or how I can delete rows with nulls for this combination.

    Tab1

    VALUE OF THE NŒUD ID

    VOICE CAL 10
    VOICE CAL NULL
    NETWORK NULL FL

    Thank you

    Hello

    oradba11 wrote:

    Hello

    I'm using Oracle 11 g. I have a table with an id of 3, node, the value column. Combination of the column id and node, that must be taken account for deletion on the registers.

    Here, I need to delete lines with the NULL value in the value column. If for a combination of id and node with non-null values, then I need to delete rows with a null value for this combination.

    If the combination of id, node is not null value then this records should not delete.

    Below table, I need to remove the second row, for which is a value not zero VOICE CAL '10' is there, so I need to delete the row with null values. (VOICE, CAL, NULL)

    Network, FL, there is no value is non-null then I should NOT delete this line.

    This table is to have 100 s of this association, we can delete data in a single delete query?

    Or how I can delete rows with nulls for this combination.

    Tab1

    VALUE OF THE NŒUD ID

    VOICE CAL 10
    VOICE CAL NULL
    NETWORK NULL FL

    Thank you

    You can do this in a single DELETE statement (it is not a request), using an EXISTS or IN the subquery.  For example:

    REMOVE table_x m

    WHERE the value IS NULL

    AND THERE ARE)

    SELECT 0

    FROM table_x s

    WHERE s.id = m.id

    AND s.node = m.node

    AND s.value IS NOT NULL

    )

    ;

    If you would care to post CREATE TABLE and INSERT instructions for the sample data, and then I could test it.

  • Window search/TOC not displayed in the output of WebHelp Pro

    Robohelp10, WebHelp Pro-

    I have what I think is quite fundamental question: when I generate my WebHelp Pro project, everything works perfectly until I have move the contents of the output folder to a network drive for viewing. When the default theme opens, rather than display the table of contents/search on the left, I get a link that says "view". Click on this link, and the table of contents opens on the right.

    WebHelp Show link.png

    I would like to have the table of contents displayed on this initial point of view, without requiring users to click on the link 'display '.

    Yet once, when I check the output results on my local drive, the table of contents appears. The obvious problem is generated using must reside on a network drive to be viewed by our users...

    PS: The project is on my local drive, only the contents of the output folder is moved to the network drive. In addition, any display of the table of contents seems to work very well.

    Any ideas would be greatly appreciated.

    -lcarey

    Larry, Rick has solved your problem of conditional compilation. However, make sure you have all updates installed for 10 of RoboHelp.

    Issues in RoboHelp WebHelp versions 10 and 11

    I noticed that you are using IE. The link display occur with Chrome or Firefox as well?

    Meanwhile, I'm still suspect that you do not open the good 'default' start the page file to start the WebHelp and that's why you get this link 'Show '. It's 'witness' that you open the file in default theme instead of the default Start Page. By any chance have somehow named "the topic of your default", index.html? If so, this is not correct.

    John

  • Add filter slot table form to show the lines with null values

    Hello

    I have a tabular presentation where we need to add a filter with two values (selection list) so that if one of the columns in a table (column1) is zero, then I need to display all records where column1 is null.

    I was wondering how do I put this in the Source of tabular forms where condition. This filter has only two values,

    All the
    NULL for the error

    So when the user selects all, then all the records in the table are shown
    If the user selects 'Value Null in error', while the records where Column1 is null will be shown

    For example
     column1        column2
                           A
                           B
          1               C
          3               D
     
    If the user selects, then

    all four files will show up. Else, only the first and the second will be returned.

    Thank you

    Hi, Ryan.

    Try a static LOV like this

    STATIC2:;,--- All ---;--- All ---
    

    and a Where clause, like this

    where column1 is null or :p1_filter like '%%'
    

    Jeff

  • NPE for rows with null values in the table of the adv

    I created the table adv, 2 columns, equipped with two text fields. Initially the col2 is empty,
    say that the structure is as follows:
                  col1          col2
    Hdr         Question    Answer
    row1       abc           zxc
    row2       pdd           null (user doesnt enter anything)
    row3       zxc            lkj
    
    APPLYBUTTON
    When the user clicks on apply button I want to update these values in the table.

    I don't know how to do that, but that's what I'm trying to do. Please guide me the right way if its wrong.

    in LICS, I took the APPLYBUTTON action, got all lines of the object corresponding to the view, consulted with everyrow and I'm checking if there are values in the fields in the table, if the value zero, are simply print null. (we would not update on this line). . I could get o the part update, due to null pointer exception
    I get on the row line null pointer exception [1].getAttribute("Answer") for row2, it prints the value of row1 however.

    Here is the code I wrote:
    Set of rows from the rowset = (RowSet) vo.getRowSet ();
    Rank rank [] = vo.getAllRowsInRange ();
    System.out.println ("row.length" + row.length);
    for (int i = 0; i < row.length; i ++) {}
    String question = row.getAttribute("Question").toString ();
    String response = row [i].getAttribute("Answer").toString ();
    If (question! = null & &!("".)) Equals (question. Trim()))
    {
    System.out.println ("Question line" + i + "-" + question);
    }
    on the other
    {
    System.out.println ("Question line" + i + "is null");
    }

    If (response! = null & &!("".)) Equals (Answer.Trim ()))
    {
    System.out.println ("Response line" + i + "-" + response);
    }
    on the other
    {
    System.out.println ("Response line" + i + "is null");
    }

    Why the NPE survey code, I'm checking for null value and you want to print the value null in the logfile... I can not to getAttribute() on the null field, why can not just give me null in the variable I'm assigning to?

    You can guide me what approach to take, if it is not correct.
    I must examine DataDictionary and collect data there?
    Thanks in advance.

    Hello

    handle the exception of null on these two statements like this pointer

    String question = "";
    String response = "";

    Try
    {
    question = row.getAttribute("Question").toString ();
    }
    catch (NullPointerException e)
    {
    question = "";
    }

    Try
    {
    answer = row.getAttribute("Answer").toString ();
    }
    catch (NullPointerException e)
    {
    response = "";
    }

    Si ( !("". Equals (question. Trim()))
    {
    System.out.println ("Question line" + i + "-" + question);
    }
    on the other
    {
    System.out.println ("Question line" + i + "is null");
    }

    Si ( !("". Equals (Answer.Trim ()))
    {
    System.out.println ("Response line" + i + "-" + response);
    }
    on the other
    {
    System.out.println ("Response line" + i + "is null");
    }

    Thank you
    Gerard

  • Why most of the tabs open empty with the label "New tab" and "topic: vacuum ' in the address line to the restart of Firefox since installing Firefox 28?"

    I have a system dual-bootable Windows Vista SP2 and Firefox updated to 28 on both systems. Since the update of the tabs more reopen empty with the label "New tab" and "topic: vacuum" in the address line of Firefox is restarted. The tabs that open correctly seem to be those who in fact, I was at the session of prefious. I can recover the missing tabs using the Session Manager to pick up a previous session, but of course it does not pick up the tabs open in future sessions. It seems that the tabs that I go to the session recovered are saved correctly, as indicated above, but which are not revisited in the context of the use of the session retrieved will drop the URL next time that I open Firefox it again.

    jdgale:

    I don't have the time to do it. However, 29 is just around the corner and we will put in the channel of exit 29, then hope that the issue is not you.

    P.S. I had originally chosen your last answer as the solution that you have migrated more to 29 but it seems that you have taken off. I'll be marking your last answer as the solution so that we can get out of the queue.

  • Firefox will not display on the screen even though with Process Explorer, I see active Firefox.exe but no CPU usage

    I use Firefox as default browser v10.0.2 on Dell XPS8300 Intel Core i5 and Windows 7 Ultimate and Compaq Presario CQ57 IO IO Intel Core i3 and Windows 7 Home. More frequently on the (approximately 90% of attempts) that Dell (50% of attempts) Firefox will not display on the screen when I click the icon. Cannot display other programs when it happens. I expressly say display because I believe that Firefox has started. To work around the problem, I installed Process Explorer on both machines and launch this program first, then click on the Firefox icon. When the problem occurs I see process Firefox.exe in the list of processes; some CPU consumed but, then, no CPU activity. If I click on the Firefox icon, yet another process opens in the list of processes, but with the same answer - some consumed CPU and then no CPU activity. If I have 2 processes running and kill the process from the 1st, the 2nd poster and then everything is normal. If I do not open it treat a 2nd, but kill the 1st process then click the Firefox Firefox is displayed and all then is normal. This problem has occurred since the original on the two new machines installation. I have updated the video drivers on both computers.

    OK, let's see if we can solve this problem and make it work for you!

    First of all, if you start Firefox in safe mode (restart your computer first, then when you open Firefox, hold down the SHIFT key) it starts more reliable? This is usually caused by a defective module. If this does not help, then restart Firefox, go to the Firefox, then add-ons button and disable your extensions one by one until you find the troublemaker.

    Also, try to update to Firefox 11, it has several bug fixes that might make life easier here.

    Just as a few troubleshooting steps base to ensure that we have all the bases covered,
    Run all Windows updates, install all required service packs, etc.

    Update all of your plugins (Flash, Java, etc.): http://www.mozilla.org/plugincheck/.

    Download and install MalwareBytes Anti-Malware, run a full scan. http://www.malwarebytes.org/. This check allows that there is no virus on your computer, causing problems. You can uninstall this program after having cleaned the infections.

  • RoboHelp 2015 adapted HTML5: child projects are not displayed in the output of the main project

    Hello

    I have a main and right project currently linking to two projects of the child. I published the projects of the child to the correct file to location SSL of the master project. When the output of the master file, the table of contents of the master project are fine, but no information of the child projects. I searched the forums and other Web site for answers and have not been able to fix my problem.

    Thank you

    MDawn

    Chris

    I'm sorry, it took me so long to look at more in detail, but the good news is that the project you sent me now works correctly in Firefox and IE.

    The problem has been setup. You must build the parent to a folder that will then create the ready files for the child projects. Next, you generate each child in the child's file in the mergedProjects folder in the parent folder. You generated to the! SSL! each project folder.

    I would like to know if you want to send me the version of working with you.

    See www.grainge.org for RoboHelp and Authoring information

    @petergrainge

  • Throw the records with null values columns

    Hi all.

    Anyone know how to dispose of records containing null column values?

    In the target table, I have the set Null option? with "N"... then the process sqlldr load some records. I need to load all of this without the records with null column values. by result, if the field X is null then load the file.

    Kind regards.

    Published by: ASzo on 05/06/2013 12:37

    Published by: ASzo on 05/06/2013 12:38

    Published by: ASzo on 05/06/2013 12:42

    load data
    INFILE...
    in the table...
    When x! = ''
    fields completed by...
    (x ...)

  • REGEXP_SUBSTR for the list delimited by commas with null values

    Hello

    I have a column that stores a list of values comma-delimited. Some of these values in the list may be null. I'm having some trouble trying to extract the values using the REGEXP_SUBSTR function when null values are present. Here are two things I've tried:
    SELECT
       REGEXP_SUBSTR (val, '[^,]*', 1, 1) pos1
      ,REGEXP_SUBSTR (val, '[^,]*', 1, 2) pos2
      ,REGEXP_SUBSTR (val, '[^,]*', 1, 3) pos3
      ,REGEXP_SUBSTR (val, '[^,]*', 1, 4) pos4
      ,REGEXP_SUBSTR (val, '[^,]*', 1, 5) pos5
    FROM (SELECT 'AAA,BBB,,DDD,,FFF' val FROM dual);
    
    POS P POS P P
    --- - --- - -
    AAA   BBB
    SELECT
       REGEXP_SUBSTR (val, '[^,]+', 1, 1) pos1
      ,REGEXP_SUBSTR (val, '[^,]+', 1, 2) pos2
      ,REGEXP_SUBSTR (val, '[^,]+', 1, 3) pos3
      ,REGEXP_SUBSTR (val, '[^,]+', 1, 4) pos4
      ,REGEXP_SUBSTR (val, '[^,]+', 1, 5) pos5
    FROM (SELECT 'AAA,BBB,,DDD,,FFF' val FROM dual);
    
    POS POS POS POS P
    --- --- --- --- -
    AAA BBB DDD FFF
    As you can see that neither calls work correctly. Anyone know how to change the regular expression pattern to handle null values? I tried various other models but could not get anyone to work in all cases.

    Thank you

    Martin
    -----
    http://www.ClariFit.com
    http://www.TalkApex.com

    Hi, Martin,.

    That's what you want:

    SELECT
       RTRIM (REGEXP_SUBSTR (val, '[^,]*,', 1, 1), ',') pos1
      ,RTRIM (REGEXP_SUBSTR (val, '[^,]*,', 1, 2), ',') pos2
      ,RTRIM (REGEXP_SUBSTR (val, '[^,]*,', 1, 3), ',') pos3
      ,RTRIM (REGEXP_SUBSTR (val, '[^,]*,', 1, 4), ',') pos4
      ,RTRIM (REGEXP_SUBSTR (val || ','
                          , '[^,]*,', 1, 5), ',') pos5
    FROM (SELECT 'AAA,BBB,,DDD,,FFF' val FROM dual);
    

    The query above works in Oracle 10 or 11, but in Oracle 11, you can also do it with only REGEXP_SUBSTR, without using RTRIM:

    SELECT
       REGEXP_SUBSTR (val, '([^,]*),|$', 1, 1, NULL, 1) pos1
      ,REGEXP_SUBSTR (val, '([^,]*),|$', 1, 2, NULL, 1) pos2
      ,REGEXP_SUBSTR (val, '([^,]*),|$', 1, 3, NULL, 1) pos3
      ,REGEXP_SUBSTR (val, '([^,]*),|$', 1, 4, NULL, 1) pos4
      ,REGEXP_SUBSTR (val, '([^,]*),|$', 1, 5, NULL, 1) pos5
    FROM (SELECT 'AAA,BBB,,DDD,,FFF' val FROM dual);
    

    The problem with your first request was that he was looking for sub channels of 0 or more non-virgules. There was as a substring. consisting of 3 characters starting at position 1, he returned "AAA", as expected. Then there was an another substring, the 0 characters, starting at position 4, so it returned NULL. Then, there was a substring of 3 characters starting at position 5, so he returned 'BBB '.

    The problem with your 2nd request was that he was looking for 1 or more non-virgules. 'DDD' is the 3rd this substring.

    Published by: Frank Kulash, on February 16, 2012 11:36
    Added Oracle 11 example

  • Title displayed in the output is not correct - to where?

    RH9, HR Server 9, IE8, WebHelp Pro

    In the project settings > title of the project, we have the label we want users to be able to see in the title bar of the browser output WebHelp.

    However, in the browser, the title displayed in the top navigation bar is different from what we have in the project settings > title of the project. How to change that?

    The title of the project in the project settings > project called MyProject

    In the output of the server, the browser bar says:

    http://MyProject-test/RoboHelp/Robo/Server/General/projects/MyProject/Temp_Project_for_Myp roject.htm

    At the same time, we had the project named 'Temp_Project_for_Myproject {}' but we changed and we cannot get rid of the old name in the output.

    Any ideas?

    --

    Mike West

    Hello

    Wading in uncharted waters here. I think remember that for WebHelp Pro, you have a definition of the window. Have you tried looking there?

    View > pods > implementation of the project. Expand the Windows category and double-click on the definition of the window you should see.

    See you soon... Rick

    Useful and practical links

    Wish to RoboHelp form/Bug report form

    Begin to learn RoboHelp HTML 7, 8 or 9 in the day!

    Adobe Certified RoboHelp HTML Training

    SorcerStone blog

    RoboHelp EBooks

  • Help with the name of the comparison of the output of an sql subquery value function

    Oracle 10 g

    The problem is I want to compare the value obtained from the subquery with the next value in the values of the column from the main query

    Add a view called bioChemCompare to show the content average A-level biology and in the average grade of A-level chemistry for students of each school that has an average GCSE score between 6.5 and 7.0 (inclusive). The
    calculations should be carried out only on students who studied BOTH the biology and chemistry of A'level.

    I have a query like
    select   g.grade from comqdhb.gradevalues@glink g
    where  g.value > ( select avg(g.value)
    from    comqdhb.gradevalues@glink g
    ,         comqdhb.subject@glink sb
    ,         comqdhb.studentingroup@glink sg
    ,         comqdhb.teachinggroup@glink tg
    ,         comqdhb.student@glink s
    ,         average_gcse gc
    where g.grade=sg.grade 
    and     gc.avg_gcse between 6.5 and 7
    and     gc.upn=s.upn
    and     g."LEVEL"='a' and sb.sid=tg.sid
    and     sg.gid=tg.gid and sg.upn=s.upn
    and     (sb.subject ='Biology' or sb.subject='Chemistry'));
    The subquery
    select avg(g.value)
    from    comqdhb.gradevalues@glink g
    ,         comqdhb.subject@glink sb
    ,         comqdhb.studentingroup@glink sg
    ,         comqdhb.teachinggroup@glink tg
    ,         comqdhb.student@glink s
    ,         average_gcse gc
    where g.grade=sg.grade 
    and     gc.avg_gcse between 6.5 and 7
    and     gc.upn=s.upn
    and     g."LEVEL"='a' and sb.sid=tg.sid
    and     sg.gid=tg.gid and sg.upn=s.upn
    and     (sb.subject ='Biology' or sb.subject='Chemistry')
    Returns
    78.88
    In the main query
    select   g.grade from comqdhb.gradevalues@glink g
    where  g.value > 78.8
    g.Value has values such as
    120
    100
    80
    60
    40
    20
    78.8 is close to 80, only 80 must be taken and the corresponding grade will be displayed.

    What is the function to do so.

    I just put > and it displays
    120 A
    100 B
    80 C

    But the ABC should not be visible only C must be taken

    y at - it no fuction as neighbors, cant use between

    Please help, thank you.

    Rider wrote:
    y at - it no fuction as neighbors, cant use between

    The MIN function maybe aggregation?

    select   min(g.grade) from comqdhb.gradevalues@glink g ...
    

    Kind regards
    Rob.

  • Calculation of the sum of a column on a XML editor RTF with NULL values

    Hello

    I have a problem to get the sum of a column in XML editor RTF, if one of the lines has a null value.

    say, I have 4 columns and values

    CASES1:
    NULL, NULL, 4, NULL
    Sum, I expect is: 4

    CASE2:
    NULL, NULL, NULL, NULL
    I'm waiting for is a null

    Is there a way to do this?

    Thank you
    Anita

    Try this

    AMT's column

Maybe you are looking for

  • Please help diagnose failures

    Date of the ID report09:38 BP-83c64d9b-8B95-424B-8183-2099b2140122 22/01/2014BP-0dd2f1ca-A991-4D33-9421-8c0c82140121 21/01/2014 13:16BP-129d546e-7b02-4D04-B252-aa7302140115 14/01/2014 20:5009:33 BP-21d6e5ae-1ecc-4b61-8228-ae9832140114 14/01/2014BP-40

  • Example of analysis of spectrum at large problem band

    Hello world. I downloaded the example of analysis of spectrum to broadband and tried, but it doesn't show any of the spectrum. http://www.NI.com/white-paper/13882/en Configuration: Anritsu MG3700A ==> NI USRP2920 vector signal generator (connected to

  • How to restore Windows Updates?

    RE this post, automatic updates of Windows 7 have broken my development environment and cost me some valuable development time! Friday afternoon, windows update did some updates during my lunch break, after which I was unable to debug applications at

  • System Restore, now INTERNET NO connecttions available, and Norton is disabled

    I downloaded a specific file relating to a VST in a DAW. He brought a bunch of * on my computer--none of this seeming harmful, just annoying, so I did a system restore. There is no 'available' internet connection, Norton is off, etc. I don't have acc

  • HP Photosmart C4380 is not scanning

    My iMac screen running OS 10.6.8 and connected to a HP Photosmart C4380 has always printed reliably of keyboard commands. Scan never works, either the computer or directly to the all-in-one device. C4380 window then displays the error message "USB or