Want that output SQL group

I have a request in the form

Select Group, bill, table Qty.

and output as below

Advantage Bill Qty

=== ===== =======

x 1 XXX 50

x 1 XXX 50

x 1 XXX 60

Y1 YYY 23

Y1 YYY 50

but I want to output as below

Advantage Bill Qty

=== ===== =======

x 1 XXX 50

50

60

Y1 YYY 23

50

How can I get this help please

Hello

If you use SQL * more then you simply need to use 'BREAK' (and an ORDER BY.)

WE BREAK bill WE left

SELECT Bill, part Qty.

FROM MyTable

ORDER BY 1, 2, 3

;

Best regards

Bruno Vroman.

Tags: Database

Similar Questions

  • I want to load a group of e-amails with a description - members of the Committee with different addresses e-Navy

    I want to create a group of emails with a name, for example. Beheerliggaad, and then add the members email addresses, so that when I want to send an e-mail to Beheerliggaam enter only the name of "Beheerliggaam" and it sends the message to all members of the Governingbody

    Hello

    You can create a list, go to Thunderbird, click on address book > > new list, then you choose a name to the list and enter emails

  • I want to remove the group members in AD

    I want to remove the group members in AD using c# currenlty referring to the code on MSDN avliable

    http://msdn.Microsoft.com/en-us/library/Windows/desktop/aa772133 (v = vs. 85) .aspx

    but make error on line

    objGroup = objADAM.Children.Find (strGroup, 'group');

    Error message:-there is no such object on the server.

    Please suggest

    Hi Stephen,.

    I understand that you need to remove the Member of group in AD.

    The problem you are having is more complex than what is generally answered in the Microsoft Answers forums. It is better suited to the MSDN forums.

    Please post your question in the MSDN Forums.

    You can follow this link to ask your question:

    http://msdn.Microsoft.com/en-us/vstudio/aa718325.aspx

    For any other corresponding Windows help, do not hesitate to contact us and we will be happy to help you.

  • Second row changes show that when I Browse. I want that changes to the show time.

    Mr President

    There is a problem that changes line second, display in the user interface only, when I navigate back or forward.

    I want that changes should show both.

    My code is

    First line of Code

        public void addNewPurchaseVoucher(ActionEvent actionEvent) {
            // Add event code here...
            
            BindingContainer bindings = BindingContext.getCurrent().getCurrentBindingsEntry();        
                   DCIteratorBinding dciter = (DCIteratorBinding) bindings.get("VoucherView1Iterator");        
                   RowSetIterator rsi = dciter.getRowSetIterator();        
                   Row lastRow = rsi.last();        
                   int lastRowIndex = rsi.getRangeIndexOf(lastRow);        
                   Row newRow = rsi.createRow();        
                   newRow.setNewRowState(Row.STATUS_NEW);        
                   rsi.insertRowAtRangeIndex(lastRowIndex +1, newRow);         
                   rsi.setCurrentRow(newRow);
                   
                   BindingContainer bindings1 = BindingContext.getCurrent().getCurrentBindingsEntry();        
                   DCIteratorBinding dciter1 = (DCIteratorBinding) bindings1.get("VdetView1Iterator");        
                   RowSetIterator rsi1 = dciter1.getRowSetIterator();        
                   Row lastRow1 = rsi1.last();        
                   int lastRowIndex1 = rsi1.getRangeIndexOf(lastRow1);        
                   Row newRow1 = rsi1.createRow();        
                   newRow1.setNewRowState(Row.STATUS_NEW);        
                   rsi1.insertRowAtRangeIndex(lastRowIndex1 +1, newRow1);         
                   rsi1.setCurrentRow(newRow1); 
        }
        
    

    Code of the second row

        protected void doDML(int operation, TransactionEvent e) {       
            setAmount(getPurqty().multiply(getUnitpurprice()));
          
            if (operation == DML_INSERT) 
                       {                     
                        
                        
                           insertSecondRowInDatabase(getVid(),getLineitem(),getDebitst(),
                            (getPurqty().multiply(getUnitpurprice()).multiply(getStaxrate())).divide(100)); 
                           }
                          
                           if(operation == DML_UPDATE)
                           {
                               System.out.println("I am in Update with vid= " + getVid());   
                           updateSecondRowInDatabase(getVid(),getLineitem(),getDebitst(),
                             (getPurqty().multiply(getUnitpurprice()).multiply(getStaxrate())).divide(100)); 
                          
                             
                           }                      
                   
           
            super.doDML(operation, e);
        }
        private void insertSecondRowInDatabase(Object value1, Object value2, Object value3, Object value4) 
                  { 
                    PreparedStatement stat = null; 
                    try 
                    { 
                      String sql = "Insert into vdet (VID,LINEITEM,DEBITST,AMOUNT) values " +
                          "('" + value1 + "','" + value2 + "','" + value3 + "','" + value4 + "')"; 
                      System.out.println("sql= " + sql);   
                      stat = getDBTransaction().createPreparedStatement(sql, 1); 
                      stat.executeUpdate(); 
                    } 
                    catch (Exception e) 
                    { 
                      e.printStackTrace(); 
                    } 
                    finally 
                    { 
                      try 
                      { 
                        stat.close(); 
                      } 
                      catch (Exception e) 
                      { 
                        e.printStackTrace(); 
                      } 
                    } 
                  } 
                 
                  private void updateSecondRowInDatabase(Object value1, Object value2,Object value3, Object value4) 
                  { 
                    PreparedStatement stat = null; 
                    try 
                    { 
                      String sql = "update vdet set DEBITST='"+ value3+"',AMOUNT='"+ value4+"' where VID='" + value1 + "'";  
                      System.out.println("sql= " + sql);     
                      stat = getDBTransaction().createPreparedStatement(sql, 1); 
                      stat.executeUpdate(); 
                    } 
                    catch (Exception e) 
                    { 
                      e.printStackTrace(); 
                    } 
                    finally 
                    { 
                      try 
                      { 
                        stat.close(); 
                      } 
                      catch (Exception e) 
                      { 
                        e.printStackTrace(); 
                      } 
                    } 
                  }
    
    
    

    Concerning

    The validation on the .jspx page button, try to rerun the query after the operation of posting as:

      public String commitAction()
      {
        OperationBinding operationBinding = BindingContext.getCurrent().getCurrentBindingsEntry().getOperationBinding("Commit");
        operationBinding.execute();
        DCIteratorBinding iter = (DCIteratorBinding) BindingContext.getCurrent().getCurrentBindingsEntry().get("ViewObject1Iterator");// write iterator name from pageDef.
        iter.getViewObject().executeQuery();
        return null;
      }
    
  • I want that return activity indicator.

    I want that return activity indicator. I avoided upgradeing Firefox for a year because I want to. Stop taking our older features away.

    NO, it's not as good whether on each tab. I want to look in ONE PLACE each time. It's much better for consistency.

    What's new on: preferences page has replaced the previously used stand-alone Options/preferences window.

    You can enable/disable browser.preferences.inContent false on the subject: config page via double click to restore the autonomous Options/preferences window you had in previous versions of Firefox.

    You can open the topic: config page via the address bar.
    You can accept the warning and click on "I'll be careful" to continue.

    Note that the extension of the CTR has a checkbox for this under "Advanced > Preferences tab.»

  • I can't my auto signature to look how I want that she keeps returning to the text without spaces

    I can't my auto signature to look how I want that she keeps returning to the text without spaces

    Put

    < br >

    everywhere, you want a line break.

    for example

    My phone number is 01937 534183 if you wish to discuss. < br >
    < br >
    Thank you, < br >
    < br >
    Oliver

  • When I open firefox, a small "user toolbar' window opens on the upper right side, I don't want that.

    When I open firefox, a small user toolbar window is displayed at the top right, please help as I don't want that, I close it, but it takes a lot of time to close and he hings to the top a bit evrytime.

    This might be a feature of an add-on. Could you check to see if you have any unknown Add-ons and disable (or remove). In particular:

    Orange Firefox button or classic menu Tools > Modules > category: Extensions

    Then restart Firefox and watch the toolbar, we hope that it does not appear.

    You could also paste a list of your extensions here for review. You can copy from this page:

    Help > troubleshooting information

    This is the second table, which appears under the header Extensions.

  • Since I downloaded El Capitan I get a notice of entry of device of 'Santa Barbara School District' saying that they can automatically configure my Mac!... I don't want that at all

    Since I downloaded El Capitan I get a notice of entry of device of 'Santa Barbara School District' saying that they can automatically configure my Mac!... I don't want that at all!... It appears every 30 minutes or so... El Capitan is safe?

    The computer has a serial number which is included in a registration of devices belonging to an organization. If you do not belong to this organization and that you didn't acquire the device with him, then there was an error or the device (or the logic board) is stolen. If the unit was purchased used, for example on Ebay, or if the card has been replaced by an unauthorized service provider, then it is almost certainly stolen goods. Otherwise, you must take the device to an Apple Store or to an other authorized service provider to have serial number has changed. May asked you proof of ownership.

  • How to eliminate the bar pop up asking if I want that it to remember passwords

    Even though I tried to ask this question,
    the 'key' boring area has dropped down
    to ask me if I wanted that she remember
    the new password.
    How can I get rid of this?

    See:

    • Firefox/tools > Options > Security: passwords: [] "Remember passwords for sites".
  • When I start a new search of yahoo tab comes and I don't want that. How to make a different website to open?

    When I start a new search of yahoo tab comes when I start a new search yahoo tab comes and I don't want that. How to make a different website to open?

    You need to understand what you installed that changed this action to Yahoo on a blank tab, which is the default action in Firefox; and then get rid of this add-on. Then you can install an add-on that allows you to select what you want in the new tab.

    https://addons.Mozilla.org/en-us/Firefox/addon/NewTabURL/

  • When I click on an e-mail on a web page, I want that it open / compose new messages in GMAIL (currently it uses Windows Live Mail). How do I?

    When I click on an e-mail on a web page, I want that it open / compose new messages in GMAIL (currently it uses Windows Live Mail). How do I?

    See this:

    http://support.Mozilla.com/en-us/KB/changing+the+e-mail+program+used+by+Firefox

  • Is it possible to command Z2, without invoice Tablet? CUS I want that he order it as a gift.

    Is it possible to command Z2, without invoice Tablet? CUS I want that he order it as a gift.

    Thank you

  • "you can be a victim of software counterfeiting" displayed on desktop, how do I close or I just wanted that he appears on the desktop can you give me direct answer to the question?

    You may be victim of software counterfeiting"displayed on desktop, how do I close or I just wanted that he appears on the desktop can you give me direct answer to the question?

    Hi k.Ramesh99905,

    ·         How Windows XP has been installed on the computer?

    ·         Has it preinstalled on the system when it was purchased?

    ·         Did you change to the computer?

    Method 1: Try to validate the copy of Windows and see if it helps.

    Genuine Microsoft software

    Method 2: Check if Windows XP is enabled. If this is not the case, try to activate to check the issue.

    How to activate Windows XP

    Respond with more information so we can help you best.

  • On my laptop, my google toolbar sharing the same line with the menu bar, I want that on my desktop PC, all have XP w/SP3

    On my Toshiba laptop that my Google toolbar is on the same line as the menu bar, I want that on my Dell desktop computers. All have Xp w/SP3. All computers are olde, and I am rich with time, but poor in cash. Thanks - L

    Hello

    What version of internet Explorer that you are using?

    You can unlock the toolbar then click, hold and drag the toolbar on the same line of the menu bar.

    Unlock toolbars to customize their

    Hope the helps of information.

    Please post back and we do know.

  • I want to stop the groupping of my mails and each have a limit

    I want to stop the groupping of my emails and return to each of them being limit

    I want to stop the groupping of my emails and return to each of them being limit

    While in the Inbox: view | Current view.  Show all Messages must be the only option checked. No chat Messages. Bruce Hagen
    MS - MVP October 1, 2004 ~ September 30, 2010
    Imperial Beach, CA

Maybe you are looking for

  • El Capitan will never support a Microtek ScanMaker X 12 USL?

    When will you update this ugly OS so people can use scanners that worked with Yosemite? I'm fed up with El Capitan. All I want to do is be able to reuse my Microtek ScanMaker X 12 USL. It worked very well with Yosemite and Vuescan has issued software

  • How can I change the "right click" menu for a table control?

    Hello How can I change the "right-click menu" of a table control. I would like to be able to remove the ability to add or remove columns and maybe more selections. I want to keep the possibility of Add or remove lines

  • Export the graph to image: a few questions

    A few questions. (1) what does export average image "simplified"? (2) the invoke node export the Image export the image or simplified? (3) export the image to a .eps file, what I get is a picture of real vector graphic? Thank you

  • compromised administrator account

    My administrator account has a virus and it cannot me access other programs when you are prompted for the password (while in the guest account). I can not even sign my administrator account it gives me a weird message and then turns off my computer.

  • Compaq cq58 no sound

    Hi, I've updated my laptop to windows 8 (when its a well) to 8.1 windows where it is not. If I go to control panel and uninstall the realtek drivers, then reinstall the sound works, until I turn off (yes I know - don't go off then :-)). When the comp