How to find the costliest course from the below table.

dear experts,
please help me to find the costliest course from the below data
COURSE         CCOST
pgdca           4500
dca             7200
mca            22000
dcp             5000
pgdca           4500
dap             6200
dcap            5200
hdcp           14000
pgdca           4500
dca&p          11000

Then read the FAQ for how to post a question on the forum.
1. You didn't say anything about using an Oracle database or what your 4 digit version of Oracle is.
2. You didn't provide a table name, the table DDL or insert statements to create the table and data
3. You didn't post the queries that you tried to write and tell us whether they work or not.
4. You didn't tell us when this homework assignment is due or that you needed a query.
This isn't a coding service. The forum is to help you with questions or issues you are having with YOUR queries.
No one can write a query without having a table. If you want help post the info requested above.

Similar Messages

  • How to find the database table behind the xtags  varibles?

    if in xtags we find that some varibles are not having the right data coming from xml -> database tables so how can we find out the names of database table behind it .
    <!-- <xtags:variable id="msds" context="<%=specs%>" select="//header/msds"/>
    <a href="/MSDS/<%=msds%> target="#">MSDS</a>
    -->
    now how to find the database table and the column name of database table from which the value of id msds is coming
    Here they have stored the name of pdf file . from this code pdf file is displayed

    Hi,
    Thanks for your response. It is PM related.  When I run a T Code - IK18,  the field Total Counter Reading field appears. I am looking for that particular fields actual table name and field name.  I think I have found it in IMGR table. Now I want to get IMRG-READG in my report, but there is no common fields in neither MKPF or MSEG table. So what can I do to connect IMRG table with either of them ?

  • How to find the Source Table in one corresponding schema?

    Hi All,
    How to find the Source Table in one corresponding schema?
    regards,
    DB

    DB wrote:
    Hi All,
    How to find the Source Table in one corresponding schema?
    regards,
    DBHUH?
    I do not understand your question
    How do I ask a question on the forums?
    SQL and PL/SQL FAQ

  • How to find the new tables and columns in a schema

    hi..good morning to all...
    I have a schema ABC which owns some objects.
    Now some days before I have made another schema XYZ which was a replica of ABC schema.
    between these days some new tables, new columns in the existing tables(with or without default value), comments on the columns are being added in the new schema i.e XYZ schema.
    Now I have to find the extra things which are present in the new schema. I need to find the new tables, new columns in hte existing tables, their default values and descriptions of those.
    Can u plss help me how can I find it?
    I am guessing that I have to write a SQL query with a minus clause but I am not able to write it and also dont know where should I execute it.
    plss help. thanks in advance.

    And moreover, when I am executing the query to get the desired result, then it is throwing "illegal use of long datatype" error and pointing to the b.data_default area of my query..
    select a.table_name, a.column_name, b.data_default, a.comments from all_col_comments a, dba_tab_columns b
    where a.TABLE_NAME=b.TABLE_NAME
    and a.OWNER=b.OWNER
    and a.OWNER=XYZ
    minus
    select c.table_name, c.column_name, d.data_default, c.comments from all_col_comments c, dba_tab_columns d
    where c.TABLE_NAME=d.TABLE_NAME
    and c.OWNER=d.OWNER
    and c.OWNER='ABC'
    order by 1, 2;
    plss help...

  • How to find the data table sin CRM 4.0

    Dear Guru's
    I want to know where can i get all the data tables in crm 4.0 for example if i want to know the data table for the Reason in activity Management.with the help of data table only the ABAP people can work.....na
    Points willbe given
    With Best Regadrs
    Sreeram Raghu

    Hi Raghu,
    There are many techniques in which you could find the database tables, few of them are given below:
    - Place your cursor in the field for ex: reason in activity and press F1
    - In F1 screen(performance assistant), Click on Technical Information (fourth button from left), you can find here the database table name.
    Another Option:
    - Go to transaction SE11
    - In Database Table Field type few letters, for example to find all the activity table type * act * and then press F4, all the tables related to activity will be displayed
    Wish this was useful to you
    regards
    Srikantan

  • How to find the dates table in T.CODE:CRMD_ORDER

    Hi ,
    Where to find the dates at sales order header level (General tab)as well item level in Transaction code: CRMD_ORDER.
    I did not see any internal table for this Dates in the FM CRM_ORDER_READ and i have tried with F1 help but is a ALV grid.
    Could any one help me to find the dates table.

    Hi,
    The dates are populated in the table IT_APPOINTMENT of FM CRM_ORDER_READ.
    if you want to populate the dates in any business order in crmd_order, then u can put a debugger in FM 'CRM_ORDER_MAINTAIN', open any business order, populate the date at header and item level and press enter.
    check the table IT_APPOINMENT table and the corresponding values that need to be populated.
    Hope this helps!!!
    Prerna

  • How to find the largest tables in EBS

    Hi gurus,
    Oracle EBS R12.1.2
    Linux x86-64
    RDBMS 11g
    How can I find the top 10 largest tables in EBS - in terms of size (KB/MB)? pls send me the Query and also direction from where (which Schema) should I run that query?
    -- TIA

    Hi;
    I suggest check below threads:
    How to know which is the largest table in my oracle database??
    Find Largest Tables in 9i Database
    Query to find biggest table in oracle ERP database?
    Those links should give you answer of your questions.
    Regard
    Helios

  • How to find the database table for this screen field

    hi in XD02
    There is a scrren field customer
    name1 (firt line under name)
    and email id fields
    i wnat to know where the data stores goes w hen user eners in this screen i mean in which table and how to find it
    for kunnr name1 i suppose it goes to kna1 but how to find it?
    and f or email id whre it gots which table
    regards
    Arora

    Hi,
    when you press F1 it will give the necessary information
    but some times it may give the structure names also
    those structures are being used by the back end module pool
    programm
    so every time we can get the exact information about the
    data type or length
    but not sure that every time we get the exact database table name
    and field name
    according to me, if i dont know where some field are getting stored in
    database ( if the field name and table is structure )
    then i will ask my functional consultant ...
    thanks & regards,
    Venkatesh

  • How to find the DB tables used by the workbook/worksheet

    Hi,
    I wonder if there is a way that we can query the EUL tables (e.g. eul5_documents, etc) to find out the database tables that are used by a specific workbook.
    Please advise and thank you very much,
    Yke

    There is no "direct" way to do this. If a report has been run at least once, though, you may be able to find out what you want (but it will require a bit of work).
    From the EUL5_QPP_STATS table, you can find the workbook (qs_doc_name) and worksheet (qs_doc_details). You can then use the qs_object_use_key value to find the objects, which will give the tables. You could try:
    select obj_ext_owner || '.' || sobj_ext_table
      from eul5_objs
    where instr ((select qs_object_use_key
                    from eul5_qpp_stats
                   where qs_doc_name = <workbook>
                     and qs_doc_details = <worksheet>
                     and qs_created_date =
                        (select max(qs_created_date)
                           from eul5_qpp_stats
                          where qs_doc_name = <workbook>
                            and qs_doc_details = <worksheet>)),
                 obj_id) > 0;This should give you the tables used for the last execution of the workbook.

  • How to find the error table

    If an error occured in the program while running, in which table  this error  is stored and how to get the message no.

    Hi,
    Doubleclick the error message and you get the message id and message number, then use transaction SE91 (or look in table T100T).
    Regards,
    John.

  • How to find the Check table for a field ?

    Hello All,
            I have the filed name f1.
    Now I want to know the check table of this field programatically and if this field has a configuration table then I need that table also.
    eg: if werks is the field the Master         Table is : MARC
                                    and Configuration Table is : T001W.
    Is this possible first of all programatically ?
    If yes can anyone help me out ?
    Regards,
    Deepu.K

    Hi again,
    1. I don't know the master table for the field werks
    A field is never independent. It is always linked to a table,
    otherwise the information is only half.
    2. So incase if we do not know the tablename,
       its best to query the table DD03L with WERKS,
      and filer out CHECKTABLE with *,
      and take any one record.
    regards,
    amit m.

  • How to find the unused tables in a schema

    Hi All,
    I have a schema in my database in which some of my web portals runs. I have n number of tables in the schema but I beleive some of the tables which are not using for a long. How do I find those or list those tables which are not using for long?
    Please help,
    -Thanks & Cheers
    Antony

    Although your question is directed to Aman, I want to let you know that auditing "will" affect the performance of the database. And auditing will catch select statements too even using "successful and nonsuccessful" selects
    Kamran Agayev A. (10g OCP)
    http://kamranagayev.wordpress.com
    [Step by Step install Oracle on Linux and Automate the installation using Shell Script |http://kamranagayev.wordpress.com/2009/05/01/step-by-step-installing-oracle-database-10g-release-2-on-linux-centos-and-automate-the-installation-using-linux-shell-script/]

  • How to find the table in which data from a structure sits

    Hi,
    I want to know how to find the exact table where data sitting in various structures during runtime are stored.
    For instance,in ME23N we have various tabs and data in those are held in various structures. This we can see by checking the technical setting of each field.
    I want to know in which table the data is actually stored for each field and how to find them.
    Any other means other than using "WHERE USED" option?
    Thanks
    CM

    After checking for technical field from the screen, when you reach out to structure, you can dbl click on the particular field's data element. From this data-element you can get to know in which tables it is used. Also if the data element refers to some master data field then you can check out its domain and in the domain you can refer the<b> value table</b> for that domain. This is what i will do if i am not sure about anything.
    Hope it will help a little.
    Jignesh.

  • Finding the DB Table

    hi Guys ,
    VBMTV is  a structure i have to find out the corresponding table .. how to find the corresponding table
    can any give the solution for this ,,
    Regards,
    Y Ravichandra.

    Hi ,
    Structure VBMTV is not used directly in any table .
    But a few function modules and programs are using thisstructure.
    FM SD_SELECT_SALES_ORDERS_WWW using the the fields of the structure of VBMTV ,
    select records from the table like - -    VBKA , VBFA etc.
    To get more information use the where used list as described in the other posts.
    Regards
    Pinaki

  • How to find the number of fetched lines from select statement

    Hi Experts,
    Can you tell me how to find the number of fetched lines from select statements..
    and one more thing is can you tell me how to check the written select statement or written statement is correct or not????
    Thanks in advance
    santosh

    Hi,
    Look for the system field SY_TABIX. That will contain the number of records which have been put into an internal table through a select statement.
    For ex:
    data: itab type mara occurs 0 with header line.
    Select * from mara into table itab.
    Write: Sy-tabix.
    This will give you the number of entries that has been selected.
    I am not sure what you mean by the second question. If you can let me know what you need then we might have a solution.
    Hope this helps,
    Sudhi
    Message was edited by:
            Sudhindra Chandrashekar

Maybe you are looking for

  • Daily report for system

    hi,    Actually we are configured SAPRouter and maintain service connection for all system in landscape.      Do we need prepare any daily system report through solution manager.    Plz suggest me Manoj

  • Transferring data to a New Hard Drive?

    Is there a way to transfer everything from my Main Hard drive (boot volume, programs, plugins, etc.) to an external firewire drive and then back onto a new larger hard drive that will replace the old one with any certainty that it will work without d

  • Rearranging song order in Playlist - any help please?

    Folks, I have put together a playlist for a party and it is ~3 hrs long. I would like to move some of the songs around, perhaps listening tracks earlier, fast paced then dancing tracks later. I thought it would be easy enough to just drag tracks up o

  • How do I search all Contacts fields in the Q5 with OS10.2?

    Blackberry appear to be advancing backwards with their new Q5 and 10.2 operating system. I originally bought the Blackberry specifically for its ability to search into the notes field of email contacts, which no other phone could do at the time. When

  • Working with Pop-Up windows

    Hi, heres my requirement: To open a pop-up window onclick of a link from the parent window. Parent window has a data-table and a column called 'StatementInfo' which shows the statementNumber as a h:commandLink. When i click on the statement number i