How to make table format

Hi,
Im not expert in Oracle Database especially in querying of data's
My problem is about to be honest i have no idea how to make table format.
We have a problem in our production instance we raised it in Oracle Support but one of the technical support there is asking about this
"I want table data of the corresponding batch. Please take help of you DBA and ensure that you are connected to the correct instance, where you have this issue."
I am only one DBA here in our company and Im still Newbie.
here is the scripts the he want me to run it
select batch_id from gme_batch_header bh, mtl_parameters mp
where batch_no = '115982'
and organization_code = '101'
and bh.organization_id = mp.organization_id;
select *
FROM gme_batch_header
WHERE batch_id in (XXXXXX);
select batch_id, line_type, material_detail_id, inventory_item_id, plan_qty, actual_qty, wip_plan_qty, dtl_um, release_type, phantom_id,
locator_id, material_requirement_date, move_order_line_id, original_primary_qty, subinventory
FROM gme_material_details
WHERE batch_id IN (XXXXXX)
ORDER BY batch_id, line_type, material_detail_id;
SELECT 'MMT' as table_name, t.transaction_id as trans_or_rsrv_id, ty.transaction_type_name, h.batch_status, d.batch_id as batch_id, t.transaction_source_id as trans_or_rsrv_source_id, d.line_type, t.trx_source_line_id as material_detail_id,
t.organization_id, pa.organization_code, t.inventory_item_id, i.segment1 as item_number, t.subinventory_code, t.locator_id, lt.lot_number as lot_number, t.primary_quantity, t.transaction_quantity as trans_or_rsrv_qty, lt.transaction_quantity as lot_qty, t.transaction_uom as trans_or_rsrv_uom, t.secondary_transaction_quantity as sec_qty, t.secondary_uom_code,
to_char(t.transaction_date, 'DD-MON-YYYY HH24:MI:SS') as trans_or_rsrv_date, t.LPN_ID, t.TRANSFER_LPN_ID, t.transaction_mode, NULL as lock_flag, NULL as process_flag
FROM mtl_material_transactions t, gme_material_details d, gme_batch_header h, mtl_transaction_lot_numbers lt,
mtl_lot_numbers lot, mtl_system_items_b i, mtl_transaction_types ty, mtl_parameters pa
WHERE t.transaction_source_type_id = 5
AND h.batch_id in (XXXXXX)
AND t.transaction_source_id = h.batch_id
AND t.organization_id = h.organization_id
AND d.batch_id = h.batch_id
AND d.material_detail_id = t.trx_source_line_id
AND lt.transaction_id(+) = t.transaction_id -- This join allows us to get the lot number
AND lot.lot_number(+) = lt.lot_number -- This join allows us to get lot specific info if needed.
AND lot.organization_id(+) = lt.organization_id
AND lot.inventory_item_id(+) = lt.inventory_item_id
AND t.organization_id = i.organization_id
AND t.inventory_item_id = i.inventory_item_id
AND t.transaction_type_id = ty.transaction_type_id
And t.organization_id = pa.organization_id
UNION ALL
SELECT 'RSRV' as table_name, reservation_id as trans_or_rsrv_id , NULL, h.batch_status, d.batch_id as batch_id,
demand_source_header_id as trans_or_rsrv_source_id, d.line_type, demand_source_line_id as material_detail_id,
r.organization_id, pa.organization_code, r.inventory_item_id, i.segment1 as item_number, r.subinventory_code, r.locator_id, r.lot_number,primary_reservation_quantity, reservation_quantity as trans_or_rsrv_qty, NULL,reservation_uom_code as trans_or_rsrv_uom, secondary_reservation_quantity as sec_qty, r.secondary_uom_code,
to_char(requirement_date, 'DD-MON-YYYY HH24:MI:SS') as trans_or_rsrv_date, LPN_ID, NULL, NULL, NULL, NULL
FROM mtl_reservations r, gme_material_details d, gme_batch_header h, mtl_system_items_b i, mtl_parameters pa
WHERE demand_source_type_id = 5
AND h.batch_id in (XXXXXX)
AND demand_source_header_id = h.batch_id
AND r.organization_id = h.organization_id
AND d.batch_id = h.batch_id
AND d.material_detail_id = demand_source_line_id
AND r.organization_id = i.organization_id
AND r.inventory_item_id = i.inventory_item_id
And r.organization_id = pa.organization_id
UNION ALL
SELECT 'PPL' as table_name, pending_product_lot_id as trans_or_rsrv_id, NULL, h.batch_status, d.batch_id as batch_id, NULL, d.line_type, d.material_detail_id, h.organization_id, pa.organization_code, d.inventory_item_id, i.segment1 as item_number, NULL, NULL, lot_number, NULL, quantity as trans_or_rsrv_qty, NULL, NULL, secondary_quantity as sec_qty, NULL, NULL, NULL, NULL, NULL, NULL, NULL
FROM gme_pending_product_lots p, gme_material_details d, gme_batch_header h, mtl_system_items_b i, mtl_parameters pa
WHERE h.batch_id in (XXXXXX)
AND p.batch_id = h.batch_id
AND d.batch_id = h.batch_id
AND d.material_detail_id = p.material_detail_id
AND h.organization_id = i.organization_id
AND d.inventory_item_id = i.inventory_item_id
And h.organization_id = pa.organization_id
UNION ALL
-- Note that there should not be any transactions in MMTT. If there are, they are usually "stuck" there and
-- need to be processed or deleted
SELECT 'MMTT' as table_name, t.TRANSACTION_TEMP_ID as trans_or_rsrv_id, ty.transaction_type_name, h.batch_status, d.batch_id as batch_id, t.transaction_source_id as trans_or_rsrv_source_id, d.line_type, t.trx_source_line_id as material_detail_id, t.organization_id, pa.organization_code, t.inventory_item_id, i.segment1 as item_number, t.subinventory_code, t.locator_id, lt.lot_number as lot_number, t.primary_quantity, t.transaction_quantity as trans_or_rsrv_qty, lt.transaction_quantity as lot_qty, t.transaction_uom as trans_or_rsrv_uom, t.secondary_transaction_quantity as sec_qty, t.secondary_uom_code, to_char(t.transaction_date, 'DD-MON-YYYY HH24:MI:SS') as trans_or_rsrv_date,t.LPN_ID, t.TRANSFER_LPN_ID, t.transaction_mode, t.lock_flag, t.process_flag
FROM mtl_material_transactions_temp t, gme_material_details d, gme_batch_header h,
mtl_transaction_lots_temp lt, mtl_system_items_b i, mtl_transaction_types ty, mtl_parameters pa --mtl_lot_numbers lot
WHERE t.transaction_source_type_id = 5
AND h.batch_id in (XXXXXX)
AND transaction_source_id = h.batch_id
AND t.organization_id = h.organization_id
AND d.batch_id = h.batch_id
AND d.material_detail_id = trx_source_line_id
AND lt.TRANSACTION_TEMP_ID (+) = t.TRANSACTION_TEMP_ID -- This join allows us to get the lot number
--AND lot.lot_number(+) = lt.lot_number
--AND t.organization_id = lot.organization_id
AND t.organization_id = i.organization_id
AND t.inventory_item_id = i.inventory_item_id
AND t.transaction_type_id = ty.transaction_type_id
And t.organization_id = pa.organization_id
UNION ALL
SELECT 'MTI' as table_name, t.TRANSACTION_INTERFACE_ID as trans_or_rsrv_id, ty.transaction_type_name, h.batch_status, d.batch_id as batch_id, t.transaction_source_id as trans_or_rsrv_source_id, d.line_type, t.trx_source_line_id as material_detail_id, t.organization_id, pa.organization_code, t.inventory_item_id, i.segment1 as item_number, t.subinventory_code, t.locator_id, lt.lot_number as lot_number, t.primary_quantity, t.transaction_quantity as trans_or_rsrv_qty, lt.transaction_quantity as lot_qty, t.transaction_uom as trans_or_rsrv_uom, t.secondary_transaction_quantity as sec_qty, t.secondary_uom_code, to_char(t.transaction_date, 'DD-MON-YYYY HH24:MI:SS') as trans_or_rsrv_date, t.LPN_ID, t.TRANSFER_LPN_ID, t.transaction_mode, to_char(t.lock_flag), to_char(t.process_flag)
FROM mtl_transactions_interface t, gme_material_details d, gme_batch_header h,
mtl_transaction_lots_interface lt, mtl_system_items_b i, mtl_transaction_types ty, mtl_parameters pa --mtl_lot_numbers lot
WHERE t.transaction_source_type_id = 5
AND h.batch_id in (XXXXXX)
AND transaction_source_id = h.batch_id
AND t.organization_id = h.organization_id
AND d.batch_id = h.batch_id
AND d.material_detail_id = trx_source_line_id
AND lt.TRANSACTION_INTERFACE_ID (+) = t.TRANSACTION_INTERFACE_ID -- This join allows us to get the lot number
--AND lot.lot_number(+) = lt.lot_number
--AND t.organization_id = lot.organization_id
AND t.organization_id = i.organization_id
AND t.inventory_item_id = i.inventory_item_id
AND t.transaction_type_id = ty.transaction_type_id
And t.organization_id = pa.organization_id
ORDER BY batch_id, table_name, line_type, material_detail_id;
SELECT *
FROM gme_transaction_pairs
WHERE batch_id in (XXXXXX);
I used SQL Developer and connected in our Production instance where the problem is there
so i run it please see attached file:
please help how to make table format outpur what are the steps that i need to produce correctly.

Hi,
From your post, it seems that you need to upload the results of the query to Oracle Support.
You can spool the output to a file and upload it.
Something like...
SQL>spool output.txt
SQL>set lines 200
SQL>set pages 200
--execute the queries
SQL>spool off
I don't know about SQL Developer but tools such as PL/SQL Developer and Toad will allow you to export the query results directly to MS Excel.
Regards,
Sujoy

Similar Messages

  • How to make table as "editable false"

    Dear Forum,
    i am user of jDeveloper jClient/Swing .jpr.
    cutomer table having following attributes-
    1.cust_id (primary key)
    2.cust_name
    3.cust_add
    Suppose customerview bind with jTable1.
    Using ViewObjectEditor, i set "updateable never" for all fields.
    This show error, when data insert into table " cust_id as
    read only".
    Help me, Using jClient Binding how to make Table as "editable false".

    Overriding method prepareEditor() for new table:
    private JTable tableList = new JTable(){
    public Component prepareEditor(TableCellEditor editor, int row, int column) {
    // 1 and 2 column is not editable
    if(column == 0 || column == 1){ return null; }
    return super.prepareEditor(editor, row, column);

  • HOW TO MAKE TABLE CONTROL NON EDITABLE

    hi all
    how to make table control non editable
    Thanks & Regards
    harsha

    Hi,
    Try this code in the PBO inside the module in the LOOP...ENDLOOP.
       IF SY-TCODE EQ 'ZEMPLDISPLAY'.
        LOOP AT SCREEN.
         if screen-name eq 'column1' or screen-name eq 'column2'.  "Give the names of the columns in the table control
          SCREEN-INPUT = '0'.
          MODIFY SCREEN.
        endif.
        ENDLOOP.
      ENDIF.
    Or you can go the Layout of the table control in Change mode and for every column's attributes, make it 'Output' only field. Check  'Output only' field.

  • How to make table that will include controls such as drop list?

    How to make table that will include controls such as drop list?
    I need to create table as Property Browser of ActiveX, that include rows with differnt types such as drop list, color, ...

    Hi Nadav,
    I figured out where I missed your point. When you wrote
    table as Property Browser of ActiveX, that include rows with differnt types such as drop list, color, ...
    I was thinking mixed data-types in a [2d] table!
    Looking at the property browser again it looks like no single LV function can do all of that. It can be developed as a pop-up (like the browser is set-up) and then code all of the elegance using an event structure to control the background color of a string indicator while controling the visability of rings that are only made visable when a mouse down is detected. That will get you pretty close.
    So no, my previous response ws not correct for what you are trying to do if you want to duplicate all of the wistles and bells of the property browser pop-up window.
    Please forgive my distraction.
    Ben 
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • How to make table have transportable entries

    Hi Experts,
    how to make table ZFUSTXFACTOR have transportable entries?
    Regards,
    Saleem

    HI,
    In The se11 menu Utilities-->table maintenance generator-->if u already created table maintenance generator then in the tab DIALOG DATA TRANSFER DETAILS check the radio button STANDARD RECORDING ROUTINE.
    Then when ever u save the data in the table it will pop up a screen to create a Transport request.
    Thanks,CSR.
    ***please reward if helpful.

  • How to make tables similar to apple site?

    Is anyone aware of any tutorials on how to make tables
    similar to
    http://www.apple.com/support/leopard/
    Thanks!

    Look at the code.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "Mike" <[email protected]> wrote in message
    news:[email protected]..
    > Is it all CSS? How is it being done? Anyone point me to
    some tutorials?
    >
    > Thanks.
    >
    > Ken Binney wrote:
    >> And then you will discover there are no tables in
    that layout.
    >>
    >>
    >>
    >>
    >> "John T Smith" <[email protected]>
    wrote in message
    >> news:g0ichc$64f$[email protected]..
    >>> While at that site, tell your browser to show
    you the code... in IE that
    >>> is
    >>> click on the View option and select source
    >>>
    >>> You may also do a File--Save As to save a copy
    of the code to your
    >>> computer to
    >>> view
    >>>
    >>

  • How to make text formatting stick on book cover when sent to Apple or to PDF?

    In iPhoto '11 (version 9), one can format text on book covers and in text blocks by selecting the text and right clicking.  Font, size, color, and shadowing can be selected and changed.  All of this displays correctly and sticks when the book is saved, etc.  However, if the book is "previewed" or exported to a PDF (which I believe is the format sent to Apple for actual printing) some of the formatting is lost, permanently.  It just goes away.  Why?  And, more importantly, how can I make this formatting stick?  I'm mainly interested in shadowing as it gives the text a 3d look.  All shadowing is lost - font and size do stick.  I have successfully done this shadowing in several previous releases of iPhoto, and actually had it printed by Apple.  Any ideas out there?  Or is this another wonderful "feature" ?
    Thanks for playing.

    Sorry LN, but that is the problem.  When I do either the preview or the export to PDF, the shadow formatting disappears.  There is another forum discussion where some person discovered this only after receiving their three hard cover books.  I'm pretty sure it is a bug.  I have Snow Leopard and iPhoto '11 (v9) both with latest updates.
    One other note - when applying the text shadow, anytime I adjust either of the three shadow sliders, the shadow disappears and I must click on the main shadow button to make the adjusted shadow reappear.   As I said, it does then stick until I do either the preview or PDF as described in the article you referenced.  Very, very, very annoying.
    Will try to contact Apple today, although I have had very poor luck with ever getting them to admit to any problem in the past.  ( pride goeth before the fall....). Hope they will listen, but I have a close deadline on this book.

  • How to make table of contents linkable

    Could someone tell me how to make the table of contents for my indesing book linkable? I've seen this in PDF documents before and assume it can be done using InDesign, but haven't been able to figure out how to do it.

    gscortino1 wrote:
    I need to have a Book Table of contents work as well as chapter Table of contents and also Ineractive elements all work when clicked in a PDF.  How do I manage this?  I can get the Table of Contents to work and no interactive elements or visa versa. I f I export to pdf Ptint I get both TOC to work but no buttons If I export to interactive I get only the Chapter TOC to work and the buttons but not the Book TOC.  I know its a bug what is Adobe doing about it and when are we going to get a free fix? 
    What version of ID are you using? What export settings? As noted above, there is a bug, and what you want may not be posible at the moment.

  • How to make tables visible for Group Operations

    Hi:
    - SunMC Group Operations has a 'Modules Table' option which
    allows users to edit tables within a module
    - Why is it that for some modules, the tables are not visible at all, but
    for other modules, the tables are visible ?
    - Is there any documentation available which outlines how to make a module's
    table visible under SunMC Group Operations 'Modules Table' option ?
    thanks
    J L

    Please check the below thread.
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/eff6e995-e13e-4e30-844e-6242a613daff/making-sp-apps-visibleinvisible-to-users
    My Blog- http://www.sharepoint-journey.com| Twitter
    If a post answers your question, please click "Mark As Answer" on that post and "Vote as Helpful

  • How to make table cell have certain width

    Hi
    i have 3 cells when i write text in any cell it effects the
    width of other cells !!!
    how to make every cell have certain? i mean i want to wrap
    the text not to effect the cell width
    thanks in advance.

    Hi Mac,
    Try this
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0
    Transitional//EN">
    <HTML><HEAD><TITLE>Home</TITLE>
    <META http-equiv=Content-Type content="text/html;
    charset=iso-8859-1">
    <style>
    .text-content-green {
    FONT-SIZE: 11px;
    COLOR: #a5a834;
    LINE-HEIGHT: 20px;
    FONT-STYLE: normal;
    FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif;
    TEXT-DECORATION: none;
    .text-content-green:hover {
    FONT-SIZE: 11px;
    COLOR: #AE0B0B;
    LINE-HEIGHT: 20px;
    FONT-STYLE: normal;
    FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif;
    TEXT-DECORATION:underline;
    .margin {
    margin: 1px 1px 1px 1px;
    border-style: solid;
    border-top-width: 1px;
    border-left-width: 1px;
    border-right-width: 1px;
    border-bottom-width: 1px;
    border-color: gainsboro;
    </style
    </HEAD>
    <BODY topmargin="10px" leftmargin="0" rightmargin="0"
    class="body-style">
    <TABLE width="729" border="0" cellpadding="0"
    cellspacing="0" cellsadding="0" align="center" class="margin">
    <TBODY>
    <TR>
    <TD width="125" valign="top" bgcolor="#f0f0c1">
    <table width="125" border="0" cellspacing="0"
    cellpadding="0">
    <tr>
    <td width="25" height="25" align="middle"></td>
    <td width="108" class="text-content-green"><A
    class="text-content-green" href="default.html">LEFT
    NAV</A></td>
    </tr>
    <tr>
    <td colspan="2" align="middle"></td>
    </tr>
    <tr>
    <td width="25" height="25" align="middle"></td>
    <td width="108" class="text-content-green"></td>
    </tr>
    <tr>
    <td colspan="2"></td>
    </tr>
    </table>
    </TD>
    <TD vAlign=top width=539 bgColor="white" height=471>
    <P class="text-content-green" align=left
    style="padding-left:5px">Lorem ipsum dolor sit amet, consectetur
    adipisicing elit.Duis aute irure dolor in reprehenderit in
    voluptate velit esse cillum .
    </P>
    </TD>
    </TR>
    </TBODY>
    </TABLE>
    </TD>
    </TR>
    </TBODY>
    </TABLE>
    </BODY>
    </HTML>
    HTH
    Shanthi

  • How to handle Table format

    an application need to read many many dynamic text from
    outside
    but if given a table (for example html <table> tag )
    since im using dynamic text to reading mass text, are there
    any suggested solution to handle those table format?
    i've checked the help document of flash, it seems didn't
    provide any method to draw a table(even Text.htmlText)
    additional , since im reading a dynamic, therefore it cant
    use datagrid component and it is impossible to make that component
    to client
    im using AS2
    thankyou

    its good to see your reply again kglad : )
    "you can't use table tags in an html textfield"
    therefore i ask
    "are there any suggested solution to handle those table
    format?"
    just some fancy plain text data from client but some of them
    are shown in table format, i need to completely follows their
    format

  • How to make smaller format?

    Hi!
    Is it possible to make smaller format for movie(DVD),because when i copy movie from original dvd to my laptop he takes 7.78GB on hard?
    thank you

    Have you already tried burning to Verbatim DL media 8.5GB at 4x?
    If DL isn't an option for you then consider using Roxio Toast and SL Dvd-R (fit to dvd) in order to burn the image to SL Verbatim Dvd-R (your choice).
    Hope this helps but if not just come on back.
    Message was edited by: SDMacuser

  • Indesign to ebook-kindle: how to make table of contents link/jump to first page each chapter?

    I have successfully completed the "ebooks: from adobe indesign to the kindle store.pdf"
    I have InDesign CS 5, not 5.5.
    I did the indesign doc - export to epub, then converted that epub in Calibre to MOBI format for kindle.
    But how do I make a table of contents that link or jump to the beginning of its respective chapter head?
    THANKS!!!

    Yes, that fixed it, thanks! I had no idea they clashed like that. I ruthlessly purged all other tables of contents, and then used Layout > Table of Contents to create a new one, and it worked.
    It made more sense after seeing in this thread that table of contents styles are more like presets or entities than styles.

  • How to make table maintenance generaot in display mode

    Hi,
       I was created table maintenance generator for customized table. I want to use this to view log changes only not for real maintenance.
    How can i make my table maintenance generator as display only(Meaning with out change functionality).
    Kind Regards,
    Rays

    Hi Rays,
    Have you looked FM <b>VIEW_MAINTENANCE_CALL</b>?
    CALL FUNCTION 'VIEW_MAINTENANCE_CALL'
      EXPORTING
        ACTION      = 'D'
        VIEW_NAME   = 'ZTABLE'
      TABLES
        DBA_SELLIST = IT_RANGETAB
      EXCEPTIONS
        CLIENT_REFERENCE                     = 1
        FOREIGN_LOCK                         = 2
        INVALID_ACTION                       = 3
        NO_CLIENTINDEPENDENT_AUTH            = 4
        NO_DATABASE_FUNCTION                 = 5
        NO_EDITOR_FUNCTION                   = 6
        NO_SHOW_AUTH                         = 7
        NO_TVDIR_ENTRY                       = 8
        NO_UPD_AUTH                          = 9
        ONLY_SHOW_ALLOWED                    = 10
        SYSTEM_FAILURE                       = 11
        UNKNOWN_FIELD_IN_DBA_SELLIST         = 12
        VIEW_NOT_FOUND                       = 13
        MAINTENANCE_PROHIBITED               = 14
        OTHERS                               = 15.
      IF SY-SUBRC <> 0.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    Hope this will help.
    Regards,
    Ferry Lianto

  • Anyone know how to show table format in email using php?

    I created a form using tables in dreamweaver.. and my email works and I used php.
    My issue is I want my submitted form to look like the form I built in dreamweaverwith the tables and spaces etc. Is there a way to do this?

    The PHP mail() function uses plain text. To format the output of the user input as a table, you would need to create an HTML email, wrapping the user input in table tags. Example #4 in the PHP mail() manual page shows how to create HTML email: http://docs.php.net/manual/en/function.mail.php.

Maybe you are looking for

  • JInternalFrame problem

    Hello, I've got a JFrame class like this : public class FrameTest extends JFrame public JFrameTest() JDesktopPane desktop = new JDesktopPane(); this.setContentPane(desktop); desktop.setDragMode(JDesktopPane.OUTLINE_DRAG_MODE); Test panelTest = new Te

  • My macbook pros issue with battery.

    I have a 13-inch macbook pro thats model was probably released around mid 2012. Last week I found my macbook to be completly off, I tried the power button, it didnt work, even though It was plugged in. But the charger was not even lit. I checked on a

  • Trying to continue living with a basic phone-Trying

    Well I got off a 2 year plan about 4 months. Ive been on Verizon for roughly 10 years. I enjoy the simplicity of a basic phone. All I need is a decent camera, a qwerty pad and I'm good. My problem is that all of the basic phones Verizon makes are pre

  • N96 Bugs I've noticed

    Generally pleased with my new N96 which replaces my ageing N95 but i have noticed two bugs. I am using a simfree, nokia shop purchased N96 update to SW v11.101.098.1. BUG 1: I've imported my contacts from my N95 and i cannot set defaults for email ad

  • When I click the preview icon it does not load.

    When I click the Preview icon ti does not load. what can I do?