Try to bring back the files with and without email address

I have a simple query where I'm trying to shoot all my active subscribers and their return e-mail addresses. Most of the subscribers have an email address but I still want the subscribers in my results. I think it's a simple join but I can't understand. The discus.ems table contains only e-mail addresses and their NHS ' corresponding s(Acct#'s). The SQL is pasted below. I use SQL Developer 1.5.5

Select
a.STREET_NBR | » '||
RTrim (substr (a.Street, 33, 2)) | » '||
RTrim (substr (a.Street, 1, 28)) | » '||
RTrim (substr (a.Street, 29, 4)) | » '||
RTrim (substr(a.Street,35,2)) Address1,
Trim (a.UNIT_NBR) APT,
a.CITY_NAME CITY,
a.STPV_CODE STATE,
a.ZIP_CODE ZIP,
b.email_addr
Of
Discus.Sub has,
Discus.EMS b
where
a.SiteId = "Sun" and
b.SiteId = "Sun" and
a.RRN = b.sub_rrn and
a.stat_flag in ('E', 'C', 'I', 'V')

To make a column, you could easily make a scalar subquery:

select a.STREET_NBR ||' '||
       rtrim(substr(a.STREET,33,2)) ||' '||
       rtrim(substr(a.STREET,1,28)) ||' '||
       rtrim(substr(a.STREET,29,4)) ||' '||
       rtrim(substr(a.STREET,35,2)) ADDRESS1,
       trim(a.UNIT_NBR) APT,
       a.CITY_NAME CITY,
       a.STPV_CODE STATE,
       a.ZIP_CODE ZIP,
       (select b.email_addr
        from   ems b
        where  b.sub_rrn = a.rrn
        and    b.siteid = 'SUN'
       ) email
from   sub a
where  a.siteid = 'SUN'
and    a.stat_flag in ('E','C','I','V')
;

Tags: Database

Similar Questions

  • After you download CC Office at the beginning of the installation, I get the error 049. It was the 9th try to install for 1 week - with and without administrative rights.

    After you download CC Office at the beginning of the installation, I get the error 049. It was the 9th try to install for 1 week - with and without administrative rights.

    Hello

    Please see error download or update Adobe Creative Cloud applications

    Hope that helps!

    Kind regards

    Sheena

  • I can't open anything without: "choose which program you want to use to open the file with" and "Application not found".

    I got a used computer and it worked fine for a while. I guess that I did something for her, because now I had a problem with the opening just like files and almost all of the icons in the start menu. I found someone had mentioned this on another post, but it has not been answered and I have the same problem:

    "I don't know what to do. I tried reseting IE back to its "settings by default, but nothing seems to work. It doesn't let me open any programs on my computer. I can't even find the virus because there asking what program I want to open it with and when to choose IE he sent me through a series of 'SAVE or RUN' windows and then back to the "choose a program you want to run the file with.» I am only able to access the internet via a shortcut of Internet Explorer button that I dragged on the start menu, because the original one on my desk does not open. »

    It's the best way I can explain this problem. I've had this problem for a while now and I have looked everywhere for an answer and still nothing. It would be great to get help, thank you!

    After much research, I found the answer here:

    http://WindowsXP.MVPs.org/exefile.htm

    But thanks for the help!

    This problem has not helped me with my problems to download iTunes correctly, that's why I set out to solve this problem in the first place. I also get a lot of it popping up every 10 minutes:

    "MobileDeviceService has encountered a problem and needs to close. We are sorry for the inconvenience. »

    The error signature is always:

    szAppName: AppleMobileDeviceService.exe szAppVer: 17.88.0.8

    szModName: kernel32.dll szModVer: 5.1.2600.5781 offset: 00012afb

    It won't do anything when I click to send error report or not, it does not close anything as it is normally would. I think it might have something to do with the steps I took to reinstall iTunes properly...

    And

    1. I use Microsoft Windows xp Version 5.1, at least that's the stuff I wrote, do not know if this is the answer you're looking for. I am not sure computers.

    2. my anti-virus software is ESET NOD32 Antivirus 4

  • Saving files with and without watermark from photoshop in lightroom

    Hi all

    I have problems with the registration of 2 of the same photo to Photoshop in Lightroom.

    So I opened my image in Lightroom and I change it, I then open in Photoshop and edit the rest of the way.  I then click on save (which places it in Lightroom).  I then went back to Photoshop and add my watermark, which

    I'm having a problem with and then saves this copy.  When I try to save the watermark image will replace the photo that I just saved which is a not the mark of the water, so instead of having all 3 (original, edit and edit watermark) I will have only 2.  How I can save the final edit, then save it again with the watermark that both end in lightroom?

    Hope that makes sense, I just downloaded them so that they are of the most recent edition.

    Thank you

    Hi JaydeWinkworth,

    Once you have finished editing your images in Lightroom, you can right click on the Image to change in Photoshop.

    Once you have plenty of Image in Photoshop, you can apply all the editing (including the watermark) and save it, once you save the images that he goes back to Lightroom as PSD or tiff (separate Image)

    Reference: Adobe Photoshop Lightroom Help | Editing photos Lightroom in Photoshop or Photoshop Elements

    It will be useful.

    Kind regards

    ~ Mohit

  • How to bring back the toolbar with the clock, calendar and weather updates?

    When I got my computer he had a toolbar on the right side of the screen and I was trying to close the section where he scrolls through my photos and it got rid of everything! If someone could help me get it back, I would be extremely grateful.

    Click Start, accessories, Windows Sidebar.

    Click the '+' sign up to add new gadgets.

    If you click right this bar and Properties, you will see the box to open it at windows startup.

    Messages rating helps other users

    Mark L. Ferguson MS - MVP

  • Configuration problem of the mixture of the regions with and without installation of persistence of the disc causing the JSONFormatter to fail

    I have trouble setting my local setup correctly with a mixture of regions with different configuration of persistence of disc.  Is a configuration problem on my end or a bug in GemFire and/or Spring GemFire data?

    The configuration of my work is as follows:

    < gfe: replicated-region id = "replicatedRegion" cache-ref = "gemfireCache" disk-store-ref = "overflowOnlyDiskstore" persistent = "false" >

    < gfe:eviction type = threshold "HEAP_PERCENTAGE" = "90" action = "OVERFLOW_TO_DISK" / >

    < / gfe: replicated-region >

    < gfe:local - region id = "localRegion" cache-ref = "gemfireCache" / >


    With the above configuration, I can successfully call JSONFormatter.fromJSON (json) and get a reference to a PdxInstance object.  However, when I kinda modify configuration to enable the persistence of drive on one of the regions, the call to JSONFormatter.fromJSON (json) fails.  The change is as follows:


    < gfe:local - region id = "localRegion" cache-ref = "gemfireCache" persistent = "true" disk-store-ref = "persistOverflowDiskstore"/ >

    Without any additional modification, the following error starts occurring:

    com.gemstone.gemfire.pdx.JSONFormatterException: could not parse JSON document: [Source: java.io.StringReader@5549f0e, line: column 26,: 6]

    at com.gemstone.gemfire.pdx.JSONFormatter.fromJSON(JSONFormatter.java:66)

    ...

    Caused by: com.gemstone.gemfire.pdx.PdxInitializationException: The PDX metadata must be persistent in a limb that has persisted data. See CacheFactory.setPdxPersistent.

    at com.gemstone.gemfire.pdx.internal.PeerTypeRegistration.checkAllowed(PeerTypeRegistration.java:531)

    at com.gemstone.gemfire.pdx.internal.PeerTypeRegistration.verifyConfiguration(PeerTypeRegistration.java:515)

    ...

    Note that it is breaking while I try to get a reference to a PdxInstance, and if the code has not yet arrived at the point where I place a PdxInstance object in a region.

    Thanks for any help in advance.

    Hello

    JSONFormatter PDX uses as is the serialization mechanism from the Gemfire cache. As indicators of error, you must have your persistent PDX meta-data when you use PDX with an area that itself is persistent. Adjust your configuration as follows:

    
    

    It will use a default for PDX record store, but you can also use a specific store if you wish.

    When you use PDX, a "PDXType" is created for each class serialized with PDX and this type id is stored with the data in the region. If this region is persistent, then the PDXType, associated with this object must also be kept.

    -Jens

  • extremely interesting and urgent - possible difference in appearance of the LUN with and without clichés unexposed to the initiator

    Hello

    I decided to build this case in my testlab, it seems very interesting to me. Someone here in the Group of any idea what could be or already heard of such a case?

    http://forums.Veeam.com/viewtopic.php?f=2&t=15746

    Background / idea: no accessor LUN should never see even the slightest difference between a lun as such and the same lun with snapshots not exposed. This must be absolutely and completely transparent to all - host, the initiator and the engine of the cbt. The only exception would be tools or plugins that take specifically the use of deeply integrated san-snapshot features.

    Best regards
    Joerg

    Question, you use VSM to take the initial snapshot?    If so, the same thing happens if you create a snapshot in Workgroup Manager instead?

  • How to open the message app and past email address to send a new email

    I'm looking for a way how to open the message application to create a new email and the definition of the field emailaddress my application programmatically.

    I think that this should be possible, but it seems that I have did not use keywords to find it on goolge or this forum.

    any ideas?

    http://www.BlackBerry.com/developers/docs/6.0.0api/NET/RIM/BlackBerry/API/invoke/invoke.html#invokeA... net.rim.blackberry.api.invoke.ApplicationArguments)

    with

    http://www.BlackBerry.com/developers/docs/6.0.0api/NET/RIM/BlackBerry/API/invoke/MessageArguments.ht...

    specify what you want to be pre-set in the subject of the message

  • Got a 27 "monitor from Apple, with thunderbolt (error). My MacPro can't love at first sight. Apple won't bring back the monitor. Will using a USB 3 map and then using a hard drive with USB 3 and Thunderbolt works?

    Got a 27 "monitor from Apple, with thunderbolt (error). My MacPro can't love at first sight. Apple won't bring back the monitor. Will using a USB 3 map and then using a hard drive with USB 3 and Thunderbolt works?

    N ° you need a computer logic board which has built in Thunderbolt.

  • All of a sudden, the Yahoo homepage is different with Firefox. How to bring back the old home page? I prefer the one that is always displayed on Internet Explorer

    All of a sudden, the Yahoo homepage is different with Firefox. How to bring back the old home page? I prefer the one that is always displayed on Internet Explorer. I deleted Firefox and re-installed but the rest of the problem. Help, please.

    Well, it's a problem in your Firefox. To me this https://www.yahoo.com/ page looks like the screenshot of IE.

    Many issues of the site can be caused by corrupted cookies or cache. To try to solve these problems, the first step is to clear cookies and cache.
    Note: This will be you temporarily disconnect all sites, you're connected to.
    To clear the cache and cookies to do the following:

    1. Click the menu button

      , choose historic, then on clear recent history...

    2. Under "Time range to clear", select "all".
    3. Now, click the arrow next to details to toggle the active details list.
    4. In the list of details, see the Cache and Cookies and uncheck everything.
    5. Now click the clear now button.

    More information can be found in article to clear your cache, history, and other personal information in Firefox .

    This solve your problems? Please report to us!

  • How to display the language bar and bring back the language switch to the taskbar?

    How to display the language bar and bring back the language switch to the taskbar?

    How to display the language bar and bring back the language switch to the taskbar?

    Hello

    According to the description, I understand that you do not want to display the language bar.

    I would like to know some information.

    1. You hide the language bar, or missing?

    I suggest you try the steps mentioned below and check.

    1. Go to the control panel.

    2. Click on clock, language and region.

    3. Region and language.

    4. Keyboard and language tab.

    5. Change keyboards button.

    6. Language bar tab.

    Then simply change the parameters of language bar hidden in the "embedded in the taskbar" and check.

    Here, you can also check the option in the check box for display icons of language in addition to the taskbar bar.

     

    Hope this information helps. Please let us know if you need any other help with Windows in the future. We will be happy to help you.

  • Why can't get a Blackboard web site file to download on my computer, when I try told me that the file cannot be downloaded and gives a box that asks to restart, or cancel

    Download file will not be

    Why can't get a Blackboard web site file to download on my computer, when I try told me that the file cannot be downloaded and gives a box that asks to restart, or cancel

    Hello

    1. what operating system is installed on your computer?

    2. which web browser you are using?

    3. you get any error message?

    4. are you able to download the file using any other computer?

    5. do this happen all sites or with any specific Web site?

    6. don't you make changes to the computer before the show?

    Please follow the steps below.

    Method 1:

    Follow the steps below.

    Step 1:

    a. click the Start button.

    b. in the start search box, type %temp% , and then on enter.

    c. delete all files in the Temp folder.

    Step 2:

    a. press the Windows key + R

    b. in the run, prefetch, type dialog box press ENTER.

    c. remove all files

    Method 2:

    If you are using Internet Explorer, try in no add-on mode.

    a. click the Start button.

    b. click on all programs.

    c. click on Accessories.

    d. click on System Tools.

    e. click on Internet Explorer (No Add-ons).

    Method 3:

    Optimize Internet Explorer from the link below.

    NOTE: The Reset Internet Explorer Settings feature might reset security settings or privacy settings that you have added to the list of Trusted Sites. Reset the Internet Explorer settings can also reset parental control settings. We recommend that you note these sites before you use the reset Internet Explorer settings

    http://support.Microsoft.com/kb/936213/ro

  • Windows media player does not automatically open a video file on a Web site but I save it and open the file with Windows media player to play the video or audio recording.

    Windows media player does not automatically open a video file on a Web site but I save it and open the file with Windows media player to play the video or audio recording. I used to be able to play any video or audio file in any site!

    Hello

    Try resetting the default associations for WMP and IE.

    How to set default Associations for a program under Vista
    http://www.Vistax64.com/tutorials/83196-default-programs-program-default-associations.html
    How to associate a file Type of Extension to a program under Vista
    http://www.Vistax64.com/tutorials/69758-default-programs.html

    If necessary:

    How Unassociate a Type of Extension file in Vista - and a utility to help
    http://www.Vistax64.com/tutorials/91920-unassociate-file-extention-type.html
    Restore the Type Associations by default Vista file extensions
    http://www.Vistax64.com/tutorials/233243-default-file-type-associations-restore.html
    How to view and change an Extension of filename on Vista
    http://www.Vistax64.com/tutorials/103171-file-name-extension.html

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

    Also follow these steps:

    Follow these steps to remove corruption and missing/damaged file system repair or replacement.

    Run DiskCleanup - start - all programs - Accessories - System Tools - Disk Cleanup

    Start - type in the search box - find command top - RIGHT CLICK – RUN AS ADMIN

    sfc/scannow

    How to analyze the log file entries that the Microsoft Windows Resource Checker (SFC.exe) program
    generates in Windows Vista cbs.log
    http://support.Microsoft.com/kb/928228

    Then, run checkdisk - schedule it to run at next boot, then apply OK your way out, then restart.

    How to run the check disk at startup in Vista
    http://www.Vistax64.com/tutorials/67612-check-disk-Chkdsk.html

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

    Then, if necessary:

    Have you recently installed another player?

    Reset your associations for WMP and IE.

    How to set default Associations for a program under Vista
    http://www.Vistax64.com/tutorials/83196-default-programs-program-default-associations.html
    How to associate a file Type of Extension to a program under Vista
    http://www.Vistax64.com/tutorials/69758-default-programs.html

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

    Do this to reregister the Jscript.dll and Vbscript.dll files.

    Start - type in the search box - find command top - RIGHT CLICK – RUN AS ADMIN

    type or copy and paste-> regsvr32 jscript.dll
    Press enter

    type or copy and paste-> regsvr32 vbscript.dll
    Press enter

    Restart and if all goes well, it will run now.

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

    Have you recently added stores or ANY application from Stardock?

    Using 64-bit Vista?

    Can you think of recent things you did in WMP which could be the cause? You added another
    reader recently or an add-on for WMP?

    When I try to use Windows Media Player 11, the program does not start, or some UI elements
    are empty - a Mr Fixit
    http://support.Microsoft.com/kb/925704/en-us

    Maybe something here
    http://msmvps.com/blogs/chrisl/articles/17315.aspx
    and here
    http://msmvps.com/blogs/chrisl/Archive/2004/10/30/17399.aspx

    Check here the news of WMP11
    http://zachd.com/PSS/PSS.html

    I hope this helps.

    I hope this helps.

    Rob - bicycle - Mark Twain said it is good.

  • How to open the files .fxm and .fxr with fax windows 7 & scan?

    How to open the files .fxm and .fxr with fax windows 7 & scan?  These faxes have been received when I had Windows XP.

    Hello

    A file with FXR and FXM file extensions is a Document received from WinFax.

    You can open the FXR and FXM file by double clicking on it and let your PC decide which default application should open the file.   If no program opens, the FXR and FXM file, then you have probably an installed application that can view and/or edit FXR and FXM files.

    You can use a Notepad or another text editor to open these files.  Number of files is files read-only, which means little matter file extension, a text editor may be able to view the contents of the file properly.  This may or may not be the case with FXR and FXM files, but it's worth a try.

    How a FXR and FXM files:
    There are two ways to try to convert a file to a different file type:

    a. open the FXR file in its default program and choose to save the file open in another file format.

    b. use a softwarefrom online file conversion to convert these files to another file format.

    Note:
    using third-party software, including hardware drivers can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the use of third-party software can be solved. Software using third party is at your own risk.

    Thank you

  • The Pro Adobe bought, downloaded the file (with 1, 67MB) on laptop with OS Win8. When you try to install (my memory C: 2.39 GB free) the file, Adobe dialog says "the computer memory space is not enough. This is ridiculous. What can I do?

    The Pro Adobe bought, downloaded the file (with 1, 67MB) on laptop with OS Win8. When you try to install (my memory C: 2.39 GB free) the file, Adobe dialog says "the computer memory space is not enough. This is ridiculous. What can I do?

    Just click on the link acrobat XI and download download Acrobat pro products, acrobat XI | Standard, Pro | XI, X

Maybe you are looking for

  • Satellite R840 - 12 c: cannot manually turn off the WiFi function

    I recently bought a brand new Toshiba Satellite R840 - 12 c Notebook.The Wifi light is still "on" and the function key does not work, in other words cannot manually turn off the WiFi feature. Although the WiFi feature is still "on" I can't connect to

  • LaserJer Pro 200 M351nw: residues of toner to print business cards

    When I print on bond paper, I get a decent, crisp image. But when I print on card stock thre is a powdery residue on the paper. I can drag it with a handkerchief and get a significant amount of powder on the tissue. I remember reference to paper stoc

  • How to stop "FOUND NEW HARDWARE tool"

    Whenever I start up I get the message "FOUND NEW HARDWARE TOOL' up to four 4 times before so I can continue."  How in the heck to I get rid of this.  It is also irritating as my HP printer messages all the time!  LEA

  • HP Probook s 4530: penetrates only not in BIOS

    My laptop HP 4530 s is not enter the bios. After that I enabled the legacy startup option in the menu. whenever I pressed the F10 key it displays system Diagnostic screen, and I have an all tests, but still nothing. I had withdrawn any partition of t

  • Duplication of library

    I switched to Lightroom Lightroom 5.7 cc and when I let the program install all the images I had in my external drive, it also included pictures of another external hard drive and the internal hard drive of the computer. Which increased the storage i