Clean up output when using concat for two columns?

Probably a basic questions, but I searched this forum and google and couldn't find an answer, so here it goes...
I'm trying to concatenate two fields: first_name and last_name
I'm using the following pl/sql:
concat(a.first_name, a.last_name)But it runs the name together
smithjohn And the title shows the following
concat(a.first_name,a.last_name)And this output is going to a non-technical users, so I don't want them to freak out...
I've tried this as well
a.first_name||' '||a.last_nameAnd now the column, I get the following:
Smith John But the column heading shows
a.first_name||""||a.last_nameIs there anyway I can clean up the column heading so the end users won't be confused...?
thanks
Message was edited by:
cmmiller

For renaming the title of the column use an alias with "AS" or just put the alias after the concatenation.
Examples:
denunez@XE> select e.first_name||' '||e.last_name as Name from employees e  where rownum <3
  2  ;
NAME
Ellen Abel
Sundar Ande
denunez@XE> select e.first_name||' '||e.last_name Name from employees e  where rownum <3
  2  ;
NAME
Ellen Abel
Sundar Ande
denunez@XE> select e.first_name||' '||e.last_name "Employee Name" from employees e where rownum<3;
Employee Name
Ellen Abel
Sundar Ande

Similar Messages

  • Mac user, PS CC 2014 latest version. When using "Save for Web" I bring my 900 x600px @72 ppi in to SFW and the output becomes 300ppi. The only way it stays at 72ppi is if I check "none" for metadata. I know to should not matter much, but I would prefer to

    Mac user, PS CC 2014 latest version. When using "Save for Web" I bring my 900 x600px @72 ppi in to SFW and the output becomes 300ppi. The only way it stays at 72ppi is if I check "none" for metadata. I know to should not matter much, but I would prefer to keep all my web jpgs @ 72ppi. Any solutions?

    It opens up as 900x600 @300ppi
    Here's a screenshot-

  • I have a problem, my wife has an ipad with photos , emails etc etc, she has recently got herself a new iPad Air, has now been using that for two or more months, more photos (new) more emails and other stuff. Will send next query as running out of room to

    I have a problem, my wife has an ipad with photos , emails etc etc, she has recently got herself a new iPad Air, has now been using that for two or more months, more photos (new) more emails and other stuff. What she wants to do is get all she wants from ipad 1 to new ipad without finishing up with 2 of everything which happen on previous occasion. I realise that she needs to tidy up ipad 1 first and get rid of thousands of emails etc. I need help.
    Thanks kiwihdrider

    Hi yes that works well when the new ipad hasn't been used. Trouble new one has been used for two months or more, has lots photos email etc etc. I am worried that these will go. When we did iPhone thru same process finished up with two of most things pics and emails. The emails alone were over 2 thousand and wife reluctant to delete them all. I would and just sort pics. Any other ideas
    Ta

  • We have iPhone 4 and I plugged phone into after market hardwired plug in car (that we have used successfully for two years) and the screens has gone black and wont turn on.  Phone is charged. We have tried force quit- home screen and top button. help pls

    We have iPhone 4 and I plugged phone into after market hardwired plug in car (that we have used successfully for two years). The screen has gone black and wont turn on.  Phone was charged. I have tried force quit- home screen and top button. iTunes is not recognizing phone when I plug into computer.  help pls

    FIRST charge with an Apple charger for at least 15 minutes. Then hold the HOME and SLEEP buttons at the same time until an Apple logo appears. Hold for up to 30 seconds. If nothing happens the phone hardware has failed.

  • How stop PS6 from removing the DPI value from an image when using "save for the web"?

    How stop PS6 from removing the DPI-value from an image when using "save for the web"?
    Example:
    - Open a tif image, that contains a dpi value (resolution).
    - Use the splice tool in PS6.
    - Export the slices with "Save for web", as gif-files.
    Then the dpi value is removed, the gif files has no dpi value (it's empty).
    How can we stop PS6 from removing the dpi value when using "save for web"?
    OR:
    When using the slice tool, how can we save the sliced pieces without PS removing the dpi value?

    you can make your art go a little bit over the bounds. or you can make sure your artboart and art edges align to pixels

  • Pages-when using template for envelopes can you import names/address from address book

    When using templates for envelopes can you import names/address from the address book?

    Drag the VCard from Address Book onto the open envelope template.
    If you want mutiple addresses make a Group of those in Address Book and drag the Group icon onto the Pages template.
    Peter

  • I have been using CS6 for two years without incident.  Suddenly the Media Encoder stops working, showing APPCRASH and displaying error message about WatchFolder.dll - I tried uninstalling and re-installing to no avail - can anyone help

    I have been using CS6 for two years without incident.  Suddenly the Media Encoder stops working, showing APPCRASH and displaying error message about WatchFolder.dll - I tried uninstalling and re-installing to no avail - can anyone help?

    Hi Mylenium,
    Thanks for your response.
    Here is the error information showing up:
    Problem signature:
      Problem Event Name: APPCRASH
      Application Name: Adobe Media Encoder.exe
      Application Version: 6.0.0.382
      Application Timestamp: 4f62fcf1
      Fault Module Name: WatchFolder.dll
      Fault Module Version: 6.0.0.382
      Fault Module Timestamp: 4f62f37f
      Exception Code: c0000005
      Exception Offset: 0000000000007899
      OS Version: 6.1.7601.2.1.0.768.3
      Locale ID: 4105
      Additional Information 1: 9a62
      Additional Information 2: 9a620826d8ae4a2fa8b984b39290a503
      Additional Information 3: 1fb3
      Additional Information 4: 1fb304eee594288faeefbf1271b70d37
    I am using a PC Windows 7

  • Is it possible to ignore "Rigid relationships between attributes cannot be changed" when using ProcessUpdate for Dimension?

    As per the title is it possible to ignore "Rigid relationships between attributes cannot be changed" when using ProcessUpdate for Dimension?
    We have a case where very rarely an item might have been miscategorised so the brand is manually changed.  We want this dimension to be rigid to speed up ProcessUpdate.
    We do a ProcessFull each night, so it will get corrected then, but during the hourly updates we would just like to ignore this error if possible?

    Hello,
    The rigid relationship should be defined when the members will not change over time. Here are some threads regarding rigid relationship for your reference, please see:
    Processing OLAP Cube: http://social.technet.microsoft.com/Forums/sqlserver/en-US/17a55593-9543-404e-a579-0a011965585d/processing-olap-cube?forum=sqlanalysisservices
    Flexible and rigid relationship: http://social.msdn.microsoft.com/Forums/sqlserver/en-US/2d8f5443-065d-4485-9385-6f0b5fa417da/flexible-and-rigid-relationship?forum=sqlanalysisservices
    If you have any feedback on our support, please click
    here.
    Regards,
    Elvis Long
    TechNet Community Support

  • What is a valid location for autorecovery files when using Word for MAC?

    What is a valid location for autorecovery files when using Word for MAC?

    Microsoft Word for Mac support forums is probably a better place to ask.

  • HT4864 My outgoing email as stopped working when using Outlook for mac 2011. Any suggestions?

    My outgoing email as stopped working when using Outlook for mac 2011. I have deleted and reinstalled the account twice. I have 11 gig free on my iCloud account. The outgoing server is set at smtp.mail.me.com using port 587. If I was able to reinstall the account, I am positive I have the correct password. I can log into my iCloud accout using the same credentials.
    Any suggestions?

    I called Microsoft to fix my problem...for those maybe having the same issue, I was told by the Tech to use this outgoing server setting - p06-smtp.mail.me.com
    All is working fine since doing so.

  • When using imovie for Ipad, how can I fast forward a project to cut the length down?

    When using imovie for Ipad, how can I fast forward a project to cut the length down to fit under the 15 minutes required for Youtube? My current project is 23 minutes, and need to cut it down below 15 minutes. I was hoping to speed up the video. The content would actually be better viewed in at a faster speed anyhow.

    Jon,
    It sounds like you did, just as you should, Save_As and Delete everything that is unwanted. If you did the Deletion from the Timeline, there should be nothing from the old Project, that should be included. A DVD is Transcoded and burned from the Timeline. If the Assets are not there, they will not included in the DVD, even if you did not Delete anything from the Project Panel.
    Tell us about the Clips now on your Timeline. Also, can you check the Timeline, by hitting the \ (Backslash key), and looking near the end of the Timeline. Do you have any "orphans" out there? Check all Video Tracks, even if you have to scroll to see them all. Does the Duration of the Timeline (viewed in the Program Monitor) match what you think that it should? If not, then you most likely have orphans, that you missed Deleteing.
    Good luck,
    Hunt

  • JTable - One Column Heading for Two Columns

    Can you adjust the default JTable to have one column heading for two columns of data? Is there a simple span command? I've looked at the api for JTable and JTableHeader and didn't see anything, is there something I'm missing? Any help would be appreciated.

    What i am trying to accomplish is have column 'E' span 2 columns.
    This is my code thus far, however it give the error from my pryor message. I am pretty sure it is because I'm using and Object[][] and a String[] instead of Vectors. What corrections do I need to make in order for my goal of:
    [ A ][ B ][ C ][ D ][ E  ][ F ][ G ]
    [ 1 ][ 2 ][ 3 ][ 4 ][5][6][ 7 ][ 8 ]
    Object[][] data = new Object[ROWS][COLUMNS];
    String[] columnNames = {"A","B","C","D","E","E","F","G"};
    table = new JTable(data, columnNames);
    table.setBackground(Color.white);
    table.addKeyListener(this);
    DefaultTableCellRenderer d = new DefaultTableCellRenderer();
    d.setHorizontalAlignment(JLabel.CENTER);
    table.setDefaultRenderer(table.getColumnClass(0),d);
    for (int i = 0; i < table.getColumnCount(); i++){
    TableColumn aColumn = header.getColumnModel().getColumn(i);
    TableCellRenderer renderer = aColumn.getHeaderRenderer();
    if (renderer == null) {
    renderer = new DefaultTableCellRenderer(){
    public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column){
    JTableHeader header = table.getTableHeader();
    if (header != null) {
    setForeground(header.getForeground());
    setBackground(header.getBackground());
    setFont(header.getFont());
    setHorizontalAlignment(JLabel.CENTER);
    setText((value == null) ? "" : value.toString());
    setBorder(UIManager.getBorder("TableHeader.cellBorder"));
    return this;
    aColumn.setHeaderRenderer(renderer);

  • Single Vertical Line When Using ADF for Scan or Copy on HP Officejet Pro 8600

    HP Officejet Pro 8600 Premium Printer (CN577A)
    OS: MS 7 64 bit
    When using the ADF for my CN577A HP Officejet Pro 8600 Premium printer, I get a single vertical line on the document that is produced. This occurs when copying or scanning, both in black and white, and in color. If I scan or copy using the glass, I don't get the vertical line.
    I already tried the troubleshooting.  I unplugged the printer, left it without power for several minutes; that didn't correct the problem.  Next, I cleaned the rollers and the glass; I still get the vertical line, but only when using the ADF.
    My firmware version used is current (CLP1CN1150CR).
    What should I check next?
    This question was solved.
    View Solution.

    The ADF uses its own glass area on the scanner bed, it is the narrow (about 1" wide) strip on the left.  Cleaning this area should resolve the issue.  A single small spot would cause the issue you are seeing.
    Bob Headrick,  HP Expert
    I am not an employee of HP, I am a volunteer posting here on my own time.
    If your problem is solved please click the "Accept as Solution" button ------------V
    If my answer was helpful please click the "Thumbs Up" to say "Thank You"--V

  • Is there any way to avoid a huge memory spike when using CGContextDrawImage for a high resolution image?

    Hi,
    I'm trying to fix the orientation of an UIImage in my app (iPad 2, iOS 7). I'm using the method described here: https://gist.github.com/alex-cellcity/1531596, but a huge memory spike appears when CGContextDrawImage is called. The image size I'm trying to fix is 2848x4288.
    Anybody knows any algorithm to avoid this huge spike?
    Thanks,
    Roberto.

    While I never done iOS code it appears that the code you link to basically does the following:
    takes a large image A
    generates a transformation matrix by doing rotation in 90 degree increments and by mirroring
    creates a large image B
    draws image A into B using the transformation matrix
    releases memory for image A
    goes on using image B
    This results in a memory peak as you have two large images in RAM, until image A gets deallocated, which can't be done until B has been drawn.
    I can see two possible solutions to this, both which probably require you to explicitly modify individual pixels:
    1) Try to simplify the solution - if 180 degree rotation and mirroring is enough to solve your image issues, then a simple in-place (same bitmap) pixel swap could be done.
    2) Find more memory -  if you need 90, 270 or arbitrary degrees of rotation as well, you could instead keep either image A or B on disc.
    Keep image A on disc: read pixels from disc and place appropriately in image B. This may require you to first load image A and write it back to disc as ARGB data (one byte for each color) for easy access.
    Keep image B on disc: get pixel from image A and place it at the right location in image (file) B - this will require pre-creating a file of the correct size for Bs ARGB data and then moving the insertion point for writing around. When done dealloc image A and load image B.
    Keep image A and B on disc: combine using disc for image A and B - this will minimize RAM usage but will probably be the slowest solution and will increases disc (SSD/flash) load and wear.

  • Output Determination using Requirement for Shipment

    I created a new output requirement, 909,  to handle two different formats for shipment bills of lading.  The new requirement prevents a NAST record for format B from being created if a NAST record for format A exists.  It works in the development environment and was transported to the QA environment.  It does not work in the QA environment.  It appears the requirement is not being check.  Output determination procedure, access sequence, and output types are the same.  The condition records created via VV73 are the same.  What could cause a requirement to not be used?  Thanks for your help.

    Needed to execute RV80HGEN.

Maybe you are looking for