12 c - Assistance is required in a query

  1. Hello
    The following query is complaing about expressions, GROUP BY and ORDER BY - please help me to fix it-thanks

    SELECT
    a.FirstName | ' ' || LIKE "Name", a.LastName
    ROUND (SUM ((b.UnitPrice-b.Discount) * b.Quantity) / 100000) "SALES".
    Of
    Employees, Order_Details b, c orders
    WHERE
    a.EmployeeID = c.EmployeeID AND
    b.OrderID = c.OrderID
    GROUP 1
    ORDER BY DESC 2
    EXTRACT THE FIRST 5 LINES ONLY;

Here is the error:

  • a.FirstName | ' ' || LIKE "Name", a.LastName
    ERROR on line 2:
    "ORA-00979: not a GROUP BY expression.

Concerning
Terry

Hello

For the GROUP BY clause, you can also use this:

GROUP BY a.FirstName | ' ' || a.LastName

in other words, use the exact same phrase you have in the SELECT clause.

It's not completely equivalent to

GROUP OF a.FirstName, a.LastName

The former would consider these 2 rows to be in the same group:

First name last name

---------  --------

Thomas A Becket

Thomas A Becket

The latter would consider whether they are in groups, since neither FirstName and LastName is the same.

Tags: Database

Similar Questions

  • Requirement for the query

    Hi all

    I'm using Oracle 11.2.0.3

    CREATE TABLE PRODUCT (ID NUMBER, PRODUCT_CODE VARCHAR2 (30));

    INSERT INTO THE PRODUCT VALUES (1, 'CAR1');

    INSERT INTO THE PRODUCT VALUES (2, 'CAR2');

    INSERT INTO THE PRODUCT VALUES (3, 'CAR3');

    INSERT INTO THE PRODUCT VALUES (4, 'CAR4');

    INSERT INTO THE PRODUCT VALUES (5, 'CAR5');

    CREATE TABLE ITEM_STG (ITEM_CODE VARCHAR2 (30), ITEM_DESC VARCHAR2 (200));

    INSERT INTO ITEM_STG VALUES ('CAR1', 'MARUTI');

    INSERT INTO ITEM_STG VALUES ('CAR2', 'AUNTIE');

    CREATE TABLE AN ELEMENT (ITEM_CODE VARCHAR2 (30), ITEM_DESC VARCHAR2 (200));

    INSERT INTO ARTICLE VALUES ('CAR1', 'BMV');

    INSERT INTO ARTICLE VALUES ('CAR2', 'BENZ');

    INSERT INTO ARTICLE VALUES ('CAR2', 'LANDROVER');

    INSERT INTO ARTICLE VALUES ('CAR2', 'JAGUAR');

    My requirement is like I make a query

    so that it checks the product code with the item code

    and first he will get the values of the table ITEM_STG if the value of patcular is not found in the table ITEM_STG then it goes to the table ARTICLE

    can it be possibel in simple sql query

    SELECT A.PRODUCT_CODE, NVL (B.ITEM_DESC, C.ITEM_DESC)

    THE PRODUCT,.

    B ITEM_STG,

    POINT C

    WHERE A.PRODUCT_CODE = B.ITEM_CODE

    AND A.PRODUCT_CODE = C.ITEM_CODE

    I tried like the query above and with left join and other possibilities, but getting not the query.

    Please help me

    Thank you

    You were close...

    SQL> ed
    Wrote file afiedt.buf                                              
    
      1  select a.product_code, nvl(b.item_desc, c.item_desc) item_desc
      2  from product a, item_stg b, item c
      3  where a.product_code = b.item_code ( + )
      4* and a.product_code = c.item_code
    SQL> /                                                            
    
    PRODUCT_CODE
    ------------------------------
    ITEM_DESC
    ---------------------------------------------------------------------
    CAR1
    MARUTI                                                            
    
    CAR2
    TATA                                                              
    
    CAR4
    JAGUAR                                                            
    
    PRODUCT_CODE
    ------------------------------
    ITEM_DESC
    ---------------------------------------------------------------------
    CAR3
    LANDROVER                                                         
    

    Note: remove space (+)

    Grrr... stupid software

  • Help required in SQL query

    I have a table and passes as below:

    START DATE TOTAL NUMBER OF DAYS
    11/10/2011 15:00 1
    15/10/2011-05:00 1
    2011-12-22 10:00 1
    22/12/2011 11:00 2
    30/12/2011-10:00 1
    01/01/2012 01:00 1
    01/01/2012 10:00 1
    01/01/2012 16:00 2
    02/01/2012 14:00 1
    03/01/2012-15:00 1
    04/01/2012-15:00 2
    04/01/2012 18:00 1



    I need to ask where the values in the table above
    must return values as below:

    I tried many ways, but not able to find the solution.

    Kindly help me in this regard.


    START DATE TOTAL NUMBER OF DAYS
    11/10/2011 15:00 1
    15/10/2011-05:00 1
    22/12/2011 11:00 2
    30/12/2011-10:00 1
    01/01/2012 16:00 2
    02/01/2012 14:00 1
    03/01/2012-15:00 1
    04/01/2012-15:00 2


    the ultimate goal is to summarize the TOTAL number of DAYS column all the numbers in the second table... All jobs must be treated in the same query. I can't use the coding of java to process what my requirement should be included in the query that already exists.

    Published by: 915175 on February 16, 2012 23:02
    select trunc(start_date), max(start_date), max(total_days) from tablename
    group by trunc(start_date);
    

    Please check below is on my local site with you Test data:

    SQL>
    SQL> with tablename as
      2  (
      3  select to_date('10/11/2011 15:00' , 'mm/dd/yyyy hh24:mi') start_date,  1 total_days from dual union all
      4  select to_date('10/15/2011 5:00' , 'mm/dd/yyyy hh24:mi') start_date,  1 total_days from dual union all
      5  select to_date('12/22/2011 10:00' , 'mm/dd/yyyy hh24:mi') start_date,  1 total_days from dual union all
      6  select to_date('12/22/2011 11:00' , 'mm/dd/yyyy hh24:mi') start_date,  2 total_days from dual union all
      7  select to_date('12/30/2011 10:00' , 'mm/dd/yyyy hh24:mi') start_date,  1 total_days from dual union all
      8  select to_date('1/1/2012 1:00' , 'mm/dd/yyyy hh24:mi') start_date,  1 total_days from dual union all
      9  select to_date('1/1/2012 10:00' , 'mm/dd/yyyy hh24:mi') start_date,  1 total_days from dual union all
     10  select to_date('1/1/2012 16:00' , 'mm/dd/yyyy hh24:mi') start_date,  2 total_days from dual union all
     11  select to_date('1/2/2012 14:00' , 'mm/dd/yyyy hh24:mi') start_date,  1 total_days from dual union all
     12  select to_date('1/3/2012 15:00' , 'mm/dd/yyyy hh24:mi') start_date,  1 total_days from dual union all
     13  select to_date('1/4/2012 15:00' , 'mm/dd/yyyy hh24:mi') start_date,  2 total_days from dual union all
     14  select to_date('1/4/2012 18:00' , 'mm/dd/yyyy hh24:mi') start_date,  1 total_days from dual
     15  )
     16  select  TO_CHAR(max(start_date),'MM/DD/YYYY HH24:MI') start_date , max(total_days) total_days from tablename
     17  group by trunc(start_date);
    
    START_DATE       TOTAL_DAYS
    ---------------- ----------
    10/15/2011 05:00          1
    01/03/2012 15:00          1
    12/30/2011 10:00          1
    01/01/2012 16:00          2
    10/11/2011 15:00          1
    12/22/2011 11:00          2
    01/04/2012 18:00          2
    01/02/2012 14:00          1
    
    8 rows selected.
    
    SQL>
    

    Kind regards
    Lifexisxnotxsoxbeautiful...

    Update: added test done to my database...

    Edited by: lifexisxnotxsoxbeautiful Vithalani, on February 16, 2012 23:18

  • Requirement of hierarchical query

    Hi, I have two tables, emp_tab , that contains only information employee as below,

    emp_tab
    -----------
    EmpNo | empname | EmpType
    -------------------------------------
    10. SK | EMP
    20. KS | MGR
    30. NAR | ORG



    and another table emp_tab_relation

    emp_tab_relation
    ------------------------
    relt_id | emp_id | prnt_relt_id
    --------------------------------------
    1. 20. null
    2. 10. 1
    3. 30. 1

    That is to say, prnt emp_id is its relationship id

    in this case 20 is the Manager and its relationship id is 1 and so that will be filled instead of prnt_relt_id.

    now my requirement is I want a query to output as below,

    EMPNAME | MGRNAME
    -------------------------------
    KS | NULL VALUE
    SK | KS
    NAR | KS

    Thank you
    with emp_tab as (
    select 10 empno,'SK' empname,'EMP' emptype from dual union all
    select 20,'KS','MGR' from dual union all
    select 30,'NAR','ORG' from dual
    ),
    emp_tab_relation as (
    select 1 relt_id,20 emp_id,null prnt_relt_id from dual union all
    select 2,10,1 from dual union all
    select 3,30,1 from dual
    )
    --test data
     SELECT empname,
      prior empname
       FROM emp_tab p
    JOIN emp_tab_relation r
         ON r.emp_id           = p.empno
      CONNECT BY prior relt_id = prnt_relt_id
      START WITH prnt_relt_id IS NULL
    

    Ravi Kumar

  • assistance needed for a complex query

    Hi guys

    I need your help to write the sql query where I fill in null values when they are in the meantime, as you can see that the same data are for 2 ID... I am able to fill a value zero for id 101 as it's the last with the sql query below... but not able to do the same thing with when null values are between the two...

    for id 102, if the value null line si la valeur null ligne date date is greater than or equal to the date of the previous row and fill in with the previous row null value... and if, as in the case of ord = '5' it is identical to the date of the next line, then I need to fill it with the next value of line WD...

    Let me know if you need more information;

    CREATE TABLE tt (id INT, int DSB, date the t1d, int WD)

    INSERT INTO tt VALUES (101, '1','2011-12-20', '484')
    INSERT INTO tt VALUES (101, '2','2011-02-12', '444')
    INSERT INTO tt VALUES (101, '3','2011-02-12', '444')
    INSERT INTO tt VALUES (101, '4','2011-02-14', NULL)

    INSERT INTO VALUES of tt (102, '1','2013-05-27', '544')
    INSERT INTO VALUES of tt (102, '2','2013-06-02', '544')
    INSERT INTO VALUES of tt (102, '3','2013-06-03', NULL)
    INSERT INTO VALUES of tt (102, '4','2013-06-10', NULL)
    INSERT INTO VALUES of tt (102, '5','2013-07-08', NULL)
    INSERT INTO VALUES of tt (102, '6','2013-07-08', '690')
    INSERT INTO VALUES of tt (102, '7','2013-07-10', '690')

    Select * from tt

    SELECT nvl (WD, FINAL_WD) F_wd, * FROM
    (
    Select *,.
    FINAL_WD = (SELECT b.wd
    TT b
    WHERE b.id = a.id
    and b.ord + 1 = a.ord
    and rownum = 1
    ORDER BY b.ord desc)
    TT one
    WHERE a.wd is null
    ) D

    Hello

    Thanks for posting the sample data.  Be sure to post the results desired from these data.

    If ord and wd are numbers, then don't try to insert the strings (for example, '1') in these columns.  It goes same for t1d, but even more.  If t1d is a DATE, then insert only values, not DATE strings such as "2010-12-20'. TO_DATE allows to convert a string to a DATE, or use literals DATE.   All your INSERT statements cause errors on my system because you are using the wrong type of data.

    Maybe the analytical LAST_VALUE function can help you:

    SELECT id, DSB

    t1d

    LAST_VALUE (WD IGNORE NULLS) over (PARTITION BY ID.

    ORDER BY t1d

    WD NULLS LAST

    ) AS new_wd

    TT

    ORDER BY id

    t1d

    ;

  • Help required in HRMS query

    Hello friends,

    I'll try to find the jurisdiction of parent elements of jurisdiction, in the per_competence_elements table that we have
    column named PARENT_COMPETENCE_ELEMENT_ID, now how to find parent jurisdiction, what table devrais I use?

    Any suggestions please?

    Kind regards
    -Had

    This is the query with the name of jurisdiction

    select pc_child.name
          ,pc_parent.name
    from   per_competence_elements   pce_child
          ,per_competences           pc_child
          ,per_competence_elements   pce_parent
          ,per_competences           pc_parent
    where  pce_child.parent_competence_element_id = pce_parent.competence_element_id
    and    pc_child.competence_id                 = pce_child.competence_id
    and    pc_parent.competence_id                = pce_parent.competence_id
    
  • Assistance requested in writing a query!

    Dear all,

    My database is GR 11, 2 on Linux.

    I have data like this:

    ID name
    1 Mike
    2 mike Peter
    Steven 3
    4 Steven Andrew

    In a select query, I want to get the result

    1 Mike
    Steven 3

    Logic, if there is a next match for the name, skip registration, even if it contains the name of the second

    Kindly help.

    Best regards, Imran

    Hi Imran,

    It's defintely not a nobel prize, but it is up to what your specified.

    WITH t1
         AS (SELECT 1 AS id, 'Mike' AS name FROM DUAL  UNION
             SELECT 2, 'Mike Peter' FROM DUAL  UNION
             SELECT 3, 'Steven' FROM DUAL  UNION
             SELECT 4, 'Steven Andrew' FROM DUAL)
    SELECT *
      FROM t1
     WHERE name IN (SELECT SUBSTR (name, 1, INSTR (name, ' ', 1) - 1) FROM t1)
    

    HTH,
    Thierry

  • Help required with SQL query

    I have three tables listed below

    FORMAT - Columns are format_id, format_desc
    VIDEO_FORMAT - areVIDEO_FORMAT_ID of columns, COST VIDEO_ID, FORMAT_ID,
    RENTAL - Coulmns are RENTAL_ID, DATE_OUT, DATE_DUE, DATE_IN, DELIVERY_STATUS, LATE_FEE, CUSTOMER_ID, VIDEO_FORMAT_ID

    I need to find the customer list id, format description and cost of the video format for customers who have rented a video.

    I wrote the request

    Select rental r format f, video_format, r.customer_id, f.format_desc, vf.cost vf where f.format_id in (select video_format format_id) and r.video_format_id = vf.video_format_id

    This isn't to get accurate results. Help, please.

    Would know what kind of results you get, but I think that I can see.

    Try:
    Select r.customer_id, f.format_desc, vf.cost
    rental r, f format, video_format vf
    where vf.format_id = f.format_id
    and r.video_format_id = vf.video_format_id

    Can't be sure without a little more information so that will set you. But I do not know why you went with trying to get a relationship using an IN with a subquery. It will be useful.

  • Help required with a query

    Hello

    I have data like shown below:

    ID DATE NUM_PCT

    1 June 1, 2011 1.2
    1-2 June 2011 NULL
    1-3 June 2011 NULL
    1 6 June 2011 NULL
    1 July 1, 2011 1.25
    1 NULL July 4, 2011
    2 June 1, 2011 1.3
    2 NULL June 2, 2011
    2-3 June 2011 NULL
    2 June 6, 2011 1.29
    2 NULL June 7, 2011
    2 NULL 8 June 2011
    2 June 9, 2011 1.31
    2 NULL 10 June 2011

    and I want to convert the data as shown below:

    ID DATE NUM_PCT

    1 June 1, 2011 1.2
    1 June 2, 2011 1.2
    1 1.2 3 June 2011
    1 June 6, 2011 1.2
    1 July 1, 2011 1.25
    1 July 4, 2011 1.25
    2 June 1, 2011 1.3
    2 June 2, 2011 1.3
    2 June 3, 2011 1.3
    2 June 6, 2011 1.29
    2 June 7, 2011 1.29
    2 June 8, 2011 1.29
    2 June 9, 2011 1.31
    2 June 10, 2011 1.31

    I use Oracle 10.2.0.4.0

    Please help me in writing a request for it.
    with t as (
               select 1 id,to_date('01-Jun-2011','dd-mon-yyyy') dt,1.2 num_pct from dual union all
               select 1,to_date('02-Jun-2011','dd-mon-yyyy'),NULL from dual union all
               select 1,to_date('03-Jun-2011','dd-mon-yyyy'),NULL from dual union all
               select 1,to_date('06-Jun-2011','dd-mon-yyyy'),NULL from dual union all
               select 1,to_date('01-Jul-2011','dd-mon-yyyy'),1.25 from dual union all
               select 1,to_date('04-Jul-2011','dd-mon-yyyy'),NULL from dual union all
               select 2,to_date('01-Jun-2011','dd-mon-yyyy'),1.3 from dual union all
               select 2,to_date('02-Jun-2011','dd-mon-yyyy'),NULL from dual union all
               select 2,to_date('03-Jun-2011','dd-mon-yyyy'),NULL from dual union all
               select 2,to_date('06-Jun-2011','dd-mon-yyyy'),1.29 from dual union all
               select 2,to_date('07-Jun-2011','dd-mon-yyyy'),NULL from dual union all
               select 2,to_date('08-Jun-2011','dd-mon-yyyy'),NULL from dual union all
               select 2,to_date('09-Jun-2011','dd-mon-yyyy'),1.31 from dual union all
               select 2,to_date('10-Jun-2011','dd-mon-yyyy'),NULL from dual
              )
    -- end of on-the-fly data sample
    select  id,
            dt,
            last_value(num_pct ignore nulls) over(partition by id order by dt) num_pct
      from  t
      order by id,
               dt
    /
    
            ID DT           NUM_PCT
    ---------- --------- ----------
             1 01-JUN-11        1.2
             1 02-JUN-11        1.2
             1 03-JUN-11        1.2
             1 06-JUN-11        1.2
             1 01-JUL-11       1.25
             1 04-JUL-11       1.25
             2 01-JUN-11        1.3
             2 02-JUN-11        1.3
             2 03-JUN-11        1.3
             2 06-JUN-11       1.29
             2 07-JUN-11       1.29
    
            ID DT           NUM_PCT
    ---------- --------- ----------
             2 08-JUN-11       1.29
             2 09-JUN-11       1.31
             2 10-JUN-11       1.31
    
    14 rows selected.
    
    SQL> 
    

    SY.

  • Requirement of SQL query

    Hi all

    I need to display the number 100000 under 1,00,000.00

    Any help is appreciated...
    API> SELECT TO_CHAR(100000,'FM999,999,999,990.90')
      2  FROM DUAL;
    
    TO_CHAR(100000,'FM9
    -------------------
    100,000.00
    
  • The response from the query web service

    Hello


    I would like to apply for assistance in creating an appropriate query to process the response from the web service.

    This is the outdated response from the web service and my unsuccessful attempt to treat.


    PROCEDURE PRIMER_4B AS
    XML_WS XMLTYPE.
    CLOB DONNEES_XML
    ': = ' < s: Envelope xmlns:S = 'http://schemas.xmlsoap.org/soap/envelope/' > '.
    < Body >
    "< ns2:getDataResponse xmlns:ns2 ="http://service.anyxxx.com/">."
    < return >
    < id > 124 / < ID >
    < name > Ana < / name >
    < / return >
    < / ns2:getDataResponse >
    < / Body >
    < / s: Envelope > ';

    CSR OF CURSOR IS
    SELECT C.
    FROM XMLTable)
    XMLNamespaces)
                 ' http://schemas.xmlsoap.org/SOAP/envelope/ ' LIKE 'SOAP'
    , by default ' http://service.anyxxx.com/
    )
    , ': soap envelope / soap: Body/getDataResponse/back '
    PASSAGE XML_WS
    path id varchar2 columns (20) "id."
    path of the varchar2 (30) name 'name '.
    ) C   ;
    rec_CSR CSR % ROWTYPE;

    BEGIN
    XML_WS: = xmltype (donnees_xml);
    Open the CSR;
    LOOP
    EXTRACT THE CSR IN REC_CSR;
    DBMS_OUTPUT. Put_line (' Output: ' |) REC_CSR.ID |'   '|| REC_CSR. (Name)
    When the exit CSR % notfound;
    end loop;
    DBMS_OUTPUT. Put_line('Total:'||) CSR % ROWCOUNT);
    close the CSR;
    END PRIMER_4B;

    The result is:
    Output:
    Total 0


    Thank you
    Kostadin

    Hello

    This part does not:

    default 'http://service.anyxxx.com/'.

    If you declare this uri as the default namespace uri, then 'return', 'id', 'name' nodes are supposed to be in this namespace, which is not correct, because they are in any workspace names.

    Solution: give a specific prefix of the namespace above and reference it accordingly in the XQuery expression:

    C. SELECT

    FROM XMLTable)

    XMLNamespaces)

    "http://schemas.xmlsoap.org/soap/envelope/" AS "SOAP."

    , 'http://service.anyxxx.com/' as 'ns2.

    )

    , ': soap envelope / soap: Body / ns2:getDataResponse / back '

    PASSAGE XML_WS

    Path id varchar2 COLUMNS (20) "id".

    , path of the varchar2 (30) name 'name '.

    ) c ;

  • Re: Query hierarchy to get the parent nodes?

    Guys I need a help here please...

    I want to ask using any unique value for example in where clause for 'E', I get a lot of 'A' to 'G', which are all related. is there a way to do this?...

    IM lookking as

    A

    B

    C

    D

    E

    F

    G

    When I search for 'E '.

    Thanks in advance...

    Hello

    The design of your table is complicating the problem.  If your data is a tree (that is, if each node can have, at most, only one parent) then it would be simpler to have a separate table for each node, if this node has a parent or not. in other words, add a line like

    Insert into RELATIONSHIP (PARENT, CHILD) Values (NULL, 'A');

    You can create a unique constraint for CHILD.

    If you must use the existing design of the table, here's a way to do it:

    WITH roots AS

    (

    SOME parents

    IN the relationship

    WHERE CONNECT_BY_ISLEAF = 1

    START WITH IN '& required' (parent, child)

    CONNECT BY child = parent PRIOR

    )

    SELECT parents as a node

    Roots

    UNION

    SOME children as a node

    IN the relationship

    START WITH (IN) parent

    SOME parents

    Roots

    )

    Parent child = PRIOR CONNECTION

    ORDER BY node

    ;

    That's essentially what Blushadow posted and also what Chris suggested, but as the Blushadow request, the request of bottom-up is only encoded only once and the target node (& required in this query) is used only once.

  • How to run a Select query stored in a Variable

    Hello

    I have a following requirement:

    Select a query result on Var1, result of another request selection in Var2,
    If Va2 = "value11" or Var2 = "Value2" then Var1 = "select query. Now how can I run this SQL at the end of the Pl/SQL query?

    so I write request for the same thing:

    DECLARE
    qry nvarchar2 (500);
    result nvarchar2 (500);

    BEGIN

    Select "choose TEXTVAL as 'CHARGER' FROM TABLE1 WHERE LOC =" [ParameterValue] "and KEYNAME =" < < REPLACE > > "' double INTO qry ;"

    SELECT CASE County WHEN (RW." CountofBATCH') > 1 then "mixture."
    WHEN count (RW." CountofMAT') = 0 then 'None '.
    ANOTHER 'other '.
    END
    AS a result
    TABLENAME2 TT, XMLTable ('/ sets of lines/lines/lines ' PASSAGE TT.) XMLCOL
    COLUMNS
    "CountofBATCH" PATH "/ row [CLABS > 0] / LOADED ',"
    "CountofMAT" PATH "/ row [MATNR = '[parameter value]'] / MAST '"
    ) AS RW

    where
    TT.PL = '[parameter value]' and
    TT. TANK = "[value settings]";

    IF result = 'Mixture' result GOLD = 'None' THEN
    qry: replace = (qry, "< < REPLACE > >", result);
    on the other
    qry: = 'nothing. '
    END IF;

    Thus the qry variable will have select statement. Now how can I use this to get the select result of this statement in the same query qry?

    You can use execute immediately if the output of the query is in the same query.

    It's very simple.
    a query string signle and then go like this

    declare
    qry VARCHAR2 (255);
    result varcharf2 (2500);
    number of vempid: = 1;

    Start
    qry: =' select empname emp where empid =: empid ";

    run immediately qry in the result using vempid;
    -now the result of data is as a result
    end;

  • move to the current record after query execution

    Hi all

    I have a form where I can list all the jobs of the db that can start or stop.

    For more details, form has columns jobs, the current situation of db, action (drop-down start/stop)

    The user will see list of works on the screen and it goes directly at a check-in and departure (submit) work using drop-down for this record.

    Once they start and stop work, run query goes off to show the current state of employment.

    Now goes to my requirement, after the query is run, I want to go to the (employment) record that the user has begun the work.

    Currently, the cursor goes to the first record.

    Is there any oracle 10g AS property where I can get the current record, put it in setting and go to this record after having run query?

    Is there another way?

    Kind regards
    Leonard

    Hello

    If you are sure that the record after motion will keep the same position, you can before, store the current record in a variable number with Get_Block_Property (CURRENT_RECORD) integrated, then after query, use Go_Record() with the variable number stored in the parameter.

    If you think that, after re - question registration number can change, you need to browse your recordings in a loop, then stop navidation while you find the corresponding key.

    François

  • Date query shows no results for the date of the day

    Hello everyone. I use Jdeveloper 11.1.1.3.0 with ADF and I have a view named query with a single field, Date. The operator that he uses is equal to a value written in the field. The problem is that when I insert a line in the table (the date is automatically set to the current date on the insertion) and I'm looking for today it returns nothing. However if I leave the field blank it will find me the line. I tried to do this with the timestamp option, but it is not very user-friendly, the user will need to type in the time line was inserted to find, or use between it operator for two fields which is something I want to avoid if possible

    The requirement is a query field that allows the user to choose a date on the calendar and shows all lines that are inserted at this date (even if the date is today, and the line was inserted a few minutes before).

    Published by: Dino2dy on April 6, 2011 02:50

    Dino2dy,

    The best way to proceed would be just to add an additional attribute to your VO - use "TRUNC (your_date_column_name)" as the value for the attribute - then just compare this attribute in the named view criteria.

    John

Maybe you are looking for

  • Portege 4000 - upgrade RAM & graphic card driver installation

    I'm having some trouble with my Portege 4000 for the moment. I installed XP on a disk, but will no longer have that I have 256 MB of RAM... -Have you tried 2 manufacturers but the PC133 512 is not compatible. However, my system has an IBM of PC100 25

  • Satellite A500-1E4 - there keyboard backlight?

    Satellite A500-1E4 with Nordic keyboard, have a backlit keyboard?

  • Dead 4090CDS

    I was using my Toshiba 4090CDS with the power adapter is plugged when all of a sudden he's dead! I swithched back on and it turned on but after about 3 minutes, it does the same thing again - I kept the passage back on until eventually it would will

  • Re: HP Designjet 130nr... solved

    Hello I have problem my printer HP Designjet 130nr at each startup, it still shows 3 pages by aligning the test print heads. Thank you for your help

  • Best compatible blu ray burner for late 2013 iMac

    Hello everyone. I'm a little shy gun that I bought a LG BE14NU40, who is correctly identified, but has a strange error after it starts to burn DVD/BD. That is why I am reaching out to the community for those of you who have a USB 3.0 external BD reco