Please help to select data by my condition?

Hi everybody,
I have a problem that I cannot resolved it, so I want to helped to write SQL.
I have a records set as following:
No. |     Name     |     Quantity     | GroupId
1.      John          5          1
2.      Henry          3          1
3.     Mary          6          1
4.     Paul          1          1
5.     Thanh          12          1
6.     Thao          8          1
7.     Dat          4          2
8.     Luan          7          2
9.     Loan          9          2
10.     Nhuan          9          2
11.     Huong          2          3
12.     Cau          1          3
13.     Huu Anh          2          3
14.     Hieu          5          3
15.     Hung          17          3
16.     A          3          4
17.     B          1          4
18.     C          2          4
...and so on (about 15 million records)
I want to get records of each groupid (1 record/group) that sum of first records of each group must be greater than or equal to 10.
For example:
- Group 1: 5 + 3 + 6 = 14 > 10 => Result: No. 3 (Mary)
- Group 2: 4 + 7 = 11 > 10 => Result: No. 8 (Luan)
- Group 3: 2 + 1 + 2 + 5 = 10 >= 10 => Result: No. 14 (Hieu)
- Group 4: 3 + 1 + 2 < 10     => No record returned.
But I don't known how to select it. Can anybody help me?
Thanks in advance!
Edited by: xi`tin on 21:25 04-05-2012

create table hutest (
  no number,
  name varchar2(50),
  quantity number,
  groupid number);
insert into hutest values(1,  'John', 5, 1);
insert into hutest values(2,  'Henry', 3, 1);
insert into hutest values(3,  'Mary', 6, 1);
insert into hutest values(4,  'Paul', 1, 1);
insert into hutest values(5,  'Thanh', 12, 1);
insert into hutest values(6,  'Thao', 8, 1);
insert into hutest values(7,  'Dat', 4, 2);
insert into hutest values(8,  'Luan', 7, 2);
insert into hutest values(9,  'Loan', 9, 2);
insert into hutest values(10, 'Nhuan', 9, 2);
insert into hutest values(11, 'Huong', 2, 3);
insert into hutest values(12, 'Cau', 1, 3);
insert into hutest values(13, 'Huu Anh', 2, 3);
insert into hutest values(14, 'Hieu', 5, 3);
insert into hutest values(15, 'Hung', 17, 3);
insert into hutest values(16, 'A', 3, 4);
insert into hutest values(17, 'B', 1, 4);
insert into hutest values(18, 'C', 2, 4);
commit;
select no,name from (
  select no,name,
         row_number() over (partition by groupid order by groupsumrunning) rn
    from (
      select no,name,groupid,
             sum(quantity) over (partition by groupid order by no) groupsumrunning
      from hutest)
   where groupsumrunning >= 10)
where rn = 1;

Similar Messages

  • PLEASE HELP me select new internal hard drive for Macbook Pro 2012 (non-retina)

    Good afternoon.
    I just bought a Macbook Pro 2012 (non-retina) 15 inch from a friend.  I think it is running Mountain Lion (has not been upgraded to Mavericks yet), and has iLife on it.  It came with the stock 500 gb 5400 rpm internal hard drive.  At home, I only have the Snow Leopard OS installation Cds and a copy of iLife 2011 installation Cds.  I am going to buy 16 gb of RAM from Other World Computing to install.
    I want to replace the hard drive with a 1 tb hard drive, preferably something that is $100 or less.
    I talked to Other World Computing (OWC) and looked at the Data Doubler Option to replace the optical drive with a Solid State drive, but decided that for now I want to keep the optical drive inside the computer for portability issues.
    I know that Solid State drives are better, but they are still too small, and I want the ease and portability of a 1 tb size INSIDE my computer.
    Initially I was going to order this from Other World Computing: 1.0TB 2.5" HGST Travelstar 7K1000 7200RPM SATA 6Gb/s 9.5mm Notebook Drive 32MB Cache. *'New' Factory Replacement with 2+ Year HGST Warranty*    As of April 4, 2014 it's on sale for $79
    But then I started reading some of the discussions online and thought maybe I should get a hybrid solid state drive?
    I saw on Amazon the Seagate 1TB Solid State Hybrid Drive SATA 6Gbps 64MB Cache 2.5-Inch ST1000LM014  It's on sale for $94.
    But according to some reviews, this Seagate has a platter that is only 5400rpm, unlike the previous Seagate Momentum that has a platter speed of 7200rpm.
    How reliable are the Seagate, versus a Toshiba or Western Digital or Hitachi or something else?
    Here are my questions about replacing the hard drive:
    1.  Is a hybrid solid state drive going to need some kind of special formatting after I put it into the macbook so that I can put the operating system on it?
    2.  Is a "normal" platter hard drive more reliable than a hybrid solid state drive?
    3.  Is there any additional driver or special software that I have to install for a hybrid solid state drive?
    4.  Currently there is no personal data stored on the computer.  Can I just put the new hard drive in, and then insert the snow leopard install cd?
    5.  If I install snow leopard, can I just go to the App store and get the free upgrade to Mavericks?
    6.  If I want to do the "Data Doubler" option in the future and add a normal Solid State drive into my computer, will it have trouble interacting with the 1 tb hybrid solid state drive?
    I would love to get some recommendations about the smartest option to upgrade my hard drive with something that will be fast (I edit lots of photos) and large (1 tb) that isn't going to cost too much.  I don't know much about the different brands or options (and there are so many listed in tons of online reviews), that I got really overwhelmed and confused by the info out there.
    I would really appreciate any help and advice.  I've never switched out a hard drive before.
    PLEASE HELP !!!  Thanks!
    Here is the "About this Mac" Info:
    Macbook Pro 15-in Mid 2012
    Model Identifier: MacBookPro9,1
    Processor: 2.3 GHz Intel Core i7
    Memory: 4 GB 1600 MHz DDR3
    Software: OS x 10.8.5
    Storage (Hard drive): APPLE HDD ST500LM012 Media, Rotational, SATA, GPT (GUID Partition Table)

    1.  Is a hybrid solid state drive going to need some kind of special formatting after I put it into the macbook so that I can put the operating system on it?
    The boot drive, regardless of what it is, needs to be formatted as Mac OS Extended (Journaled).  This is standard with OS X.
    2.  Is a "normal" platter hard drive more reliable than a hybrid solid state drive?
    There are arguments pro and con.  Bottom line, SSD's and hybrid drives are still quite expensive per GB than standard hard drives.  If you have the bucks and are a speed demon, go ahead.   I have better use for my money.   Standard hard drives are mechanical and may wear out over time.  But even though SSDs are not mechancial, they can still go bad and ultimately they even have a limit to their write capacity.  The jury is still out on this debate.
    3.  Is there any additional driver or special software that I have to install for a hybrid solid state drive?
    No
    4.  Currently there is no personal data stored on the computer.  Can I just put the new hard drive in, and then insert the snow leopard install cd?
    You can physically put the hard drive in but probably not install Snow Leopard on this MBP.
    The mid-2012 MacBookPro9,1 models came with Lion 10.7.3 (11D2097) preinstalled.   It is very unlikely you would be able to install Snow Leopard on it.  Historically you cannot install a version of OS X that is earlier than the version that came with your Mac (even if you replace the hard drive).
    5.  If I install snow leopard, can I just go to the App store and get the free upgrade to Mavericks?
    Not via Snow Leopard on this MBP.  See my response to #4.
    6.  If I want to do the "Data Doubler" option in the future and add a normal Solid State drive into my computer, will it have trouble interacting with the 1 tb hybrid solid state drive?
    No.  They are completely independent of each other; they are just independent storage units (drives) and their RAM does not interact.

  • Please Help me selecting a SAP module which is suitable for me as i am diverting from other technologies.

    Hi All,
    I hope someone could help me out in selecting an appropriate in SAP for me.
    I have done my B.Tech(Computer science and Engg) and have 3 yrs experience in Development in .net PLATFORM. But currently I am planning to change my career to SAP and so I have done my research in the SAP modules,as per my previous background I could see that BI,HANA,  MM, SD,  ABAP, BASIC and if something is missing please let me know as the best modules for the long term career and please also help- me in saying the best suitable module  requirement and in the future i can have growth.
    SO could anyone suggest me which module is best for the career and have good job opportunities in the market to settle down.
    Please help me to select the module.
    Thank you

    Thank you Everyone for helping me diverting into SAP , actually as i have experience in .net technologies in development , please help me in diverting into nor coding part and i am interested into sap consultant .so please help me ...as i am interested going for B.I..
           Is SAP BI the correct module for me and is it recommended  to get settled in this module and for future also .
    Please help me ..
    Regards ,
    Bharat.                                                                           

  • TS3991 Please help -- my iCal data has disappeared from iCloud website!

    Hi -- I just opened iCal via the iCloud website on my MacBook Air.  My calendar data appeared for a flash, then disappeared -- now almost ALL of my calendar data is completely gone from the iCloud website.  I checked the calendar app on my iPhone 4 and the data is still there, so I turned on Airplane Mode on my phone hoping the blank calendar wouldn't sync to my phone that way.  My contacts seem to still be there.
    Please help -- where did the data go, and how can I get it back onto the iCloud website?  Thanks in advance!

    Thank you.  You may have been right about the server glitch.  After hours, literally, on the phone with Support trying to load the calendar from my phone, and finally giving up, my calendar on the website was magically restored 24 hours later. 
    I'm guessing I'm not the only one this happened to, and that they restored to an earlier version for me and whomever else's data was lost.  Pretty scary, actually -- and annoying! 
    Thanks again for your help.

  • Please help! Old dates on new photos?

    I recently backed up my iphotos to disk(CD) as a precaution prior to upgrading to Snow Leopard. It appeared everything went smoothly however I'm noticing when I go into my "2010" Library, where all my photos were previously automatically organized by month/date, that the last 5 months now show "2004" as I scroll through. Even when "Get Info" on a photo that I took in December of 2010, it shows June 04, 2004.
    My iphoto Library doesn't even start until 2006, which is when I got this iMac. And I now have an "Early Photos" in my Library that I don't believe was there before.
    I can now only view photos from November and December 2010 when I go to the "Last 2 Rolls" or when I view the entire Library that has all the years. But even when I view all years, they are completely disorganized...2008 photos are mixed in with 2006 photos, etc. I'm considering upgrading to iPhoto 11 through the iTunes App store but I want to get my current photos back to the organized fashion they were in prior to my back-up to disk, which seems to be when the problem occured. Please help. Thanks!

    Download iPhoto Library Manager and use its rebuild function. This will create a new library based on data in the albumdata.xml file. Not everything will be brought over - no slideshows, books or calendars, for instance - but it should get all your albums and keywords back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one.
    Regards
    TD

  • Please help, new blackberry data transfer

    I had to replace my Blackberry, and do not have the old one. I would regularly sync my old Blackberry and can view the contacts in Outlook, but don't know how to get them onto my Blackberry. PLEASE HELP.

    I'm still very much a novice on a BB, after having used Palm products for years. But if I were you, I'd check to see if your desktop manager is the same version as your device - if not it can be downloaded. At that point syncing w/ your desktop ought to transfer the data if your syncronization is configured correctly. I hope this at least gets you started
    Phil

  • Please help me capturing data from HTML table

    Hello Everyone,
    Our Storage subsystem generates a html table containing all LUN allocation for printing. I am saving this html file on disk to collect all table infomation and to put it into a database.
    I am having problems extracting table information from the html file. I tried using regular expressions but still not going anywhere. Below is a sample few lines from the html file.
    Please your help is appreciated solving this problem how to collect this information from a HTML file or if Java has any class for this type of purpose.
    Please advice
    arsi
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <!-- saved from url=(0068)https://10.210.44.14/cgi/rsConfigPrintDisplay?200702121685061633,FS,2 -->
    <HTML><HEAD><TITLE>Volume Assignments</TITLE>
    <META http-equiv=Content-Type content="text/html; charset=windows-1252">
    <META content="MSHTML 6.00.2900.3020" name=GENERATOR></HEAD>
    <BODY><FONT face="Times New Roman,Times" size=2>
    <TABLE cellSpacing=1 cellPadding=3 border=2>
    <CAPTION>
    <H2>Volume Assignments</H2></CAPTION>
    <TBODY>
    <TR vAlign=top>
    <TH><FONT face="Times New Roman,Times" size=2>Volume</FONT></TH>
    <TH><FONT face="Times New Roman,Times" size=2>Location</FONT></TH>
    <TH><FONT face="Times New Roman,Times" size=2>LSS</FONT></TH>
    <TH><FONT face="Times New Roman,Times" size=2>Volume Type</FONT></TH>
    <TH><FONT face="Times New Roman,Times" size=2>Size</FONT></TH>
    <TH><FONT face="Times New Roman,Times" size=2>Storage Type</FONT></TH>
    <TH><FONT face="Times New Roman,Times" size=2>Host Port</FONT></TH>
    <TH><FONT face="Times New Roman,Times" size=2>Host Nicknames</FONT></TH></TR>
    <TR vAlign=top>
    <TD><FONT face="Times New Roman,Times" size=2>02A-25015</FONT></TD>
    <TD><FONT face="Times New Roman,Times" size=2>Device Adapter Pair 1</FONT>
    <BR><FONT face="Times New Roman,Times" size=2>Cluster 1, Loop A</FONT>
    <BR><FONT face="Times New Roman,Times" size=2>Array 2, Vol 042</FONT></TD>
    <TD><FONT face="Times New Roman,Times" size=2>0x10</FONT></TD>
    <TD><FONT face="Times New Roman,Times" size=2>Open System</FONT></TD>
    <TD><FONT face="Times New Roman,Times" size=2>000.9 GB</FONT></TD>
    <TD><FONT face="Times New Roman,Times" size=2>RAID-5 Array</FONT></TD>
    <TD><FONT face="Times New Roman,Times" size=2>Fibre Channel</FONT>
    <BR><FONT face="Times New Roman,Times" size=2>ID 00, LUN 502A</FONT></TD>
    <TD><FONT face="Times New Roman,Times" size=2>R1L01_0,</FONT> <BR><FONT
    face="Times New Roman,Times" size=2>R1L01_1,</FONT> <BR><FONT
    face="Times New Roman,Times" size=2>R2L08_1,</FONT> <BR><FONT
    face="Times New Roman,Times" size=2>R2L08_0,</FONT> <BR><FONT
    face="Times New Roman,Times" size=2>S3L06_0, S3L06_</FONT> <BR><FONT
    face="Times New Roman,Times" size=2>1, S4L06_0,</FONT> <BR><FONT
    face="Times New Roman,Times" size=2>S4L06_1</FONT></TD></TR>
    <TR vAlign=top>

    i wrote the programme for 2 stepper motor as attachment file below. they are run. but when the "start" button is ON then the "emergency stop" is not effects.
    for "emergency stop" functions, i used 4 limit contactors. if one of them is "on" then the programme will be stop.
    but in fact, when the system is running, i can not stop if one of the limit contacor is on.
    cuold you please help me to do with this problem.
    thanks
    Attachments:
    EMERGENCY STOP.vi ‏435 KB
    toolpaths-ut.vi ‏64 KB
    parallel program motor 1,2.vi ‏96 KB

  • Please help in selecting video card

    I have an older 500 MHZ (single cpu) G4. I just bought a 23" Apple display. I use the comp. for graphics applications (photoshop, illustrator, etc)
    The video card I have in the G4 currently is an ATI Rage 128 Pro. I need to upgrade for the new monitor. I need an AGP card with at least 128 MB and a DVI connection for the new Apple display.
    Also, right out of the box, the display does not work. I had it all hooked up and plugged in and the display never turns on. The LED light doesnt even light up. Is this a bad transformer or a video card problem.
    I am sending the display back.
    Please help me pick out the correct video card. All of the ones I have seen are either for the G5 or not for certain generation G4. I will be upgrading to G5 sometime next year but I have to work with this one for now.
    Thanks for your help.
    Paul

    Quote from: BONBON3 on 08-November-07, 17:34:10
    i dont connect the card yet because i am afraid to shourt the circus...
    nope such materials are not electric condictives

  • Please help with: A date split into 3 Combo Boxes ....

    Can someone help me with this Please?
    I have a date for a Date of Birth i.e. dd/MM/yyyy
    I need to split it up an place it into 3 combo boxes i.e. Day Combo, Month Combo and Year Combo.
    This is the code I have to set the combo boxes, now I need to bring it back into the combo boxes.
    can someone help me with the code as I need to have this finish on friday and I am running out of time. I just dont know what to do PLEASE SOMEONE HELP...
    Thanks
    Craig
    // List days
      private void DayOfTheMonth(int highNumber,JComboBox comboBox){
        comboBox.addItem(" ");
        for (int index = 1; index < highNumber; index++) {
          comboBox.addItem(String.valueOf(index));
      private void DaySpecificComboBox()
        DayOfTheMonth( 32, DayjComboBox);
    // List Months
      private void Month(){
        MonthjComboBox.addItem("");
        MonthjComboBox.addItem("January");
        MonthjComboBox.addItem("February");
        MonthjComboBox.addItem("March");
        MonthjComboBox.addItem("April");
        MonthjComboBox.addItem("May");
        MonthjComboBox.addItem("June");
        MonthjComboBox.addItem("July");
        MonthjComboBox.addItem("August");
        MonthjComboBox.addItem("September");
        MonthjComboBox.addItem("October");
        MonthjComboBox.addItem("November");
        MonthjComboBox.addItem("December");
    //List Years
      private void Year(int highNumber,JComboBox comboBox){
        comboBox.addItem(" ");
        for (int index = 2002; index > highNumber; index--) {
          comboBox.addItem(String.valueOf(index));
      private void YearSpecificComboBox()
        Year( 1900, YearjComboBox);
    private String StringFromDateFields(){
        int month =1;
        if (MonthjComboBox.getSelectedItem().equals(JANUARY))
          month = 1;
        else
          if (MonthjComboBox.getSelectedItem().equals(FEBRUARY))
            month = 2;
          else
            if (MonthjComboBox.getSelectedItem().equals(MARCH))
              month = 3;
            else
              if (MonthjComboBox.getSelectedItem().equals(APRIL))
                month = 4;
              else
                if (MonthjComboBox.getSelectedItem().equals(MAY))
                  month = 5;
                else
                  if (MonthjComboBox.getSelectedItem().equals(JUNE))
                    month = 6;
                  else
                    if (MonthjComboBox.getSelectedItem().equals(JULY))
                      month = 7;
                    else
                      if (MonthjComboBox.getSelectedItem().equals(AUGUST))
                        month = 8;
                      else
                        if (MonthjComboBox.getSelectedItem().equals(SEPTEMBER))
                          month = 9;
                        else
                          if (MonthjComboBox.getSelectedItem().equals(OCTOBER))
                            month = 10;
                          else
                            if (MonthjComboBox.getSelectedItem().equals(NOVEMBER))
                              month = 11;
                            else
                              if (MonthjComboBox.getSelectedItem().equals(DECEMBER))
                                month = 12;
                              String
                              DOB = DayjComboBox.getSelectedItem()+"/"+String.valueOf(month)+"/"+YearjComboBox.getSelectedItem();
                              return DOB;

    Thanks for your time.
    I could not get that to work ??
    I have come up with this code whitch seams to work. Thought you may like to see it
         String dobxml = xmlDoc.getValueOf(clientInfo, "DOB");
          String dob = dobxml.replace('/', ' ');
          System.out.println(dob);
          StringTokenizer tokenizer = new StringTokenizer(dob);
          String day = tokenizer.nextToken();
          String month = tokenizer.nextToken();
          String year = tokenizer.nextToken();
          System.out.println(dob);
          DayjComboBox.setSelectedItem(day);
          MonthjComboBox.setSelectedIndex(Integer.parseInt(month));
          YearjComboBox.setSelectedItem(year);ps thankyou
    Craig

  • Need help in selecting data dynamically in combobox

    i am taking some values in combobox from database
    and i want that on selection of the option in 1st combobox the another set of values should come in 2nd combobox ,& that also from database
    i have saved the file as .php and also given the database in the zip file, to solve my problem please can anyone help me plz....
    the file link is - http://www.dandylink.com/combotest.zip
    advance thanks for any help.

    .php? Did you see the sign on the door when you came in? If you have some java code you want people to look, where java code is something stored in a .java file, then post it. Or, are you a hacker trying to spread viruses?

  • PLEASE HELP-PROBLEM IN DATA LOADING

    Hi,
    I had made a repair load for 5 records from a source ods to target ods.After Repair load I found 3 records are correct but 2 still missing . I made again repair load but data was again missing. All the 5 records share the same conditions...Plz tell me what can be the reasons that 3 are correctly loaded and 2 could not. What Can be the solution for them???
    Please reply!!1

    hi,
    have you chked in source ods active table for the presence of 5 records which you require.
    if so do the full repair upto PSA and chk its presence in the PSA.
    then load to ods and chk in new data table then activate the ods and chk
    so you could findthe records where it is missing.
    Ramesh

  • Please help me on Data Grid or Smiliar thing in JSP ?

    I am developing a J2EE application where I have the following scenario:
    On a JSP Page there's a button 'Fetch' which when clicked fetches some dynamic records based on some criteria from the Oracle DB and displays them on the JSP page.
    Now these records, say 50, have to be displayed in a table like format where the first column of every row will be a radio button.
    Now as I click any one radio button and click on the submit button below my records table, the next page should read the entire record corresponding to that particularly clicked radio button.
    In .NET , I have heard of Data Grids API doing this, but in Java I don't find any solution on how to implement this UI situation.
    Any custom tags or API known to you for this, please share.
    Awaiting for your creative responses. :)

    I think you all aren't able to interpret my problem statement correctly.I don't see any evidence of that. All I see is evidence that you didn't understand any of the responses.
    If DataGrids and their action triggering would have been a plain HTML/Javascript thing then perhaps there hadn't been separate APIs in other web languages for this.The conclusion is that you should be using one of those, such as JSF, as you were already advised in all those inadequate responses. Alternatively you can continue to fantasize that such a facility is present in JSP when it isn't.
    just thought if some geek could help me out on developing this specific APIYou may have thought it but you didn't ask for it. You asked for 'Any custom tags or API known to you for this, please share'. You got the answer to the question you asked.
    I've no option but to proceed on my own.I agree.

  • All the dates I have put on my Ical and even on the calendar of Iphone are disappeard, please help, all the dates I have put on my Ical and even on the calendar of Iphone are disappeard, please help

    I have a IMac and IPhone, because Of Icloud, all my appointments disappeared from the both apple accessories, can you help me please?

    Thank you Carolyn, I understand that and do use the same P/w for both the iphone and the computer and the apps were origionally for the iphone anyway, they just used to back on the computer and now they wont and the imac even cancels them off my iphone when I sync. And it says "Itunes" has made an error, try again...with the coes -54 and -50. This means I canot ack up my iphone properly. 

  • Please help me fixing dates

    Hello
    I have a java application which gets(searches, inserts and updates) data from db2 db, but I moved all data from db2 to sql server.In my app there are many date feilds and I am getting problem with these dates. I have two types of date columns, one with just date and other with timestamp.
    In db2 the datatypes look something like this for these columns.
    DATE_OF_BIRTH (Date)
    Chg_Timestamp (Timestamp)
    In sql server
    DATE_OF_BIRTH (datetime)
    Chg_Timestamp (datetime)
    In the original project java.sql.Date class was used for all dates, but I was getting error :
    java.lang.ClassCastException: java.sql.Timestamp
    So I changed all dates to java.util.Date, then the search function was working. But now I am unable to update date fields into the database.
    The generated sql on the server is something like this for DOB col:
    UPDATE PERSON_IDENTITY SET CHG_TIMESTAMP = ' 2005-01-28 12:06:03.496' , DATE_OF_BIRTH = ' Tue Aug 24 00:00:00 PDT 1948 ' where PERSON_IDENTITY_ID =1
    So the Dob field is not getting updated, it should look something like this to get updated : 08/24/1948.
    So why do you think the dob date is getting generated like this?, which date object should I use to get the correct date format? Please let me know.
    Thanks for your time,

    The code looks something like this:
    public java.util.Date getDateOfBirth() { return (java.util.Date) read("DATE_OF_BIRTH"); }
    /** nullable **/
    public void setDateOfBirth(java.util.Date value) { write("DATE_OF_BIRTH", value); }
    static public int sizeDateOfBirth() { return 10; }
    java.sql.Timestamp getChgTimestamp() { return (java.sql.Timestamp) read("CHG_TIMESTAMP"); }
    /** NOT nullable **/
    void setChgTimestamp(java.sql.Timestamp value) { write("CHG_TIMESTAMP", value); }
    static int sizeChgTimestamp() { return 26; }
    public static PersonIdentityEntityCondition whereDateOfBirthEqualTo(java.util.Date a) { return new PersonIdentityEntityCondition(new EqualToPredicate("DATE_OF_BIRTH", a)); }
    public static PersonIdentityEntityCondition whereDateOfBirthNull() { return new PersonIdentityEntityCondition(new NullPredicate("DATE_OF_BIRTH")); }
    public static PersonIdentityEntityCondition whereDateOfBirthNotNull() { return new PersonIdentityEntityCondition(new NotNullPredicate("DATE_OF_BIRTH")); }
    public static PersonIdentityEntityCondition whereDateOfBirthNotEqualTo(java.util.Date a) { return new PersonIdentityEntityCondition(new NotEqualToPredicate("DATE_OF_BIRTH", a)); }
    public static PersonIdentityEntityCondition whereDateOfBirthLessThan(java.util.Date a) { return new PersonIdentityEntityCondition(new LessThanPredicate("DATE_OF_BIRTH", a)); }
    public static PersonIdentityEntityCondition whereDateOfBirthLessThanOrEqualTo(java.util.Date a) { return new PersonIdentityEntityCondition(new LessThanOrEqualToPredicate("DATE_OF_BIRTH", a)); }
    public static PersonIdentityEntityCondition whereDateOfBirthGreaterThan(java.util.Date a) { return new PersonIdentityEntityCondition(new GreaterThanPredicate("DATE_OF_BIRTH", a)); }
    public static PersonIdentityEntityCondition whereDateOfBirthGreaterThanOrEqualTo(java.util.Date a) { return new PersonIdentityEntityCondition(new GreaterThanOrEqualToPredicate("DATE_OF_BIRTH", a)); }
    public static PersonIdentityEntityCondition whereDateOfBirthBetween(java.util.Date a, java.util.Date b) { return new PersonIdentityEntityCondition(new BetweenPredicate("DATE_OF_BIRTH", a, b)); }
    static PersonIdentityEntityCondition whereChgTimestampEqualTo(java.sql.Timestamp a) { return new PersonIdentityEntityCondition(new EqualToPredicate("CHG_TIMESTAMP", a)); }
    static PersonIdentityEntityCondition whereChgTimestampNull() { return new PersonIdentityEntityCondition(new NullPredicate("CHG_TIMESTAMP")); }
    static PersonIdentityEntityCondition whereChgTimestampNotNull() { return new PersonIdentityEntityCondition(new NotNullPredicate("CHG_TIMESTAMP")); }
    static PersonIdentityEntityCondition whereChgTimestampNotEqualTo(java.sql.Timestamp a) { return new PersonIdentityEntityCondition(new NotEqualToPredicate("CHG_TIMESTAMP", a)); }
    static PersonIdentityEntityCondition whereChgTimestampLessThan(java.sql.Timestamp a) { return new PersonIdentityEntityCondition(new LessThanPredicate("CHG_TIMESTAMP", a)); }
    static PersonIdentityEntityCondition whereChgTimestampLessThanOrEqualTo(java.sql.Timestamp a) { return new PersonIdentityEntityCondition(new LessThanOrEqualToPredicate("CHG_TIMESTAMP", a)); }
    static PersonIdentityEntityCondition whereChgTimestampGreaterThan(java.sql.Timestamp a) { return new PersonIdentityEntityCondition(new GreaterThanPredicate("CHG_TIMESTAMP", a)); }
    static PersonIdentityEntityCondition whereChgTimestampGreaterThanOrEqualTo(java.sql.Timestamp a) { return new PersonIdentityEntityCondition(new GreaterThanOrEqualToPredicate("CHG_TIMESTAMP", a)); }
    static PersonIdentityEntityCondition whereChgTimestampBetween(java.sql.Timestamp a, java.sql.Timestamp b) { return new PersonIdentityEntityCondition(new BetweenPredicate("CHG_TIMESTAMP", a, b)); }
    Thanks

  • Need SQL help in select data from 2 table..

    hi,
    i need some help here as i am new to sql statement
    I have 3 tables.
    Table1 :- TeamID, Team_Name, Team_Logo
    Table2:- TeamID, PlayerID
    Table3:- PlayerID, Player_Name
    How do i do a single select statement that select all information from table1 and the count of playerID from table2?
    My MS access table has relationships.
    One team can have many players. So how do it get the numbers of player in my team?
    Thanks.

    Thanks.
    but may i know why i have to max (a.team_name)???Actually there is no need of max() here, but it must be an aggregate function to use in this context. There is no harm in using it like this. This is a work around, I didn't get enough time to work on it.
    But as long as it gives correct result, don't worry about it.
    btw, how do i assign duke $$ to u?
    i am new to this forum.You can read at http://forum.java.sun.com/rewardFaq.jsp#assign
    Have a nice weekend.
    Sudha

Maybe you are looking for

  • MacBook Pro 8,2 beeps at random times long after startup and routine use

    This issue seems elusive on the forums as everyone seems to get stuck on the POST beep codes heard only at boot up and this is not related to that. The issue is specific to the MBP 8,2 model as we have dozens of models that came before and after and

  • Output in Zip format

    Help, i must resolve this problem. I must modify one existing application write on Apex 3.2 I must creat the output report in zip format, the application now create the output in Word, PDF, E-mail, end txt. Thanks for information. (sorry for my wron

  • Artwork for Videos on External Hard Drive

    Hi, I have a 1.5 TB external hard drive that has movies, tv episodes, and videos on it. When I connect my iPhone to iTunes, and my external hard drive to my computer, I drag and drop the videos from the drive to my iPhone. I'd like to have artwork fo

  • Unplanned delivery costs block incoming invoice - MIRO

    Hello experts, In tcode MIRO how can I block the "Incoming Invoice" if I insert Unplanned delivery costs? It is possible? I already set tolerance limits (Materials Management->Logistics Invoice Verification->Invoice Block->Set Tolerance Limits), but

  • How to delete QUAN field zeros

    Hi experts, I am facing problem while Deleting zeros of QUAN filed. senerio like this mov type      Issue     Comsum 541              200.00   0.00 541              300.00   0.00 543               0.00     200.00 543               0.00     300.00   h