Can anyone help me on building this Query. I am having difficulty.

Provide a query that shows all items that where created by a person. A partial name for the person may be used. For example, show me all works by “Morrison”. I should see CD’s by Van Morrison and a poetry book by Jim Morrison. WHERE NAME =”MORRISON”

First, technical questions should be addressed to a technical forum. Products | Database | SQL & PL/SQL would be appropriate for this question.
Second, you probably want to use the LIKE function here along with a wildcard
WHERE UPPER(NAME) LIKE '%MORRISON'will identify all rows where the name ends with 'Morrison'. If you want to allow 'Morrison' to appear anywhere in the name (i.e. the company 'Morrison Knudsen'), you would have the wildcard on both sides, i.e.
WHERE UPPER(NAME) LIKE '%MORRISON%'Justin
Distributed Database Consulting, Inc.
http://www.ddbcinc.com/askDDBC

Similar Messages

  • HT1338 I have a macbook Pro i7 mid november 2010. I am wondering if i can exchange my notebook with the latest one. Can anyone help me out with this query please.

    I have a macbook Pro i7 mid november 2010. I am wondering if i can exchange my notebook with the latest one. Can anyone help me out with this query please.

    You can sell your existing computer using eBay, Craigslist or the venue of your choice. You could then use the proceeds to purchase a new computer.

  • Please can someone help me to build a query

    Please can someone help me to build a query for getting the following results. I work with Oracle 9.
    My data is about this:
    Projectid / Activitycode / Act.DS / Earlystart / ActualStart
    {color:#ff0000}P001 / 110M / blabla / 1-1-08 / 1-1-08{color}
    {color:#3366ff}P001 / 230M / fdsfds / 31-1-09 / null{color}
    P001 / 450M / fsfsd / 1-4-09 / null
    P002 / null / null / 1-12-08 / 1-12-08
    {color:#3366ff}P002 / 110M / nhggh / 5-2-09 / null{color}
    P002 / 750M / wdwdwd / 5-2-09 / null
    P002 / 210M / plplplp / 31-12-08 / 31-12-08
    {color:#ff0000}P002 / 550M / ewdwd / 5-1-09 / null{color}
    I'd like to get one row for each Projectid with the {color:#3366ff}first next Early- or Actualstart{color} {color:#3366ff}after today{color} and one row with the {color:#ff0000}latest early-/actualstart before today{color}. When there are two or more rows with the same date then I want the first (minimum) Activitycode. This last condition makes it insoluble for me!
    I've tryed SQL with nested Select-statements in the Where-clause. But I've got still 2 rows per projectid because I select the min(nvl(Earlystart ,ActualStart ) I've tryed SQL with an Select in the FROM-claus with Partion BY, but I can't get it work right.
    Can someone show me the right way to solve my problem?

    How's this?
    with my_tab as (select 'P001' projectid,
                           '110M' activitycode,
                           'blabla' act_ds,
                           to_date('01/01/2008', 'dd/mm/yyyy') earlystart,
                           to_date('01/01/2008', 'dd/mm/yyyy') actualstart
                    from   dual
                    union all
                    select 'P001' projectid,
                           '230M' activitycode,
                           'fdsfds' act_ds,
                           to_date('31/01/2009', 'dd/mm/yyyy') earlystart,
                           null actualstart
                    from   dual
                    union all
                    select 'P001' projectid,
                           '450M' activitycode,
                           'fsfsd' act_ds,
                           to_date('01/04/2009', 'dd/mm/yyyy') earlystart,
                           null actualstart
                    from   dual
                    union all
                    select 'P002' projectid,
                           null activitycode,
                           null act_ds,
                           to_date('01/12/2008', 'dd/mm/yyyy') earlystart,
                           to_date('01/12/2008', 'dd/mm/yyyy') actualstart
                    from   dual
                    union all
                    select 'P002' projectid,
                           '110M' activitycode,
                           'nhggh' act_ds,
                           to_date('05/02/2009', 'dd/mm/yyyy') earlystart,
                           null actualstart
                    from   dual
                    union all
                    select 'P002' projectid,
                           '750M' activitycode,
                           'wdwdwd' act_ds,
                           to_date('05/02/2009', 'dd/mm/yyyy') earlystart,
                           null actualstart
                    from   dual
                    union all
                    select 'P002' projectid,
                           '210M' activitycode,
                           'plplplp' act_ds,
                           to_date('31/12/2008', 'dd/mm/yyyy') earlystart,
                           to_date('31/12/2008', 'dd/mm/yyyy') actualstart
                    from   dual
                    union all
                    select 'P002' projectid,
                           '550M' activitycode,
                           'ewdwd' act_ds,
                           to_date('05/01/2009', 'dd/mm/yyyy') earlystart,
                           null actualstart
                    from   dual)
    -- above mimics your table; main query is below:
    select mt2.projectid,
           mt2.activitycode,
           mt2.act_ds,
           mt2.earlystart,
           mt2.actualstart
    from   (select mt.projectid,
                   mt.activitycode,
                   mt.act_ds,
                   mt.earlystart,
                   mt.actualstart,
                   mt.date_col,
                   mt.before_after_today,
                   row_number() over (partition by mt.projectid, mt.before_after_today
                                      order by mt.date_col asc) rn_after,
                   row_number() over (partition by mt.projectid, mt.before_after_today
                                      order by mt.date_col desc) rn_before
            from   (select projectid,
                           activitycode,
                           act_ds,
                           earlystart,
                           actualstart,
                           coalesce(actualstart, earlystart, to_date('01/01/4000', 'dd/mm/yyyy')) date_col,
                           case when coalesce(actualstart,
                                              earlystart,
                                              to_date('01/01/4000', 'dd/mm/yyyy')) <= trunc(sysdate) then 1
                                else 2
                           end before_after_today
                    from   my_tab) mt) mt2,
            (select 1 id, 1 col_id from dual union all
             select 1 id, 2 col_id from dual) dummy
    where  dummy.id = case when mt2.before_after_today = 1 then rn_before
                           else rn_after
                      end
    and    mt2.before_after_today = dummy.col_id
    PROJECTID     ACTIVITYCODE     ACT_DS     EARLYSTART     ACTUALSTART
    P001     110M     blabla     01/01/2008     01/01/2008
    P001     230M     fdsfds     31/01/2009     
    P002     550M     ewdwd     05/01/2009     
    P002     110M     nhggh     05/02/2009     

  • HT4863 I have an error message coming up when trying to send an email which says 'sending the message failed because you're exceeding the limit' can anyone help me to resolve this please

    I have an error message coming up when trying to send an email which says 'sending the message failed because you're exceeding the limit' can anyone help me to resolve this please

    Try reentering the password in your iCloud mail settings.

  • While updating iphone software to 5.0.1, I am getting error message that Iphone cound not be updated because the firmware file is not compatible. Can anyone help me to resolve this issue.

    While updating iphone software to 5.0.1, I am getting error that Iphone could not be updated because the firmware file not compatible.
    Can anyone help me to resolve this issue.

    Using iTunes 10.5.2.11 on a PC running 64 bit Windows 7
    First did a full back up of  iphone using iTunes
    Put iphone into Recovery Mode ( http://support.apple.com/kb/ht1808 ). Erases all user data and settings!
    Disconnected USB cable from iphone
    Powered off iphone by holding down Sleep/Off button until slider appeared, slid to off, waited until screen dark
    Pressed and kept holding Home button while plugging cable back into phone
    I still saw the graphic on the iphone that said to plug into iTunes, so I unplugged and re-plugged cable. (I may have released the Home button too soon)
    Recovery Mode alert came up in iTunes.
    Followed all iTunes prompts to restore phone - it downloaded and sucessfully installed iOS 5.0.1
    iphone did not appear in iTunes due to missing pairing file (that made me nervous)
    iphone was now at factory settings. I followed prompts on iphone screen to start reactivation process
    Eventually the iphone asked if I wanted to restore from a back-up (whew!)
    A window opened in iTunes and I was able to select my previous back-up file for the restore
    A full restore from back-up then occured
    I also allowed a carrier settings update to occur when prompted (not sure that happens in all cases)
    When the restore was done I had to re-enter some passwords, but everything was there
    iOS is now 5.0.1 (9A406). The whole process took about an hour.

  • ITunes producer error 3000 character content of element "file_name" invalid. Can anyone help me out? This happens when i try and submit an epub file, i haven't had this before.

    Can anyone help me out? This happens when i try and submit an epub file, i haven't had this before. "iTunes producer error 3000 character content of element "file_name" invalid."
    This is the full message

    You really need to put your codes between the
    [\code] tags
    see http://forum.java.sun.com/features.jsp#Formatting
    for more infoCode tags might make it look a little better, but there's still too darn much code. We're volunteers, after all. It'd be a lot of work to review all of this stuff. Can you demonstrate your problem with something smaller? Learn out how to do a combo box with just a page or two and then appy that to your big problem. That's how I'd do it. - MOD

  • I just got the iPhone 5.  It's completely synced and working.  All my contacts are loaded.  However, caller ID is not working when I receive a call or a text.  Can anyone help me out with this?

    I just got the iPhone 5. It's completely synced and working.  All my contacts are loaded.  However, caller ID is not working when I receive a call or a text.  Can anyone help me out with this?

    Well, assuming all of the above, Notifications, etc., it just might be time for a visit to the Apple tore genius center for a session with the techs.  See if it is a fault in the hardware or just an iOS reinstall is the answer.
    One more thing you could try, backup so you have a record of content, then restore to factory conditions be an Erase All Contents and Settings.  Then restore from the backup you just made.  That has helped some with WiFi problems, may be it would work with your problems.
    But with that behavior of another app with problems, the geniuses looks like a less stressful thing to do.

  • I recently used an external hard drive to back up photos etc from my mac, I didn't do a full system back up. Since then a finder window titled 'client node' keeps popping up every time i hit the spacebar. Can anyone help me please stop this happening?

    I recently used an external hard drive to back up photos etc from my mac, I didn't do a full system back up. Since then a finder window titled 'client node' keeps popping up every time i hit the spacebar. Can anyone help me please stop this happening?

    Click on it, choose Get Info from the File menu, and check the format.
    If it's formatted as NTFS, reformat it as MS-DOS, exFAT, or Mac OS Extended (Journaled) as desired, or install software such as Paragon NTFS on the computer.
    If it's formatted as FAT32 or exFAT, use the Disk Utility's Repair Disk command on it; this may also happen for a flash drive which is about to fail.
    If it's formatted as Mac OS Extended, click Authenticate and provide your administrator password, or change the permissions on that specific folder in its Get Info window.
    (109318)

  • I have the iPhone 4 recently became weak Wi-Fi where I can not use the Internet only when sitting Bejjani router, Can anyone help me in solving this problem please iPhone 4, iOS 7.0.3

    I have the iPhone 4 recently became weak Wi-Fi where I can not use the Internet only when sitting Bejjani router, Can anyone help me in solving this problem please
    iPhone 4, iOS 7.0.3

    There's a whole lot to read in your post, and frankly I have not read it all.
    Having said that, this troubleshooting guide should help:
    http://support.apple.com/kb/TS1538
    In particular, pay attention to the mobile device support sections near the bottom, assuming you have already done the items above it.

  • My change to small screen facility has suddenly stopped working. Can anyone help as I use this a lot.

    the change to small screen icon in top right hand corner of screen has stopped working. Can anyone help.

    When you use the maximize/restore button, the window is restored to its last size. Some websites use a script to enlarge the window to its maximum size so when you switch from maximized to restored you hardly notice any change. You may have to manually resize the window by dragging the lower right corner. Does that help, or is the button just completely not working??

  • Please can you help me in Tuning this query..?

    Hi ,
    Please can you help me in re-structuring this query? .Details are given below.
    I have 2 tables as shown below and data is like this.
    Position
    COD IND
    AAA N
    BBB N
    CCC N
    DDD Y
    Distance
    orig dest
    AAA BBB
    BBB CCC
    AAA CCC
    I need to create the records like this
    start end
    DDD AAA
    DDD BBB
    DDD CCC
    The query which i am using now for this is
    select p.code AS start,
    P1.CODE AS end
    from position p, position p1
    where
    P.CODE != P1.CODE
    AND (P.ind = 'Y' or P1.IND = 'Y')
    AND not exists
    (select 1
    from distance d
    where (d.orig = p.code or d.dest = p.code)
    and (d.orig = p1.code or d.dest = p1.code))
    table is having above a crore record. so its taking a lot of time.
    Please someone please help in tuning this query?
    Thanks and regards,
    Shabir

    Looks like you want this
    select a.strt, b.ends from
    (select p.code strt from position p where p.ind='Y') a,
    (select p.code ends from position p where p.ind='N') b
    where not exists (select 1 from distance d where d.orig=a.strt or d.dest=a.strt);
    DDD     AAA
    DDD     BBB
    DDD     CCCYour query result is:
    AAA     DDD
    BBB     DDD
    CCC     DDD
    DDD     AAA
    DDD     BBB
    DDD     CCCYou should be more descriptive about what kind of result you want, so that people can get more interested in helping you.

  • Can anyone help me out with this icon's meaning and how to fix it?

    I just bought a Blackberry Torch 9800.. I have been downloading applications and recently upgraded one of my trial apps to the pro.. but I cannot get the pro version to work. I have activated the account and registered the license key and still nothing... and now I have this crazy icon I cannot seem to find the meaning for it anywhere.. It looks like a phone with a red star above it. I do know that this mean there is an "upgrade" but I don't know what to do to get it to "upgrade" I have deleted and reinstalled the program and still have the trial version... If anyone can help I would certainly appreciate it It is the call control pro application

    queendebbie wrote:
     It is the call control pro application
    Have you contacted the developer of the application for assistance, first?
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Can anyone help me fault find this problem? (Win 8.1 to Win 7 Remote Desktop issue )

    Hi, 
    I am connecting from a Win 8.1 machine at home into a Win 7 machine at work. I connect through Dell Global VPN.
    This works ok wirelessly, but in order to get better performance I wanted to connect to the internet via wired ethernet instead. 
    I can get ethernet working on home machine and connect to internet - no problem. But whenever I try to log into work machine that way, it doesn't like it and says there is an internal error.
    Just to re-iterate, this works fine wirelessly, just not via ethernet. I can connect to VPN ok but can't access Win 7 machine via ethernet. 
    If I switch back to wireless, it works. 
    I would love to resolve if anyone has suggestions how to get to the bottom of it? 
    Many thanks. 

    h1. {color:red}CROSS-POST{color}
    [http://forum.java.sun.com/thread.jspa?messageID=10174551]

  • Hi, can anyone help me out with this, I need some help on designing GUI for e-learning coursewares. Some tutorials or some helpful sites will do.

    I need some help with the GUI design.

    Have you tried the line inputs on the back of your FirePod? If you update its firmware (not sure if you will need to or not), I seem to remember hearing that the FirePod can run without FW connection, i.e. stand alone. In this mode with the outs from your mixer into line ins 1-2 (2nd from left on the back) it should work fine. I say should because I have never tried. However, these are used for returns from an external effects unit. I assume here, and the important word is assume, that there are two so that they can be used as a stereo send or as a mono send. Worth a try! Let us know how it goes.
    Best, Fred

  • Can anyone help? I got this error: "TOSBTMNG.ee ha...

    HI,
    Win XP Pro 2002 SP3
    Nokia Suite 7.0.7.0
    Connecting to a E65 via bluetooth
    All was working fine up until a little while ago, then
    "tosbtmng.exe has encountered a problem".
    And the phone will no longer connect via bluetooth. Hmmph!
    I get two errors in the application log:
    1000: Faulting application tosbtmng.exe, version 5.0.0.35, faulting module lcwizard.dll, version 5.0.0.3, fault address 0x00006248.
    And:
    1000: Fault bucket 422170835.
    Now I didnt know that I have any buckets in me Sony Vaio VGN G11 XN and all the while it was syncronising with good old outlook I didnt really care.
    Now though....
    Finally, here is a dump from sysinfo.
    PC Connectivity Solution:
    Version 8.22.2.0
    [Nokia Connectivity Cable Driver:]
    Version 7.0.2.0
    Operating system:
    Microsoft Windows XP 32-bit Edition, Service Pack 3
    Language: English
    Language for non-Unicode programs: English
    Detected Internet browsers:
    - Microsoft Internet Explorer 6.0 (Default browser)
    - Mozilla Firefox
    Detected Bluetooth stacks:
    - Microsoft (Version: 5.1.2600, Build: 5512)
    - Toshiba (Version 5.00.6y25.0)
    Can any of you bright, witty and attractive peps help me out here?
    Kind Regards
    Martin
    Solved!
    Go to Solution.

    the rror is indicative of an error with the toshiba bluetooth manager. try updating your blutooth driver as the version supported by nokia pc suite is Toshiba Bluetooth stack, driver version 4.0, 5.0 and 5.10.12, for windows xp.
    although your current driver fits into the supported drivers, the SP3 has braught many changes to the OS, that i thin updating the driver might help solve the problem.
    GOOD LUCK
    Fear not those who argue but those who dodge

Maybe you are looking for

  • Temp tables

    Does Oracle support #temp tables like SQL Server 7? And if it does, then how? Thank you very much in advance.

  • Controlling Mouse Cursor in Windows

    In J2SE, i found java.awt.Robot that enable in handling mouse event and action. Now i want to handle the cursor using Java handheld. But i stuck here, that i cant found the class in J2ME. Are there anyway do this thing? Please help..:(

  • Log 1 sequence# 638 cannot be archived

    Hello, I've this error when i start my OAS script and i found nothing about these error. Could you help me to correct this error please ? ORA-16038: log 1 sequence# 638 cannot be archived ORA-19809: limit exceeded for recovery files ORA-00312: online

  • Can't reinstalling iWork's 09 on lion

    After installing a bigger  memory in my MacBookPro, LIon (from Mid 2010) everything works except iWorks and iLife. Even after reinstalling iWorks in won't open correctly, although the icons are visible in the Dock. Why can't I get it back?

  • Burned dvd has sound when played on computer, silent in dvd player

    I have a file from final cut express. The dvd's burned just fine using idvd 06. When I try to burn a dvd with idvd 08, the sound is present when I play the dvd on the computer's dvd player, and on the portable dvd player, the dvd is silent in the jvc