find the days from the date of...

Hi all

I have a date saying (06-mar-2009), then how do you know what day is the same day as today (Friday)... and I need to create a table based on another table and must include all dates it's Saturday...

If someone can help me...

Thank you
Pankaj

If you are looking for the week then->

CREATE TABLE test
AS
  SELECT *
  FROM emp
  where to_char(hiredate,'DY') NOT IN ('SAT','SUN');

Another thing,

CREATE TABLE test
AS
  SELECT *
  FROM emp
  where to_char(hiredate,'DY') IN ('SAT','SUN');

Alternatively,.

Please post your desired output of your sample data.

Kind regards.

LOULOU.

Tags: Database

Similar Questions

  • How to find the date item was my favorites on Mozilla Firefox

    on system moot bookmark how to find the date of the bookmark?

    In bookmarks menu select organize bookmarks to open the bookmarks library. In the bookmarks library, click views, and then display the columns and then added. This will display a column showing when a bookmark has been added.

  • Toshiba 40TL938G - find the date and time settings

    I have a 40TL938G and I can't find the date and time settings.
    Can someone help me?

    SSY
    I read the manual and it does ' t say anything about these settings.

    THX

    In the settings of digital television, you should see the option called local time settings

    To display the time on the TV you press the sign of the small clock on the remote control while watching a normal TV show (analog only)

  • HP g62-340us: FIND THE DATE OF MANUFACTURE for a HP G62-340US?

    How to find the date of manufacture on my HP G62-340US

    Ken

    Hi, Ken

    This means that your laptop has built in 2011 (1) in the 2nd week of the calendar year (02) or January 2011.

  • How to find the date of purchase of my windows?

    I don't know the Date of purchase of windows, I can find it using the product key? or another procedure?

    Really, there is no way to find the date of purchase by using a Windows installed, Windows Installer CD or product key.   You need to find the original "Bill" room, you bought your computer or Windows.

  • where do you find the date of purchase on your computer

    Im trying to upgrade to windows 7, but it asked for the date of the purchase I don't have reception more and then I try again, it said that it is inelegible because he already has my serial number

    Hello Jonesejeans,

    Thanks for posting on the Community Forums of Microsoft Vista.

    Since you have lost the receipt of purchase of the computer, to get the date of purchase of the computer, you will have to contact the manufacturer of the computer and check the same.

    In Windows, you will not be able to find the date of purchase of the computer.

    However, you can find the date of installation of Windows on your computer that could help you.

    To find the date of installation of Windows on your computer, follow the steps below:

    1. Click on start and open computer.
    2. Click on the C drive and right click on the Windows folder.
    3. You can find the created Date of Windows folder.

    It will be useful.

    Thank you and best regards,

    Srinivas

    Microsoft Answers Support Engineer

    Visit our Microsoft answers feedback Forum and let us know what you think

  • common to the appellants for 3 days from particular date

    Need to find the number of other_party which is a common call for conseutive 3 days

    Create table call (key id Number (15) not null, mobile_number number primary (10), other_party number (10), call_type varchar2 (10), the call_date_time date, number (15)) duration;


    insert into values of the call (1,9818764535,9899875643, 'IN', to_date (24 May 12 02:10:43 "," dd-MON-yy hh24:mi:ss'), 10);
    Insert in appeal values (2, 9818764535,9215478213, 'OUT', to_date (24 May 12 08:11:13 "," dd-MON-yy hh24:mi:ss'), 20);
    Insert in appeal values (3, 9818764535,9899875643, 'IN', to_date (25 May 12 18:07:02 "," dd-MON-yy hh24:mi:ss'), 30);
    insert into values of the call (4,9818764535,9012451785, 'IN', to_date (26 May 12 02:11:13 "," dd-MON-yy hh24:mi:ss'), 40);
    Insert in appeal values (5, 9818764535,9215478213, 'IN', to_date (26 May 12 08:17:02 "," dd-MON-yy hh24:mi:ss'), 25);
    Insert in appeal values (6, 9818764535,9899875643, 'OUT', to_date (26 May 12 20:21:04 ',' dd-MON-yy hh24:mi:ss'), 67);


    Entry criteria:

    Mobile phone number: 9818764535
    date: 24 April 13

    Output:


    Other_party call_type time call_date_time
    9899875643 IN 24 APRIL 13 02:10:43 10
    9899875643 ON APRIL 25, 13 18:07:02 30
    9899875643 ON 26 MAY 13 20:21:04 67

    Published by: 983567 on May 2, 2013 03:51

    Published by: 983567 on May 2, 2013 03:52

    Hello

    983567 wrote:
    Need to find the number of other_party which is a common call for conseutive 3 days

    Create table call (key id Number (15) not null, mobile_number number primary (10), other_party number (10), call_type varchar2 (10), the call_date_time date, number (15)) duration;

    insert into values of the call (1,9818764535,9899875643, 'IN', to_date (24 April 13 02:10:43 "," dd-MON-yy hh24:mi:ss'), 10);
    Insert in appeal values (2, 9818764535,9215478213, 'OUT', to_date (24 April 13 08:11:13 "," dd-MON-yy hh24:mi:ss'), 20);
    Insert in appeal values (3, 9818764535,9899875643, 'IN', to_date (25 April 13 18:07:02 "," dd-MON-yy hh24:mi:ss'), 30);
    insert into values of the call (4,9818764535,9012451785, 'IN', to_date (26 May 13 02:11:13 "," dd-MON-yy hh24:mi:ss'), 40);
    Insert in appeal values (5, 9818764535,9215478213, 'IN', to_date (26 May 13 08:17:02 "," dd-MON-yy hh24:mi:ss'), 25);
    Insert in appeal values (6, 9818764535,9899875643, 'OUT', to_date (26 May 13 20:21:04 ',' dd-MON-yy hh24:mi:ss'), 67);

    AE there no set of 3 days of consctuive in the sample data.
    Did you mean to say "APR" everywhere, you said 'MAY' above?

    Entry criteria:

    Mobile phone number: 9818764535
    date: 24 April 13

    Output:

    Other_party call_type time call_date_time
    9899875643 IN 24 APRIL 13 02:10:43 10
    9899875643 ON APRIL 25, 13 18:07:02 30
    9899875643 ON 26 MAY 13 20:21:04 67

    Here's one way:

    WITH     params     AS
    (
         SELECT  9818764535          AS mobile_number
         ,     DATE '2013-04-24'     AS start_date
         FROM     dual
    )
    ,     got_cnt          AS
    (
         SELECT     c.*
         ,     COUNT (DISTINCT TRUNC (c.call_date_time))
                  OVER ( PARTITION BY  p.mobile_number
                          ,                p.start_date
                      ,           c.other_party
                    )     AS cnt
         FROM     params     p
         JOIN     call     c  ON   c.mobile_number  = p.mobile_number
                      AND     c.call_date_time >= p.start_date
                      AND     c.call_date_time <  p.start_date + 4
    )
    SELECT     *     -- or list columns wanted
    FROM     got_cnt
    WHERE     cnt     = 3
    ;
    

    You can search for 2 or more distinct (mobile_number, start_date) target in the same query, if you wish.
    It is easy to make consecutive (3) the number of days in this case a parameter.

  • Find the Date day i.e. Monday, Tuesday etc.

    Hello

    I need to know the day of the Date. that is to say Monday, Tuesday etc. This is because if the date falls on Saturday or Sunday it had to impose tariffs of difference and week with normal rates.

    Thank you
    Amol

    We should probably add a function for this that I've certainly seen the prior requirement.

    Fortunately it is quite easy to calculate using a simple rule - the trick is to choose a date in the past which was a Monday, and then use the modulo operator.

    For example:

    The day of the week = (date data - 1980-01-07) modulo 7

    That is to say January 7, 1980 was a Monday, so every 7th day after is also a Monday - combined with the modulo operator, this will give you:
    0 Monday
    1 Tuesday
    ...
    5 Saturday
    6 Sunday

    The only downside is that the dates before 1980-01-07 will give a negative modulo (this differs from the mathematical modulo operator, but must be symmetrical with the whole division operator truncate to zero)-was so before the reference date will give:

    0 Monday
    Tuesday-6
    ...
    -2 Saturday
    -1 Sunday

    You can choose to write the rules to take into account, or choose a reference date so far in the past that it is useless.

    Concerning
    Andrew

  • find the date and day

    transaction

    ID Grp Loc qty type report_days

    ABC x 21 101 1 4/1/2009
    ABC x 29 101 2 4/1/2009
    ABC x 22 101 3 4/1/2009
    ABC x 45 101 1 15/6 / 2008
    ABC 100 x 102 1 16/11/2008

    I have a table called transaction

    I want to generate a report like this in an another table generatereport

    GenerateReport

    GenerateReport

    ID Grp Loc qty1 2 days report_days

    ABC 101 x 0 0 Sunday, June 1, 2008 adding 7 days
    101          abc          x          0          0          Sunday          ..
    ABC 101 x 45 0 Monday, June 15, 2009
    ABC 101 x 100 0 Sunday, November 16, 2008
    101          abc          x          0          0          Sunday          …
    101 abc x 50 22 Sunday until 01/04/2009 (i.e. ONE year)


    Qty1 Generatereport table column is filled with the sum of the quantity of type 1 + type 2

    column 2 of table Generatereport is filled with the sum of the quantity of type 3

    All day should be Sunday

    and we must go a year back from 01/04/09 and generate the timetable up to 2009-04-01 only for Sundays

    can you help me pls

    Thanks in advance

    Published by: user12093849 on November 13, 2009 04:55

    Published by: user12093849 on November 13, 2009 04:58

    This is the query, I came up with that:

    WITH    transaction_table AS
    (
            SELECT  101 AS ID, 'abc' AS GRP, 'x' AS LOC, 21  AS QTY, 1 AS TYPE, TO_DATE('04/01/2009','MM/DD/YYYY') AS REPORT_DAYS FROM DUAL UNION ALL
            SELECT  101 AS ID, 'abc' AS GRP, 'x' AS LOC, 29  AS QTY, 2 AS TYPE, TO_DATE('04/01/2009','MM/DD/YYYY') AS REPORT_DAYS FROM DUAL UNION ALL
            SELECT  101 AS ID, 'abc' AS GRP, 'x' AS LOC, 22  AS QTY, 3 AS TYPE, TO_DATE('04/01/2009','MM/DD/YYYY') AS REPORT_DAYS FROM DUAL UNION ALL
            SELECT  101 AS ID, 'abc' AS GRP, 'x' AS LOC, 45  AS QTY, 1 AS TYPE, TO_DATE('06/15/2008','MM/DD/YYYY') AS REPORT_DAYS FROM DUAL UNION ALL
            SELECT  102 AS ID, 'abc' AS GRP, 'x' AS LOC, 100 AS QTY, 1 AS TYPE, TO_DATE('11/16/2008','MM/DD/YYYY') AS REPORT_DAYS FROM DUAL
    )
    -- END TEST DATA
    ,      sunday_date_range AS
    (
            SELECT  NEXT_DAY(TO_DATE(:pStartDate,'MM/DD/YYYY')-1,'SUNDAY') + 7*(LEVEL - 1) AS DT
            FROM    DUAL
            CONNECT BY LEVEL <= (TO_DATE(:pEndDate,'MM/DD/YYYY') - TO_DATE(:pStartDate,'MM/DD/YYYY'))/7 + 1
    )
    SELECT  ID
    ,       GRP
    ,       LOC
    ,       TO_CHAR(DT,'Day DD/MM/YYYY')    AS REPORT_DAYS
    ,       SUM(CASE WHEN TYPE IN (1,2)     THEN QTY ELSE 0 END) AS QTY1
    ,       SUM(CASE WHEN TYPE = 3          THEN QTY ELSE 0 END) AS QTY2
    FROM                    transaction_table       PARTITION BY (ID, GRP, LOC)
    RIGHT OUTER JOIN        sunday_date_range       ON transaction_table.REPORT_DAYS BETWEEN sunday_date_range.DT - 7 + INTERVAL '1' SECOND AND sunday_date_range.DT
    GROUP BY ID
    ,       GRP
    ,       LOC
    ,       DT
    ORDER BY 1, 2, 3
    

    Here's the test scenario:

    SQL> var pStartDate  VARCHAR2(25);
    SQL> exec :pStartDate := '04/01/2008';
    
    PL/SQL procedure successfully completed.
    
    SQL> var pEndDate  VARCHAR2(25);
    SQL> exec :pEndDate := '04/01/2009';
    
    PL/SQL procedure successfully completed.
    
    SQL> WITH    transaction_table AS
      2  (
      3          SELECT  101 AS ID, 'abc' AS GRP, 'x' AS LOC, 21  AS QTY, 1 AS TYPE, TO_DATE('04/01/2009','MM/DD/YYYY') AS REPORT_DAYS FROM DUAL UNION ALL
      4          SELECT  101 AS ID, 'abc' AS GRP, 'x' AS LOC, 29  AS QTY, 2 AS TYPE, TO_DATE('04/01/2009','MM/DD/YYYY') AS REPORT_DAYS FROM DUAL UNION ALL
      5          SELECT  101 AS ID, 'abc' AS GRP, 'x' AS LOC, 22  AS QTY, 3 AS TYPE, TO_DATE('04/01/2009','MM/DD/YYYY') AS REPORT_DAYS FROM DUAL UNION ALL
      6          SELECT  101 AS ID, 'abc' AS GRP, 'x' AS LOC, 45  AS QTY, 1 AS TYPE, TO_DATE('06/15/2008','MM/DD/YYYY') AS REPORT_DAYS FROM DUAL UNION ALL
      7          SELECT  102 AS ID, 'abc' AS GRP, 'x' AS LOC, 100 AS QTY, 1 AS TYPE, TO_DATE('11/16/2008','MM/DD/YYYY') AS REPORT_DAYS FROM DUAL
      8  )
      9  -- END TEST DATA
     10  ,      sunday_date_range AS
     11  (
     12          SELECT  NEXT_DAY(TO_DATE(:pStartDate,'MM/DD/YYYY')-1,'SUNDAY') + 7*(LEVEL - 1) AS DT
     13          FROM    DUAL
     14          CONNECT BY LEVEL <= (TO_DATE(:pEndDate,'MM/DD/YYYY') - TO_DATE(:pStartDate,'MM/DD/YYYY'))/7 + 1
     15  )
     16  SELECT  ID
     17  ,       GRP
     18  ,       LOC
     19  ,       TO_CHAR(DT,'Day DD/MM/YYYY')    AS REPORT_DAYS
     20  ,       SUM(CASE WHEN TYPE IN (1,2)     THEN QTY ELSE 0 END) AS QTY1
     21  ,       SUM(CASE WHEN TYPE = 3          THEN QTY ELSE 0 END) AS QTY2
     22  FROM                    transaction_table       PARTITION BY (ID, GRP, LOC)
     23  RIGHT OUTER JOIN        sunday_date_range       ON transaction_table.REPORT_DAYS BETWEEN sunday_date_range.DT - 7 + INTERVAL '1' SECOND AND sunday_date_range.DT
     24  GROUP BY ID
     25  ,       GRP
     26  ,       LOC
     27  ,       DT
     28  ORDER BY 1, 2, 3
     29  /
    
            ID GRP L REPORT_DAYS                QTY1       QTY2
    ---------- --- - -------------------- ---------- ----------
           101 abc x Sunday    06/04/2008          0          0
           101 abc x Sunday    13/04/2008          0          0
           101 abc x Sunday    20/04/2008          0          0
           101 abc x Sunday    27/04/2008          0          0
           101 abc x Sunday    04/05/2008          0          0
           101 abc x Sunday    11/05/2008          0          0
           101 abc x Sunday    18/05/2008          0          0
           101 abc x Sunday    25/05/2008          0          0
           101 abc x Sunday    01/06/2008          0          0
           101 abc x Sunday    08/06/2008          0          0
           101 abc x Sunday    15/06/2008         45          0
           101 abc x Sunday    22/06/2008          0          0
           101 abc x Sunday    29/06/2008          0          0
           101 abc x Sunday    06/07/2008          0          0
           101 abc x Sunday    13/07/2008          0          0
           101 abc x Sunday    20/07/2008          0          0
           101 abc x Sunday    27/07/2008          0          0
           101 abc x Sunday    03/08/2008          0          0
           101 abc x Sunday    10/08/2008          0          0
           101 abc x Sunday    17/08/2008          0          0
           101 abc x Sunday    24/08/2008          0          0
           101 abc x Sunday    31/08/2008          0          0
           101 abc x Sunday    07/09/2008          0          0
           101 abc x Sunday    14/09/2008          0          0
           101 abc x Sunday    21/09/2008          0          0
           101 abc x Sunday    28/09/2008          0          0
           101 abc x Sunday    05/10/2008          0          0
           101 abc x Sunday    12/10/2008          0          0
           101 abc x Sunday    19/10/2008          0          0
           101 abc x Sunday    26/10/2008          0          0
           101 abc x Sunday    02/11/2008          0          0
           101 abc x Sunday    09/11/2008          0          0
           101 abc x Sunday    16/11/2008          0          0
           101 abc x Sunday    23/11/2008          0          0
           101 abc x Sunday    30/11/2008          0          0
           101 abc x Sunday    07/12/2008          0          0
           101 abc x Sunday    14/12/2008          0          0
           101 abc x Sunday    21/12/2008          0          0
           101 abc x Sunday    28/12/2008          0          0
           101 abc x Sunday    04/01/2009          0          0
           101 abc x Sunday    11/01/2009          0          0
           101 abc x Sunday    18/01/2009          0          0
           101 abc x Sunday    25/01/2009          0          0
           101 abc x Sunday    01/02/2009          0          0
           101 abc x Sunday    08/02/2009          0          0
           101 abc x Sunday    15/02/2009          0          0
           101 abc x Sunday    22/02/2009          0          0
           101 abc x Sunday    01/03/2009          0          0
           101 abc x Sunday    08/03/2009          0          0
           101 abc x Sunday    15/03/2009          0          0
           101 abc x Sunday    22/03/2009          0          0
           101 abc x Sunday    29/03/2009          0          0
           101 abc x Sunday    05/04/2009         50         22
           102 abc x Sunday    06/04/2008          0          0
           102 abc x Sunday    13/04/2008          0          0
           102 abc x Sunday    20/04/2008          0          0
           102 abc x Sunday    27/04/2008          0          0
           102 abc x Sunday    04/05/2008          0          0
           102 abc x Sunday    11/05/2008          0          0
           102 abc x Sunday    18/05/2008          0          0
           102 abc x Sunday    25/05/2008          0          0
           102 abc x Sunday    01/06/2008          0          0
           102 abc x Sunday    08/06/2008          0          0
           102 abc x Sunday    15/06/2008          0          0
           102 abc x Sunday    22/06/2008          0          0
           102 abc x Sunday    29/06/2008          0          0
           102 abc x Sunday    06/07/2008          0          0
           102 abc x Sunday    13/07/2008          0          0
           102 abc x Sunday    20/07/2008          0          0
           102 abc x Sunday    27/07/2008          0          0
           102 abc x Sunday    03/08/2008          0          0
           102 abc x Sunday    10/08/2008          0          0
           102 abc x Sunday    17/08/2008          0          0
           102 abc x Sunday    24/08/2008          0          0
           102 abc x Sunday    31/08/2008          0          0
           102 abc x Sunday    07/09/2008          0          0
           102 abc x Sunday    14/09/2008          0          0
           102 abc x Sunday    21/09/2008          0          0
           102 abc x Sunday    28/09/2008          0          0
           102 abc x Sunday    05/10/2008          0          0
           102 abc x Sunday    12/10/2008          0          0
           102 abc x Sunday    19/10/2008          0          0
           102 abc x Sunday    26/10/2008          0          0
           102 abc x Sunday    02/11/2008          0          0
           102 abc x Sunday    09/11/2008          0          0
           102 abc x Sunday    16/11/2008        100          0
           102 abc x Sunday    23/11/2008          0          0
           102 abc x Sunday    30/11/2008          0          0
           102 abc x Sunday    07/12/2008          0          0
           102 abc x Sunday    14/12/2008          0          0
           102 abc x Sunday    21/12/2008          0          0
           102 abc x Sunday    28/12/2008          0          0
           102 abc x Sunday    04/01/2009          0          0
           102 abc x Sunday    11/01/2009          0          0
           102 abc x Sunday    18/01/2009          0          0
           102 abc x Sunday    25/01/2009          0          0
           102 abc x Sunday    01/02/2009          0          0
           102 abc x Sunday    08/02/2009          0          0
           102 abc x Sunday    15/02/2009          0          0
           102 abc x Sunday    22/02/2009          0          0
           102 abc x Sunday    01/03/2009          0          0
           102 abc x Sunday    08/03/2009          0          0
           102 abc x Sunday    15/03/2009          0          0
           102 abc x Sunday    22/03/2009          0          0
           102 abc x Sunday    29/03/2009          0          0
           102 abc x Sunday    05/04/2009          0          0
    
    106 rows selected.
    

    This query performs a number of things.

    1. the sunday_date_range generates all the Sunday between the pStartDate and the pEndDate

    2. I've made use of a JOIN OUTSIDE of SCORE to generate the date range for EACH ID, GRP and LOC. If you do not have 10g, to implement an alternative workaround.

    3. I join on a date range for a little less than 7 days if all report data fall date Sunday by your condition. This is because on 01/04/2009 is not a Sunday.

    HTH!

  • Find the date in clob data

    Hi all

    In the abc table, I would find the Id name if any later date is available in the variable 'data' (CLOB data type).

    I'm not able to go forward. can someone help me

    Output must be Id 102 and 103, the date indicated is greater than the current date.

    with abc as

    (

    Select 101 as id, 'Prime Minister arrived in Melbourne for the last leg of his tour of four cities in Australia on March 1, 2014 "as double data

    Union

    Select 102, "the prior reading of Singapore third quarter December 1, 2015 showing no response" of the double

    Union

    Select 103, ' there is no symptom of Malaria after December 15, 2104 meaning vaccine properly work ' from dual

    )

    Select * from ABC

    where the data like "trunc (sysdate) %.

    Thanks in advance

    This model ' [(0123456789)] + [()] + ((Jan) |) () Feb) | (Mar) | (APR) | (May). (Jun) | (Jul) | (August). (MS) | (Oct) | (Nov). (Dec)) [()] + [(0123456789)] +' finds the appropriate data now or later, does not matter.  We can use this model.

    use regexp_count with this model.  regexp_count returns "there are how many days" to open this model.

    using regexp_count for your sql output:

    ___regexp_count___ your data                                                              

    2 Prime Minister arrived in Melbourne, for the last leg of his tour of four cities in the Australia, March 1, 2014 and April 3, 2100
    2 The r1eading of 234/12 ahead of Singapore December 1, 2012, for the third quarter on December 1, 2015, showing no response
    1 There is no malaria symptom Minister after November 19, 2014 meaning vaccine properly work

    help link for regexp: Oracle of regular Expressions

    hope this helps

    Celal Ozdemir

  • How to find the date of a table Max

    Hello world

    I have two tables in the database. I want to find the maximum routine for a case_id of the lock_date date between jan 20 to January 29, 2012.

    But I don't get real output (output routine_date should be 'January 28, 2012' but I m getting "January 31, 2012" ")

    Can someone help me where I made the mistake


    Master
    case_id lock_date
    101 23 January 2012
    101 January 24, 2012
    102 27 January 2012
    102 January 29, 2012
    101 30 January 2012
    101 January 29, 2012

    Routine (for current work)
    case_id routine_date
    101 23 January 2012
    103 28 January 2012
    102 21 January 2012
    102 January 29, 2012
    101 21 January 2012
    101 28 January 2012
    101 31 January 2012


    Select m.case_id, r.routine_date from master m, systematic r,
    (case_id, max (routine_date) of the systematic group by selecting case_id) rr

    where m.case_id = r.case_id
    and m.case_id = rr.case_id
    and r.routine_date = rr.routine_date

    Hello

    Here are average dradles:

    WITH     universe  AS
    (
         SELECT    m.case_id
         ,        r.routine_date
         ,       MAX (r.routine_date)     OVER (PARTITION BY  m.case_id)
                         AS max_routine_date
         FROM       master       m
         ,        routine       r
         WHERE        m.case_id       = r.case_id
         AND       m.lock_date       >= TO_DATE ('20-Jan-2012', 'DD-Mon-YYYY')
         AND       m.lock_date       <  TO_DATE ('30-Jan-2012', 'DD-Mon-YYYY')
    )
    SELECT       case_id
    ,       routine_date
    FROM       universe
    WHERE       routine_date     = max_routine_date
    ;
    

    You only want to view rowss whose routine_date is the maximum date in a subset. First get this subset
    If the universe of data that you are interested in is just the period from January 20 to January 29, then you can start by getting all the data in this range. This is what the above subquery universe.
    Now, you want to see only the rows where routine_date is the max_routine_date within this universe, for each case_id. You can use the analytic MAX function to find out what this max_routine_date.
    Published by: Frank Kulash, March 2, 2013 11:59

  • With the help of several key values to find the data

    Hello, it's me again.

    I had a question out about data from database and display them on a page of the ADF on Jdev 11.1.1.3.

    And Mr. Daniel Atwood answered my question with this blog to follow, that wrote.
    http://www.avioconsulting.com/blog/datwood/2012/06/19/using-BPM-process-variable-ADF-form-retrieve-database-information-0.

    But I have another question on top that.

    The Mr.Atwood example is when using a value of key 'one', what happens if I have two key values, how to set?

    Here are some details:

    I have a table like this

    ID Type_code name
    0001 05 a-blabla
    0002 b 25-blabla
    0002 26 b-blabla
    0003-08 c-blabla
    0003 25 c-blabla
    0003 c 79-blabla

    What I want to do is after the entry of the ID (0003) and type_code (25), he will show me the result on three components of text entry in the ADF with the value 0003, 25 page and c-blabla.

    Currently, I use only ID to query the data, but I would use two key values to find specific data.

    Thank you very much for taking the time to think about it,

    Sincerely,

    Alto

    If you had multiple values to use for the request, one approach would be to create a display object. Whether you are creating the view object, in step 6, you will add two bind variables. Call a "pTypeCode" and call the other "pId". Click on the back button so that you're still in step 5, and modify the WHERE clause as follows:

    (ID = :pId) and (Type_code = :pTypeCode)
    

    After you have done this, double-click the Module of the Application and add your new view object. In the tab control of data, click the Refresh button. Expand your new view object tab of data control-> expand "French"-> note that you now have a new method called "ExecuteWithParams".

    Open your workflow diagram-> delete your existing "SetCurrentRowKeyValues" method-> made slide on your new "ExecuteWithParams" operation on the diagram. When you do so, you should see two settings you need to complete the dialog box. Just as you did before with the SetCurrentRowKeyValue method, set the values for the pTypeCode and the nest.

    Add the case of control flow of the new method to your existing view-> make the new method, the default value.

    On your form, remove the fields that have been placed here who uses the old object from view. On the tab of data control, drag the fields you want to be placed on the inside of your new view object form.

    Dan

  • find the date in the database

    Hi all

    My dates are stored in an access database, in a DateTime format.
    When I try to the production of all events for a particular day and use the following query:
    < cfquery datasource = 'mydatasource' name = 'myevents' >
    SELECT * FROM tbl_events WHERE the mydate = #dateFormat(mydate, 'd/mm/yyyy') #.
    < / cfquery >
    I get no results.
    If I try to use the date as a variable that is not formatted, I get an error.

    Should I try something else?

    TNX!

    Do not use dateformat in a query. Either use:
    createodbcdate()
    createodbcdatetime()
    or

    the details are in the cfml reference manual. If you do not have one, has the internet.

  • Cannot find the data control to the Web Service in the Menu

    Hello

    I try to call a web service in the ADF. To do this, I want to create a web service data command

    If I understand correctly, if I right click on the template project, I see the data control from the Web Service under layer Business > Web Services. (as indicated in 2.1 Sec-http://www.oracle.com/technology/products/jdev/howtos/1013/wsadf/adfcomplexwstypes.html#WsProxyPojoControl)

    However, I am not able to find this entry in there.

    I tried the following things:

    I tried with Jdev 10.1.3.5, 10.1.3.4 and 10.1.3.1
    I tried to select all available models of technology to create applications
    -Any model
    -Web Application [JSF, EJB, Toplink]
    -Web Application [JSF, ADF]
    -Web Application [JSF, EJB
    -Web Application [JSF, Struts, ADF]... .and everthing else...

    I still don't see the web service proxy.

    Then I opened the ADFToystore sample application, and I could see the service data Web controls here!... .that mean my jdev is not defective... something else is missing.

    So, I tried to see what libraries are selected... I saw that a library named 'Web Service Data Control' are there in the project, which is not there in the model applications project that I created. So I added this library to the project, but it still does not work...
    Next, I added all THE libraries I have seen in the libraries in the project properties section... still no luck

    I don't know I'm missing something basic. Can someone please help.

    Rgds,
    Amit

    Hi Amit,

    try to set the filter above in New Gallery to filter by: all Technologies

    Kind regards

    Branislav

  • I have an old Mac Book and need to find the date he did to see if I can improve

    Can someone tell me how to find the actual date that my old MacBook has actually been paid. I don't remember if it was 2006 or 2007. 10.6.8 runs and I want to spend to 10.9. Any help much appreciated.

    Thanks, DJ

    Go to the Apple in the upper left corner of any window, then 'about this Mac' and 'more information... "Copy and paste the information here, but omit the serial number and UUID (if present) material.

    You can also search on the everymac.com website specifications

  • AppleScript to find the date of the file

    I would like to have some sort of applescript or automator action to find the finder items that have date of today in them (ideally a single file). The record, I would like to draw is shown below. Any help would be appreciated.

    https://www.dropbox.com/s/j6erltponee7ox4/file.PNG?DL=0

Maybe you are looking for