Help with columns of FIXED LENGTH - using the command of the coil

Hi guys,.
I have a vision I try to be wound using columns of fixed length, and the spacing is off. Ive tried many things like specifying the width of the column before executing the query, using the command rpad, but nothing seems to work. I have the coil in a text file so that users to import this file into another system. I'd appreciate any suggestions. Thank you very much. What follows is the view:

SELECT 'Employe_id', 'FIRST NAME', 'INITIAL', 'NAME', 'SUFFIX', ' TRAINING ', 'Class ID', 'Class ID', 'We', "make / model ', 'Cali', 'Barrell', 'Serial number', 'Qualification', 'Application', 'SCORE', 'Status', 'add a time', 'Add a record ID', 'Add a record Date', ' change record ID ',' save the modified Date ', 'RN' OF
(SELECT
Upper (RPAD (tbl. SSN, 10)) AS "Employe_id."
UPPER (RPAD('',12)) AS "FIRST NAME."
UPPER (RPAD('',1)) AS "ORIGINAL."
UPPER (RPAD('',20)) AS "LAST NAME,"
UPPER (RPAD('',5)) AS "SUFFIX."
SUPERIOR (RPAD (to_char (QUALDATE, 'MMDDYYYY'), 8)) AS 'DATE OF TRAINING. "
Upper (RPAD('P123',8)) AS "Course ID"
Upper (RPAD('',6)) AS 'class ID ',.
Upper (RPAD ('P', 4)) AS '' We. ''
Upper (RPAD('',4)) AS ' make / model.
Upper (RPAD('',4)) AS "Cali,"
Upper (RPAD('',7)) AS "Barrell."
Upper (RPAD('',15)) AS "serial number."
Upper (RPAD('A',4)) AS "Qualification."
Upper (RPAD('D',4)) AS "Application."
TO_CHAR ((RAWSCORE/250) * 100, "fm000.00") "SCORE".
Upper (RPAD('PASS',4)) AS 'Status. "
Upper (RPAD('',8)) AS "add time"
Upper (RPAD('',8)) AS "registration Add ID."
Upper (RPAD('',8)) AS 'Record Date added',
Upper (RPAD('',8)) AS "Record ID change."
Upper (RPAD('',8)) AS "Date of registration of the change."
ROW_NUMBER () over (partition by firearms_scores.ID_NUMBER QUALDATE desc order) rn
OF FIREARMS_scores, TBL
where scores.id_number = tbl.id_number
and qualyear = "2010" and coursecode = "SA".
order by employee_id)
where rn = 1

Hello

You RPAD does nothing, because they are identical:

SQL> SELECT NULL AS "Record Add ID",
  2         NULL AS "Record Add Date",
  3         NULL AS "Record Change ID",
  4         NULL AS "Record Change Date" FROM DUAL;

R R R R
- - - -

SQL>

Does not see why the leadership of the COLUMN should not do what you want. Maybe you forgot the quotes?

SQL> COL "Record Add ID" FOR a18
SQL> COL "Record Add Date" FOR a18
SQL>
SQL> SELECT NULL AS "Record Add ID",
  2         NULL AS "Record Add Date",
  3         NULL AS "Record Change ID",
  4         NULL AS "Record Change Date" FROM DUAL;

Record Add ID      Record Add Date    R R
------------------ ------------------ - -

SQL>

PS: You probably shouldn't affect the width of a column that is smaller than the length of the header

Concerning
Peter

Tags: Database

Similar Questions

  • help with HP Photosmart C4580 wireless using the windows 8.1need driver?

    I updated my computer and all of a sudden the printer will not connect wireless as it did before. I was told by HP that there is no upgrade program, but it worked before yesterday... Please help me

    Thanks for the reply.  Sorry this solution did not work.

    You upgrade Windows 8 to 8.1? There is an updated driver for Windows 8.1, but it's the same one that was in Windows 8.  If you installed from an earlier version of Windows, you may try to download and install the driver for Windows 8.  Here is a link to that.

    http://h10025.www1.HP.com/ewfrf/wc/softwareDownloadIndex?softwareitem=MP-109997-1&cc=us&DLC=en&LC=en&OS=4157&product=3418707&sw_lang=

    If you were already on Windows 8, then more information is needed to answer your question.  You get an error message when you try to print?  Try you print and the printer is not available or is not listed?  Error messages?

  • need help with my screen has been using mouse and the screen is smaller and smaller

    need help with my screen has been using the mouse and the screen is smaller and smaller, so can't see

    Try to hold the 'ctrl' key and turn the wheel of scrolling the mouse forward to zoom, turning the scroll wheel to the rear is to zoom out.

  • I can't see the pictures in my yahoo email, I did not have this problem with other browsers. I used the safe mode and still no success. Help, please.

    Question
    I can't see the pictures in my yahoo email, I did not have this problem with other browsers. I used the mode 5 firefox safe and always without success. Help, please

    To help other users find solutions, please come back to this Thread and connect you to the
    Forum with your user name and password:

    Click on 'resolved' beside the answer above that BETTER resolved your issue

    DO NOT CLICK on 'Solved It' next to this answer

  • column width of cells using the horizontal menu spry

    Hello

    Try to set the column width of cells using the Horizontal Spry DWCS5.5 menu.

    View-source: http://www.roatan.ws/spry-menu-bob

    I used the help to get directions and I think I did it correctly, but I don't know about you.

    / * Container of menu items are same fixed width parent * /.

    UL. MenuBarHorizontal ul li

    {

    background-color: #356A 68.

    float: none;

    background-color: transparent;

    height: auto;

    Width: auto;

    }

    Try to clean up my site and make things just one in search of work.

    Any suggestions appreciated

    Bob

    Spry menus contain all the columns in the table or cells.    They are just lists

    • with CSS style tags.

      UL. MenuBarHorizontal li

      {

      margin: 0;

      padding: 0;

      list-style-type: none;

      do-size: 12px;

      position: relative;

      text-align: center;

      cursor: pointer;

      Width: 8th; / * adjust top-menu width * /.

      float: left;

      text-decoration: underline;

      }

      UL. MenuBarHorizontal ul

      {

      margin: 0;

      padding: 0;

      list-style-type: none;

      do-size: 10px;

      z index: 1020;

      cursor: default;

      Width: 8th; / * Adjust submenu width * /.

      position: absolute;

      left:-1000em;

      background-color: #356A 68.

      }

      Nancy O.

      ALT-Web Design & Publishing

      Web | Graphics | Print | Media specialists

      http://ALT-Web.com/

      http://Twitter.com/ALTWEB

      http://ALT-Web.blogspot.com/

  • Get error when trying to backup on USB: the willing backup of a file system drive corrupted. Fix it using the verification tool disk errors, or choose another backup location. (0 x 81000008)

    Original title: what is the disk error checking tool

    I am creating a backup on a USB key, I bought recently. But when I do an error apears that the backup was not successful, and then this error appears "the backup target K:\ device failed with the following error:"

    The backup disk has a corrupted file system. Fix it using the verification tool disk errors, or choose another backup location. (0 x 81000008)"
    SOMEONE PLEASE HELP!

    I am creating a backup on a USB key, I bought recently. But when I do an error apears that the backup was not successful, and then this error appears " the backup device target K:\ failed with the following error: "

    The backup disk has a corrupted file system. Fix it using the verification tool disk errors, or choose another backup location. (0x81000008)"
    SOMEONE PLEASE HELP!

    Hello

    This error can occur if there are problems of system files on the drive selected for the backup file location. Have you tried to save the backup to a drive or another location? Please try the following to fix the disc
    [1] method: Using Check Disk to find the files corrupt
    • In the start menu, look for invites
    • Right click on command prompt and select run as administrator
    • When the application starts, insert the following text and press ENTER: Chkdsk.exe/f/x k:
      Where we mean K:  the disc damaged.
    NOTICE: Check disk is maybe not able to lock the drive and launch the operation if the disk contains files required for Windows to run correctly. It asks if you want to schedule a check disk at the next startup upwards instead.
    Thank you
    Have a nice day :)
  • still no luck with highlighting and try to use the Edit with photoshop elements Editor

    still no luck with highlighting and try to use the Edit with photoshop elements Editor.

    2nd try still nothing.JPGYes, I clicked the change of use with photoshop elements, editor in Chief but still, don't put not to...

    still not working.JPGregion and I select view selected in organzier files. I don't understand what is happening. I never had this problem before and I have 12 for a long time.  How can I fix it?


    You can keep answers to the original discussion, or it's going to go very confusing - http://forums.adobe.com/thread/1438997?tstart=0.

    See you soon,.
    --
    Neale
    Insanity is hereditary, get you your children

    If this post or by post from another user solves the original problem, please mark as correct and/or useful messages accordingly. This helps other users with similar trouble getting answers to their questions more quickly. Thank you.

  • Tried to re - install XP with Microsoft Certified intallation disk using the original key code, but the installer doesn't recogize my valid original key code.

    Tried to reinstall XP with Microsoft Certified intallation disk using the original key code.  But the installer refuses to recogize my valid original key code.  How can I "force" the program to accept the code and/or how to circumvent the code and reinstall XP?

    original title: tried to reinstall XP

    How to activate Windows XP
    http://support.Microsoft.com/kb/307890/en-us

    See the section titled: "how to activate Windows XP by phone.
    Also, make sure that you do not confuse the product key numbers and letters
    (number 8 for the letter B, etc.)

    Blank page to activate Windows in the wizard of Windows Product Activation
    http://support.Microsoft.com/kb/314935

    How to contact a Microsoft Product Activation Center:
    http://support.Microsoft.com/default.aspx/KB/950929/en=us

    Microsoft Activation centers worldwide telephone numbers:
    http://www.Microsoft.com/licensing/existing-customers/activation-centers.aspx
    (This site is for activating Volume License, but if you call, they will help you)

    The phone number is not working:
    Microsoft Wordwide contacts: http://www.microsoft.com/worldwide/default.aspx

    Once Windows activated / Genuine Advantage Notifications:
    http://www.Microsoft.com/downloads/en/details.aspx?displaylang=en&FamilyID=afd45b36-3d77-4259-801c-d31a9a90cdcf
    (This tool will confirm that the copy of Windows installed on your PC is genuine and authorized)

    J W Stuart: Http://www.pagestart.com

  • I bought CS4 - have the box etc serial # - use an IMac with Snow Leopard - went to use the bridge and a screen came saying Adobe Bridge HOme Service was interrupted to concentrate on other resources... uh, I bought this software and how can we now

    I bought CS4 - have the box etc serial # - use an IMac with Snow Leopard - went to use the bridge and a screen came saying Adobe Bridge HOme Service has been discontinued for focus on other resources... uh, I bought this software and how it can now be 'gone '? Pls help - bridge is very convenient and I paid for it!

    See here:

    Deleted Adobe Bridge Home service

  • When you use the question mark, appears like a capital E with accent French and cannot use the quotes.

    Original title: I can't use my question mark (rises like a capital E with accent French and cannot use the quotes)

    I'm having a problem from time to time with my ability to use marks quotaion, brands etc. How can I treat it DEFINITIVELY the question.

    Thank you

    Hi golfnut11,

    1. you are using a laptop?

    2. you remember to make changes to the computer priro to this question?

    Step 1:

    If you use a laptop, check if the FN key is enabled. If so, then try to turn it off and check.

    Step 2:

    You can also try to check the keyboard on the screen and if the problem occurs or not.

    Check out the link:

    Type without using the keyboard (on-screen keyboard)

    http://Windows.Microsoft.com/en-us/Windows7/type-without-using-the-keyboard-on-screen-keyboard

    If you use a Microsoft keyboard, you can also consult the following article:

    Troubleshoot wired keyboards that do not or only the erroneous characters category
    http://support.Microsoft.com/kb/258826

    Hope this information is useful.

  • Downloaded Photoshop Elements, I thought, made me buy my code, then said that my code was not valid. Help, please. You want to use the product.

    Downloaded Photoshop Elements, I thought, made me buy my code, then said that my code was not valid. Help, please. You want to use the product.

    you need a serial number and the installation file.

    the former, http://helpx.adobe.com/x-productkb/global/find-serial-number.html

    the latest,

    Available downloadable Setup files:

    Download and installation help links Adobe

    Help download and installation to Prodesigntools links can be found on the most linked pages.  They are essential; especially steps 1, 2 and 3.  If you click on a link that does not have these listed steps, open a second window by using the link to Lightroom 3 to see these "important Instructions".

  • All files generated by a coil in sqlplus receive ownership of oracle: dba instead of the user of the BONE started sqlplus and run the script. There's a file with users owners of BONES of the coil.

    All files generated by a coil in sqlplus receive ownership of oracle: dba instead of the user of the BONE started sqlplus and run the script. There's a file with users owners of BONES of the coil.

    Script launched in until OS user 'A' on the 'A' server which launches sqlplus, then connects to a remote database through a service of tnsnames.ora as another user of the database and the results of this script are spoulées on the server "A".

    The file queued on the old server is written with rw-rw-r: read write user, group read the writing, reading and possession header that is the user of the OS. The file queued on the new server is written to rw-r-r user: reading writing, reading group, public reading and ownership oracle: dba.

    "" The user then has no privileges to modify the file and continue the process of transmitting the file, editing and deleting the file for the next set of commands. This allows us to keep the possibility to migrate to the new server we are unable to process orders.

    $ORACLE_HOME/bin/sqlplus - s user/password@prd1 @./script/CustomScript/R12_OM_UFPC-oracle.sql

    Background: old server running 4.8, Oracle 10.2.0.4 OEL

    New server running OEL 6.5, Oracle 11.2.0.4

    Tested so far:

    File and update umask to 0002 instead of 0022 is now generated as rw-r-r. However, the property is still oracle: dba.

    Update of ownershipt of $ORACLE_HOME/bin/oracle.exe of oracle: oracle (edi added the user to the oracle group) and chmod 6751 oracle.exe. This created several problems where crucial scripts, that is to say of sqlplus failed to run.

    Added! chmod 755 output.file.name - OS user 'A' is not allowed to change to mod.

    Added! command cp MV output file and that generated the file as a user of the operating system: oracle. It is a potential work around in case of emergency, but the developer would have to rewrite the countless scripts.

    Any ideas?

    I have reproduced the behavior of the old server and am able to spool a file via sqlplus under OS user. No changes have been made on the remote database server. All the changes have been on the new server hosting a small 11.2.0.4 database on a server running OEL 6.5 32 - bit OS.

    (1) removed the sticky bit $ORACLE_HOME/bin/sqlplus using chmod u-s, g-s, o - s suggestion of Billy ~ Verreynne

    (2) modified the main group for the 'oracle' user match the user operating system applications, while maintaining membership in the groups 'oracle' and 'dba '.

    -We are dealing with here EDI processes, so the Group was called edi.

    (3) modified property of the files tnsnames.ora and listener.ora for oracle: edi

    (4) restart the receiver

    (5) disconnect / reconnect

    Script runs as expected, the output file contains the correct ownership and permissions.

    Thank you all for taking a look and offering options.

    -Josh

  • All USB ports not working doesn't no causing of mouse and keyboard doesn't work either (considered the source of the problem). Need help fixing without using the mouse or the keyboard.

    None of my usb ports work, and I can't get my mouse and keyboard to respond.  The computer will start, but none of the usb ports work, and I don't have the use of a mouse or a keyboard works through all the patches.  Help!

    I have PS/2 ports, but no mouse PS/2 or a keyboard... did not have those last few decades and don't know anyone who has these features more

    $6.36 (free delivery if you have Amazon Prime, otherwise on $11 including shipping): http://www.amazon.com/V7-Standard-PS-Keyboard-KC0A2-4N6P/dp/B007R9YV0C/ref=sr_1_1?ie=UTF8&qid=1372529682&sr=8-1&keywords=ps%2F2+keyboard

    during boot, or perhaps in Safe Mode

    Assuming that your keyboard works during boot (and it should; trying to tap F8 to access Advanced Boot Options Menu), probably the simplest method would be to make a Hiren Boot CD, boot from it and use one of the many included tools.  I have not experienced with your particular situation, so I can not tell you what tools will be or will work for you, but my guess is that USBDeView might work.

    Description: http://www.hiren.info/pages/bootcd

    Download and burn (copied from ElderL):

    Download the Hiren ISO here (download important enough but worth it).

    http://www.hirensbootcd.org/download/

    I like to use ImgBurn to create a bootable ISO CD:

    http://www.ImgBurn.com/

    When you install ImgBurn, DO NOT install the Ask Toolbar (ever).

    Here are some instructions for ImgBurn:

    http://Forum.ImgBurn.com/index.php?showtopic=61

    Thanks for all the help. Seems that there is no easy 'reset' for bad hardware configurations.

    However, I dug to the bottom of my Lac 'tech' and found a USB-to-PS/2 adapter, which allowed me to use the USB mouse into the PS/2 port and reactivate my USB ports.

    All is well now.

    Thank you all for your answers!

    Kind regards!

  • Help with service pack 3 to install - "" the component that you are trying to use is on a CD-ROM... "."

    original title: help with service pack 3 installation

    I get the message to update and install service pack 3, but every time I try it can not be installed. "the component that you are trying to use is on a CD-ROM or removable disk that is not in vain. Insert the microsoft excel 2002 disc, and then click ok' I have no disk, what do I do

    Hello

    Try to install the stand-alone version of the Service Pack by this link:

    http://www.Microsoft.com/download/en/details.aspx?displaylang=en&ID=24

  • I need help to retrieve my hard drive using the recovery of Neosmart disk (it takes days)

    To get a better perspective, I'll tell you the history of what has gone wrong.

    What happened is that the computer has a virus and it changed some coding on the computer. When this happened to that my computer wouldn't let me enter my account and the only account that I could go on was the administrator account. I tried on a few websites and the other microsoft Web sites told me to do something with the command userinit or something like that, which led to the black screen of death that I managed to fix it on my own.

    Another website told me to use the recovery disk but like a lot of people that I don't have a recovery disk, I only had a reinstallation disk that said I could fix the computer, but it would delete all hard disk that I didn't, I need the intact files because they are important to my family.

    Then I discovered on the recovery disk that you can buy from Neosmart.com and this disc is made like the original Vista recovery disk. Anyway I bought it and I clicked on "Automatic repair" and it comes up with 2 dives eligible for recovery (it says at the top) a player is 10 GB and the other is 288 GB (it says active is the 288 GB we) I clicked on repair automated on one of them, but I don't remember. Apparently fixed it (coding I guess) and I restarted but no consideration was there. He says "Please wait" for a long time, then it comes up with a single account that says "User" I click it and it says user name and password you will need to connect to a computer at school or something. I put my username and password anyway and it does not of course and it comes up with "the specified domain does not exist or could not be contacted.

    So, I went back on the recovery disk and I so I click on system restore to get my stuff back and I can put it on a previous date until the virus has arrived and I click on it, then it is said that his recovery, files, but just like that, I let him recover and he was recovering for 3 days before I came on this site and tried something but it did not work. Like I said before it is 288 GB so I guessed it would take a long time to recover only the amount of data, but it seems just silly.

    Could someone please help me with this with words that I can identify the disk recovery Neosmart.com please

    Important additional information

    I said before that I don't remember what I have fixed drive, the thing is that there might be I have set the wrong drive, but to be honest at this point, I feel like if I do a movement without knowing what it will do, im going to lose what's on that hard drive

    Important files are not for work, they are files containing family photos of many years we couldn't print on paper of good quality printing. There is no other copy of these pictures and I really want to keep them, even with my parents.

    The recovery of Neosmart disk contains the following options

    • Auto repair
    • Score editor
    • Browse/Backup of files
    • Internet browser
    • Launch the command line

    Within the Automated repair is where you can get the system restore. The others you can kind of guess, if you want to know so just ask.

    Help, please

    Thank you

    To recover the photos, you can remove the drive and it slave on another computer (you can get very cheap external envelopes) and remove your data (you have just learned an important lesson in why you need to have backups).

    Once you have saved your data, your best bet would probably be to reinstall. A good Web site for the removal of malicious software is that one.
    http://www.selectrealsecurity.com/malware-removal-Guide/

    Good luck!

Maybe you are looking for