To display all the rows and columns in proper alignment

My Question is when I want to display several lines recoreds must divides several times and display recoreds are combersome to understand, so please give me the solution to this problem.
When this query is executed, a row is available in several lines after this issue under some poster line lines are displayed.
Thank you!

SELECT
E.Empno EmpNo,
E.Ename EmpName,
E.Job EmpJob,
E.HireDate EmpHireDate,
E.Deptno Empdeptno,
NVL ((TO_CHAR (E.Comm)), "Not like") EmpComm,.
E.Sal EmpSal,
E.Sal + NVL(E.Comm,0) EmpTotalSal,
(TO_CHAR(SYSDATE,'YYYY')-TO_CHAR(E.HireDate,'YYYY')) EmpExpInYear,
E.DEPTNO EmpDeptno,
ED. DNAME EmpDname,
ED. Loc EmpDeptLoc,
. Grade EmpSalGrade,
NVL ((to_char (M.empno)), 'supereme') Mgrno,.
NVL ((to_char (M.ename)), the auth ') MgrName,.
NVL ((to_char (M.HireDate)), "Not assigned") MgrHireDate,.
NVL ((to_char (M.SAL)), "Not assigned") MgrSal,.
NVL ((to_char (M.comm)), 'not applicable') MgrComm,.
NVL ((to_char (M.SAL + NVL(M.comm,0))), "Not assigned") MgrTotalSal,.
NVL ((TO_CHAR (E.HireDate - M.HireDate)), 'Bishop no assign') Seniorindays,.
NVL ((to_char ((to_char(SYSDate,'YYYY')-to_char(M.HireDate,'YYYY'))-(TO_CHAR(SYSDATE,'YYYY')-TO_CHAR(E.HireDate,'YYYY'))), "No Assign mgr") MgrSeniority,
NVL ((to_char (to_char(sysdate,'YYYY')-to_char(M.HireDate,'YYYY'))), "No available Mgr") MgrExpInYear,.
NVL ((to_char (E.SAL - M. SAL)), "Not assigned") EmpAndMgrSalDiff,.
NVL ((to_char (M.DEPTNO)), "not assigned") Mgrdeptno,.
NVL ((TO_CHAR (MD. DNAME)), "sup has no Bishop") MgrDeptName,.
NVL ((TO_CHAR (MD. (Loc)), "Sup has no Bishop") MgrDeptLoc,.
NVL ((TO_CHAR (MS. Grade)), 'Sup has no Bishop') MgrSalGrade
Of
EMP, Emp, Dept ED Dept MD, MS SalGrade M, SalGrade'RE
WHERE M.Empno (+) = E.Mgr AND E.Deptno = ED. DEPTNO (+) AND
M.Deptno = MD. DEPTNO (+) AND
M.Sal MS. it (+) AND SM. HiSal (+) AND
E.Sal BETWEEN YOU. It (+) ARE. HiSal (+)
/


EMPNO EMPNAME EMPJOB EMPHIREDA EMPDEPTNO EMPCOMM EMPSAL EMPTOTALSAL EMPEXPINYEAR EMPDEPTNO EMPDNAME EMPDEPTLOC EMPSALGRADE
---------- ---------- --------- --------- ---------- ---------------------------------------- ---------- ----------- ------------ ---------- -------------- ------------- -----------
MGRNO MGRNAME MGRHIREDAT MGRSAL MGRCOMM MGRTOTALSAL
---------------------------------------- ---------- ---------- ---------------------------------------- ---------------------------------------- ----------------------------------------
MGRSENIORITY MGREXPINYEAR EMPANDMGRSALDIFF MGRDEPTNO MGRDEPTNAME
---------------------------------------- ---------------------------------------- ---------------------------------------- ---------------------------------------- ---------------------
MGRDEPTLOC MGRSALGRADE
--------------------- ----------------------------------------
7839 not KING PRESIDENT November 17, 81 10 no Comm 5000 5000 28 10 ACCOUNTING NEW YORK 5
s supereme auth not give not give not there don't give
No mgr assign No. available Bishop not to dispose of not assigning overtime is not mgr
SUP is not Bishop Sup is not mgr


EMPNO EMPNAME EMPJOB EMPHIREDA EMPDEPTNO EMPCOMM EMPSAL EMPTOTALSAL EMPEXPINYEAR EMPDEPTNO EMPDNAME EMPDEPTLOC EMPSALGRADE
---------- ---------- --------- --------- ---------- ---------------------------------------- ---------- ----------- ------------ ---------- -------------- ------------- -----------
MGRNO MGRNAME MGRHIREDAT MGRSAL MGRCOMM MGRTOTALSAL
---------------------------------------- ---------- ---------- ---------------------------------------- ---------------------------------------- ----------------------------------------
MGRSENIORITY MGREXPINYEAR EMPANDMGRSALDIFF MGRDEPTNO MGRDEPTNAME
---------------------------------------- ---------------------------------------- ---------------------------------------- ---------------------------------------- ---------------------
MGRDEPTLOC MGRSALGRADE
--------------------- ----------------------------------------
7788 ANALYST SCOTT April 19, 87 20 No. Comm 3000 3000 22 20 RESEARCH DALLAS 4
7566 JONES 2 April 81 2975 Not applicable 2975
6 28 25 20 RESEARCH
DALLAS 4

Published by: user12252618 on December 9, 2009 11:07

all pages
fixed lines
Set trimout

If it's in a file then

all pages
SETL lines
Set trimspool

or to start...

http://www.orafaq.com/wiki/SQL * Plus_FAQ #How_does_one_disable_SQL.2APlus_formatting.3F

Tags: Database

Similar Questions

  • How to change the rows and columns of newtabs?

    I can't change the rows and columns to mozilla version 33

    From topic: config browser.newtabpage.columns shows 5 by default, but these 5 columns appear not only 3 as before. Don't know why, but I use generally not even the default new tab page in my profile daily.

    Still works this - https://addons.mozilla.org/en-US/firefox/addon/new-tab-tools/ - extension to change the page of newTab via a user accessible interface name in the Addons, rather than routing autour Manager inside Firefox. I use this add-on in a second profile that I use for my favorite sites

  • How to create the table with the rows and columns using the layout?

    One of my friends advised me to put my site on the mode of provision as it is better than the standard as he said
    but I couldnot make an ordinary table with the rows and columns in mode available th
    y at - there someone who can tell me how to?
    Thank you very much

    Wednesday, April 18, 2007 21:01:38 + 0000 (UTC), "Mr.Ghost".
    wrote:

    > A friend of mine advised me to put my whole site on the mode of disposal as its
    > better than standard, as he says

    Your friend won't. Don't listen to him any more. Mode of disposal creates
    very fragile and rigid code pauses at the first opportunity.

    Gary

  • I still have not found "help" to tell me how to remove all the lines and columns beyond those needed for my spreadsheet.

    I used several worksheets.  More allows me to specify the rows/columns and then delete them.  This is to remove all the lines/columns beyond those set up and formatted for my spreadsheet.   I tried many ways to remove all additional lines/columns, but without success.  I even took the time to scroll down/on to highlight all the unnecessary lines and columns, but they do not remove it.
    Any suggestions?  I used spreadsheets most allow me to specify the number of rows/columns for my worksheet

    You can ask your question in the office | Excel Forum because it is not really a problem of Windows XP performance and maintenance.

    Office | Excel

    http://answers.Microsoft.com/en-us/Office/Forum/Excel

    Also, providing specific information may help to get a faster response or better, such as the version of Office or Excel? version of Windows XP? Home, Pro, 32-bit or 64-bit.

    I hope this helps.

  • Expand the table, the rows and columns

    I can make my table grow in rows or in columns, but not both, when I add a line, it will not add the column that I just added and the colum will not include the line that I just added.

    We know what script I need for the addInstance know whan I added a new row or column.

    Thank you.

    I had a look, and here's what I came with. Whenever you add a row or column, you are chnaging the expression of som that allows to add the next row or column. I added a loop around each call to add the columns/rows as needed.

    Is that what you're looking for? See the attached file

    Paul

  • Finder - how to display all THE files and folder without exception names in searches?

    I like Mac OS.  I can't WAIT finder.  I just want that he show me everything that matches my search string - files, folders, images, etc.  Each of them, everywhere on my machine.  I just want it to be simple.  Or point me to a good replacement for Finder program.  I waste so much time trying to find things that should take a simple search...  I looked at all the stupid shortcuts like Shift + Cmd + G, which can't find folders in the directory you are in (why would it be separated anyway?).

    Thank you

    CMD-SHIFT-g is quite a search function. It allows you to enter the path of the folder you want to open. What you think "seeks" the current folder is really thin path. If you enter no previous path information, it looks in the current working directory to the folder name you typed in the dialog box.

    You can set the default search starting location in Finder preferences. I have mine for current folder. Looks like you might prefer "search this Mac".

    Typing in the search field in the Finder will search the contents and filename. It will offer to search for chips to match types he concludes.

    If you just want to search for files and folders, but no content file, then use cmd-ctrl-shift-f to search by name (you can adjust this shortcut to the system preferences keyboard).

    If you don't get the results of your research, then perhaps your Spotlight index is corrupt.

    Featured: how re-indexing of folders or volumes - Apple Support

    If this does not work for you, try to find any fileor EasyFind

  • Referring to the dynamic cursor rows and columns in SQL

    I have a procedure that dynamically reads a schema name and a table name in a table entry. The code must loop through all the rows and the columns in each table and the output data. I'm done with what I want to achieve 95%, but there is a little bug. The dbms_output.put(*col.column_name* ||) line '',''); ' ||
    return to something like rec.col.column_name , so that it is the column of the current record. Currently, it simply displays the name of the column for each record instead of the actual value. Can someone help me to change the code to get the real value?

    CREATE OR REPLACE PACKAGE BODY some_proc
    -Function and procedure implementations
    PROCEDURE create_files IS
    CURSOR c_tbls IS
    SELECT * FROM tbl_list;
    l_sql VARCHAR2 (4000);
    BEGIN
    -To loop through all the tables
    FOR tbl IN c_tbls LOOP
    l_sql: = "DECLARE" | «C_tbl_recs CURSOR IS» | ' SELECT * ' |. '
    'FROM ' | tbl.schema_name | '.' || tbl.table_name | '; ' ||
    ' t_tbl_rowtype c_tbl_recs % ROWTYPE; ' || "START" |
    "FOR rec IN c_tbl_recs LOOP |
    ' FOR col IN (SELECT column_name ' |)
    "FROM dba_tab_cols" |
    "Owner WHERE ="' | " tbl.schema_name | '''' ||
    ' AND table_name = "' | tbl.table_name | '''' ||
    ORDER BY column_id) LOOP '.
    *' dbms_output.put(col.column_name ||) '',''); ' || * "END OF LOOP; dbms_output.put_line('''); END LOOP; ' ||
    ' END; ';
    -dbms_output.put_line (l_sql);
    EXECUTE IMMEDIATE l_sql;
    END LOOP;
    EXCEPTION
    WHILE OTHERS THEN
    dbms_output.put_line (SQLERRM);
    END;
    END;

    Is this what you are looking for?
    (it took a few minutes)

    create or replace
    package some_proc is
    procedure create_files;
    end;
    /
    
    CREATE OR REPLACE
    PACKAGE BODY some_proc
    IS
      -- Function and procedure implementations
    PROCEDURE create_files
    IS
      CURSOR c_tbls
      IS
        SELECT * FROM tbl_list;
    
      CURSOR c_cols (p_table_owner VARCHAR2, p_table_name VARCHAR2)
      IS
        SELECT column_name
        FROM all_tab_columns
        WHERE owner   =p_table_owner
        AND table_name=p_table_name
        ORDER BY all_tab_columns.column_id;
    
      l_sql     VARCHAR2(32000);
    
      separator VARCHAR2(1):=';';
    
    BEGIN
      --Loop through all tables
      FOR tbl IN c_tbls
      LOOP
        dbms_output.put_line('TABLE: '||tbl.schema_name||'.'||tbl.table_name);
        l_sql := 'DECLARE ' ;
        l_sql := l_sql|| '  CURSOR c_tbl_recs IS ' ;
        l_sql := l_sql||'    SELECT * FROM ' || tbl.schema_name || '.' || tbl.table_name || '; ' ;
        l_sql := l_sql||'    linenr number:=1; ';
        l_sql := l_sql||'BEGIN ' ;
        l_sql := l_sql|| ' FOR rec IN c_tbl_recs LOOP ';
        FOR c IN c_cols(tbl.schema_name,tbl.table_name)
        LOOP
          l_sql:=l_sql ||' if linenr=1 then  dbms_output.put('''||c.column_name||''||separator||'''); end if; ' ;
        END LOOP;
        l_sql :=l_sql||'  dbms_output.put_line(''''); linenr:=linenr+1; ';
        FOR c IN c_cols(tbl.schema_name,tbl.table_name)
        LOOP
          l_sql:=l_sql ||' dbms_output.put(rec.'||c.column_name||'||'''||separator||'''); ' ;
        END LOOP;
        l_sql:=l_sql||'  end loop; ';
        l_sql:=l_sql||'  dbms_output.put_line(''''); ';
        l_sql:=l_sql||'  dbms_output.put_line(''''); ';
        l_sql:=l_sql||'end;';
        EXECUTE IMMEDIATE l_sql;
      END LOOP;
    EXCEPTION
    WHEN OTHERS THEN
      dbms_output.put_line(SQLERRM);
    END;
    END;
    /
    
  • How to Exchange rows and columns where to access the paper web in html IE

    Hi all!

    I use web analytics studio Oracle hyperion with Version: 11.1.1.2.0.940. Design of web document analysis, I use the spreadsheet, then turn to the analysis view, I can swap the row and column position by dragging and pulling.

    But when I access the document by the smartcut in ie browser, opening in the html template, how can I exchange line and column position?

    Thank you very much in advance.

    OK, I think I understand what you're saying. The problem is that it does not show the left pane with a smartcut.

    Here's a tip. Add a button of 'Service '. Add "Information Toggle Pane" as the service.

    When you click the button that will open the left handle in HTML view panel. You will then see row and column and you should be able to switch the dimensions as needed. I just tested and it works.

    hope that helps.

  • How can I insert a number to a specific index (row and column) to a table

    I had the most with function 'insert into array' problem because of its counter-intuitiveness. I want to insert a number I got inside a loop IN a table. The ROW and COLUMN of this table I want enter the number is specified by the number of loops of two loops FOR. It did not work.

    So, I have isolated and tested this function further. Frankly, I initialized a table 2D with ZEROS and plugged into the "insert into array" function (on top of entry). I then put the number '1' for the index (line) and the number "2" for the index (column) and then put the entry number "6" for the "new item/sub-table. Then, I hung a picture of 2-D (indicator) output to the output of the function "insert into array. When I did all that, it means I want to just put the number '6' in line '1' and the column '2'... This isn't letting me do it.

    How can I do this SIMPLE?

    Hi Darrell h...,

    Looks like you can use the function "autoindexing. Take your value and connect it to your loop, it will be a default autoindexing. Right-click on the last tunnel of output and select Create indicator, the result is your table.

    It will be useful.

    Mike

  • Obtaining of row and column of a table element

    Hello

    I have a table of 24 rows and column 24 giving me a total of 576 items. How can I get the row and column of a particular element in a table in LabView. For example if I write to item 127 How can I get the column and line item 127 is located.

    Kind regards

    Bastien

    Hi Marion,.

    Maybe just need to find the right "address" element in your 2D table?

    Use something like this:

    Maybe you have to out of line & column according to your numbering scheme...

  • Sortable rows and columns

    Is it possible to drag and drop the rows and columns of a multicolumn script to rearrange them. If this isn't the case, it would be appropriate.

    Please write to us.

    We do not expect to support mobile in an AV Scripts columns because they are only 2 columns fixed in script format.

    If you create a script to multiple columns and click on a column heading, you will end up by selecting the contents of that column. Press CTRL-X to cut this column, then press CTRLV to paste the column somewhere before an existing column.

    This should solve your problem.

    -Anubhav

    Anubhav Rohatgi

    Senior product manager

  • I just started using my new iMac 27 "and in Mail, I can't find the setting to display a column that shows the number of emails in each folder.  Mavericks, I had this column.  I have checked all the menus and preferences and search online.

    I just started using my new iMac 27 "and in Mail, I can't find the setting to display a column that shows the number of emails in each folder.  Mavericks, I had this column.  I have checked all the menus and preferences and search online.

    Click the triangle next to the Inbox to view the Inbox for each account. Then select the desired mailbox and the information will be displayed in the upper part.

    You are entitled to 90 days telephone support from Apple. Try to contact them.

    Apple Support contact

    Apple Support by email or chat

    Contact Apple Support - phone

  • Display all the fields in a column

    Hello

    I have a standard report and on the one hand of the columns (status), I have 3 domains. lets say 'won', 'lost', 'draw' with their respective w, l, d codes displayed in the report.
    When I try to insert a new record, it displays only the 'draw' (d) case. the other two cases also get inserted but does not appear on the report. the research too does not detect the other two.

    How can I get the other two fields also appear in the cloumn (status) on the report on the home page.


    Thank you
    Neya

    With a dynamic lov, you want your column display or "D" is the name (which is meaningful to the user) and the column back or 'R' is the one that will be the value stored in the database column.

    So, you can

    D     R
    --------
    Draw  D
    Won   W
    Lost  L
    

    I don't know why the Select list that displays on the form (using the dynamic LOV) displays all the values that are output when you run the same query on the DB schema.

    Maybe try to create an another NEW LOV in APEX shared components and see how it goes?

    Amanda.

  • How to get the string (specified by row and column) of txt file with labview

    Hello world

    How to get the string (specified by row and column) of txt file with labview

    THX

    As far as I know, a text file has no column.  Be more specific.  Do you mean something like the 5th word on line 4, where the words are separated by a space, and lines are separated by a newline character?  You can read from the spreadsheet String function and set the delimiter to a space.  This will produce a 2D channels table.  Then use the table to index and give the line number and column number.

  • Write multiple rows and columns of the worksheet

    Is it possible to write several rows and columns of the spreadsheet, with the ability to add data to the file and create a new file if it does not exist?
    I tried to write to table vi, but I couldn't make it work.
    It won't let me write several lines in the same column.
    Can someone please give me an example?
    Thanks in advance.

    If you want to use the tab character (\t) as the delimiter, then check the txt file.  Then Excel will open as you wish.

    If you want to keep the csv extension, then use comma (,) as a separator.

Maybe you are looking for