Display mgrno, and salary  exlude groups where sal 1000  sort in desc.

Since we are all on a roll and you guys rock I have 3 more left. If I didn't have this help I would fail this college course becuase i had 55 problems to do and these were the end of the class problems that I had no idea how to do them. I really appricate the help.
From what I already know:
ORDER BY MIN(SAL) DESC
I need to display the manager number and the salary of the lowest paid employee for that manager. Exclude anyone whose manager is not know-n. Exclude any groups where the minimum salary is less than $1000. Sort the output in descending order of salary.
          MGR     MIN (SAL)
          7566          3000
          7839          2450
          7782          1300
          7788          1100

You should treat every one for doing your homework
Right Eric :-)
Here we go
SQL>  SELECT a.mgr,min(a.sal)
  2   from emp a,emp b
  3   where a.mgr=b.empno
  4   GROUP BY A.MGR
  5   ORDER BY 2 DESC
  6   
SQL>  
SQL> /
       MGR MIN(A.SAL)
      7566       3000
      7839       2450
      7782       1300
      7788       1100
      7698       1045
      7902        880

Similar Messages

  • Sales order simulation bapi and material price group???

    Hello every one...
    I am calling BAPI_SALESORDER_SIMULATE to get the pricing simulation of a sales order, My requirement is that I want to enter Material Pricing group (KONDM) so that pricing be simulated according to the material pricing group I enter..... but the simulation bapi does not provide this field,,, I cannot use sales order create from data2 bapi,, as it does not provide condition table as output, which is also my core requirement,,, my question is that is there some bapi/fm where I can provide material pricing group along with other info and retrieve complete simulation of sales order pricing with condition details aswell....
    thanks

    Managed it using abap memory and prepare hearder info user exit routine

  • I want to pay for a MacBook pro 15 inch with retina display online and send someone to pick it up from a store is it possible if ok who and where contact me

    I want to pay for a MacBook pro 15 inch with retina display online and send someone to pick it up from a store is it possible if ok who and where contact me
    <Email Edited by Host>

    When you order a MBP you can have it delivered at any Apple retail store.  When you get the e-mail that the MBP is ready to be picked up, you have options to enter in the rersponse if you or someone else will pick it up.  You will have to fill in some required information that will identify that person to the store personnel. 
    I had my last MBP delivered to the local store, but I picked it up.
    Ciao.

  • Keep Profit Centre and Account Assigment Group as non-editable in sale orde

    Hello Experts
    We are maintaining profit centre and account assignment group as mandatory field in Material Master.
    However when we create sales order the data comes in editable mode and users can do the editing in the same. My client requirement is to keep this field as grey (i.e. should not be editable). How to do this.
    Please help.
    Regards
    Hitesh

    Hi
    Your requirement can be acheived through exit;
    Try User exit form USER_EXIT_FIELD_MODIFICATION Program: MV45AFZZ
    Regards
    Chandrasekhar

  • Where did the time display go and why is the screen stuck on master track? Thanks.

    My time display disappeared and the screen is stuck on master track. Any ideas? Thanks.

    If the GarageBand application window appears to be messed up, parts missing, or in the wrong place, it might be a problem of corrupted preferences files. Try to repair permissions and to remove the file "Your Home Folder/Library/Preferences/com.apple.garageband.plist" from your user library.
    See HangTime's fix for "oddball problems":
    http://www.bulletsandbones.com/GB/GBFAQ.html#oddballprobs
    (Let the page FULLY load. The link to your answer is at the top of your screen)
    Is your profile signature "GarageBand '09, Mac OS X (10.5.8)" still current, John? If not, and you are now using Lion or Mt. Lion, the User Library will be hidden.
    Then you can reveal it from the Finder's "Go" menu:
    Finder > Go,   then hold down the options ⌥ key, until the Library appears in the drop-down menu, select it and open the Library folder. Then go to the "Preferences" sub folder and remove com.apple.garageband.plist.
    Regards
    Léonie

  • Creation of Campaign Id and assign Target Group to it.

    Hi all,
    I am facing a problem in creating a Campaign Id. This is the first time i am working on CRM Marketing Campaign, and i dont know the process of creating a Campaign id for a Target Group created for BP's. Please do help me in providing me any program or link where i can find the sample programs for creation of campaign id, Campaign Element, Profile Set, Target Group, Assigning BP's to Target Group.. I am presently using the below mentioned function modules/BAPI's for creation of Profile Set, Target Group etc.,
    For Profile Set Creation:                                         BAPI_PROFILESET_CREATE
    For Target Group Creation:                                    BAPI_TARGETGROUP_CREATE
    For Assigning Target Group to Campaign:             MKTPL_TGGR_ASSIGN_CREATE
    for Campaign Element:                                            MKT_ELEMENT_CREATE
    Please provide me complete program to explain the above.
    Thanks in Advance,
    Nagesh Thanneeru.

    hi,
    Target group is a group of BP, like a BP list.  It's a kind of master data which can be used in business transaction.
    And profile set is a base of target group, just like Product Hierachy and Product category.  Each target group should belong to a profile set. So create the profile set, before you create target group.
    Campaign is a kind of Marketing element of CRM Marketing.  In campaign, it need the BP or BP group or Target Group as its campaign objectives. Just like Customer of Sales Order, Vendor of Purchase order.
    Campaign can be assigned several target groups or BP or BP groups in it.
    So if you want to create campaign and assign target group to it, the steps is:
    1.  create a profile set  by BAPI_PROFILESET_CREATE
    2. create target group by BAPI_TARGETGROUP_CREATE, in this calling, you will use the profile set created before.
    3. create campaign by MKT_ELEMENT_CREATE
    4. assign the target group to your campaign, by MKTPL_TGGR_ASSIGN_CREATEl, the target group comes from step 2, the campaign comes from step 3

  • Order type and Item category group

    Can anyone tell me which is the relation between order type and Item category group from material master ??
    In fact the problem is that I have created a material and when I want to create new sales order it gives me this errror:
    "No item category available (Table T184 ZORDER ZITGR)"
    Is there a tranzaction where I can assign Item category group ZITGR to sale order type ZORDER or something like that??
    What should i do?

    Hi Dan,
    Goto T-Code VOV4 and maintain the table
    Sales Doc type + Item Category Group + Usage + Higher level Item Category = Item Category
    TA + NORM + Nil + Nil = TAN
    If you have Customized your own Document Type and Item Category Group and Item Category then give your
    Sales Doc type (ZORDER)+ Item Category Group (ZITGR)+ Usage + Higher level Item Category = Item Category (ZTAN)
    Reward if helpful
    Regards PAVAN

  • How to Assignment between Material and Account Assignment Group

    Hi,
    When we are creating a sales order with material ABCD, then in material line item -->under Billing Document Tab --> in Accounting screen, there is field Acct asgnmt grp (Account Assignment Group).
    From where we can assign between Material and Account Assignment Group, after that it automatically pick in sales order creation.
    Please guide..

    Please refere to below link it may help.
    Re: how to configure new account assignment group of material
    Thanks Dev.

  • Issue with how Mail displays sender and recipient names in message list

    Hi everyone!
    I've been looking for a solution but had no luck so far.
    Here's the issue:
    In Mail, the sender email address or the recipient name would sometimes be displayed twice between chevrons.
    For example, sometimes in my sent folder, in the "To" column, the recipient name is displayed twice like this <[email protected]> <[email protected]> whereas it used to be displayed once and without chevrons. This happened since i have reinstalled Snow Leopard (clean install).
    Hope someone can help.
    Thanks!

    Henry,
    Please post this question on the weblogic.developer.interest.integration
    newsgroup.
    Regards,
    Raj Alagumalai
    Backline Workshop Support
    "Henry Mugasha" <[email protected]> wrote in message
    news:[email protected]..
    Hi,
    I am using a Task Control Factory to create Task Control Instances in aloop
    and then
    create tasks and assign them to a predefined group. I have an event choice
    for two events
    waiting for the onTaskCompleted and onTaskAborted event call backs.
    I have two such operations (of task creation) in the same loop. For
    simplicity I have used two separate task factory controls for each of the
    tasks (because I even had worse problems using a single control factoryfor
    both tasks in the same loop).
    When I instantiate the process, through work list I am able to claim,start
    and complete the first task. When I try the same procedure (claim, startand
    complete) on the second task, the the event choice for the corresponding
    task receives 2 event call backs. First it receives the onTaskCompleted as
    expected, but then it also received another call back of the same typewhich
    displays the error on the server log as:
    <Sep 24, 2003 9:43:56 AM EDT> <Warning> <WLW> <000000> <on process
    completion, 1 undelivered messages to
    'sampleRequestTaskFactoryCtrl_onTaskCompleted'>
    <Sep 24, 2003 9:43:56 AM EDT> <Warning> <WLW> <000000> <ejbLoad:
    Conversation 1064411008439:null not found>
    <Sep 24, 2003 9:43:56 AM EDT> <Warning> <WLW> <000000> <A message wasunable
    to be delivered from a WLW Message Queue. Attempting to deliver the
    onAsyncFailure event>
    <Sep 24, 2003 9:43:56 AM EDT> <Warning> <WLW> <000000> <ejbLoad:
    Conversation 1064411008439:null not found>
    Does anybody know why two events are fired for the same work list action?
    Thanks in advance.
    Henry M

  • Requirement: Customer account Group wise Sale area Allowed

    HI
    My client Requirement is Based on the account group system will allow few sales areas at the time of creating the Customer master
    Is it possible in SAP if Yes please guide what are settings required
    if No how to achieve this requirement
    Regards,
    Prasanna

    Hi
    As of my understanding we use account group for:
    1. Controlling Number Range
    2. Controlling fields (Display, Hide , Mandatory)
    3. Partner Functions.
    Now to control the Account Group for Sales Area  might not be possible (Please do check at your end).
    Here is a suggestion , if the master's are created by different user's try controlling it through Authorizations.
    And , use the number range as a criteria to identify the as like, Domestic customer no range 110001--1199999
    Export customer no range 220001--2299999.
    And also you can use the sale office and sale group from the Authorization control point of view , reporting point of view.
    Thanks...................Rishi

  • Customer Group wise sales

    hi
    is there any standard report to check customer  group wise sales.
    Rajendra

    Hi Rajedra Prasad,
    Please find below the Some of the Standard Reports in SD:
    Sales summary - VC/2
    Display Customer Hierarchy - VDH2
    Display Condition record report - V/I6
    Pricing Report - V/LD
    Create Net Price List - V_NL
    List customer material info - VD59
    List of sales order - VA05
    List of Billing documents - VF05
    Inquiries list - VA15
    Quotation List - VA25
    Incomplete Sales orders - V.02
    Backorders - V.15
    Outbound Delivery Monitor - VL06o
    Incomplete delivery - V_UC
    Customer Returns-Analysis - MC+A
    Customer Analysis- Sales - MC+E
    Customer Analysis- Cr. Memo - MC+I
    Deliveries-Due list - VL04
    Billing due list - VF04
    Incomplete Billing documents - MCV9
    Customer Analysis-Basic List - MCTA
    Material Analysis(SIS) - MCTC
    Sales org analysis - MCTE
    Sales org analysis-Invoiced sales - MC+2
    Material Analysis-Incoming orders - MC(E
    General- List of Outbound deliveries - VL06f
    Material Returns-Analysis - MC+M
    Material Analysis- Invoiced Sales - MC+Q
    Variant configuration Analysis - MC(B
    Sales org analysis-Incoming orders - MC(I
    Sales org analysis-Returns - MC+Y
    Sales office Analysis- Invoiced Sales - MC-E
    Sales office Analysis- Returns - MC-A
    Shipping point Analysis - MC(U
    Shipping point Analysis-Returns - MC-O
    Blocked orders - V.14
    Order Within time period - SD01
    Duplicate Sales orders in period - SDD1
    Display Delivery Changes - VL22
    Shipment List Planning - VT11
    List of Incomplete Shipments -Try VT04/VT11/VT32
    Delivery without Shipments -Use VL06O
    List of Rebate Agreements   - VB(8
    If not, if it is a small report using ABAP Query you can develop New Report as per your requirment or Using SIS you can Develop you own report.
    Please Reward If Really Helpful,
    Thanks and Regards,
    Sateesh.Kandula

  • Date and Salary validation at EO level.

    Hi All,
    I have two fields Salary and Date both are present at EO level
    I need to write a validation that if the date of birth entered on UI is more than 50 years as of today then salary should not be less than 5000
    Ex: if date entered is 02-02-1961 and salary entered is 4500 then it should throw an error message on click of the button.
    There are many custom validations at eo level but exactly where should this be done.
    Thanks,
    Arun

    Thanks All ... Actually i have binded the UI fields and in the bean i have written the following code and calling it on click of a button and its working... Anyhow i will try the other options also such as using groovy and writing the code in eoimpl provided in this thread .... The code which i have written is as follows but is it the right approach please let me know
    public void comm() {
    oracle.jbo.domain.Number s = (oracle.jbo.domain.Number)sal.getValue();
    oracle.jbo.domain.Date ds = (oracle.jbo.domain.Date)dob.getValue();
    java.util.Date sa = convertDomainDateToUtilDate(ds);
    System.out.println("The dob is "+sa);
    Calendar cl = Calendar.getInstance();
    cl.setTime(new java.util.Date());
    cl.add(Calendar.YEAR, -50);
    java.util.Date toDate = cl.getTime();
    System.out.println("The 50 years before date is "+toDate);
    if ( sa.before(toDate) && s.intValue() < 5000) {
    FacesMessage msg =
    new FacesMessage(FacesMessage.FACES_MESSAGES,
    "sal should be more than 5000");
    FacesContext context = FacesContext.getCurrentInstance();
    context.addMessage(null, msg);
    } else {
    invokeEL("#{bindings.Commit.execute}");
    public static java.util.Date convertDomainDateToUtilDate(oracle.jbo.domain.Date domainDate) {
    java.util.Date date = null;
    if (domainDate != null) {
    java.sql.Date sqldate = domainDate.dateValue();
    date = new Date(sqldate.getTime());
    return date;
    Thanks,
    Arun

  • Can in know where sales forecasting field will be there in material master

    hi,
    sap gurus,
    good evening to all,
    can i know where sales forecasting field will be there in material master record,
    because its asking that u have not mentioned the status in ur material master record.
    plz help me on this.
    regars

    Dear balaji
    In material master, there is a tab "Forecasting"  which will come after MRP4.  If you select this tab, you can see a field "Forecast model".
    If you are unable to see this tab in MM01, go to OMS2, select the material type and click on blue lens on top left so that you can see a tab "User departments".   Select from here the said tab and save.  Now go to MM01 and you can see the tab displays there.
    thanks
    G. Lakshmipathi

  • Screen Sequence Group in Sales Document

    Hi!!
    Can anyone please help me on how can I configure the screen sequence group? I want to create a new one and assign it to a sales document.
    For example I want to enhance AU (Sales Order). Can this be done as part of config??
    Super Thank You!!

    hi
    This should be done by ABAP consultants. They are authorized for such modification
    IF i understand your question correctly you want a particular screen to ABAPar and not the standard default screen to appear
    for example if a user wants to create a sales order thru VA01. If this is what you are looking for go to V0V8 (doc Type) and there is setting for screen sequence and you can choose which screen you want to appear as VA01 is given, for example if you choose UBST here you can go to the Item detail screen where in you can see the customer material information record if any maintained for that customer.

  • Item category group for Sales of Nonstock Item with Order Specific Procurem

    What will be the item category & group for the material for Sales of Nonstock Item with Order Specific Procurement.So that purchase requestation is created

    Hi
    As of my Understanding  this a scenario of THIRD PARTY SALE WITH SHIPMENT  where delivery will be created . Addition to the previous setting few more changes that need to be accomodated like it has to be delivery related billing - A for item category
    The indicator 'E' will make sure the Stock will be procured only against the particular sale order and it will be delivered only against this sales order. Apart from this there are few more thing need to be done with the Schedule line level
    You need to give the movement type 601, item relevant for delivery need to be checked, order type from the MM side need to be assigned, item category from MM and Account assignment group from MM, all these need to to be maintianed in Schedule line level.
    Infact why not TAS , we can use TAN , or ZTAN itself But as per the scenario we need to do the changes as required.
    Doing all this we can process this order.
    Thanks.................Rishi

Maybe you are looking for