Hi to all of that I doubt to retrieve information from two tables to help join

SQL > select ename, empno, lease_car_id employee_car_list;

EMPNO, ENAME LEASE_CAR_ID

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

7369 SMITH 1

7499 2 ALLEN

7521 WARD 3

7566 JONES 4

7654 MARTIN 5

SQL > select lease_car_id, lease_car_make, lease_car lease_car_model;

LEASE_CAR_ID LEASE_CAR_MAKE LEASE_CAR_MODEL

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

1 TOYOTA CAMRY

2 FORD TAURUS

3 GM BUICK

4 GM CHEV

5 GM BUICK

I want to know the empno, ename that uses lease_car_make and lease_car_model of GM, BUICK?

I wrote a join condition, but it displays every thing please change my query

Select employee_car_list.empno, employee_car_list.ename in the outer join left employee_car_list

lease_car on employee_car_list.lease_car_id = lease_car.lease_car_id

You can use it. Left outer join will be used when you want all rows from the left table and the matching rows from the right table

SELECT EmpNo, ename FROM

EMPLOYEE_CAR_LIST T1,

LEASE_CAR T2

WHERE T1. LEASE_CAR_ID = T2. LEASE_CAR_ID

AND LEASE_CAR_MAKE = 'GM' AND LEASE_CAR_MODEL = 'BUICK ';

output:

7521 WARD
7654 MARTIN

Post edited by: Partha Sarathy S

Tags: Database

Similar Questions

  • Receive an error message that Windows can not retrieve information about the disk when I try to put upgraded Windows XP to Windows 7.

    XP Home to Windows 7 upgrade Peoblems

    I can't update my laptop to windows 7, that he will enter the upgrade options, then it will say cannot retrieve information about this disk of computers. What should I do I deleted all leave them and still get this error. Thanks Chris

    It's a little late for this, but anytime you do an upgrade, you must be sure that your computer is compatible. My guess is your drive for windows 7 is a DVD and you have a CD or a witch of CD - RW drive can not read CD

    http://Windows.Microsoft.com/en-us/Windows/downloads/Upgrade-Advisor

  • my pc is locked me on almost all sites that require some sort of response from me what do I do?

    A little dotted appears whenever I want to reply to a message that has a specific link.  How do I cancel it?

    Hello

    This just started happening?

    What browser do you use?

    What operating system to aid (that is to say, Vista, Windows 7)?

    Kind regards

    DP - K

  • I'm unable to connect to a specific web site. Have you tried 3 different browsers and they all say that they are unable to connect. No one else has a problem connecting to the page.

    I tried to use www.findagrave.com for 2 days.  I tried 3 different browsers.  all say that they are unable to connect.  No one else has a problem on this page.  I have no problem to do something else.  Why, throughout this site I can not connect with?   I use it all the time in research.  very aggravating.

    original title: on a web page

    Well, I tried the support page, but I already tried all that.  I did a restore full back to factory settings... still cannot have only one page to load.  I'll call my dsl provider this afternoon.  I don't know what else to do.  I can't communicate with Findagrave.  I don't have a snail mail address but no phone number.  But I don't think that it would be them anyway, if no one else has a problem with this web site.  There must be on my end, don't you think?

    I don't know what to tell you. There is no problem, it's on your side.

    If you care to try it... on the assumption that your user account is damaged.
    Create a different user account with exactly the same type of account > connect to it and see if you can access this Web site.

    Personally, I doubt that will solve anything, since you already restored your computer to factory settings.

  • Google site search keeps all loading on all sites that use it. However, the same sites load with IE.

    Google site search just keep loading forever on all sites that use it. But IE works fine on the same sites.

    I'm using FF 11, but it has also been a problem in previous versions. Win7/64 with the latest updates on a computer laptop xps Dell 15z. CORE I5

    Hello

    Please check if this happens in a new profile. If it's good, you can later copy the necessary personal data of the old profile. Firefox stores your personal data and settings to another separate location of the files/folder. A new profile would default Firefox settings (Tools (Alt + T) > Options, and topic: config ) and usually also would be vacuum of Extensions and themes (appearance) in tools > Add-ons) and their parameters. In addition, a new profile would have no previous website stored data/settings etc, (Tools > clear recent history).

    Profiles Howto

    Files & profile folder

    Subject: config entries

  • There is an area in which I can't use my mouse to click on. It is about 1 1/4 inches high. On my Yahoo home page, it begins at the lower end of the Yahoo toolbar and get down from there. This area exists on all sites, that I'm on Firefox.

    This area exists on all sites, that I'm on Firefox. If I switch to IE as my browser, I don't have the problem.

    Recently, the Yahoo toolbar and the extension of Babylon have been reported because of this problem. They appear to overlap invisibly on the top of the display of the web page. If you have one or both, uninstall or disable them/it or see if an update is available that solves the problem.

    If this answer solved your problem, please click 'Solved It' next to this response when connected to the forum.

  • When implementing my new iPhone, I logged into my old iCloud instead of choosing "set up as new iPhone" is there a way I can do this again? All my news from icloud is on my phone. All applications that I never downloaded and every pic ive taken. I don't w

    When implementing my new iPhone, I logged into my old iCloud instead of choosing "set up as new iPhone" is there a way I can do this again? All my news from iCloud is on my phone. All applications that I never downloaded all the photos I've ever taken since 2005 and I want to restart without remove ALL account iCloud himself. I always want to do a backup, I don't want it on my phone. I want to start fresh on my phone, but I tried to reset my phone under settings. I have just reset settings that did not 'you can't cancel it "because I don't want to lose all the photos I've ever taken." I always want to iCloud saving it just in case I need it someday, but I don't want any of this on my phone. I tried all means of security who do not say "you can't cancel" I still images and apps on my phone.

    Hello

    Turn off find my iPhone in settings then restore the iphone to factory settings.

    Now configure iphone as a new iPhone.

    See you soon

    Brian

  • in hotmail, I can't pass on all messages that the coordinates and the message is not transferred to the new email.

    In hotmail, I can't pass on all messages that the coordinates and the message is not transferred to the new email. However, this works in Windows Live Mail. I use Windows 7 64-bit and 64-bit internet.

    Hello Brian,.

    There is a forum located there that is specifically for Windows Live Hotmail problems. Here is the link:
  • My computer is defragged all files that it can. You, please, will address the following questions:

    My computer is defragged all files that it can.  You, please, will address the following questions:

    Fragments of files in file size that cannot be defragmented
    5 46 MB \WINDOWS\Installer\2b0c16e.msp
    6 73 MB \WINDOWS\SoftwareDistribution\DataStore\DataStore.edb
    29 114 MB \WINDOWS\Installer\2b0c003.msp

    Total of 233 MB

    Can I remove them?

    Hi Robbie,

    This isn't a good idea to remove these files, these files are responsible for the update of windows.

    I hope this helps.

  • Svchost constantly using all cpu that is 100%

    computer running constantly slow due a svchost constantly of vives that uses all the CPU resources available to be able to read a question on this forum, in which you explained to another, how to get the data needed to send it to you if you can help to diagnose the problem, here is the data that I collected with your information It's like this. can send it please reply to (Email address removed) if possible thank you for your time

    PID number is 1176

    Image name PID Services

    ========================= ======== ============================================

    System Idle Process 0 n/a

    System 4 n/a

    N/A smss.exe 468

    N/A csrss.exe 580

    Wininit.exe 624 n/d

    N/A csrss.exe 632

    N/A services.exe 668

    Lsass.exe 684 KeyIso, ProtectedStorage, SamSs

    LSM.exe 692 n/d

    N/A Winlogon.exe 740

    Svchost.exe 904 DcomLaunch, PlugPlay

    Svchost.exe 964 RpcSs

    Svchost.exe 1068 Audiosrv, Dhcp, Eventlog, lmhosts, wscsvc

    Svchost.exe 1164 AudioEndpointBuilder, dot3svc EMDMgmt;

    Hidserv, Netman, PcaSvc, SysMain, TrkWks,

    UxSms, wudfsvc WdiSystemHost, WPDBusEnum,

    Svchost.exe 1176 AeLookupSvc Appinfo, BITS, browser,

    CertPropSvc, EapHost, hkmsvc, IKEEXT,

    iphlpsvc, LanmanServer, MMCSS, MSiSCSI;

    ProfSvc, RasMan, schedule seclogon, FEEL,.

    ShellHWDetection, themes, Winmgmt, wuauserv

    audiodg.exe 1300 n/d

    gpsvc svchost.exe 1328

    SLsvc.exe 1348 slsvc

    Svchost.exe 1376 EventSystem, fdPHost, FDResPub.

    LanmanWorkstation, netprofm, nsi, QWAVE,

    SCardSvr, SstpSvc, W32Time, wcncsvc,

    WebClient

    LBTServ.exe 1472 LBTServ

    1556 CryptSvc, Dnscache, KtmRm napagent, Svchost.exe

    NlaSvc, TapiSrv, Wecsvc

    Spoolsv.exe spooler 1884

    1924 BFE MpsSvc, DPS, Svchost.exe

    agrsmsvc.exe 388 AgereModemAudio

    ALG.exe 392 ALG

    AppleMobileDeviceService.      476 Apple Mobile Device

    aDefragService.exe 520 AshampooDefragService

    mDNSResponder.exe 492 Hello Service

    CDAC11BA. EXE C 564-DillaCdaC11BA

    Dllhost.exe 660 COMSysApp

    DfSdkS DfSdkS.exe 1044

    PresentationFontCache.exe 1568 FontCache3.0.0.0

    fsssvc fsssvc.exe 2312

    GoogleUpdaterService.exe 2324 gusvc

    IJPLMSVC.exe 2476 IJPLMSVC

    iWinTrusted iWinTrusted.exe 2496

    McSACore.exe 2524 McAfee SiteAdvisor Service

    mcods.exe 2544 McODS

    Rundll32.exe 2556 N/A

    McProxy McProxy.exe 2568

    McShield McShield.exe 2608

    MpfSrv.exe 2676 MpfService

    MSDTC.exe 2932 MSDTC

    Svchost.exe 3272 PolicyAgent

    DWM.exe 3336 n/d

    Explorer.exe 3360 n/d

    N/A defragMonitorService.exe 3456

    N/A defragActivityMonitor.exe 3576

    BJMYPRT. S/O EXE 3592

    N/A mcagent.exe 3600

    ACDaemon.exe 3640 s/o

    N/A defragTaskBar.exe 3760

    N/A fsui.exe 3860

    ProtexisLicensing-PSIService.exe 3936

    DAP.exe 4084 n/a

    Svchost.exe 1132 SDRSVC

    Msnmsgr.exe 2184 N/A

    taskeng.exe 2288 n/d

    GoogleToolbarNotifier.exe 772 n/a

    btdna.exe 2300 n/d

    SeaPort SeaPort.exe 3180

    snmptrap.exe 3124 SNMPTRAP

    svchost.exe 3404 stisvc

    UI0Detect ui0detect.exe 3492

    VDS VDS.exe 3660

    VideoAcceleratorService.e 3308 VideoAcceleratorService

    S/o VideoAcceleratorEngine.ex 3676

    VSSVC.exe 1116 VSS

    Svchost.exe 3428 WcsPlugInService

    WmiApSrv WmiApSrv.exe 3688

    SearchIndexer.exe 4024 WSearch

    WUDFHost.exe 4112 n/a

    MgApp.exe 4120 n/a

    WmiPrvSE.exe 4344 n/a

    mcmscsvc mcmscsvc.exe 4384

    taskeng.exe 5356 N/A

    mcsysmon.exe 5400 McSysmon

    ImApp.exe 5816 n/a

    Unsecapp.exe 5896 N/A

    6088 N/A wlcomm.exe

    McNASvc McNASvc.exe 5104

    IncMail.exe 4640 s/o

    IEUser.exe 1588 N/A

    Iexplore.exe 6116 n/d

    2168 N/A cmd.exe

    taskeng.exe 4620 n/d

    616 N/A Tasklist.exe

    WmiPrvSE.exe 2484 n/a

    The ability to install all versions of Vista is contained on the Vista DVD.

    In other words, there are only 2 DVDs, 32 and 64 bit.

    This is the product key that corresponds to the correct version must be activated.

    If you have no luck with MS re one disc, borrow one, select your operating system version and use install your product key during.

  • Every time I download something I get all is that Windows does not find C:\Users...

    Every time I download something I get all is that Windows does not find C:\Users... Make sure you typed the name correctly and then try again. How can I fix it? Oh and im on vista if this does nothing.

    Hello

    • Have you tried new user account and correct links corrupt user account?
     

    If you want to talk with the support of Microsoft, you can call Microsoft. To so please check this link:

    How and when to contact Microsoft and support Customer Service

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

    However, there will be a charge for this support.

  • How can I search for all photos that have names composed of four numbers?

    OT: Help search.

    Hello, I want to seek a photo (.jpg), photography is as the name of 5225.jpg, which consists of four digits. How can I search for all photos that have names composed of four numbers? Thank you

    I don't know how to search only images that carry the 4 numbers, but I know how to find a file that is exactly 4 letters long and ends with ".jpg".

    To do this, type this in your search box (exactly as it is, including quotation marks):

    "file name:"? "jpg"

    It will search for all files that have exactly 4 characters followed by .jpg at the end.

  • All actions that require administrator crash explore rights

    Hi all

    I am the only user and administrator of a laptop 2 years running Windows 7. Since a few weeks I'm having the following problem:

    Every time I try to do anything that requires administrator rights - anything with the small blue and yellow shield icon or anything that triggers the popup user account control - action fails, the browser freezes and folders, start menu etc will not work again until I restart the computer. This includes for example

    • uninstall programs
    • Copy / move files in certain folders such as Program Files
    • run as administrator
    • elevated command prompt
    • Account user and UAC settings

    It is a particularly annoying question because that's a lot of steps that I would usually take to try to solve the Windows completely unavailable to me. In fact, I fear that a type of Windows backup & restore or re - install wizard may also fail because I am unable to do anything requiring a UAC confirmation.

    Additional information:

    • the problem appeared when I tried to delete a folder called C:\d674b4d8ac649aa28b5935e3e33163 (I can't open it even and I don't know what it is)
    • When the Explorer froze and I force a restart, an error message appears briefly before the stop. ("Too other files are currently used by 16-bit programs. Quit one or more 16-bit programs, or increase the value of the FILES command in your config.sys file. »)

    What can I do to fix this problem and regain control of my laptop?

    This does not resolve the issue.

    OK, here's the next steps when running in Mode safe:

    • Re-run msconfig.exe, then do this:
      1. click on the Services tab.
      2. check the box that hide all Microsoft services.
      3. uncheck all remaining hatches.
    • Run this command from a command prompt:
      SFC.exe/scannow

    If this does not resolve the problem when booting in Normal Mode, so I am unable to offer any other suggestions.

  • Where can I get a list of all devices that support OS 5.0

    Hi all

    When you submit a request to the AppWorld, I wonder to select the supported devices. My applications work on any device with OS 5.0, but I can't find a list of all devices that support OS 5.0 (shipped with it or with option 5.0). Anyone knows where I can find such a list.

    Thank you

    Wolf

    Don't worry about this. Just select as minimum supported OS 5.0 version and after that select all possible devices. App World will correspond to devices, and the version of the OS, i.e. users with OS 5.0 devices will see your app while that those who have the lower version of the OS won't be able to see or to download your application.

  • How can I search for all files that begin with "~" with a tilde

    With Windows XP, it's simple. I would like to do a search for "~ *.» ' * ' and I want to find all files that began with a tilde. That no longer works. My computer is full of unnecessary files that I want to delete and they are not getting cleaned by the utilities that I have. Thank you

    If you actually surround the search term ~ *. * with quotes "~ *.» ' * ' it should work here.

    John

Maybe you are looking for