Searching for a record using wildcard or specific

I have a sql query region. It pulls in all possible fishermen in a given state. The report lists name, license type, license nbr.
I have been using the following code which allows the users to enter a value in the P10_SEARCH_FIELD and return all rows where either the name, license type and/or license nbr contain all or part of P10_SEARCH_FIELD. This worked perfectly.
I have now received a request from users to pull back only the record where the license_nbr is the exact of P10_SEARCH_FIELD.
For example, there are over 100 records where the license number has '863' in it, however only one record where the license is exactly '863'. That is the only one that want to see returned. Yet, if they enter 'FISH' in the search field, they still wish to see all records where FISH is in name and/or license type.
Is this possible?
My code currently is:
SELECT distinct
"PERMITS"."LICENSE_NBR" "LICENSE_NBR",
"PERMITS"."LICENSE_TYPE" "LICENSE_TYPE",
"PERMITS"."PERMIT_ID" "PERMIT_ID",
"PERMITS"."DEALER_FISH" "DEALER_FISH",
"PARTICIPANTS"."CORPORATE_NAME" "CORPORATE_NAME",
"PARTICIPANTS"."LAST_NAME" "last_name",
"PARTICIPANTS"."FIRST_NAME" "First_name" ,
"PARTICIPANTS"."PARTICIPANT_ID" "PARTICIPANT_ID",
decode(permits.iss_agency,'0016','FED',null) Fed
FROM
"PERMITS", "PARTICIPANTS"
where iss_agency = :F200_ISSUING_AGENCY and
dealer_fish = 'CF' and "PERMITS"."STATUS" = 'ACTIVE' and
"PERMITS"."PARTICIPANT_ID" = "PARTICIPANTS"."PARTICIPANT_ID"
and
instr(upper("PERMIT_ID"),upper(nvl(:P10_SEARCH_FIELD,"PERMIT_ID"))) > 0 or
instr(upper("LAST_NAME"),upper(nvl(:P10_SEARCH_FIELD,"LAST_NAME"))) > 0 or
instr(upper("FIRST_NAME"),upper(nvl(:P10_SEARCH_FIELD,"FIRST_NAME"))) > 0 or
instr(upper("LICENSE_NBR"),upper(nvl(:P10_SEARCH_FIELD,"LICENSE_NBR"))) > 0 or
instr(upper("LICENSE_TYPE"),upper(nvl(:P10_SEARCH_FIELD,"LICENSE_TYPE"))) > 0 or
instr(upper("CORPORATE_NAME"),upper(nvl(:P10_SEARCH_FIELD,"CORPORATE_NAME"))) > 0
order by participants.last_name, participants.first_name, participants.participant_id
}

Hi Karen,
You can try just changing:
instr(upper("LICENSE_NBR"),upper(nvl(:P10_SEARCH_FIELD,"LICENSE_NBR"))) > 0 orto
"LICENSE_NBR" = :P10_SEARCH_FIELD orSo, this one is a direct match but all the others remain as wildcards
Andy

Similar Messages

  • Unable to search for first record using the Preview tree

    Post Author: TheBig1980s
    CA Forum: General
    Hello:
    Users are unable to search for the first record in the Preview tab's tree.  The reason for this is because the first record is within the first page header of the report.  My guess is that, by design, Crystal takes the end user to whatever the first instance of the record iseven if that first record is in a page header.  That's not "good".  I want the user to be taken to the first record within the details of the reportnot within the page header.
    I have suppressed the page header to not print on the first record by using OnFirstRecord.  But, I still get the same issue where end users cannot select the first record in the tree without being taken to the page header.  Very strange.
    Can anybody think of any other ideas?
    Thanks!
    TheBig1980s

    Thank you Dave Merchant and try67 for your responses. As per my previous post, I contacted the company re the catalogue and they have responded favourably. I'll include their response because it gives the reason for the search failure as document compression which you might find interesting. I'll await their new catalogue and see if they have fixed the problem.
    Company response:
    Thank you very much for your input.  And yes, you are correct, the compression we used for the current catalogue's PDF format does strip out text included in the catalogue.  We used the compression settings we did with the intention of minimising download time, however I take your point about including text for search purposes (which I also utilise when I'm scanning through PDFs).
    We will actually be posting out our new catalogue next week and we'll release the new PDF version on the website at the same time.  I've asked our graphic designer to ensure that the PDF we use for the new catalogue includes searchable text.

  • Is there any way to search for a term using the Firefox search field, and have the results automatically open in a new tab?

    Is there any way to search for a term using the Firefox search field, and have the results automatically open in a new tab? When there was support for Google Toolbar, I was able to do this; now, whenever I want to search for something, I have to open a new tab to do it, and cut-and-paste my search into the search field in the new tab. I used to be able to highlight, drag, and drop something into the search field and have it automatically open in a new tab. This is enough for me to switch to Chrome . . .

    Set a preference to have searches from the Search Bar (upper right) automatically open all searches in a new tab
    #type '''about:config''' in the URL/Location/Address bar and press the Enter key
    #if you see a warning, accept it (promise to be careful)
    #Filter = '''browser.search.openintab'''
    #in the lower panel, double click the item (or right-click and choose "Toggle") to change the value to "true"
    #close the about:config tab and test
    #See:
    #*For help with opening/using about:config, also see: http://kb.mozillazine.org/About:config
    #*Also see: http://kb.mozillazine.org/About:config_entries (click on "Browser", scroll down to browser.search.openintab)
    '''Search Bar''': http://support.mozilla.com/en-US/kb/Search+bar
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''
    About Google toolbar............
    Google decided that they will no longer produce the Google Toolbar for Firefox 5 and newer version. It is best to move on to other alternatives than to try any "hacks" to the toolbar that may or may not perform in the future. Future versions of Google toolbar will only work with IE7-9. Google Toolbar is not available on any other browser, even Google's own browser.
    *http://googletoolbarhelp.blogspot.com/2011/07/update-on-google-toolbar-for-firefox.html
    *https://support.mozilla.com/en-US/kb/google-toolbar-not-compatible-firefox?s=google+toolbar&r=0&as=s
    *http://www.google.com/support/toolbar/bin/answer.py?answer=1342452&topic=15356%29
    *Google Toolbar 8 FAQ (IE only): https://www.google.com/support/toolbar/bin/answer.py?hl=en&answer=1111588
    '''''To access your Google Bookmarks visit''''' www.google.com/bookmarks.
    Alternatives:
    *http://kb.mozillazine.org/Using_Google_Toolbar_features_without_toolbars
    *https://addons.mozilla.org/en-US/firefox/addon/googlebar-lite/
    *https://addons.mozilla.org/en-US/firefox/addon/gbookmarks-google-bookmarks-fo/

  • Wich one best for Audio Recording using cubase and pro tools? MBP md102 or MBP md103? i often using a lot of VST

    wich one the best for Audio Recording using cubase and pro tools? MBP md102 or MBP md103? i often using a lot of VST too

    Well, I've been trying this for a while. By my calculations, at this rate, installing all the applications one by one and trying to restore all the data manually will take me about six years. I would finished just in time for the Tokyo 2020 Olympics.
    The main problem is, I don't know where all the bodies are buried. Just one example, I'm using Cornerstone for an svn client. I have working copies of multiple repositories on my computer. I really don't want to set them all up again, and I can't figure out where the Cornerstone preferences and all settings are stored. I couldn't find them in the Library anywhere.
    And that's just one case.
    I haven't done much with my MacBook Pro yet, I think in retrospect the easiest course of action is to reinstall OS X as though it were new MacBook Pro, start from scratch, and use my Time Machine backup with the migration assistant and go from there.
    And that's what I'm doing right now. I'm in the middle of reinstalling OS X.
    Afterwords I'll use a clean app uninstaller application to get rid of all the applications that I'm not using. And I'll just hack away at directories that I know I haven't looked at for years, with the confidence that I have a backup both in Time Machine and in CCC and also on my iMac. That's three backups.
    I would rather start out "light", but I can see it's just going to take forever and a day to get it done. Anyway, fortunately nothing is carved in stone, and I can always try again if I want to. But dealing with all the documents and all the applications one by one separately was just obviously going to take too much time.
    I'll report back on my results. And I appreciate your suggestion.
    Doug

  • How to search for value records for a specific period of time?

    Hi,
    I am building an application where I need to use BDB to store tons of call records.
    In the call records, I have the following fields:
    1. from-caller
    2. to-caller
    3. begin-time
    4. end-time
    5. account-code
    6. user-code
    I want to use end-time's microsecond representation to serve as the Key.
    So, how can I do the following data lookup?
    1. Search for all Value records between 2009-10-11 to now()
    2. Search for all Value records between 2009-10-11 to now() with account-code = 100
    3. Search for all Value records between 2009-10-11 to now() with account-code = 100 and user-code=10
    Is there any similar examples out there that I can refer to?
    Thanks,
    JB

    Hi,
    Btw, my operation is mostly:
    1. Append call records
    2. Search call records
    3. Remove ending records that are older than XX days
    Please kindly advise on how I should best structure the data to meet this purpose.
    Thanks,
    JB

  • Wildcard search for numeric values using select ?

    Hi,
    I want do wildcard search for numeric fields of the table.
    For charcter/string i have used - select * from XX_TABLE where param1 like 'SS%'. But this query doesnt work when para1 is numeric. Please let me know first whether this is possible ? if yes how to achieve it ?
    Thanks in advance,
    Shrinivas

    Hi Jack,
    The numeric field is of  8 digits, so when i give search critera as '66', it should return values 66000000, 660000, 6600 etc. so i was not able to give between some range. I also tried storing all these values in internal table and the segregate the values it contains '66*'. This worked well but requires lot of coding effort.Please suggest if you guys have any better method ?
    Thanks,
    Shrinivas

  • How to make wild card search for a file using utl_file

    Hi Everyone,
    I want to write to a table from flat file.im using 9i release 2. can i perform filename* (wildcard) search n write to the matching files.
    Regards
    Manish

    Sorry can i write from those files which matches the search criteria i mean the wildcard search
    for e.g COVhj*

  • How to search for (and get taken to) a specific SMS or iMessage?

    Hi all,
    I can't find a way to jump to a Specific part of a conversation position in the Messages app.
    My phone has a few long conversations stored (often requiring 100 or more taps of the "load more messages" button to scroll all the way through) rather than a lot of short ones. And searching a specific keyword (say, from an SMS or iMessage i remember receiving a couple of weeks ago) in Spotlight or the Messages app search box returns specific results, so the phone is capable of locating a specific position in the conversation but I can't find a way to jump to it, if the queried text is behind the first "load more messages" wall - in these cases when I tap the search result, I'm taken to the end of the conversation, rather than the part of the conversation I searched for.. It basically teases you, telling you "yes, I can locate the text you want, but no, I won't take you to it" ;)
    Am I missing something or are there external apps that can do it?
    Thanks,
    Chris

    In the Finder press COMMAND-F to open a Spotlight search window. From the Kind dropdown menu select Other. When the attributes list appears scroll down to File Extension and check the box on the right. Click on the OK button. You should now see File Extension in the dropdown menu of the search window. Use this to search for files with the given extension.
    You can also just do a simple search for an extension.

  • Searching for document that uses a certain font?

    Is there a way to search for a Word document that uses a specific font? There is only one possible document on my hard drive that uses this font.

    There must be a way, that info is stored in the Document near the end, like...
    Still working on it.

  • Any hint on searching for portal components using any certain LOV ?

    hi,
    does anyone know how to search for all of those portal components which use a certain other component?
    let's make it specific. how can i know which of the portal components (portal reports and forms, content folders, etc) are using any certain LOV?
    will really appreciate any hints.
    with kind regards,
    naqvi

    Thanks... I will am closing this but in case you have some material for me to review on the following, I will appreciate:
    You wrote
    1.
    "You can convert standard cube to real time even if it already has data without loss this data by using program SAP_CONVERT_NORMAL_TRANS (via SE38)."
    --on executing se38, and entering this program, it opened the code and I was stuck not knowing what to do.
    I can make simply ABAP modification but did not know how to copy data from one cube to the other using this program
    2.
    "Via copying data from any other cube using IP functionality (copy function or FOX formula)."
    The RSINPT was simple but I had no clue on this suggestion, any additional info specifically on this will be helpful.
    In general, in real environment with large amoun of data, which method do you use?
    Thanks

  • Windows Server 2003 R2 Enterprise Edition 32 bits Service Pack 2 never finishes searching for updates and use 100% of CPU.

    Hi everyone, I am having issues updating a clean Windows Server 2003 R2 Enterprise Edition 32 bits Service Pack 2, so any help with be appreciated cause I've already tried all my cards for the past 5 days in this particular issue without success.
    All I did so far is installing Windows Server 2003 R2 Enterprise with Service Pack 2, open IE to update, it keeps searching for updates and never stop, after 20mn to 30mn the process svchost.exe start using 100% of my CPU.
    I already tried the following scenarios:
    1-  Install IE8, install the update KB927891 and the Windows Update Agent 3.0 (I already had this one installed). Reboot and run windows update trough IE8 and the problem did not solved.
    2- Install those 2 software "MicrosoftFixit.wu.MATSKB.Run" and "MicrosoftFixit50777", open IE to update, it still hangs and continues eating my CPU. This is the output of "MicrosoftFixit".
    Windows Update error 0x8007000D(2014-01-06-T-06_06_34A) --> Not Fixed
    Cryptographic service components are not registered (This service is actually running successfully) --> Not Fixed
    3- I found the following script that would register some DLL, deleting the "SoftwareDistribution" and forcing windows update to solve the problem and nothing happened either.
    Link to script:
    http://gallery.technet.microsoft.com/scriptcenter/Dos-Command-Line-Batch-to-fb07b159#content
    Here is a link to the content of my WindowUpdate.log file:
    https://skydrive.live.com/redir?resid=883EE9BE85F9632B%21105
    Thank you in advance for helping.

    All I did so far is installing Windows Server 2003 R2 Enterprise with Service Pack 2, open IE to update, it keeps searching for updates and never stop, after 20mn to 30mn the process svchost.exe start using 100% of my CPU.
    Herein is the root cause of your issue. A topic that's been discussed in several blogs, forums, and even in the media since September regards a known issue with attempting to patch IE6 RTM via Windows Update.
    Aside from that particular issue... browsing the Internet with an unpatched instance of IE6, especially from a Windows Server system, is also asking for a world of hurt.
    Might I suggest the following:
    Download the IE8 for Windows Server 2003 installer to a thumb drive.
    Download the latest Cumulative Security Update for IE8 for Windows Server 2003 to a thumb drive.
    Reinstall Windows Server 2003 with Service Pack 2.
    Upgrade to IE8 from the thumb drive installer and apply the
    Cumulative Security Update.
    Now your machine is capable of safely browsing to Windows Update to install the rest of the updates (well, maybe, there's also all those other Security Updates from the past seven years that your machine still has vulnerabilites for -- even those seven
    years of updates are going to take a Very Long Time to scan for, download, and install).
    Why don't you have a WSUS server? -- noting, wryly, that you've posted in the *WSUS* forum.
    Lawrence Garvin, M.S., MCSA, MCITP:EA, MCDBA
    SolarWinds Head Geek
    Microsoft MVP - Software Packaging, Deployment & Servicing (2005-2014)
    My MVP Profile: http://mvp.microsoft.com/en-us/mvp/Lawrence%20R%20Garvin-32101
    http://www.solarwinds.com/gotmicrosoft
    The views expressed on this post are mine and do not necessarily reflect the views of SolarWinds.

  • Searching for a term using the Search tab in HTML Help doesn't find all relevant topics.

    I'm using the Search tab in the HTML Help window to search for a few words.  But those words are not being located within the topics.  For example, one of the words for which I am searching is Australian.  I can find the topic that contains that word using the Contents tab.  But the Search tab doesn't find it.  I have even tried copying the word from that topic into the Search box but it is not found.
    Is there a known bug in HTML Help search capabilities?

    Is this a stand alone CHM file or is it merged? If it is merged, does the word appear in the search in the CHM containing the topic is searched? I assume you've checked that your Stop List doesn't contain the word being searched?

  • Searching for XML tags using Oracle Text

    I am using full text search to find documents based on a search text. It works fine for pdf, word documents, etc. However for XML documents, searching for a particular tag name does not find anything. Searching for text within tags works fine. Any thoughts?
    Edited by: miyer on Feb 21, 2011 6:25 PM

    Hi
    Try adding the following variable to ucm config.cfg and then see if a new xml checkin returns the result for FT search :
    TextIndexerFilterFormats=xml
    Save the file , restart UCM and then test .
    If the new checkin gets the results as expected then execute Collection Rebuild cycle to have the existing contents as well FT indexed to be searchable (for XML).
    Thanks
    Srinath

  • Searching for missing files, using PSE6

    After I have transfered a batch of photos using the -file -get photos -From files and folders, the thumbnails appear in         " Organizer" but when I want to look at the photos in full screen they come up unclear and a dialogue box comes up ," searching for missing files" I then click on "browse" and the folder from which i have transfersd the photos, in "My Pictures" is not shown in the list. I have done this with an other folder of photos and it is also not shown in the list, as if they have dissapeared. The folders are still in " My Pictures"
    I am totally frustrated with trying to get past first base with this program I have spent many hours trying to find a solution

    It sounds like you may be encountered one of the drive-handling bugs in PSE.  To diagnose that, download and run the free utility "psedbtool":
    http://www.johnrellis.com/psedbtool/#_Downloading,_Installing,_andhttp://www.johnrellis.com/psedbtool/
    Copy and paste the output in a reply here.

  • How to get Name 2 also when we search for a customer using 'Name' as search

    In XD03, when I am searching for Customer using ‘Name’ as Search term I am getting postal code, Name1, City, Customer no. I want Name2 also to be displayed. Can somebody please suggest.
    Thank you.

    hi,
        for this you will have to change the search term involved during the master data creation.
    now during the creation of customer master data , enter the name as the search term in the data base.
    if possible change the database of customers and insert the name in the search term.
    without it, it will be really difficult to locate the customers with the search term as their name
    regards,
    Siddharth.

Maybe you are looking for

  • How to convert XML file into DTD or XSD

    Hi Folks, This is the output structure I need to get. My interface is file to file. Can u please let me know How do I create a data type or any XSD to get below Structure. <?xml version="1.0" encoding="UTF-8" ?> - <Command xmlns:xsi="http://www.w3.or

  • U00A8Wait Step doesnu00B4t finnish...

    I have a Wait Step in my bpm and it never finnishes the execution, it stays running forever. I´m running sp20. Is there any bug ? Thanks

  • Complex "tabbed" look using CSS

    Hi all.  Below is an example of a block of copy from a resume I'm trying to markup using basic CSS rules.  The person asked me to *literally* make their resume webpage look like their Word document. Question: what would others' best practice be regar

  • Do I need to buy 2 Windows 2012 R2 Standard Servers

    Hi guys, My question is that, I have been approached by a small Business company that needs a Solution for their System.  So naturally I proposed Windows 2012R2 STD with Open Volume  Licence. What I proposed is 01 Primary File/DC Server and a Back up

  • Generate a new (random) mine field?? for minesweeper

    I have to create a minesweeper game for my java class. but im having trouble creating the method to generate a random mine field?!?! (i dont even know where to start) public static boolean [][] generateMineField ( int length, int width, int numberMin