Need help with saving data and keeping table history for one BP

Hi all
I need help with this one ,
Scenario:
When adding a new vendor on the system the vendor is suppose to have a tax clearance certificate and it has an expiry date, so after the certificate has expired a new one is submitted by the vendor.
So i need to know how to have SBO fullfil this requirement ?
Hope it's clear .
Thanks
Bongani

Hi
I don't have a problem with the query that I know I've got to write , the problem is saving the tax clearance certificate and along side it , its the expiry date.
I'm using South African localization.
Thanks

Similar Messages

  • Need help with saving data

    I recently started studying in IT at college, and I think I have the basics in Java programming, however we haven't
    been taught how to save data in our apps, so everytime i close my app, I lose all changes.
    I went through Sun's IO tutorial, as well as a few tutorials online and I made a small application to practice saving my
    Objects, however I can't seem to get it to work. I was hoping someone could look at my code and tell me what seems
    to be my problem.
    There are 3 classes in my project. The Base class makes a List that holds objects of type Person. the UIPerson class
    has 3 buttons (Add, Save, Load) and a JList. When clicking on Add, it adds a new Person in the base and is shown in
    the JList. The saving and loading is what I have trouble with.
    UIPerson :
    public class UIPerson extends JFrame implements Serializable{
         private JFrame jFrame = null; 
         private JPanel jContentPane = null;
         private JButton jbAdd = null;
         private JButton jbSave = null;
         private JButton jbLoad = null;
         private JList list = null;
         private Base base = null;
         public static void main(String args[]){
              UIPerson personList = new UIPerson();
         public UIPerson(){
                   base = new Base();
                   Container pane = getContentPane();
                   setSize(288, 309);
                   setVisible(true);
                   jContentPane = new JPanel();
                   jContentPane.setLayout(null);
                   jbAdd = new JButton();
                   jbAdd.setBounds(new Rectangle(24, 59, 58, 24));
                   jbAdd.setText("Add");
                   jbAdd.addActionListener(new java.awt.event.ActionListener() {
                        public void actionPerformed(java.awt.event.ActionEvent e) {
                             String Name, famName;
                             Name = JOptionPane.showInputDialog("Enter Name", null);
                             famName = JOptionPane.showInputDialog("Enter Family Name", null);
                             base.addPerson(new Person(Name, famName));
                             list.setListData(base.listPerson());
                   jbSave = new JButton();
                   jbSave.setBounds(new Rectangle(19, 106, 69, 34));
                   jbSave.setText("Save");
                   jbSave.addActionListener(new java.awt.event.ActionListener(){
                        public void actionPerformed(java.awt.event.ActionEvent e){
                             try{
                                  FileOutputStream fos = new FileOutputStream("temp.dat");
                                  ObjectOutputStream oos = new ObjectOutputStream(fos);
                                  oos.writeObject(base);
                             catch(Exception ex){
                                  System.out.println("Save Failed");
                   jbLoad = new JButton();
                   jbLoad.setBounds(new Rectangle(23, 154, 70, 29));
                   jbLoad.setText("Load");
                   jbLoad.addActionListener(new java.awt.event.ActionListener(){
                        public void actionPerformed(java.awt.event.ActionEvent e){
                             try{
                                  FileInputStream fis = new FileInputStream("temp.dat");
                                  ObjectInputStream ois = new ObjectInputStream(fis);
                                  base = (Base)ois.readObject();
                                  list.setListData(base.listPerson());
                             catch(Exception exc){
                                  System.out.println("Load Failed");
                   list = new JList();
                   list.setBounds(new Rectangle(133, 47, 139, 151));
                   jContentPane.add(jbAdd);
                   jContentPane.add(jbSave);
                   jContentPane.add(jbLoad);
                   jContentPane.add(list);
                   pane.add(jContentPane);
    }Base :
    public class Base implements Serializable{
         private ArrayList<Person> list;
         public Base(){
              list = new ArrayList<Person>();
              list.clear();
         public void addPerson(Person person){
              list.add(person);
         public void deletePerson(Person person){
              list.remove(person);
         public Person[] listPerson(){
              Person tab[] = new Person[list.size()];
              list.toArray(tab);
              return tab;
         public Person getPerson(Person person){
              ListIterator<Person> iterator = list.listIterator();
              Person current = null;
              while (iterator.hasNext()){
                   current = iterator.next();
                   if (current.equals(person))
                        return current;
              return null;
    }Person :
    public class Person {
         private String name, familyName;
         public Person(String name, String familyName){
              this.name = name;
              this.familyName = familyName;
         public String getName(){
              return name;
         public String getFamilyName(){
              return familyName;
         public String toString(){
              return name + " " + familyName;
    }I'd appreciate any help that could be given.

    My probelm is with my save/load funtions only, sorry for the extra code. Everytime i press on save or load, they
    throw an IOException. Heres the code I specifically wanted viewed to know if there are any mistakes in it.
    Save Button :
    jbSave.addActionListener(new java.awt.event.ActionListener(){
              public void actionPerformed(java.awt.event.ActionEvent e){
                   try{
                        FileOutputStream fos = new FileOutputStream("temp.dat");
                        ObjectOutputStream oos = new ObjectOutputStream(fos);
                        oos.writeObject(base);
                   catch(FileNotFoundException ex){
                        System.out.println("(Save)File Not Found Exception");
                   catch(IOException ex){
                        System.out.println("(Save)IOException");
         });Load Button :
    jbLoad.addActionListener(new java.awt.event.ActionListener(){
              public void actionPerformed(java.awt.event.ActionEvent e){
                   try{
                        FileInputStream fis = new FileInputStream("temp.dat");
                        ObjectInputStream ois = new ObjectInputStream(fis);
                        base = (Base)ois.readObject();
                        list.setListData(base.listPerson());
                   catch(FileNotFoundException exc){
                        System.out.println("(Load) File not found exception");
                   catch(IOException exc){
                        System.out.println("(Load) IO Exception");
                   catch(ClassNotFoundException exc){
                        System.out.println("(Load) Class not found exception");
         });

  • Need help with importing data in partition table

    Hi,
    DB:8.1.7
    OS: win 2003 server
    I have a table which is 4.5GB in size. I created a new partition table,with local indexes. I exported the original table with all indexes,triggers and procedures.
    After creating the empty partitioned table,i imported the dump file. The data isn't loaded. My questions are:
    1) Will the indexes be overwritten?
    2) Will the data go automatically in allocated partitions?
    3) Do i need to export only table data ignoring indexes,triggers etc?
    Best Regards,

    ateeqrahman wrote:
    1) Will the indexes be overwritten?Not if they already exist with the same name, or with the same logical definition (ie. same columns are already indexed)
    2) Will the data go automatically in allocated partitions?Yes
    3) Do i need to export only table data ignoring indexes,triggers etc?Do you need the triggers? do you need indexes that you haven't created manually? What about grants?

  • Need help with entering data into a table.

    I just created a table, but I can't enter information.  I don't want the data linked to a datasource.  I just want it to save to the form like all of the other fields.

    Even when I create a simple table, no ability to enter information.  Please help.  I know this must be a simple answer, but surprised that there is no response.

  • Need help with Blog, Wiki and Gallery

    Hi Team,
    Need help with Blog, Wiki and Gallery startup. I have newly started visiting forums and quite interested to contribute towards these areas also.
    Please help.
    Thanks,
    Santosh Singh
    Santosh Singh

    Hello Santhosh,
    Blog is for Microsoft employees only. However, you can contribute towards WIKI and GALLERY using the below links.
    http://social.technet.microsoft.com/wiki/
    http://gallery.technet.microsoft.com/

  • Need help FLASH not launching and not uninstalling "licensing for this product has stopped working".

    Need help FLASH not launching and not uninstalling "licensing for this product has stopped working" and " you can only install one adobe product at a time please complete the other installation"  Flash was working absolutely fine before, I have no idea why this happened.

    I am having similar problem.  Can't open any of CS3 programs after trying to download Dreamweaver Trial, which wouldn't work because "couldn't remove DLM extention" error message.  So now I can not run Illustrator, Photoshop, or even Adobe Reader.  These are properly licensed for about a year. I get "License for product has stopped working".  Have 2 pending cases open with Adobe support (one for Dreamweaver trial, one for license problem) since 8/3 with NO ANSWERS - It says answers within 1-3 business days.  Was on phone support hold today for over 3 hours before line went dead with no help.  What is up with adobe support?  Can anyone help?

  • Need help with Airport Express and so on.

    Ok so my main problem before getting into what I need help with here is that our MacBooks and now my iPhone 6 plus isn't staying online. Keep getting booted off and then I either have to select the network again or it will eventually go back on. If anyone has a solution or so please feel free to answer that as well. I'm running on Roadrunner with a Netgear 600 wireless router and a motorola modem. Both of which I'll leave the link to below for a better look.
    My Main Question: So I'm looking at a new wireless router mainly and possibly a new modem. I know Apple products are trustworthy but how good is the Airport Express and other Airport products. Also what is the Maximum speed and Maximum data speed for the cheapest express station and if anyone knows the speeds of the other devices it would be greatly appreciated.

    DSL Router to Netgear 5-port Switch and I used the switch to connect to Airport Extreme, TV, Blue-Ray DVD player and DirecTV Receiver.
    The AirPort Extreme base station (AEBS) is a router so it will do what you need.
    You need to reconfigure your setup. Connect the WAN port of the AEBS to the DSL router. Then connect the Netgear switch to one of the LAN ports on the AEBS. The AEBS will properly share the connection.

  • Need help with Page Layout and Background Scaling

    hello, everyone.
    I am in the process of designing a new website for myself,
    and while I was researching nicely designed pages to use as
    inspiration, I stumbled upon this site:
    http://www.jeffsarmiento.com/
    obviously, the design is very impressive, but it also
    incorporates a lot of web mechanics that I have been trying to
    figure out, so I will use this page as an example.
    one thing I need help with is backgrounds. as you can see in
    the posted website, the creator used a seamlessly tiled paper
    texture to display the bulk of his content on. also make not of the
    pattern that is located to the left of the paper texture. how do I
    create seamless backgrounds like this that will scale to fit any
    amount of content or any resolution? I can't imagine that the guy
    that made that site created a new size background every time he
    made an update, so there has to be an easier way.
    the second thing that I am having trouble with is general
    site layout. I have read that most sites used series of invisible
    tables to organize there content, but when I open the source of
    this page in dreamweaver, he was using something different. div
    tags? should I be using these? who do I use them? are there any
    general layout tips that someone could pass on to me? perhaps a
    link to a good tutorial?
    please help me. i am very confused.
    thanks so much.

    IMO not a good site to emulate. To wit:
    Top background image:
    http://www.jeffsarmiento.com/images/bg-top.jpg;
    745px
    x 350px 137K
    Main background image:
    http://www.jeffsarmiento.com/images/bg-tile.jpg;
    745px x 950px 130K
    Total page size: 454K (Check here:
    www.websiteoptimization.com)
    Website usability experts routinely recommend a maximum page
    size of ~80K
    Check out the We We Scale @ www.FutureNowInc.com/wewe/ where
    they suggest,
    "You speak about yourself approximately 0,003 times as often
    as you speak
    about your customers. Might that have an impact on your
    effectiveness?"
    That is 100% consistent with the #1 Web Design mistake:
    "Believing people
    care about you and your web site." or to phrase more
    expansively, "Our site
    tries to tell you how wonderful we are as a company, but not
    how we're going
    to solve your problems."
    www.sitepoint.com has some excellent books on making a
    website actually
    attractive and usable at the same time.
    Walt
    "beWILLdered_" <[email protected]> wrote in
    message
    news:[email protected]...
    > hello, everyone.
    > I am in the process of designing a new website for
    myself, and while I was
    > researching nicely designed pages to use as inspiration,
    I stumbled upon
    > this
    > site:
    >
    http://www.jeffsarmiento.com/
    > obviously, the design is very impressive, but it also
    incorporates a lot
    > of
    > web mechanics that I have been trying to figure out, so
    I will use this
    > page as
    > an example.
    > one thing I need help with is backgrounds. as you can
    see in the posted
    > website, the creator used a seamlessly tiled paper
    texture to display the
    > bulk
    > of his content on. also make not of the pattern that is
    located to the
    > left of
    > the paper texture. how do I create seamless backgrounds
    like this that
    > will
    > scale to fit any amount of content or any resolution? I
    can't imagine that
    > the
    > guy that made that site created a new size background
    every time he made
    > an
    > update, so there has to be an easier way.
    > the second thing that I am having trouble with is
    general site layout. I
    > have
    > read that most sites used series of invisible tables to
    organize there
    > content,
    > but when I open the source of this page in dreamweaver,
    he was using
    > something
    > different. div tags? should I be using these? who do I
    use them? are there
    > any
    > general layout tips that someone could pass on to me?
    perhaps a link to a
    > good
    > tutorial?
    > please help me. i am very confused.
    >
    > thanks so much.
    >

  • Need help with show/hide and layers moving

    I'm more of a designer, so I don't know code or CSS well at
    all. I'm doing an online portfolio for a class and need help with
    layers not staying in place in different browsers. The portfolio is
    created with a table, but I wanted to use the show/hide function
    for thumbnails of work. Are layers the only way you can use this
    function? I read layers don't work well with tables, so how else
    can I make it so when you mouse over a thumbnail, the larger image
    appears in another cell?

    > I don't know code or CSS well at all.
    That's unfortunate.
    > layers not staying in place in different browsers.
    Layers don't move. But the rest of your page does.
    Before you get too wrapped up in layers, though, please read
    this -
    http://www.great-web-sights.com/g_layerlaws.asp
    They are not good when be used as a primary layout method.
    > I read layers don't work well with tables
    They work fine with tables - but you have to understand both
    tables and
    layers to use them.
    Why not show us your page, so we can see what you are
    struggling with?
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Bobbi67" <[email protected]> wrote in
    message
    news:ertd9h$h3m$[email protected]..
    > I'm more of a designer, so I don't know code or CSS well
    at all. I'm doing
    > an
    > online portfolio for a class and need help with layers
    not staying in
    > place in
    > different browsers. The portfolio is created with a
    table, but I wanted to
    > use
    > the show/hide function for thumbnails of work. Are
    layers the only way you
    > can
    > use this function? I read layers don't work well with
    tables, so how else
    > can I
    > make it so when you mouse over a thumbnail, the larger
    image appears in
    > another
    > cell?
    >

  • Need help with iphoto 8 and two users on same computer

    Let's me start by stating I'm brand new to Mac. My wife is putting all our photo's under her user name, but when I open my iphoto program I don't see the same photos. I thought I set up my iphoto to share from hers but I've obviously done something wrong. Any help would be appreciated. Thanks in advance.

    Afrergy
    Welcome to the Apple Discussions.
    There are two ways to share, depending on what you mean by 'share'.
    If you want to be able to see the pics, but not add to, change or alter the library, then enable Sharing in your wife's iPhoto (Preferences -> Sharing), leave iPhoto running and use Fast User Switching to open your account. In your account, enable 'Look For Shared Libraries'. Her Library will appear in her source pane.
    Remember iPhoto must be running in both accounts for this to work.
    IF you want to have the same access to the library: to be able to add, edit, organise, keyword etc. then:
    Quit iPhoto in both accounts
    Move the iPhoto Library Folder to the Users/Shared (or an external HD)
    Make sure the file permissions are set to allow read/write access to everyone
    In each account in turn: Hold down the option (or alt) key and launch iPhoto. From the resulting dialogue, select 'Choose Library' and navigate to the new library location. From that point on, this will be the default library location. Both accounts will have full access to the library, in fact, both accounts will 'own' it.
    However, there is a catch with this system and it is a significant one. iPhoto is not a multi-user app., it does not have the code to negotiate two users simultaneously writing to the database, and trying will cause db corruption. So only one user at a time, and back up, back up back up.
    Regards
    TD

  • Ok I am having issues with my HP Enby 100 D410. Need help setting up eprint, and keeping connected.

    I opened up my printer, set it up, connected.  But I cant seem to keep connected.  I have an eprint email address set up, but the printer reset and now wants me to set up an new eprint using a different code.  How do I get the [email protected] email back.  It says "someone already has address..."  duh, that's me..!  This printer has been more than frustrating.  HP support says open 7 days a week, 24 hours a day.  But when I call, they are closed and only open during certain days and hours... why advertise differently?  I also cannot seem to get my printer to align the printer cart.. stops halfway.  Need this to test scanner.  Anyone with helpful advice?

    Hey mwright286!
    Sorry to hear you're having a problem with your Envy and ePrint! Let me see if i can address the issues you brought up here. HP support for printers is 24x7, if you are receiving a message otherwise you may be dialing the wrong number or selecting the wrong options through the prompts.
    As for the ePrint issue you're having, if the printer's Web services has somehow been reset and the printer gave you a new code to setup ePrint with, unfortunately that address is not available again for 6 months. Make sure you don't turn web services off and then back on unless necessary as this will reset the email address.
    If your printer is having alignment issues though, it is very possible that there is a hardware problem with the printer. Try following this document. If you are still having trouble with the alignment then you will want to call support at 1-800-hpinvent.
    Hope this helps!
    If I have solved your issue, please feel free to provide kudos and make sure you mark this thread as solution provided!
    Although I work for HP, my posts and replies are my own opinion and not those of HP.

  • Need help in populating data in advanced table in oaf

    Dear All,
    I have a requirement as below:
    I have a custom OAF page, from that i am invoking a popup page and from the popup page i am selecting some rows and populating in my base page advanced table region.
    that is fine so next time when i am calling again the popup page and selecting some data and pressing button this time it is again populating properly in base page my requirement is i need to populate the old data that selected as well as new data wht selected, so every time the table refreshed with the data selected rather than keeping old data wht selected, can it be posibel please help me out.
    Thnaks

    Hi Vishnu,
    in all sapscript for standard sap transaction cases, you can always find the original sap solution abd/or sap sample routines. Start from there and then look at your custom programming.
    I can't explain in more detail because you do not give more detail.
    Another frequent issue is that the sapscript form is not configure and activated correctly.
    Anyway, follow this guide and find the solution ist possible.
    Regards,
    Clemensl

  • Working photographer needs help with hard drives and raid O decisions

    Hi new here and also new to Mac well almost new been 20 years since i had a mac. i have a Mac Pro Book and this led to ordering the MacPro since I am a working photographer i made a complete switch in platforms so i have some questions and such but I did place a order on Friday for a 2.66 4gbs of Ram , 2 500 gb hard drive and a 30 in monitor and of course the ATI 1900 XT card so yes i am waiting like many for that card.
    I put initial 4gb of ram since running CS2 will at least take a max of 3gb's in the memory cache . i plan on getting 2gbs more from OWC since that seems to be the only 3rd party ram at the moment that is working correctly from reading some of the threads here. Having 6gbs is a no brainer really given the amount of Raw processing that i do along with PS work plus having e-mail and other apps open at the same time. The ram to me is the easy part although expensive . My biggest issue is what to do with the 2 hard drive slots and Raid O or not but I will start a thread on that. But i will have 6gbs total for now and the bottom line is you can never have enough ram still holds true.
    Now on to my diliemma with hard drives. I did have a raid O scsi 10k rapture and and 10 k scratch on my Dell box and I am just not sure what to do here. i ordered the 2 500 gb hard drive and I may just put them on the storage side of things than get 2 WD 150gb 10 k Sata drives. Now i could Raid O them for 300 gb and get a performace boast that way or i could keep them seperate and put everything on 1 150 drive and ue the second for scratch only. What i don't know is what Mac perfers and what works better. Not worried so much about failure of drives, thats just life in the big city stuff and you just have backups. What i more worried about is performance versus a waste . seems to me that Raid O may not even be needed with these new Intel boxes with all the horsepower going on. Now the other think I notice is the WD 150gb 10 k drives are 1.5 and not 3.0 so is it really faster than the 7200 3.0 single hard drives. I read barefeats shoot out and it seems just getting the right drives in 7200 and Raid O them maybe the answer.
    Okay i am not the biggest geek on the planet but I do know my stuff but this is a area that i look for more knowledge on this. So if i can get some sound advice in this area. i know there are many photographers out there like me pushing hundreds of images that could use the same advice. Now let's leave the money end out , folks sometimes think more with there wallet than what works best not that I am opposed to saving money but after spending over 7 k already on this system it becomes a moot point. LOL
    www.guymancusophoto.com

    Ok your question is if you should RAID O the two 150GB Raptors or not.
    I think it was wise for you to get a couple of them for a boot drive with "Time Machine" coming in the next version of Mac OS X. The second drive would make a excellent bootable backup and eliminating downtime if a boot drive dies on you one morning.
    In fact any boot drive cloning software that is Mac Intel ready now would do you good.
    Now Barefeats has run some tests, and I can pretty much back up what they say from my own experience.
    Mac OS X and apps can be helped only so much by a faster boot drive, and a single 10,000 RPM Raptor is enough, RAID O a pair is overkill.
    If you install everything on the boot Raptor and keep your space hogging files (except iTunes) in new folders on another drive, even a 7,200 RPM 500GB, the two drives combined is faster as there is nearly no wait. Both drives can be accessed at the same time. Keeping the boot drive slim keeps the stylus (arm) moving as little as possible to get all the small reads/writes Mac OS X needs.
    I RAID O-ed my boot drives because 74GB was the largest they had at the time, so combining them gave me speed and larger storage. I hardly use the speed, it only comes in handy if by rare chance I duplicate a 20GB folder, then I can do it in half the time of a 7,200 RPM drive.
    Some of the drawbacks of a RAID O set, especially as a boot drive is that I have to auto-clone the whole set to a external drive regularly (I actually do a couple). Since the data path is separated with a RAID O, any drive failure results in total data loss.
    So if you RAID O those 150GB Raptors, your going to have to clone 300GB to a external drive (or another internal) regularly, like once a week. This will take considerable time and you can't use the machine while the cloning process is going on. Sure auto-cloning software like DeJaVu can be used at night/weekends, but why bother cloning more than you have to for no big speed increase?
    However if your messing with huge Photoshop files that spill over your CS2 3GB RAM limit (you need to have a "scratch" thats as fast as RAM), duplicating large files and other heavy duty drive work, then a boot RAID O will come in handy. Just remember your initial performance of 185 MB p/s will drop about 20-25% when those drives are 3/4 filled. Still 140 MB p/s is extremely good and a no worry situation.
    What is worrysome is anything below 80MB p/s (I'm talking uncached 4K write speeds under X-Bench) with a new boot drive and then as time elaspes that boot drive gets filled up and loses half or more of it's inital speed. 30 MB p/s is really slow. Beachball H&LL.
    http://www.barefeats.com/hard33b.html
    Do Erase W/Zero in Disk Utility all new drives before laying data on them. Drives get subjected to shock which causes bad sectors on the drive. Driver software uses your data as a guinea pig to test the sectors (which you might not be able to recover the file). Zeroing does this without your data, rewriting the bad sector map so your writes are much improved, OS is more stable. etc.

  • Need help with database connection and trasaction!

    Hi, I'm trying to load data from a huge report to DB2. My old way of doing this is: 1. using DriverManger.getConnection to get a connection.
    2. Then set autoCommit to false.
    3. Keep the connection open.....
    4. con.commit once I reach a section, let's say around 5000 records per section.
    5. Close the connection once I finish loading, (Finally block)
    I'm still new in the java world and kind of concern of the way of what I'm doing. Then I did some research. Perhaps using javax.sql.DataSource is a better approach. But I couldn't use it in WSAD. Do I need do some configuration? I heard it's in j2ee 1.4 . Is that the reason I couldn't use it?
    And.......I tried to use DAO pattern to talk with DB. By that way, I have to open and close connection everytime I invoke the dao method. Then how can I control the transaction? Because I don't want to insert each record data in to the table right away. I want to do the commit once I get all records for one section. No idea how can I achieve this.
    Any suggestion will be really appreciated!!!

    I'm still new in the java world and kind of concern
    of the way of what I'm doing. Then I did some
    research. Perhaps using javax.sql.DataSource is a
    better approach. But I couldn't use it in WSAD. Do I
    need do some configuration? I heard it's in j2ee 1.4
    . Is that the reason I couldn't use it?What you need to do is configure a Connection datasource. WSAD has that. You just need to go through the documentation and find out. I never worked on it.
    And.......I tried to use DAO pattern to talk with DB.
    By that way, I have to open and close connection
    everytime I invoke the dao method. Then how can I
    control the transaction? Because I don't want to
    insert each record data in to the table right away. I
    want to do the commit once I get all records for one
    section. No idea how can I achieve this.Since you want to simply insert multiple records, you might want to insert them in a batch. This is available in PreparedStatements.
    $ Carol.

  • Need Help with complex query and computing values

    I have an issue trying to combine data from several tables. I need help trying to compute the "Total Hours", "Max Pressure" ,"Average Pressure" while displaying the "Manufacturer",
    "Part Type" , "Serial Number", "District", "Status","Truck Type",and "truck number" for a certain Part on all Trucks. I need to be able check and see if the serial number was on
    a particular job and calculate the hours of that serial number if it was on that job and the jobdate falls between the install date and removal date. Ive tried but keep getting either
    repeating rows, total hrs of the truck instead of the serial number. Ive considered doing a pivot to display it but have been having trouble putting it together.
    table 1
    (*records of parts*)
     Contains  serial number,truck number, part type, part number, install date, removal date, status
    table 2
    (*records of Jobs*)
    contains Jobnumber, JobStartdate, Max pressure, average pressure, and Totalhrs
    table 3
    (records related to jobs and trucks)
    contains jobnumber, district , and truck numbers
    Table 4
    (records of manufacturers and part numbers)
    contains partnumber, manufacturer name, and truck type
    I would like to get it to show like below
    SerialNo   PrtType       
    MFG      TruckNo  
     TrkType    TtlHrs 
       MaxPr   AvgPr 
      Status    
    Dst
    AB345     1200series  
    NGK        2G34        
    Boss X       400     10,000 
     9500  NonOp    
    NE
    Thanks in advance

    Hope this helps
    Note: (Date of Mar 1 2014 was just extended to a further date so the system would know that its still operating when calculating current hours)
    Table 1
    SerialNo    TruckNo  InstallDate RemovalDate      Status       PartNo      PartType
    BJ1002       F917   2013-09-17   2014-03-01   Oper         L871235       BJ 3000 GL
    CWS1002   F104   2012-11-21   2013-03-29   NonOper   L76088-450   CWS 2000
    CWS1003   F104   2013-04-24   2013-08-01   NonOper   L76088-450   CWS 2000
    CWS1005   F187   2012-11-21   2013-04-04   NonOper   L76088-450   CWS 2000
    CWS1006   F187   2013-04-24   2013-06-30   NonOper   L76088-450   CWS 2000
    CWS1007   F187   2013-06-30   2013-03-01   Oper         L76088-450   CWS 2000
    CWS1009   2F60   2013-05-05   2013-03-01   Oper         L76088-450   CWS 2000
    CWS1011   F809   2013-05-28   2013-08-28   NonOper   L76088-400   CWS 2000
    CWS1013   F990   2013-06-11   2013-10-29   NonOper   L76088-450   CWS 2000
    CWS1015   F783   2013-06-28   2013-03-01   Oper         L76088-450   CWS 2000
    Table 2
    JobNumber    Date                 District         PrAvTreat PrMaxTr TotalHrs
    553811287    2012-01-19    Fairmount    7337        8319     1.53
    652110088    2012-08-20    San Antonio  6340       7075      0.47
    652110090    2012-08-21    San Antonio  6134       7131      0.62
    652110091    2012-08-22    San Antonio  6180       2950      0.58
    652110092    2012-08-23    San Antonio  5959       6789      0.64
    652110093    2012-08-23    San Antonio  6165       7466      0.62
    Table 3
    TruckNo District    JobNumber
    1F01      Odessa   10011012329
    1F01      Odessa   10011012333
    1F01      Odessa   10011014831
    1F01      Odessa   10011014834
    1F01      Odessa   10011012332
    1F01      Odessa   10011012328
    1F01      Odessa   10011014829
    Table 4
    PartNumber    Manufacturer  TruckType
    L322020-2     Jimmy Dean   Ford T
    L322738-2     Lucas             Ford T
    L47869-1       Jimmy Dean   Ford T
    L76070-650   NGK               Ford T   
    Sam Howard

Maybe you are looking for