How to get this result

I have data like this

create temp table abc (whole userid, clo_id, timestamp c_date, whole ilo_id integer, i_date timestamp)

insert into abc values (1.11, January 5, 2009 ", 211, January 2, 2009 '");
insert into abc values (' 1.11, January 5, 2009 ", 212, January 3, 2009 ');
insert into abc values (1.11, January 5, 2009 ', 213, January 4, 2009 ');

UserID Clo_id c_date ilo_id i_date
1 11 1/5/2009 0:00 213 1/4/2009 0:00
1 11 1/5/2009 0:00 212 1/3/2009 0:00
1 11 1/5/2009 0:00 211 1/2/2009 0:00


Suppose now that if I set the frequency 2, the I need to get an output shows

UserID Clo_id c_date ilo_id i_date frequency
1 11 1/5/2009 0:00 213 1/4/2009 0:00 1
1 11 1/5/2009 0:00 212 1/3/2009 0:00 2
1 11 1/5/2009 0:00 211 1/2/2009 0:00 1

Do you mean like this?

with abc as (select 1 userid, 11 clo_id, to_date('05/01/2009', 'dd/mm/yyyy') c_date, 216 ilo_id, to_date('06/01/2009', 'dd/mm/yyyy') i_date from dual union all
             select 1 userid, 11 clo_id, to_date('05/01/2009', 'dd/mm/yyyy') c_date, 215 ilo_id, to_date('05/01/2009', 'dd/mm/yyyy') i_date from dual union all
             select 1 userid, 11 clo_id, to_date('05/01/2009', 'dd/mm/yyyy') c_date, 214 ilo_id, to_date('04/01/2009', 'dd/mm/yyyy') i_date from dual union all
             select 1 userid, 11 clo_id, to_date('05/01/2009', 'dd/mm/yyyy') c_date, 213 ilo_id, to_date('04/01/2009', 'dd/mm/yyyy') i_date from dual union all
             select 1 userid, 11 clo_id, to_date('05/01/2009', 'dd/mm/yyyy') c_date, 212 ilo_id, to_date('03/01/2009', 'dd/mm/yyyy') i_date from dual union all
             select 1 userid, 11 clo_id, to_date('05/01/2009', 'dd/mm/yyyy') c_date, 211 ilo_id, to_date('02/01/2009', 'dd/mm/yyyy') i_date from dual),
-- end of mimicking data in a table called abc
 results as (select userid,
                    clo_id,
                    c_date,
                    ilo_id,
                    i_date,
                    floor((i_date - min(i_date) over (partition by userid, clo_id))/2) dt_grp
             from   abc)
select userid,
       clo_id,
       c_date,
       ilo_id,
       i_date,
       row_number() over (partition by userid, clo_id, dt_grp order by i_date, ilo_id) frequency
from   results
order by userid, clo_id, i_date desc, ilo_id desc;

    USERID     CLO_ID C_DATE                  ILO_ID I_DATE               FREQUENCY
---------- ---------- ------------------- ---------- ------------------- ----------
         1         11 05/01/2009 00:00:00        216 06/01/2009 00:00:00          1
         1         11 05/01/2009 00:00:00        215 05/01/2009 00:00:00          3
         1         11 05/01/2009 00:00:00        214 04/01/2009 00:00:00          2
         1         11 05/01/2009 00:00:00        213 04/01/2009 00:00:00          1
         1         11 05/01/2009 00:00:00        212 03/01/2009 00:00:00          2
         1         11 05/01/2009 00:00:00        211 02/01/2009 00:00:00          1

ETA: If you want to change the frequency of days, then you would change the number of division in this line:

                    floor((i_date - min(i_date) over (partition by userid, clo_id))/2) dt_grp

for example. If you wanted every 3 days, you change the 2 to 3.

Published by: Boneist on 23-Sep-2010 15:12

Tags: Database

Similar Questions

  • How to get the result

    Hi all

    Let me explain my requirment.

    I created a custom workflow where the order goes to the approver for counterpart he can accept or reject that.

    If the notification that the approver receives have a result with approve and reject values. The notification activity, I've written a procedure that will update the database columns that are based on the result.

    But how do we get this result value

    I need something like below

    x_result: result of get value =
    If x_result = "Approve" then
    Update of table with approved status
    on the other
    Update of table with the status rejected

    Kind regards
    Kumar.

    Use the RESULT attribute

    x_result: = Wf_Notification.GetAttrText (, 'RESULT');

  • Hi there is a balance of $20 showing on my Itunes account, however I don't seem to be able to use it to download a movie to rent.  Can someone tell me please how to get this balance...

    Hi there is a balance of $20 showing on my Itunes account, however I don't seem to be able to use it to download a movie to rent.

    Can someone tell me please how to get this balance...

    What happens when you try to rent the movie? If you use a family sharing and that you are the family Organizer so you won't be able to use your balance.

  • CODE - 641 Windows update has encountered an error of unkonwn. How to get this right

    CODE - 641 Windows update has encountered an error of unkonwn.  How to get this right

    Try to run the tool:

    http://support.Microsoft.com/mats/windows_update/

  • I reinstalled adobe CS6. my other macs, I had a printer named 'Adobe PDF', that I could choose that as my printer and a dialogue box came up, I named the file and the location.  I can't figure out how to get this done on my new mac.  Help

    I reinstalled adobe CS6. my other macs, I had a printer named 'Adobe PDF', that I could choose that as my printer and a dialogue box came up, I named the file and the location.  I can't figure out how to get this done on my new mac.  Help

    There are two ways to create a PDF on a Mac:

    (1) you can use the default method, which is to choose file > print. Click on the PDF menu below on the left, then click on save as PDF. This lets you name and save the PDF file using the mechanism of OS X to create PDF files.

    (2) in the same menu, you can save in Adobe PDF format. It runs a script (a little slow) that lets choose you what PDF settings file you want to use. This is the Adobe-developed mechanism that replaces the old Virtual PDF printer.

  • How to get the result of the query?

    I'm looking to get output something like this...

    If a profile exists on the Pb, I need Exists in the colum

    PROFILE_A EXISTS

    PROFILE_B DOES NOT EXIST

    PROFILE_C EXISTS

    Select distinct profile

    decode (profile, "PASSWORD_PROFILE", "EXISTS", 'THERE is NO') 'STATUS '.

    of dba_profiles;

    How to get the above result? Anyone?

    In the first query, you can add any profile you want to check, and then try the below

    WITH qry1 AS (SELECT profile 'PROFILE_A' FROM dual

    UNION ALL

    SELECT "PROFILE_B" FROM double

    UNION ALL

    SELECT 'DEFAULT' double)

    SELECT the profile

    CASE WHEN EXISTS (SELECT 1 FROM dba_profiles dp

    WHERE dp.profile = q1.profile)

    THEN "EXISTS."

    OTHERWISE "NOT EXIST".

    The END as status

    OF qry1 q1;

    OUTPUT:-

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

    SQL > WITH qry1 AS (SELECT profile 'PROFILE_A' FROM dual

    2. ANY TRADE UNION

    3. SELECT 'PROFILE_B' FROM dual

    4 UNION ALL

    5. SELECT 'DEFAULT' double)

    6. SELECT profile,

    7 CASE WHEN EXISTS (SELECT 1 FROM dba_profiles dp

    8 WHERE dp.profile = q1.profile)

    9 THEN 'EXISTS '.

    10. OTHERWISE "NOT EXIST".

    11 FINISSENT AS status

    Qry1 q1 12;

    PROFILE STATUS

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

    PROFILE_A DOES NOT EXIST

    PROFILE_B DOES NOT EXIST

    DEFAULT VALUE IS

  • How to get this type of photo colour balance?

    Hey guys, I am trying to find a way to get this type of photo, I guess I would call it the color balance, don't know how are at - it front of post-processing or how much is added in in post processing. Here is the site I've seen this "color balance" Designskolen Kolding , if you scroll down to the banner to enlarge photos with titles "Mode", "Industrielt Design", "Hacker Lab", "Tryk" is those that I will speak and I saw this kind of post processing all over the web, the only way I can describe it as is the colors white and rich; like the white balance is very neutral, maybe it's just a bit in the blue spectrum and there are many whites present but not completely blown, and the real colors are still very rich, but not saturated. This is an unaltered jpeg from my picture, I am trying to make it look like.yaka.jpg

    Hi mblaney,

    Go to Image > adjustments > Color Balance and try to play with colors to see a similar result, because there is no specific color for this type of effect setting

    It will vary according to the pictures

    Kind regards

    Tanuj

  • Instructions immediately talk about Firefox window, but does not say how to get this window.

    It took me almost an hour to get to this point. I am technologically challenged. I have an old version of Firefox. The instructions immediately embark on the 'Firefox window' but says nothing about how to access this window. Where this window? Maybe I should just download Opera?

    "Firefox" means Firefox, this is the window that appears when Firefox is opened.

    You must follow the directions to update to the latest version Firefox update to Firefox 33.0.2 (read to the bottom of the page to see the screenshots). This will take you to the most recent version of Firefox, and then we can help you with other problems you're having with Firefox.

    If you are a beginner in Firefox, try to start with Firefox – an overview of the main features of the reading

  • How to get the results of the UK instead of the default USA?

    I live in the United Kingdom and would like to be able to search for UK results. for example, Amazon UK results when I search a product, etc.
    with the option of a search in the world so I don't get the results I want

    To add plugins to search for sites such as Amazon.co.UK and Google.co.uk to Firefox, open this page in Firefox and then search or click the sites that interest you: http://mycroft.mozdev.org/

    When you click on one of the listed search plugins, Firefox will ask you if you want to install it.

    After that, you can open the Firefox Add-ons Manager and click on disable one of the search engine integrated you want to use.

  • Qosmio G20-102 TV TUNER: how to get this to work - what cables are required?

    Hey everybody,

    I just installed vista on my laptop QOSMIO G20-102 (PQG20), I have media library now.
    My laptop came not like MEDIA CENTER EDITION, it came under the home edition of Windows XP (laptop purchased in July 2005).
    I got 3 cables which I have no idea how to use...
    laptop was purchased in Dubai/Emirates and I live in Malta

    These are the cables >
    http://img399.imageshack.us/img399/7189/dsc00780gi6.jpg

    Now for my question (s):
    1 which of these cables do I need? Im just trying to figure out how to get my satellite tv or digital cable to work on my laptop.
    2 antenna adapter (see picture) is not for coaxial cable, what can I do?
    3 I did WINDVR more due to the upgrade of vista, Media Center Gets the job done but I don't know what to do... This guide has confused me even more > http://www.microsoft.com/windowsxp/mediacenter/using/setup/settop.mspx
    I don't have IR control cable, I do not have a remote sensor (but I have some sort of built in the remote sensor on the front of my laptop.

    I'm looking for advice as for example buy this, get rid of it, install this etc...
    Please, anything that can help is appreciated!
    If you need information more just ask, I am here ;)

    Yours sincerely
    Ishmael

    Hi ismael,.
    I'll try to help with that, but it's a long way to the road...
    I don't know what Tv system is used to Malta (Pal)?

    The best way to set up your TV's with Media Center 2005 edition.
    Cables:
    Check the back of your cable TV installation box and find the composite or SVHS output. If you have only the composite, you can use the composite cable of the posted image. If your TV decoder has the SVHS, so you should use, to the better image than composite. You must obtain a SVHS cable for this.
    Look for the audio output rca, too. Mix with the composite cable for the audio Qosmio.

    But you must have:
    1 control cable IR, for media center 2005 configuration as well as your TV decoder. It is cable connected to the remote sensor (see fact sheet on the back).

    2 sensor for your remote control and configure it with the remote control of your TV decoder. In this way, you can control the receiver cable channels, using the remote control for your Qosmio G20 media center edition.
    Recovery: you can change the channels on your TV decoder using the qosmio remote control.

    3. remote control for you media Center 2005, one that came with your Qosmio g20.

    Open the TV on Media Center 2005 configuration and follow all the steps required for installation.
    You must follow the guide, as is explained in the image you posted:
    http://www.Microsoft.com/windowsxp/mediacenter/using/Setup/SetTop.mspx

    If you have all these cables, you can use the Qosmio player to watch TV. It is not tied to windows OS.
    Here, simply connect the coaxial cable and let the Qosmio player search for available channels in your area. Qosmio player has the opportunity to set the colour TV system in any part of the world. all NTSC regions in all PAL regions.
    If you have the remote control for your Qosmio, TV keys will work directly with the Qosmio remote sensor on board, without needing the external sensor of Microsoft.

    I hope this helps you
    Francisco

  • How to get the result of the test of CVI DLLs in teststand!

    I write a driver dll to test a source, I want to get the tension of world SERVERS (the instrument of the RS) and I used to call DLLs that written by CVI, teststand

    My question is what is the best way I can get the result of the test and show the user to teststand. the code below is fair? When I used to call this dll document, teststand

    "" I just get the result by setting in TS.this is a good meathod, and what should you do in teststand, I put the "outputVoltageV" point to an object?

    /*===========================================================================*/
    / * Function: read voltage/current output * /.
    / * End: this function returns the output and actual output voltage * /.
    / * current instrument.                                      */
    /*===========================================================================*/
    ViStatus _VI_FUNC rsngsm_datReadOutput (ViSession instrSession,
    ViPReal64 outputVoltageV, ViPReal64 outputCurrentA, ViPBoolean statusPeakCurrent)
    {
    ViStatus rsngsm_status = VI_SUCCESS;
    Bruno buf [BUFFER_SIZE];
    ViInt32 retCnt;
       
    FMT (buf, "%s<>
    If ((rsngsm_status = viWrite (instrSession, buf, NumFmtdBytes (), & retCnt))<>
    Return rsngsm_status;
           
    If ((rsngsm_status = viRead (instrSession, buf, 50, & retCnt))<>
    Return rsngsm_status;
    If (Scan (buf, "%s > %f [p2];")) %f [p2]; %i [b2] ", outputVoltageV, outputCurrentA, statusPeakCurrent). = 3)
    Return rsngsm_status;
           
    Return rsngsm_status;
    }

    sean_tan,

    Yes, you just pass a value of digital TestStand (e.g.; locals.number).

    If you use the adapter of the ICB, it might make more sense that you can use the Flexible DLL adapter for this type of function, that you do not use the standard settings of tTestData and tTestError. While TestStand will correctly recognize the function prototype, you want to make sure you that include the type library of your function Panel (you will need to create one if you have not already done so) in settings target of LabWindows / CVI-> type library.

    I hope this helps.

    -Jack

  • How to get this effect?

    Hey guys, new user first here sorry in advance if this is a stupid question. Does anyone know how to get the effect that appears around: 14 in the next video? Where the waves fill the outline of the girl, but not big thing.

    Escape to exist • white s/s 16 on Vimeo

    Background scene on track V1

    Contrast shot of the girl on the floor V3

    Coup waves on track V2 with effect hides by applied approach, effect hiding approach specifying track V3 as source material Composite using Matte Luma, you will need to check the box to reverse the effect if it is darker as the background,

    MtD

  • How to get this challenge of output using joint?

    We will create a document XML E2B to query an Oracle Argus Pharmacovigilance DB.  Problem is when trying to generate the tag < drugs >.

    -A drug (or product) can have multiple schemas.

    -A drug can have several indications.

    If a product has several treatment regimens and the indications must be created 1 < drugs > tag to each plan and each indication. However, let us assume that there is only 1 sign and 1 plan, we should produce 1 single tag. If we have 2 regimens and directions 1, we should be producing 2 labels. 1 label must include 1 plan and 1 sign and the other tag should have the indication of information etc...

    Like this:

    If a drug (product) 1 indication and 1 plan we should output like this:

    < drugs >

    < scheme > 1 < / plan >

    < indication > 1 < / indication >

    < / drugs >

    If the drug has 2 indications and 2 diagrams then we should output like this:

    < drugs >

    < scheme > 1 < / plan >

    < indication > 1 < / indication >

    < / drugs >

    < drugs >

    < system > 2 < / plan >

    < indication > 2 < / indication >

    < / drugs >

    If a drug has 2 directions and following the 1 pattern, we should output like this:

    < drugs >

    < scheme > 1 < / plan >

    < indication > 1 < / indication >

    < / drugs >

    < drugs >

    < indication > 2 < / indication >

    < / drugs >

    If a drug has 1 indication and 2 diagrams, then like this:

    < drugs >

    < scheme > 1 < / plan >

    < indication > 1 < / indication >

    < / drugs >

    < drugs >

    < system > 2 < / plan >

    < / drugs >

    and so on...


    I am trying to create a query to get the records to do this, but have problems.  I created 3 examples of tables with test data. It seems that this can be done by using joins. I do not know. Can someone tell me

    drop table Case_Prod_Indications_;

    drop table Case_Dose_Regimens_;

    drop table Case_Product_;

    Create Table Case_Product_

    (

    Number of Case_Id

    Number of Seq_Num,

    product_id VARCHAR2 (5).

    reported_Name Varchar2 (15).

    Constraint Case_Product_Pk Primary Key (Case_Id, Seq_Num)

    );

    Create Table Case_Dose_Regimens_

    (

    Number of Case_Id

    Number of Seq_Num,

    Number of Log_No

    Regimen_Description Varchar2 (20).

    Constraint Case_Dose_Regimens_Pk Primary Key (Case_Id, Seq_Num, Log_No),

    Constraint Regimens_2_Product_Fk Foreign Key (Case_Id, Seq_Num) made reference Case_Product_ (Case_Id, Seq_Num)

    );

    Create Table Case_Prod_Indications_

    (

    Number of Case_Id

    Number of Prod_Seq_Num

    Number of Seq_Num,

    Indication Varchar2 (25).

    Constraint Case_Prod_Ind_Pk Primary Key (Case_Id, Prod_Seq_Num, Seq_Num),

    Constraint Foreign Key (Case_Id, Prod_Seq_Num) to indics_2_Product_Fk references Case_Product_ (Case_Id, Seq_Num)

    );

    Case_Product_ p, Case_Dose_Regimens_ r's Case_Prod_Indications_ I

    We always want an output for a particular case_id ONLY.

    Scenario1: Product has only been inserted to case_product, with no product_id, but with a reported indication.

    INSERT INTO case_product_ VALUES (100, 1, NULL, 'Panadol');

    COMMIT;

    Output should be: 1 plug as shown below

    p.case_id p.seq_num p.product_id, p.reported_name, r.regimen_description, i.indication

    100                 1                         null                          Panadol                          null                                       null

    Request used:

    Select

    P.Case_Id, P.Seq_Num, P.Product_Id, P.Reported_Name, R.Regimen_Description, I.Indication

    Of

    Case_Product_ P

    Left outer join Case_Dose_Regimens_ R (P.Case_Id = R.Case_Id And P.Seq_Num = R.Seq_Num)

    Outer join Case_Prod_Indications_ left I on (P.Case_Id = I.Case_Id And P.seq_num = I.Prod_Seq_Num)

    WHERE

    p.case_id = 100;

    Output is OK? : YES.

    Scenario2: Product diagrams a.

    INSERT INTO case_product_ VALUES (200, 10, 3, "Disprin");

    INSERT INTO case_dose_regimens_ VALUES (3, 1, 10, 200 mg');

    INSERT INTO case_dose_regimens_ VALUES (200, 10, 2, 5 mg');

    COMMIT;

    Output should be: 2 records as shown below

    p.case_id p.seq_num p.product_id, p.reported_name, r.regimen_description, i.indication

    200                10                          3                          Disprin                          3mg                                         null

    200                10                          3                          Disprin                          5mg                                         null

    Request used: same as above, but with case_id = 200.

    Select

    P.Case_Id, P.Seq_Num, P.Product_Id, P.Reported_Name, R.Regimen_Description, I.Indication

    Of

    Case_Product_ P

    Left outer join Case_Dose_Regimens_ R (P.Case_Id = R.Case_Id And P.Seq_Num = R.Seq_Num)

    Outer join Case_Prod_Indications_ left I on (P.Case_Id = I.Case_Id And P.seq_num = I.Prod_Seq_Num)

    Where

    p.case_id = 200;

    Output is OK? : YES.


    Scenario3: Product has patterns AND directions. Here, there are more indications that treatment regimens.

    INSERT INTO case_product_ VALUES (300, 30, 5, "Aspirin");

    INSERT Into Case_Dose_Regimens_ Values (300, 30, 1, 65 MG');

    INSERT INTO case_prod_indications_ VALUES (300, 30, 1, 'Bread');

    INSERT INTO case_prod_indications_ VALUES (300, 30, 2, 'Vomiting');

    COMMIT;

    Output should be: 2 records as shown below

    p.case_id p.seq_num p.product_id, p.reported_name, r.regimen_description, i.indication

    300                30                               5                          Asprin                          65MG                                    Pain

    300                30                               5                          Asprin                          null                                         Vomiting

    Request used: same as above, but with case_id = 300.

    Select

    P.Case_Id, P.Seq_Num, P.Product_Id, P.Reported_Name, R.Regimen_Description, I.Indication

    Of

    Case_Product_ P

    Left outer join Case_Dose_Regimens_ R (P.Case_Id = R.Case_Id And P.Seq_Num = R.Seq_Num)

    Outer join Case_Prod_Indications_ left I on (P.Case_Id = I.Case_Id And P.seq_num = I.Prod_Seq_Num)

    Where

    p.case_id = 300;

    Output is OK? : No. we get 65MG for the 2nd record as well.

    Scenario4: Product has patterns AND directions. Here there are patterns and equal information.

    INSERT Into Case_Dose_Regimens_ Values (4, 2, 30, 300 kg');

    commit;

    Output should be: 2 records as shown below

    p.case_id p.seq_num p.product_id, p.reported_name, r.regimen_description, i.indication

    300                30                          5                          Asprin                               65MG                                    Pain

    300                30                          5                          Asprin                               4kg                                        Vomiting

    Request used: same as above.

    Output is OK? : no today, we get 4 rows.

    Scenario5: Product has patterns AND directions. Here, there are patterns more than indications.

    INSERT Into Case_Dose_Regimens_ Values (6, 3, 30, 300 g');

    commit;

    Output should be: 3 discs as shown below

    p.case_id p.seq_num p.product_id, p.reported_name, r.regimen_description, i.indication

    300                     30                               5                                    Asprin                          65MG                               Pain

    300                     30                               5                                    Asprin                          4kg                               Vomiting

    300                     30                               5                                    Asprin                          6g                                         null

    Request used: same as above.

    Output is OK? : No. now we get 6 entries.

    How we do this? Or can not use joins and perhaps another method?

    Any help would be greatly appreciated.

    Hello

    I see it; you need in a few lines of possible exit, until all rows in related tables are included.  You don't care which line of case_dose_regimens gets paired with what line of case_prod_indications, you want just the 1st row of each table (or the 1st line of a table, if there is no matching data in the other) together on the 1st row of output and the 2nd row of each table set on 2nd line , and so on and in what order is used to define the "1st" and "2nd" is not important.  Is this fair?

    If so, then use the ROW_NUMBER analytic functions to assign numbers (I called it r_num) to identify the 1st, 2nd,... lines, like this:

    WITH schema AS

    (

    SELECT case_id, seq_num, regimen_description

    , ROW_NUMBER () OVER (PARTITION BY case_id, seq_num)

    ORDER BY log_no - or what you want

    ) AS r_num

    OF case_dose_regimens_

    )

    directions,

    (

    SELECT case_id, prod_seq_num, indication

    , ROW_NUMBER () OVER (PARTITION BY case_id, prod_seq_num)

    ORDER BY seq_num - or what you want

    ) AS r_num

    OF case_prod_indications_

    )

    SELECT p.case_id, p.seq_num, p.product_id, p.reported_name

    r.regimen_description

    i.indication

    OF case_product_ p

    LEFT OUTER JOIN

    (diagram r

    FULL OUTER JOIN indication I have ON i.case_id = r.case_id

    AND i.prod_seq_num = r.seq_num

    AND i.r_num = r.r_num

    )

    ON p.case_id = COALESCE (r.case_id

    i.case_id

    )

    AND p.seq_num = COALESCE (r.seq_num

    i.prod_seq_num

    )

    WHERE p.case_id (300)

    ORDER BY p.case_id, p.seq_num

    , COALESCE (r.r_num, i.r_num)

    ;

  • Could someone tell me how to get this effect please?

    Hi all

    Use photoshop or illustrator, can someone tell me how I can get this effect of a normal picture please? I really like this effect.

    Thank you

    Sallyimage.jpeg

    It looks like the oil paint filter, with perhaps a slight blur. (Could be the picture too; every photo reacts differently). Oil paint is located under the filter > esthetics > oil painting. (Note that it is the latest version of Photoshop CC).

  • I was wondering how to get this type of transititon

    Hello

    I edit several images and I wanted to know if there was a way to get this type of transition: http://cdn.makeagif.com/media/9-12-2015/pDRvUu.gif

    If so, how?

    Thank you

    It resembles a dissolution on the lower rail and melted on the top track.

Maybe you are looking for