Searching through Database

Hello there,
As a school project I am building a database to store information about music. I have a song table that have the following columns: musicID, music_name, music_description, music_type.
I would like to write a procedure to search the music_name, music_description and music_type columns for text. For example, if I ask the procedure to give me all music with the word "rock" in it the results will include every entry that have the word rock in it.
I would like to know if there is a way to implement this kind of functionality?

Hello there,
As a school project I am building a database to store
information about music. I have a song table that
have the following columns: musicID, music_name,
music_description, music_type.
I would like to write a procedure to search the
music_name, music_description and music_type columns
for text. For example, if I ask the procedure to give
me all music with the word "rock" in it the results
will include every entry that have the word rock in
it.
I would like to know if there is a way to implement
this kind of functionality?You provide no oracle version or platform. You state "I have a song table" that may not even be the actual name, and you toss out a couple of possible column names. What have you coded so far? Post the table create statements, sample data, and what you have done, and any error messages you have received.
Are you using oracle text?
http://download.oracle.com/docs/cd/B28359_01/server.111/b28318/content.htm#CNCPT1537
Are you using regular expressions?
http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28424/adfns_regexp.htm#ADFNS9999
Are you using pl/sql, java, perl, xml, or sqlplus...
http://download.oracle.com/docs/cd/B28359_01/datamine.111/b28130/sampleprogs.htm#sthref321
http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28369/xdb01int.htm#sthref143
http://download.oracle.com/docs/cd/B28359_01/text.111/b28303/aoptim.htm#CCAPP9264
If you need assistance with your school project, you need to at least provide enough information for people to jump in there an help you write it.

Similar Messages

  • Searching through a Large Database

    There's a specialty program that I use all the time and it's built for windows only. This program pretty much searches through a big database of articles that this organization has published and you can read them.
    I'm wondering, what should I do to redevelop the database? Is there a good program to use? and what language I should use?
    Message was edited by: Supanatral

    +I just got to track down who did it I guess.+
    If you have that as a resource I'd very much recommend doing that. No reason to re-reverse engineer the wheel.
    +Is there a good step by step how to for mysql?+
    There are many scattered around the web.
    Here is Apple's:http://developer.apple.com/internet/opensource/osdb.html
    Here is MySQLs: http://dev.mysql.com/doc/refman/5.0/en/mac-os-x-installation.html
    Also some OS X seem to have shipped with OpenBase installed and some don't. I'm not sure what the process or license is on that but it is much friendly and GUI operative than MySQL. If you have it it's worth looking into if it'll work for you.
    Good Luck,
    =Tod

  • Intermedia search through a database link.

    Has anyone been able to do a search through a database link on an intermedia index in another database?
    My sql is:
    select title
    from [email protected]
    where contains (title,'test')>0;
    I get the following errors:
    ORA-20000:
    ORA-02063:
    null

    I guess you cannot do this. I read somewhere (not on top of my head where) that this is not supported.
    null

  • I downloaded IOS6 and all my apps, including the App Store icon, disappeared. If I go to the Passport icon, there is an App Store button, but I have to search through all the apps to find the one I want  and then click on "Open" to use it.  Help!

    I downloaded IOS6 and all of my app icons, including the App Store icon disappeared. Now to use an icon, I have to go to Passport and click on the App Store button at the bottom and search through all of the apps to find the one I want and then click on Open. There doesn't seem to be a way to delete the app and start over.

    Hey PlayerPS,
    Thanks for the question, and welcome to Apple Support Communities.
    It sounds like the application you are looking for is indeed still on your iPhone. You can confirm this by searching in the Spotlight Search for this application. It may have accidentally been moved to a folder, or an additional Home screen:
    iOS: Understanding Spotlight Search
    http://support.apple.com/kb/HT3636
    via http://manuals.info.apple.com/en_US/iphone_user_guide.pdf
    Thanks,
    Matt M.

  • Looking for a free iOS 4 app that can search through .pdf files or spreadsheets

    Looking for a free iOS 4 app that can search through .pdf files or spreadsheet    
    Thanks

    Hey there
    "pdf creator" for iPad works flawlessly for me working with pdf files
    It takes care of all my needs
    I'm not sure about sending via Wifi or Bluetooth but I send them via e- mail all the time
    Possibly it could handle your needs as well
    Just type it into the App Store search field and the first one that comes up is the one I use
    Jump on over there and read up on it before buying and see if it will help you 
    Hope this helps
    Regards

  • Automatic Area of Search through finder?

    By default, every time I try to search through spotlight in finder, it automatically searches "This Mac". I was wondering if there was a way to have it search in whatever folder I am currently in like it did in OS 10.3. Instead it comes up searching my hard drive and I have to manual click on whatever folder I am in. Also, does anyone know how to make it so if you have something typed into spotlight in finder, it will stay in the search box instead of erasing whenever I move to another folder. It makes it very agitating to have to retype in the file name each folder I switch to. This is also another thing that had changed from OS 10.3. If anyone has any way to help me on either of these problems, I would really appreciate it. Thank you.

    If you did this is applescript, you'd need to call unix through do shell script anyway, so don't bother with applescript.  just use mdfind directly.  e.g.:
    # finds files that have a metadata attribute called MyKeyword with value DesiredValue
    mdfind "MyKeyword == DesiredValue"
    # finds files that have a metadata attribute called MyKeyword whose values start with Desi
    mdfind "MyKeyword == 'Desi*'"
    # finds files that have some metadata attribute whose value contains redVal
    mdfind '*redVal*'
    to make a smart folder just do a search in the Finder and then save it to the desktop (careful, it will default to saving it in the sidebar, which will put it in some funky folder down in you library).  once you've saved it you can open it in a text editor or plist editor to see the contained mdfind command.  Then it's just a question of modifying the right keywords.  I have an applescript somewhere that does it, but it's not all that useful - almost as easy to make the smart folder by hand in the Finder, and there's no way to extract the files from the smart folder once you've made it.

  • Audit directory and searching through the logs for deleted file

    Windows Server 2003
    I have found article http://whatevernetworks.com/?p=108
    And in description of this article is: to found deleted files in auditing directory I have to found event 560.
    But I have about 60 000 events.
    My file abcd.txt is missing and I have to find who delete it, but I cant click 60 000 times to find it.
    Moreover most of that event looks like its objcect open not object deleted.
    How to find this particular?
    Event Type:    Success Audit
    Event Source:    Security
    Event Category:    Object Access
    Event ID:    560
    Date:        2/23/2014
    Time:        11:48:00 PM
    User:        DOMAIN\user
    Computer:    PLWAW1FS00003
    Description:
    Object Open:
         Object Server:    Security
         Object Type:    File
         Object Name:    E:\Temp\download.domain.com\example.zip
         Handle ID:    1788
         Operation ID:    {0,477992664}
         Process ID:    1692
         Image File Name:    C:\WINDOWS\system32\xcopy.exe
         Primary User Name:    user
         Primary Domain:    DOMAIN
         Primary Logon ID:    (0x0,0x1C7D2FA0)
         Client User Name:    -
         Client Domain:    -
         Client Logon ID:    -
         Accesses:    DELETE
                READ_CONTROL
                WRITE_DAC
                WRITE_OWNER
                SYNCHRONIZE
                ACCESS_SYS_SEC
                ReadData (or ListDirectory)
                WriteData (or AddFile)
                AppendData (or AddSubdirectory or CreatePipeInstance)
                ReadEA
                WriteEA
                ReadAttributes
                WriteAttributes
         Privileges:    SeBackupPrivilege
                SeRestorePrivilege
         Restricted Sid Count:    0
         Access Mask:    0x11F019F
    Find fields are: Information/Warning/Error/Succes/Failure
    Event source: DS/IIS/LSA etc...
    Event ID:
    User:
    Computer:
    Description:
    and no filename, or action.
    Maybe I can use powershell to search through the logs?

    Hi,
    You can use Custom View and XML filter to filter specific event logs. Firstly, create a custom view. Then type an XML query to filter by ObjectName (abcd.txt).
    For more detailed information, please refer to the article below:
    Advanced XML filtering in the Windows Event Viewer
    http://blogs.technet.com/b/askds/archive/2011/09/26/advanced-xml-filtering-in-the-windows-event-viewer.aspx
    Regards,
    Mandy
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Halfway through the OS X Yosemite update it says I am not connected to the internet (when I know I am because I can search through the app store). How can I fix this? I cannot get on Safari because it requires an update to Mac OS X 10.9 or later.

    Halfway through the OS X Yosemite update it says I am not connected to the internet (when I know I am because I can search through the app store). How can I fix this? I cannot get on Safari because it requires an update to Mac OS X 10.9 or later.

    Just to be clear. You have downloaded the Yosemite installer. However you say while it's updating you get the error you are not online. This is confusing since you shouldn't be able to use your computer in the process of updating.
    Exactly where do you see you need to 10.9 to get on Safari?

  • Using Oracle Text to search through WORD, EXCEL and PDF documents

    Hello again,
    What I would like to know is if I have a WORD or PDF document stored in a table. Is it possible to use Oracle Text to search through the actual WORD or PDF document?
    Thanks
    Doug

    Yes you can do context sensitive searches on both PDF and Word docs. With the PDF you need to make sure they are text and not images. Some scanners will create PDFs that are nothing more than images of document.
    Below is code sample that I made some time back to demonstrate the searching capabilities of Oracle Text. Note that the example makes use of the inso_filter that is no longer shipped with Oracle begging with Patch set 10.1.0.4. See metalink note 298017.1 for the changes. See the following link for more information on developing with Oracle Text.
    http://download-west.oracle.com/docs/cd/B14117_01/text.101/b10729/toc.htm
    begin example.
    -- The following needs to be executed
    -- as sys.
    DROP DIRECTORY docs_dir;
    CREATE OR REPLACE DIRECTORY docs_dir
    AS 'C:\sql\oracle_text\documents';
    GRANT READ ON DIRECTORY docs_dir TO text;
    -- End sys ran SQL
    DROP TABLE db_docs CASCADE CONSTRAINTS PURGE;
    CREATE TABLE db_docs (
    id NUMBER,
    format VARCHAR2(10),
    location VARCHAR2(50),
    document BLOB,
    CONSTRAINT i_db_docs_p PRIMARY KEY(id)
    -- Several notes need to be made about this anonymous block.
    -- First the 'DOCS_DIR' parameter is a directory object name.
    -- This directory object name must be in upper case.
    DECLARE
    f_lob BFILE;
    b_lob BLOB;
    document_name VARCHAR2(50);
    BEGIN
    document_name := 'externaltables.doc';
    INSERT INTO db_docs
    VALUES (1, 'binary', 'C:\sql\oracle_text\documents\externaltables.doc', empty_blob())
    RETURN document INTO b_lob;
    f_lob := BFILENAME('DOCS_DIR', document_name);
    DBMS_LOB.FILEOPEN(f_lob, DBMS_LOB.FILE_READONLY);
    DBMS_LOB.LOADFROMFILE(b_lob, f_lob, DBMS_LOB.GETLENGTH(f_lob));
    DBMS_LOB.FILECLOSE(f_lob);
    COMMIT;
    END;
    -- build the index
    -- Note that this index differs than the file system stored file
    -- in that paramter datastore is ctxsys.defautl_datastore and not
    -- ctxsys.file_datastore. FILE_DATASTORE is for documents that
    -- exist on the file system. DEFAULT_DATASTORE is for documents
    -- that are stored in the column.
    create index db_docs_ctx on db_docs(document)
    indextype is ctxsys.context
    parameters (
    'datastore ctxsys.default_datastore
    filter ctxsys.inso_filter
    format column format');
    --search for something that is known to not be in the document.
    SELECT SCORE(1), id, location
    FROM db_docs
    WHERE CONTAINS(document, 'Jenkinson', 1) > 0;
    --search for something that is known to be in the document.  
    SELECT SCORE(1), id, location
    FROM db_docs
    WHERE CONTAINS(document, 'Albright', 1) > 0;

  • AppleScript (or Automator?): How to search through online сhеss games?

    Hello.
    I would like to search for specific online сhеss games. Each game has a single adress. We are talking about millions of games. Obviously, it's far too long to index all the games. So I will set a limit and use the script at night. Conditions should be something like this:
    For adress example.com/game=NumberA to example.com/game=NumberB
    Search every web page containing SpecificWord
    Store wanted web adresses somewhere (so I could see the games by myself during the day)
    As you can see, I know nothing about Applescript and I don't know how to start, nor how the script can pick up adresses. I think it's possible and not difficult to code, just time consuming for the program to search through thousands of games.
    Should I use AppleScript or Automator? Should the script open Safari (or Firefox if possible) or can it search without any browser? Is it possible to simultaneously search through multiple pages/adresses? Maybe I could write several scripts for different ranges of games? If so, how many pages can I open at once? For instance I could disable images in Firefox to load quicker. How much time does it need to search for one game? 1, 2, 3, 4, 5 seconds?
    Any easy tutorials, examples of similar codes, advices, hints or tips are appreciated.

    Thanks for answering. Sorry that I was so unclear. My main problem was how to get urls and games id as variables. But then I thought there already should be programs doing web crawling. I have found Scrapy which use Python language.
    (Maybe I should edit my question, add Scrapy and Python as tags instead of applescript and automator. Is it possible?)
    I have Mac OS 10.6.8, Python 2.6.1. Scrapy needs at least Python 2.7 so I have downloaded the last version of Python (3.3).  I think I can handle the programming in Scrapy thanks to their tutorial. The most difficult part should be... how to install Scrapy. Don't laugh at me.
    I have entered "sudo easy_install Scrapy" in the terminal. But the terminal still uses Python 2.6.1. Python 3.3 is installed but I don't know how to clean update Python. If anyone knows, feel free...
    When I write scrapy in the terminal, here is what I get:
    Traceback (most recent call last):
      File "/usr/local/bin/scrapy", line 4, in <module>
        import pkg_resources
      File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/pkg _resources.py", line 2556, in <module>
        working_set.require(__requires__)
      File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/pkg _resources.py", line 620, in require
        needed = self.resolve(parse_requirements(requirements))
      File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/pkg _resources.py", line 518, in resolve
        raise DistributionNotFound(req)  # XXX put more info here
    pkg_resources.DistributionNotFound: lxml
    It seems Scrapy also needs something called lxml. Right now I am trying to make Python 3.3 the default python version. Is there a web crawler GUI which already includes Python, Scrapy, lxml?
    By default I also have Python 2.4 and 2.5. Does the system need them? I prefer not to delete system files but together all Python versions weigh 500 MB.
    In regard to the real example URL: let's say instantchess.com. Here's a game URL: http://www.instantchess.com/?EXP=1&GPI=84094532
    84094532 is the game id. Let's say I want to search every Reti openings (thus the page must contain the word "Reti") from id 84000000 to 85000000 and store games id in my computer. If I have understood correctly, I need to search through the source code of the pages.
    Feel free to add any remarks, suggestions, ideas.

  • How can I search through my purchased apps on an iPad running iOS 7.0.4?

    Maybe I'm just missing it, but I see no way to search through my purchased apps on my iPad (3rd generation) running iOS 7.0.4. To be clear, I know how to go to the appstore, click purchased, and view all of my purchased apps, but I cannot see a search field by which to textually search through my apps as is available on the iPhone. It seems inexplicable that Apple would have this feature on the iPhone but not the iPad, so am I missing something?
    Thanks for any help.

    Tap to enlarge image.

  • How to view "File IO Stats" through database views

    Hello Guys,
    I need to view the "File IO Stats" (information of datafile that I view at AWR frecuently) through database views. Which are the view that I must use?
    Thanks in advanced.

    Hi
    The below query will display regular IO on Data files as well as Temporary IO.
    select a.file#,b.name, a.phyrds, a.phywrts, (100*(a.phyrds+a.phywrts)/&divide_by) Percent,
    a.phyblkrd, a.phyblkwrt, (a.phyblkrd/greatest(a.phyrds,1)) brratio,
    (a.phyblkwrt/greatest(a.phywrts,1)) bwratio
    from sys.v_$filestat a, sys.v_$dbfile b
    where a.file#=b.file#
    union
    select c.file#,d.name, c.phyrds, c.phywrts,
    (100*(c.phyrds+c.phywrts)/&divide_by) Percent,
    c.phyblkrd, c.phyblkwrt,(c.phyblkrd/greatest(c.phyrds,1)) brratio,
    (c.phyblkwrt/greatest(c.phywrts,1)) bwratio
    from sys.v_$tempstat c, sys.v_$tempfile d
    where c.file#=d.file#
    order by 1
    Thanks
    LaserSoft

  • Search through a cluster or clusters in cluster by label-name of a control

    Hi,
    is there a function availabe which allows to search through an arbitray cluster by an label-name and if the desired control is found in the cluster, its value should be returned?
    E.g:
    The function should receive the cluster to be searched and the label-name of the wanted control. The Output should be the value of the control if the label-name was found within the cluster. If the name was not found, there should be a status e.g. -1 at the output uf the function.
    Thanks for your help!
    BR

    I have two general purpose methods in this instance.  The first is to utilize LV's XML schema and a little XPath:
    The second method utilizes Traversal and is contained in the zip file I have attached.  This method is very poorly documented at best (like most scripting).  It was a fun experiment.
    TraverseCluster.vi specifies the callback VI to be used when a control is encountered during the operation called 'FindControls'.  It then calls this traverse operation on the cluster which is based in by reference.  The Callback VI is called for all controls in the cluster, if a Label is specified all matching controls are added to the list.  If no label is specified, all control references contained in the cluster are returned (including those inside subclusters).  You can specify if you only want controls returned and not the clusters. Finally, the Class Operator is removed. 
    There is an example included to see how it all works.
    Traversing is a great tool to have at your disposal if you are a scripter.
    Attachments:
    Traverse Cluster.zip ‏40 KB

  • I cannot select previously searched items in google toolbar search through mouse, I have to selct it by keyboard or retype it.

    In firefox 4 I cannot select previously searched items in google toolbar search through mouse, I have to selct it by keyboard or retype it.
    Also during switching between tabs I notice black screen.

    I just tried clicking the left button of the mouse BEFORE placing the pointer above the drop-down arrow of the Google search and worked. If the word was deep down the list, i scrolled down the wheel of the mouse. Always keeping the left button pressed and releasing it once i had pointed my choice.

  • Updated to 10.5.6, no longer able to search through networked shares.

    One of our users was able to search through our network shares(extreemeZ-ip) just fine yesterday morning, mid morning he updated to 10.5.6 and is no longer able to use finder to perform searches on those shares.

    We ARE on Mac Servers, but only version 10.4.7. All networked computers are Mac OS 10.5.6, except for one, which is on 10.4.11.
    Command-F) FIND no longer works on any of the Leopard boxes. Works fine on the one box with Mac OS 10.4.11. I can do simple searches for files I know are there, but it can not find anything. I have checked all permissions.
    I found this thread (http://discussions.apple.com/message.jspa?messageID=8654089&tstart=0) and the solution he wrote of works, but that's such a backwards way of having to search.
    Would the spotlight issue also pertain to Server software 10.4.7? Thanks in advance for any help!

Maybe you are looking for

  • HT204302 how can i gift an ipod touch app to a friend from windows xp?

    I do not own an ipod touch, but have used itunes for years with my 2gb 2nd gen. nano.  I would like to purchase an application on itunes called soundprism pro for a friend as a gift.  Is it possible to gift the app to my friend with my itunes account

  • Not able to get SSL related CGI Environment Variables?

    We are currently using APEX 3.2.0.x, OHS 10.1.3.x, and 11gR1 on linux. The APEX application we've been developing will be accessed via SSL and x509 certificates such that a client certificate is passed from a user's browser to the OHS, the informatio

  • IPhone locked up while viewing photo?

    The other day my wife was looking at pics in her Camera Roll on her week 43 iPhone 3GS, when it just totally locked up. There was a picture on the screen, but no response to any touch input on the screen OR on any buttons whatsoever. Even tried power

  • Chinese ID tags

    I have a problem with my ipod photo to itunes compatibility. I have some Chinese songs that I copied onto my new macbook. Upon syncing with ipod, i noticed that the songs are displayed the correct Chinese characters on the ipod... but on my itunes it

  • Screen is dead!

    I just replaced my 40GB iPod with a 160GB Classic iPod at the end of September and this morning when I grabbed it for my walk to work the screen didn't come on. I can stop and start the music but I can't see anything! Has this happened to anyone? Doe