Help with getting the most recent transaction

I have a system that keeps track of part repairs. Unfortunately a part my come in for repair multiple times. I want my query to pull back the most recent time/ request id that a part came in. This is my basic query, but it pulls back multiple records for the given part/serial number combo. How can I re-write this? Thanks
SELECT M4OWNER.STOCK_SERIAL_ID.BIN_ID AS "Bin",
M4OWNER.RECEIVING_UNIT.CREATED_DTTM AS "Date Placed in Bin",
M4OWNER.STOCK_SERIAL_ID.SERIAL_ID AS "Serial ID",
M4OWNER.STOCK_SERIAL_ID.PART_ID AS "Part ID",
M4OWNER.STOCK_SERIAL_ID.USEABLE AS "Usable Status",
M4OWNER.RECEIVING_UNIT.REQUEST_ID AS "Request ID",
M4OWNER.RECEIVING_UNIT.REQUEST_LINE AS "Line",
M4OWNER.STOCK_SERIAL_ID.PLACE_ID AS "Warehouse",
M4OWNER.STOCK_SERIAL_ID.LOCATION AS "Location"
FROM M4OWNER.STOCK_SERIAL_ID INNER JOIN
M4OWNER.RECEIVING_UNIT ON M4OWNER.STOCK_SERIAL_ID.SERIAL_ID = M4OWNER.RECEIVING_UNIT.SERIAL_ID AND
M4OWNER.STOCK_SERIAL_ID.PART_ID = M4OWNER.RECEIVING_UNIT.PART_ID INNER JOIN
M4OWNER.RECEIVING ON M4OWNER.RECEIVING_UNIT.RECEIVING_ID = M4OWNER.RECEIVING.RECEIVING_ID INNER JOIN
M4SUPP1.PART ON M4OWNER.STOCK_SERIAL_ID.PART_ID = M4SUPP1.PART.PART_ID
WHERE (M4OWNER.STOCK_SERIAL_ID.BIN_ID = 'LOCATION')
AND (M4OWNER.STOCK_SERIAL_ID.SERIAL_ID = 'ISSUE360')

I have a system that keeps track of part repairs. Unfortunately a part my come in for repair multiple times. I want my query to pull back the most recent time/ request id that a part came in. This is my basic query, but it pulls back multiple records for the given part/serial number combo. How can I re-write this? Thanks
SELECT M4OWNER.STOCK_SERIAL_ID.BIN_ID AS "Bin",
M4OWNER.RECEIVING_UNIT.CREATED_DTTM AS "Date Placed in Bin",
M4OWNER.STOCK_SERIAL_ID.SERIAL_ID AS "Serial ID",
M4OWNER.STOCK_SERIAL_ID.PART_ID AS "Part ID",
M4OWNER.STOCK_SERIAL_ID.USEABLE AS "Usable Status",
M4OWNER.RECEIVING_UNIT.REQUEST_ID AS "Request ID",
M4OWNER.RECEIVING_UNIT.REQUEST_LINE AS "Line",
M4OWNER.STOCK_SERIAL_ID.PLACE_ID AS "Warehouse",
M4OWNER.STOCK_SERIAL_ID.LOCATION AS "Location"
FROM M4OWNER.STOCK_SERIAL_ID INNER JOIN
M4OWNER.RECEIVING_UNIT ON M4OWNER.STOCK_SERIAL_ID.SERIAL_ID = M4OWNER.RECEIVING_UNIT.SERIAL_ID AND
M4OWNER.STOCK_SERIAL_ID.PART_ID = M4OWNER.RECEIVING_UNIT.PART_ID INNER JOIN
M4OWNER.RECEIVING ON M4OWNER.RECEIVING_UNIT.RECEIVING_ID = M4OWNER.RECEIVING.RECEIVING_ID INNER JOIN
M4SUPP1.PART ON M4OWNER.STOCK_SERIAL_ID.PART_ID = M4SUPP1.PART.PART_ID
WHERE (M4OWNER.STOCK_SERIAL_ID.BIN_ID = 'LOCATION')
AND (M4OWNER.STOCK_SERIAL_ID.SERIAL_ID = 'ISSUE360')

Similar Messages

  • In Messages, how can I get the most recent entries to appear on top, like with my emails?  Thanks!

    In Messages, how can I get the most recent entries to appear on top, like with my emails?  Thanks!

    HI,
    A Note.
    Technically the most recent Conversation (or Chat) that has a new message (be it iMessage or IM) will move to the top in the list on the left if it is set in the View  Menu to do so.
    Obviously this does need more than one Conversation or Chat to be listed to work.
    It does not change the focus of the Chat/Conversation you are viewing.
    iChat - the forerunner naver had an option to invert the chats.
    The iChat Feedback page is where I use.
    You will also see it does not list iChat 6 depsite listing Lion.
    In this sense it has always beeen out of step on the iChat/Messages version front  (it took me a long time via the Lounge and Host help to get it on the list of pages to be updated on New OS versions)
    11:00 PM      Friday; June 28, 2013
      iMac 2.5Ghz 5i 2011 (Mountain Lion 10.8.4)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • How to get the Most RECENTLY installed JRE path and version ?

    Hello Experts,
    I am working on Installshield, and for some purpose, I need to get the MOST RECENTLY installed JRE version and Path. Now I have two choices :
    1. Go into the directory " C:\Program Files\Java\" and get the most recently changed directory, ( that will be the installation directory of the most recently installed JRE ). And then search in the registry under : HKEY_LOCAL_MACHINE/SOFTWARE/JavaSoft/Java Runtime Environment/ and look for the version which is having
    the value of the key INSTALLDIR as the above found Installation Directory.
    But in this approach, I'll never find the Installation dir or version, if the JRE is installed somewhere else than the default location.
    2. Now this is the reverse. I first search in the registry, and get the Installation Directories of all the versions installed in the system, and then look at the file attributes ( may be by using some batch file ) and see which one is most recently installed.
    My question is, is there any other way, by which I can get the most recently installed JRE's installation Path and version? Or can we trace it during the installation itself ? I mean when we install the JRE, it creates some log files in %TEMP% directory. Is it possible to trace the version and installation directory of the most recently installed JRE from the log file ?
    Thanks
    Gagan

    Rendering times are pretty much based on processor speed if I have that right. Not much you can do about that other than buy a new computer. Your day to day work in the finder and accessing of files would be faster with your boot drive internal. One thing you can do is ensure your FCP System Settings are on the fastest disk you have. If you put a pair of drives internal and made a RAID volume for them you would improve your write speed when capturing and for any other read/write operations. You would have to be sure you kept that backed up properly because you double the odds of a failure when two drives spread the data between them. There are many RAID options.
    You could also bump up the RAM but you'd have to look at your processes to see if you are being limited by RAM. I'm guessing not but it's not impossible. If you are accessing scratch disks due to RAM limitations that would be one thing you could do.
    I would never bother connecting an external via USB if there was an esata or firewire option. I use an esata card internally to give me access to estata storage. I also keep an external FW800 drive for a mirror backup of my boot drive. All my data and booting is internal with all my backups external. Each internal has an external and I have additional externals that I keep off site to protect against fire and theft.

  • HT4623 I have ios 5.1 and according to my ipad there are no ios updates but yet there are apps I would like to use that require 6.0 or later.  how do i get the most recent ios 7.0.3?

    how and where do I the the latest IOS for IPAD!!!

    Fredronalderman wrote:
    there are apps I would like to use that require 6.0 or later.  how do i get the most recent ios 7.0.3?
    Finding iOS Apps Compatible with Older Devices
    App Store: Downloading Older Versions of Apps

  • I got a new iphone 6.  When I restore my phone from my icloud backup my most recent photos and messages not restored from icloud backup.  How do I get the most recent backup onto my new phone?

    I got a new iphone 6.  When I restore my phone from my icloud backup my most recent photos and messages not restored from icloud backup.  How do I get the most recent backup onto my new phone?

    Hello, Anita.  
    Thank you for visiting Apple Support Communities.  
    I understand that you are wanting to restore your new iPhone 6 from an iPhone 5 backup.  This sounds like the iOS version of your old iPhone 5 may be newer than what was installed on your iPhone 6.  Try going through the steps in the article below.  
    iOS: Unable to restore from backup of a newer device
    I would also check to see the backup dates in iTunes and if the  backup is located on iCloud instead of iTunes.  
    Back up and restore your iPhone, iPad, or iPod touch using iCloud or iTunes
    Cheers, 
    Jason H.  

  • I am about to buy my first Macbook Pro, should I wait for the possibility for a 2015 macbook, or just get the most recent model currently? (9-22-14)

    I am about to buy my first Macbook Pro, should I wait for the possibility for a 2015 macbook, or just get the most recent model currently? (9-22-14)

    No one knows if there will be a new model and if so, when that would be. However, there always will be something bigger, better, and newer around the corner, so you'd be waiting forever.
    Buy it when you want or need it.
    FWIW, here are the specs of the latest models (which happen to be mid 2014):
    Apple - Support - Technical Specifications

  • Why can't ipod touch 1st gen get the most recent ios update?

    i have tried to update my ipod touch but it doesnt work. i dont understand why the 1st generation cannot get the most recent update.

    Because the 1G iPod does not have the hardware necessary to support higher than iOS 3.1.3

  • Where can i get the most recent version of firefox?

    Sorry that this isn't posted in the correct category but i was unable to find a category that suited my question:
    Hi, i was just wondering what the most recent version of firefox is? How can i get it? What are the download and use requirements? And what are the advantages of using the newest version instead of the old ones?
    Again, sorry for putting this in the wrong category, cheers.

    You are on the current version of Firefox which is 6.0.2, you can verify
    * Help ("Alt+H") > About, this is also where you can check for Firefox update
    * Tools ("Alt+T") > Troubleshooting Information... > look for version<br>(or use '''about:support''' from Location Bar)
    Where to get the latest version is at
    * http://www.mozilla.com green button to download if not up to date
    * http://www.mozilla.org green button to download does not check if you are up to date.
    ''Your "More system details..." in the right-hand column tells us you are at Firefox 6.0.2''
    <br><small>Please mark "Solved" one answer that will best help others with a similar problem -- hope this was it.</small>

  • Help me get the most of my N900

    Hi,
    I've slowly grown to like my N900 more and more over the months I've had it. I wish I had more time and know how to get creative on it, but for now there a few quirks that prevent me from getting the most out it.
    1. media player
    Is there any media player that will allow you to go from shuffle to the album that the song is from, like you can in ipod? I basically need inspiration from shuffle to decide what to listen to and miss it on my n900. Going back to find it manually is too laborious. Just downloaded instinctive and it doesnt seem to handle that. Also in portrait only which is no good for me!
    2. google search
    If I do a search from the address bar, it nearly always gives me results from google.fr. Dunno why this could be.
    3. Sygic Mobile Maps
    I love Sygic. I often use it with music running at the same time. I got the update (including full screen) before I reflashed and then updated to latest maemo. I dunno how to get the update again, but when I do I really need to know how to minimise and get to other programs by only using the screen. This didnt seem to be possible with full screen and changing music while using maps on my bike is pretty lethal otherwise!
    Also wondering how to not have sygic sound files in my media player. I dont really need to be given random directions in mandarin chinese while I'm trying to navigate the countryside. Not that I'm actually gonna understand it !
    4. Lastly as an honorary angry bird, I demand more levels immediately!
    Any help would be great!
    P

    If you don't want the sound to be added into your media player then
    you'll have to change the path of /home/user/MyDocs/Res to /home/user/MyDocs/Private/Res
      i.e. Create a folder called Private in MyDocs and move Res into it.
    after Moved Res folder to Private Folder.
      Edit the file MyDocs/Drive/Maemo/setting.ini . . [Settings] showSafetyMsg=false ;DPI=96 DPI=220 ;IconSize=3 processing=fribidi PositionFiltering=true colorMode=RGB565 showSafetyMsg=true ResourcePath=/../../Private/Res
    Done now there won't be any .wav file from sygic in your media player anymore.
    hoe this helps, i found it on talk.maemo.org , credit to the poster maxximuscool
    As for the problem, to go back to the task manager while u r using sygic in full screen mode, install the app CAMKEYD from the app manager, and itll enable u to just push the camera button halfway and that'll bring up the task manager or u can use the other option by using keyboard shortcuts, i dont like to keep on opening my keyboard again and again,
    hope this helps.
    Hasan 

  • Did You get The Most Recent Firmware Update And Did It Work

    Ok There seems to be alot of confusion on hear about the Friday ( 07-08-11) Update that was sent out to fix the Reboot issue with the Phone. Some people like my self have reported that they can not get the Update as there phone is getting an inability to connect to the network error, or the update window simply disappears with out a response (This is what is happening to me).
    Many have reported that they got the update it fixed the reboot bug, and that they are seeing improvement in the phones functionality in general. Some people have reported that they have heard that the update is causing more problems. What I have yet to see (And I might have simply missed them) is reports from users that this has actually happened to them. So I started this Thread to see if we can't get a straight answer from the people that are actually using the phone (Because it seems VZW and HTC don't' seem to know or want to tell us right now) 
    So hear is what Im asking 
    1) Did you get the Update 
    2) Did it Fix The Reboot Bug From The Last Update
    3) How is the performance of the phone now
    4) Has the latest update brought any new problems
    Hopefully this clears up any confusion and we can all get a clear idea of weather this update is a worth bothering with.

    DroidM wrote:
    Ok There seems to be alot of confusion on hear about the Friday ( 07-08-11) Update that was sent out to fix the Reboot issue with the Phone. Some people like my self have reported that they can not get the Update as there phone is getting an inability to connect to the network error, or the update window simply disappears with out a response (This is what is happening to me).
    Many have reported that they got the update it fixed the reboot bug, and that they are seeing improvement in the phones functionality in general. Some people have reported that they have heard that the update is causing more problems. What I have yet to see (And I might have simply missed them) is reports from users that this has actually happened to them. So I started this Thread to see if we can't get a straight answer from the people that are actually using the phone (Because it seems VZW and HTC don't' seem to know or want to tell us right now) 
    So hear is what Im asking 
    1) Did you get the Update Yes, I requested it at 7:50pm, 7/8/11
    2) Did it Fix The Reboot Bug From The Last Update Yes
    3) How is the performance of the phone now  Much better, I no longer have data drops so I no longer need to turn on and off Airplane mode to get data back
    4) Has the latest update brought any new problems Zilch, none, nada, nope
    Hopefully this clears up any confusion and we can all get a clear idea of weather this update is a worth bothering with.

  • I want to run my program with continuous aquisition and write data to file when a button is pressed and get the most recent samples from the DAQ board.

    This is an update to a question I asked earlier. I am still trying to solve the problem. I have included a zip file with a library file. The file to open in pj_pushbutton.vi. I have placed comments explaining the issues and problems in this vi and the subvi's.
    When I push my button to write the data to file I think it is writing the data that has already been stored in the buffer and writing to file all at once. I want the data that is taken from the DAQ board from the time that I press the Write File button. How do I do this?
    Attachments:
    pj_pushbutton.zip ‏692 KB

    Hi,
    1. In AI read, you need to set the Read/Search option to "Relative to End of Data".
    2. Next you should not start AI Read VI until you press the Write to File. I am attaching an example VI below. Please see if it helps.
    Regards,
    Sastry V
    applications Engineer
    National Instruments
    Attachments:
    MostRecentAcquiredData.vi ‏97 KB

  • When using the Plugin Checker, it tell me to update Shockwave for Director but when I get the most recent update ( yes, I'm sure), Plugin Checker still insists it is outdated. Is this a bug?

    Current version of Shockwave on my system is 11.5.9r620

    Current version of Shockwave on my system is 11.5.9r620

  • HT201269 i backed up my iphone to iTunes and then when i restored the back up info was not from the most recent backup, but from May!!! what can I do to get yesterdays data?1

    i backed up my iphone to itunes and tried restoring the info on to a new iphone and for some reason it used an old back up from last may.  I know that the recent back up worked as I used it to set up another phone a week ago (a phone whihc also had problems and hence I needed to use that same back up again on my second new phone.  Is there anyway I can get the most recent back up information back?

    1. Create a backup of your iPad to iTunes on your computer or to iCloud
    2. Transfer any and all photos & videos on your iPad to your computer.
    3. Erase the iPad and restore the iPhone's iCloud backup to the device.
    4. Transfer any and all photos & videos on your iPad to your computer.
    5. Restore the iPad backup you reated in step #1 back to the iPad.

  • How to return only the most recent row?

    Hi guys,
    I have a question which I am hoping is not too difficult but I just am not sure how to do it. I need to run a query on a table which may bring back multiple rows for my criteria, however I only want to bring back 1 of these multiple rows and the one I want to bring back has to be the most recent. I do have a date_created column on my table as well as a date_last_updated column. So basically using the select statement below as an example this query could return lets say 5 rows, I however only want it to return the most recent row and the most recent row is determined by the date_last_updated (which will only be populated if the record has been updated otherwise it is null) or the date_created fields.
    select * from my_table
    where model_id = 234
    Any help on this matter would be greatly appreciated.
    Thank you.

    Hi,
    you can do; -
    select *
    from
    (select *
    from my_table
    order by creation_date desc)
    where rownum = 1This does not guarantee that you will get the most recent in cases of records being created at exactly the same time, but if your table has a prime key then you could use this as the order by to get the same effect, though if say 5 records are inserted as a batch what does it really mean to be inserted last....
    regards,
    Robert.
    Edited by: Robert Angel on 09-Jul-2012 08:22 to add code tags.

  • I just downloaded Firefox 6.0. The web page asked if I wanted to upgrade. What is the most recent version of Firefox and why can't I get it denoted in the propperties link? Also why is it not compatible with AVG Tool Bar?

    I just downloaded Firefox 6.0. The web page asked if I wanted to upgrade. What is the most recent version of Firefox and why can't I get it denoted in the propperties link? Also why is it not compatible with AVG Tool Bar?

    Firefox 6.0 is the current version.
    Get what denoted in what properties link.
    You can get the version number in Help -> About Firefox,
    and in '''about:support''' typed into the Location bar, and you can use JavaScript to list the user agent -- javascript:navigator.userAgent
    I'm not aware of any version of Firefox from Fx 2 on up to Fx 6 where "AVG Safe" is not a problem. Crashes aren't the only failures caused.
    * http://kb.mozillazine.org/Problematic_extensions
    * https://addons.mozilla.org/en-US/firefox/blocked/
    * https://addons.mozilla.org/en-US/firefox/blocked/i6
    * https://bugzilla.mozilla.org/show_bug.cgi?id=527135

Maybe you are looking for

  • Wireless connection lost between my router and printer (hp officejet 4620)

    My hp officejet 4620 printer has been working fine but now the wireless connection has been lost and I can't get the wireless connection back. The blue light for the wifi flashes blue. I can't get the connection back between the router and the printe

  • Freeze During Gameplay

    I was playing a the name the song game on my ipod mini before class today when my ipod mini froze during gameplay. The backlight is still on on the ipod mini, and it is still frozen from where i left it. The ipod mini is currently still on as I type,

  • Use of function and procedures

    when we need to use function rather than procedure or viceversa???

  • Issue in passing data from PAge A to Page B

    Hi I have a scenario where I am trying to pass data from Page A to Page B. This data has to be passed on the click of a button. On the button's event, I have set the paramaters that I want to pass. I have passed these params in a hashmap in pageConte

  • How to use KeyEvent listeners

    i made the progeam below to try to move a box around the screen by typing on the key bourd. but it doesnt work. what am i doing wrong. import java.applet.Applet; import java.awt.*; import java.awt.event.*; import java.awt.event.KeyEvent.*; public cla