Please help to solve the problem with Incerements

Hi all, hope you can help.

Basically I have a stored procedure that adds the someones preferences of room on a table.
The PK of tables is the (ck_Application_no, ck_preference_no) together.

Depending on how preferences a person chooses, ck_preferenceno is assumed to start at 1 and increment by 1 then. So, here is a typical example of a State of people.

CK_APPLICATION_NO - CK_PREFERENCE_NO - FK_BED_SPACE
7942------------------------------10--------------------------------HOWLES
7942------------------------------11--------------------------------TUDSTE
7942------------------------------12---------------------------------PARSPE
7942------------------------------13--------------------------------CLESPE
7942------------------------------14--------------------------------HOWSPE

7944------------------------------1-----------------------------------PARSPE
7944------------------------------2-----------------------------------CLESPE

10---------------------------------1------------------------------------BINSTA
10---------------------------------2------------------------------------MMASTE
10---------------------------------3------------------------------------MMASTE

This process worked without problem for a year, but all of a suddon sometimes strange, the CK_PREFERENCE_NO has not increment properly (as you can see for CK_APPLICATION_NO 7944 and 10) are accurate.
but 7942 began with 10 for some reason any? :-/

Cleaning this error!
I need to focus on the issue, but I need first to clean these erros like there aren't has more than 1,000 files on 200 separate requests with the incorrect increment.


Can I run some kind of LOOP to browse this table and change the ck_PREFERENCE_NO under each separate APPLICATION (ck_application_no)) to start at 1 e.t.c.
Thus, for example, the above table I want to look like this:


CK_APPLICATION_NO - CK_PREFERENCE_NO - FK_BED_SPACE
7942------------------------------1--------------------------------HOWLES
7942------------------------------2--------------------------------TUDSTE
7942------------------------------3--------------------------------PARSPE
7942------------------------------4--------------------------------CLESPE
7942------------------------------5---------------------------------HOWSPE

7944------------------------------1--------------------------------PARSPE
7944------------------------------2--------------------------------CLESPE

10----------------------------------1--------------------------------BINSTA
10----------------------------------2--------------------------------MMASTE
10----------------------------------3--------------------------------MMASTE

Any help would be amazing.

Hello

It is surprising that you have spent any amount of time without problems. It is very difficult to keep a column like ck_preference_no updated. Many people woudn't even try; they simply have a unique constraint on (ck_application_no, ck_preference_no), and, when they need to convert these numbers consectuive integers (1, 2, 3,...) use ROW_NUMBER.

If you really want to update the table, you can use ROW_NUMBER in the same way. For example:

MERGE INTO     table_x          dst
USING  (
           SELECT  ROWID   AS r_id
        ,        ROW_NUMBER () OVER ( PARTITION BY  ck_application_no
                                           ORDER BY      ck_preference_no
                          )     AS new_preference_no
        FROM    table_x
--        WHERE   ...          -- if wanted
       )                     src
ON     (src.r_id     = dst.r_id)
WHEN MATCHED
THEN UPDATE
SET   dst.ck_preference_no     = src.new_preference_no
;

I hope that answers your question.
If this isn't the case, post a small example of data (CREATE TABLE and only relevant columns, INSERT statements) for the table such that it exists today, with the ck_preferrence_nos bad and also poster the expected result of these data, words, the contents of the table after it is corrected.
Explain, using specific examples, how you get these results from these data.
Always tell what version of Oracle you are using.

Tags: Database

Similar Questions

  • Need help to solve the problem with the margin at the bottom of the converted pdf file.

    Need help to solve the problem with the margin of the converted CEO down. What caused the change in format?

    Hi jerrio1949,

    There is no way to change the margin, you settle back into your original file & then convert to PDF format.

    Kind regards
    Nicos

  • I'm CS6 running on the latest version of the operating system on an iMAC. I can't save my work because it says that there is a program error. Please help me solve the problem.

    Program error.  I'm CS6 running on the latest version of the operating system on an iMAC. When I save my work a pop program error appears and I can't save anything. Help

    Mona, I could solve the problem with a video to help adobe by Julieanne Kost. He treats of "how to reset preferences" I have reset preferences and was able to save my work. You can find it in Help/preferences in Photoshop. Good luck

  • Hi, I have dell xps with getforce 525M graphics card but my system video memory 0 MB and I am unable to play the game please help me solve the problem

    I have a dell xps 15 laptop with 1 GB graphics card but every time I try to play any game it shows that not enough video memory.

    my system configuration
    6 GB of ram nvidia getforce 525M last pilot, directX11
    Please help me to solve

    Its a laptop, and so the graphics drivers from this manufacturer of laptop, such indicated on the pages of the Nvidia driver update

  • Need help to solve the problem with worm:win:32 / cridex.e

    Please help me to solve this problem worm:win:32 / cridex.e

    Hello

    Scan of Malware in Safe Mode with network.

    http://www.bleepingcomputer.com/tutorials/how-to-start-Windows-in-safe-mode/#Vista

    Windows Vista

    Using the F8 method:

    1. Restart your computer.
    2. When the computer starts, you will see your computer hardware are listed. When you see this information begins to tap the F8 key repeatedly until you are presented with the Boot Options Advanced Windows Vista.
    3. Select the Safe Mode with networking with the arrow keys.
    4. Then press enter on your keyboard to start mode without failure of Vista.
    5. To start Windows, you'll be a typical logon screen. Connect to your computer and Vista goes into safe mode.
    6. Do whatever tasks you need and when you are done, reboot to return to normal mode.

    Once in Safe Mode with network, download and run RKill.

    RKill does NOT remove the malware; It stops the Malware process that gives you a chance to remove it with your security programs.

    http://www.bleepingcomputer.com/download/rkill/

    Then, download, install, update and scan your system with the free version of Malwarebytes AntiMalware in Mode safe mode with networking:

    http://www.Malwarebytes.org/products/malwarebytes_free

    See you soon.

  • Please help me solve a problem with acer aspire 5517.

    I currently have a problem on my pc that causes is to black screen just randomly.

    A moment I it works perfectly and the other he Black just screens. The power stays on but I relised that when it does this the hard drive just turns off. It's as components essential just turn off the pc power supply led remains Sometimes, he does not immediately after him. (sense once I force power OFF and turn it back on the screen is all black but sometimes start there.)

    Is this a problem with the hard drive, memory, the mobo?

    I would appreciate if someone could help me to diagnose this problem.

    I'm willing to take the time to publish all necessary additional information. Thanks in advance!

    Have you looked into the event viewer messages about these events? You use any utility time as a HW Monitor of surveillance to check your time?

  • I can't shoot at a site in the usual browser... in navigation private. I can pull up in other browsers and could pull up 2 weeks ago... now I can't. Please help me solve this problem?

    Question
    I can't shoot at a site in the usual browser... in navigation private. I can pull up in other browsers and could pull up 2 weeks ago... now I can't. Please help me solve this problem? Also, I can' signed in 'members only' in private browsing mode.

    Clear the cache and cookies from sites that cause problems.

    "Clear the Cache":

    • Tools > Options > advanced > network > storage (Cache) offline: 'clear now '.

    'Delete Cookies' sites causing problems:

    • Tools > Options > privacy > Cookies: "show the Cookies".
  • I have a new computer with windows 7 Home premium. just installed my Presentation adobe acrobat 6.0 standard, the installation as a warning code 20225 appeared? I also noticed that my residence PDF printer is missing? You can help me solve the problem. Br

    I have a new computer with windows 7 Home premium. just installed my Presentation adobe acrobat 6.0 standard, the installation as a warning code 20225 appeared? I also noticed that my residence PDF printer is missing? You can help me solve the problem. Bren

    Versions of Windows beyond Windows XP are not entirely compatible with Acrobat 6. The first version of Acrobat that is supported by Windows 7 is Acrobat 8.1 (is no longer licensed by Adobe). The latest version of Acrobat: Acrobat Columbia, six versions more recent than Acrobat 6. You need to upgrade to get all the features of Acrobat.

    -Dov

  • I forgot my restriction password, let it please help me solve my problem

    I forgot my restriction password, let it please help me solve my problem

    I forgot the password restriction

  • My 5s iphone is updated to 9.3.1 now it showing an error while it controls for software update. Error is "cannot verify the update ' so please help me solve the error

    Please help me solve the error message

    Connect the phone to a computer running iTunes 12.3.3 or later, with a cable and try check update

  • Error manually running Windows updates "the website has encountered a problem and cannot display the page you are trying to view. The options provided below might help you solve the problem.

    Original title - manual update of Windows XP via "Windows Update" fails

    07/01/14: click on "Windows Update" on the desktop (XP Home) and XP Tablet

    Result: 'the site has encountered a problem and cannot display the page you are trying to view. The options provided below may help you solve the problem. »

    This office has begun on about 3 days ago and just this morning appeared on the Tablet

    I do McAfee and Microsoft updates manually every morning after the startup of computers so that they will not automatically be updated when I'm busy with other things

    I suspect that the McAfee via Verizon security package is the culprit since the 'look' of their package and procedures changed end of December

    Since then, they have had updates almost every day

    And around the same time, my problem appeared on XP Home Edition, I was not able to access Adobe PDF files and had to re-download Adobe Reader XI

    Any body else having the same problem?

    And help get the update of Windows XP to run again?

    It would not be the first step to disable automatic updates in Control Panel and manually download and install the most recent cumulative security update for internet explorer since without first, everything in the way of troubleshooting will be futile?

    Download and install the latest cumulative security for IE8 update and manually restart the computer.

    visit windows update via the shortened link in your Start menu.

    Assuming that you have Win XP SP3 and IE8, it will be the necessary file

    http://download.Microsoft.com/download/1/9/A/19A6AC47-9EA0-455F-B918-A44D25B5304C/IE8-WindowsXP-KB2898785-x86-enu.exe

  • Website error encountered a problem and cannot display the page you are trying to view. The options provided below might help you solve the problem

    Original title: XP updates question

    I can't get Microsoft to provide windows XP updates of any sort of their website (updates.microsoft.com), as they did before. Will my PC Download or even alert for new updates as he did (despite the download of automatic adjustment device).  Instead, when on the Microsoft Download site, I get this error message (and me trying to fix simply loop back to ask updates): "the site has encountered a problem and cannot display the page you are trying to view. The options provided below may help you solve the problem. "What is happening with this?

    Hello

    1. you get a specific error code, when you try to visit the Microsoft update Web site?

    2 have you made changes on the computer before this problem?

    You can check the following items.

    http://support.Microsoft.com/kb/910359

    http://support.Microsoft.com/kb/883614

    See also:

    http://support.Microsoft.com/kb/822798

    Note: this section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs.

  • My printer cuts left, emails from Outlook Express, but is OK to print WORD documents. Is someone can you please help me solve this problem?

    My printer cuts left, emails from Outlook Express, but is OK to print WORD documents. Is someone can you please help me solve this problem?

    I have Windows XP.

    really grateful for any advice.

    Concerning

    Spender 9

    OE uses IE settings.  Then configure things in IE (margins and others) and it should then apply to the when you print from OE.

    Steve

  • How to prevent a user not to access a table of perticular? This user has select any table privilege. Please help me solve this problem.

    Hello

    How to prevent a user not to access a table special (xxx)?

    This user has SELECT a TABLE ALL privilege. I need to restrict to only not for access xxx to the table, but this table is not existed in its own schema.

    But there is access able as select * from schema.table;

    How can I revoke this privilege.

    Please help me solve this problem.

    Thank you

    Lacombe

    1623609 wrote:

    How can I select privilege on specific tables at the same time?

    I want to create a new user and grants the right to select for tables, except a table (xxxx).

    It will be possible without the keystone of the database?

    One way, in several sql

    coil doit.sql

    Select ' grant select on ' | owner: '. ' || table_name |' to someuser. »

    from dba_tables

    where

    spool off

    Then sanity check "doit.sql" and execute it.

  • Please help to read the XML with XMLTable

    Hi gurus,

    I'm not very familiar with XML parsing. It seems to me that it should be very easy to get the data. For some reason, I'm having a problem to get the data.

    SELECT *.
    OF e util.hlsr_online_entries,.
    XMLTABLE)
    XmlNamespaces)
       ' http://tempuri.org/ '    as "dt",
    ("urn: schemas-microsoft-com: XML-diffgram-v1" as "dg").

    "/ DataTable / dg:diffgram/DocumentElement/JrShowCustomerHeifers.
    PASSAGE XMLTYPE (e.entry_data)
    COLUMNS
    SeqNo TO the ORDINALITE,
    DocumentID NUMBER PATH "DocumentID",.
    PATH of VARCHAR2 (100) ClubName "ClubName") as test
    WHERE e.ref_id = 33422

    The query above does all the data for me. My hunts is the problem with the tab DocumentElement. I tried a different variant management.

    Please help me to resolve the application

    I have the XML document following the DotNet developer

    <? XML version = "1.0" encoding = "utf-8"? >

    " < DataTable xmlns =" http://tempuri.org/ ">

    < xs: Schema id = "NewDataSet" xmlns = "" "xmlns: XS =" " http://www.w3.org/2001/XMLSchema " "xmlns:msdata ="urn: schemas-microsoft-com: xml-msdata" >

    < xs: element name = "NewDataSet" msdata:IsDataSet = "true" msdata:MainDataTable = "JrShowCustomerHeifers" msdata:UseCurrentLocale = "true" >

    < xs: complexType >

    < xs: Choice minOccurs = "0" maxOccurs = "unbounded" >

    < xs: element name = "JrShowCustomerHeifers" >

    < xs: complexType >

    < xs: SEQUENCE >

    < xs: element name = "DocumentID" type = "xs: int" minOccurs = "0" / >

    < xs: element name = "ClubName" type = "xs: String" minOccurs = "0" / >

    < xs: element name = "Name" type = "xs: String" minOccurs = "0" / >

    < xs: element name = "FirstName" type = "xs: String" minOccurs = "0" / >

    < xs: element name = "PreferredName" type = "xs: String" minOccurs = "0" / >

    < xs: element name = "Email" type = "xs: String" minOccurs = "0" / >

    < xs: element name = "Exhibitor" type = "xs: String" minOccurs = "0" / >

    < xs: element name = "AnimalName" type = "xs: String" minOccurs = "0" / >

    < xs: element name = "RegistryNo" type = "xs: String" minOccurs = "0" / >

    < xs: element name = "DateofBirth" type = "xs: String" minOccurs = "0" / >

    < xs: element name = "NameofSire" type = "xs: String" minOccurs = "0" / >

    < xs: element name = "SireRegistryNo" type = "xs: String" minOccurs = "0" / >

    < xs: element name = "NameofDam" type = "xs: String" minOccurs = "0" / >

    < xs: element name = "DamRegistryNo" type = "xs: String" minOccurs = "0" / >

    < xs: element name = "Tattoo" type = "xs: String" minOccurs = "0" / >

    < xs: element name = "SecondaryTattoo" type = "xs: String" minOccurs = "0" / >

    < xs: element name = "UniversalIDNumber" type = "xs: String" minOccurs = "0" / >

    < xs: element name = "Tattoo_Location" type = "xs: String" minOccurs = "0" / >

    < xs: element name = "Secondary_Tattoo_Location" type = "xs: String" minOccurs = "0" / >

    < xs: element name = "OracleBreedID" type = "xs: int" minOccurs = "0" / >

    < xs: element name = "JrValidationBreedName" type = "xs: String" minOccurs = "0" / >

    < xs: element name = "ValidationDate" type = "xs: DateTime" minOccurs = "0" / >

    < xs: element name = "ValidatedBy" type = "xs: String" minOccurs = "0" / >

    < xs: element name = "ValidationComment" type = "xs: String" minOccurs = "0" / >

    < / xs: SEQUENCE >

    < / xs: complexType >

    < / xs: element >

    < / xs: Choice >

    < / xs: complexType >

    < / xs: element >

    < / xs: Schema >

    < xmlns:msdata = diffgr:diffgram "" urn: schemas-microsoft-com: xml-msdata "xmlns:diffgr =" urn: schemas-microsoft-com: XML-diffgram-v1 ">"

    < DocumentElement xmlns = "" >

    < JrShowCustomerHeifers diffgr: ID = "JrShowCustomerHeifers1" msdata:rowOrder = "0" >

    < > 18442 DocumentID < / DocumentID >

    < ClubName > Perrin FFA < / ClubName >

    Hamman < name > < / LastName >

    < FirstName > Charles < / name >

    < email > [email protected] < / email >

    < setting > hammam, Charles < / Exhibitor >

    < > 113 AnimalName < / AnimalName >

    < RegistryNo > C1026447 < / RegistryNo >

    < DateofBirth > 14/01/2013 < / DateofBirth >

    < NameofSire > 808 808 DAYS of MATCH LH < / NameofSire >

    < SireRegistryNo > C961101 < / SireRegistryNo >

    SADIE 7/7 < NameofDam > < / NameofDam >

    < DamRegistryNo > C941067 < / DamRegistryNo >

    < > 113 tattoo < / tattoo >

    < SecondaryTattoo / >

    < UniversalIDNumber > 1194F020 < / UniversalIDNumber >

    < Tattoo_Location > TATTOO - left ear < / Tattoo_Location >

    < Secondary_Tattoo_Location / >

    < OracleBreedID > 6383 < / OracleBreedID >

    Beefmaster < JrValidationBreedName > < / JrValidationBreedName >

    < ValidationDate > 2014-11-25T 08: 39:00 - 06:00 < / ValidationDate >

    < ValidatedBy > laineyb < / ValidatedBy >

    < ValidationComment / >

    < / JrShowCustomerHeifers >

    < JrShowCustomerHeifers diffgr: ID = "JrShowCustomerHeifers2" msdata:rowOrder = "1" >

    < > 18473 DocumentID < / DocumentID >

    < ClubName > Perrin FFA < / ClubName >

    Hamman < name > < / LastName >

    < FirstName > Charles < / name >

    < email > [email protected] < / email >

    < setting > hammam, Charles < / Exhibitor >

    < AnimalName > PURPLE CORALEE 349 KPH < / AnimalName >

    < RegistryNo > P43461953 < / RegistryNo >

    < DateofBirth > 04/11/2013 < / DateofBirth >

    < NameofSire > PURPLE MOXY 22 X AND < / NameofSire >

    < SireRegistryNo > P43126458 < / SireRegistryNo >

    < NameofDam > TCC CORKY 6603 < / NameofDam >

    < DamRegistryNo > P42457119 < / DamRegistryNo >

    < > 349 tattoo < / tattoo >

    < SecondaryTattoo > km/h < / SecondaryTattoo >

    < UniversalIDNumber > 1194F021 < / UniversalIDNumber >

    < Tattoo_Location > TATTOO - left ear < / Tattoo_Location >

    < Secondary_Tattoo_Location > TATTOO - right ear < / Secondary_Tattoo_Location >

    < OracleBreedID > 6389 < / OracleBreedID >

    < JrValidationBreedName > Polled Hereford < / JrValidationBreedName >

    < ValidationDate > 2014 - 12-01 T 11: 55:00 - 06:00 < / ValidationDate >

    Hannah < ValidatedBy > < / ValidatedBy >

    < ValidationComment / >

    < / JrShowCustomerHeifers >

    < JrShowCustomerHeifers diffgr: ID = "JrShowCustomerHeifers3" msdata:rowOrder = "2" >

    < > 18474 DocumentID < / DocumentID >

    < ClubName > Perrin FFA < / ClubName >

    Hamman < name > < / LastName >

    < FirstName > Charles < / name >

    < email > [email protected] < / email >

    < setting > hammam, Charles < / Exhibitor >

    < AnimalName > LANGFORDS SWEET N SOUR 4107 < / AnimalName >

    < RegistryNo > 43504761 < / RegistryNo >

    < DateofBirth > 02/03/2014 < / DateofBirth >

    < NameofSire > LH TNT 1017 < / NameofSire >

    < SireRegistryNo > 43199794 < / SireRegistryNo >

    < NameofDam > LANGFORDS LADY 2206 AND < / NameofDam >

    < DamRegistryNo > 43315143 < / DamRegistryNo >

    < > 4107 tattoo < / tattoo >

    < SecondaryTattoo / >

    < UniversalIDNumber > 1194F018 < / UniversalIDNumber >

    < Tattoo_Location > TATTOO - left ear < / Tattoo_Location >

    < Secondary_Tattoo_Location / >

    < OracleBreedID > 6398 < / OracleBreedID >

    Hereford < JrValidationBreedName > < / JrValidationBreedName >

    < ValidationDate > 2014-11-24T 14:26:00 - 06:00 < / ValidationDate >

    Validator < ValidatedBy > < / ValidatedBy >

    < ValidationComment / >

    < / JrShowCustomerHeifers >

    < JrShowCustomerHeifers diffgr: ID = "JrShowCustomerHeifers4" msdata:rowOrder = "3" >

    < > 18475 DocumentID < / DocumentID >

    < ClubName > Perrin FFA < / ClubName >

    Hamman < name > < / LastName >

    < FirstName > Charles < / name >

    < email > [email protected] < / email >

    < setting > hammam, Charles < / Exhibitor >

    < AnimalName > PURPLE CCC 19A LYDIA < / AnimalName >

    < RegistryNo > P43406978 < / RegistryNo >

    < DateofBirth > 05/02/2013 < / DateofBirth >

    < NameofSire > PURPLE MB WOMANIZER 14UET < / NameofSire >

    < SireRegistryNo > P42945146 < / SireRegistryNo >

    < NameofDam > PURPLE CMCC NASTIA 9U < / NameofDam >

    < DamRegistryNo > P42927201 < / DamRegistryNo >

    < > 19A tattoo < / tattoo >

    < SecondaryTattoo / >

    < UniversalIDNumber > 1194F017 < / UniversalIDNumber >

    < Tattoo_Location > TATTOO - left ear < / Tattoo_Location >

    < Secondary_Tattoo_Location / >

    < OracleBreedID > 6389 < / OracleBreedID >

    < JrValidationBreedName > Polled Hereford < / JrValidationBreedName >

    < ValidationDate > 2014 - 12-01 T 11: 55:00 - 06:00 < / ValidationDate >

    Hannah < ValidatedBy > < / ValidatedBy >

    < ValidationComment / >

    < / JrShowCustomerHeifers >

    < JrShowCustomerHeifers diffgr: ID = "JrShowCustomerHeifers5" msdata:rowOrder = "4" >

    < > 18477 DocumentID < / DocumentID >

    < ClubName > Perrin FFA < / ClubName >

    Hamman < name > < / LastName >

    < FirstName > Charles < / name >

    < email > [email protected] < / email >

    < setting > hammam, Charles < / Exhibitor >

    < AnimalName > PURPLE SGW EDEN 12 b < / AnimalName >

    < RegistryNo > P43521932 < / RegistryNo >

    < DateofBirth > 02/04/2014 < / DateofBirth >

    < NameofSire > first TIME's a WASTINe 0124 < / NameofSire >

    < SireRegistryNo > 43123163 < / SireRegistryNo >

    < NameofDam > PURPLE SM WONDER WOMAN 160Y < / NameofDam >

    < DamRegistryNo > P43235169 < / DamRegistryNo >

    < tattoo > 12 b < / tattoo >

    < SecondaryTattoo > 12 b < / SecondaryTattoo >

    < UniversalIDNumber > 1194F015 < / UniversalIDNumber >

    < Tattoo_Location > TATTOO - left ear < / Tattoo_Location >

    < Secondary_Tattoo_Location > TATTOO - right ear < / Secondary_Tattoo_Location >

    < OracleBreedID > 6389 < / OracleBreedID >

    < JrValidationBreedName > Polled Hereford < / JrValidationBreedName >

    < ValidationDate > 2014 - 12-01 T 11: 56:00 - 06:00 < / ValidationDate >

    Hannah < ValidatedBy > < / ValidatedBy >

    < ValidationComment / >

    < / JrShowCustomerHeifers >

    < / DocumentElement >

    < / diffgr:diffgram >

    < / DataTable >

    user12021633 wrote:

    Regarding your suggestion, I've never used the syntax of FLWOR. I'll try to implement if I can make it work.

    "FLWOR is the abbreviation of ' for Let's where Order by Return" and refers to the full form of an XQuery query expression.

    Do you think it would be faster than the way I have the values?

    You have used a FLWOR expression (the 'for' + 'return' part of it) in this post: Re: Please help to read the XML with XMLTable

    And I have already said: do not use in this case.

    Faster or slower isn't the point. Oracle will evaluate the expression in the same way.

    But from a maintenance point of view, it's obviously much easier to use a simple XPath expression like this:

    /DT:GetJrShowCustomerHeifersResponse / dt:GetJrShowCustomerHeifersResult / dg:diffgram/DocumentElement/JrShowCustomerHeifers

Maybe you are looking for