Can it not possible that i can retrive it for all line items in a single qu

I have to make report for my application in which I am facing a following problem:
In the application there are multiple suppliers and each supplier having multiple line items and each item having multipale events. each evant having three status GREEN,RED and BLUE.
When a user select 'all suppliers' to show the the status time span for a supplier (i.e. for a supplier how many parts and upto how much time parts are in blue, red and green status)
to show the cumulative status time span I have to find out a event for each line item which is having nearest lower entry time from the lower part of the given time span.for this i have write following query
SELECT * FROM parts_events
WHERE vendorid = ? AND partid = ?
AND visible = 'visible' AND active = 1
AND entrytime = (SELECT MAX(entrytime) as
entrytime from parts_events
WHERE vendorid = ?
AND partid = ?
AND entrytime < ?
AND visible = 'visible'
AND active = 1)
the problem is that i have to fire this query for each line item, can it not possible that i can retrive it for all line items in a single query?

maybe if you can post some sample data and output will help us analyze more youre requirement.

Similar Messages

  • Can I create a global custom step type, available for all sequence files through a single copy?

    I would like to create a custom step type and make it available to any (new or existing) sequence file, without having to copy/paste it every time, to avoid maintenance problems...

    Hi Andre,
    You need to create the custom step type in the station view rather in the sequence file view.
    There's a step type button near the Users Button.
    Click on this button then proceed in creating the custom step type as you would have done in the sequence file.
    If you are using TS 1.0.x then the new step type will be added to the types palette.ini.
    If you are using TS 2.0 then will be able generate a new group ini file to hold your custom step types.
    Regard
    Ray Farmer
    Regards
    Ray Farmer

  • Cost Centre is not getting for all line items in FAGLL03 dump.

    Hi All,
    When we executhe the t.code FAGLL03, at the ledget level (0l&Z1) cost center filed is coming blank, however for one document cost center filed is displayed.
    We executed FAGLL03, without ledger(0L&Z1) cost center filed is displayed.
    Please let us know is there any setting to display cost center at the ledger wise?
    Thanks and Regards,
    Ram

    Hi Alex,
    Thanks for your quick response.
    we are using 6.0 version, is there any configuration to get cost center filed in the FAGLL03?
    When we selected entry view, the all cost center fileds are displayed, however we selected GL view the cost center filed is coming blank.
    I hope some config is there to display cost center filed in 6.0 ECC?
    Thanks
    Ram

  • Is it possible that apple can factory unlock my phone?

    Is it possible that apple can factory unlock my phone? i bought it last year in america and i am currently in South Africa and it's just gathering dust.

    Apple does not unlock phones. Only the original cellular provider can authorize unlocking. You will need to contact them.  If it is AT&amp;T, they do not provide unlocking, ever.
    Stedman

  • Can it be possible that a user insert data by a form and then create a PFD?

    Can it be possible that a user insert data by a form, then store the data in the Data Base and finally create a PFD?
    If this is possible with BI Publisher, what do i have to do to link the form with the BIPublisher interface?
    Regards

    Hi
    If you just have a PDF form and do not need to pre populate data then all you need do is:
    1. Add a submit button to the PDF - you can use the full Adobe product or a BIP API
    2. Load the PDF as a template with a dummy data source.
    The user can then run the "report" as usual. When they have completed the form they can hit the Sumit button on the form. Adobe will then scrape the data out of the form in an XML format and post it to the URL you added. At the other end of the URL you need a servlet to accept and process the XML data.
    If you need to prepopulate the form you can attach a datasource to the PDF template but ensure the fields are preserved after running the form for the user through the config options.
    BIP does have APIs to populate drop lists, etc but these are not exposed thru through the BIP UI.
    I'll try and write this up for the blog and OTN soon
    Regards
    Tim

  • HT201272 Before backing up my old iphone4 I traded it in for an iphone5. All of the apps I purchased I had no problem retrieving from itunes with no charge but I can't download music that I have already paid for that was not backed up w/out paying again.

    Before backing up my old iphone4 I traded it in for an iphone5. All of the apps I purchased had no problem downloading to my new phone from itunes with no charge, but I can't download music that I have already paid for that was not backed up w/out paying again. How can I get these songs to my new phone without having to buy them again?

    Whether you can re-download music depends upon what country that you are in (and whether it remains in the store). If you don't have a Music section in the Purchased tab in the iTunes store app on your phone for re-downloading it, then do you not have you library on your computer's iTunes or on your backup of your downloads ? If not then you could try contacting iTunes Support and see if they will grant you a re-download

  • I have OS 10.4.11 and iTunes 9.2.1 (5). My iPhone 4s does not appear in iTunes. only iPhoto recognize my iPhone. Update of iTunes seems not possible. How can I make appear my iPhone in iTunes?

    I have OS 10.4.11 and iTunes 9.2.1 (5). My iPhone 4s does not appear in iTunes. only iPhoto recognize my iPhone. Update of iTunes seems not possible. How can I make appear my iPhone in iTunes?

    From the box the iphone came in:
    Syncing with iTunes on a Mac or PC requires:
    Mac: OS X v10.5.8 or later
    PC: Windows 7; Windows Vista; or Windows XP Home or Professional with Service Pack 3 or later
    iTunes 10.5 or later (free download fromwww.itunes.com/download)"
    You will need Mac OS 10.5.8 or later in order to get itunes 10.5 or later, in order to connect your iphone.

  • Before, when reading PDF files, I was able to copy and paste part of the book. Now it is not possible. I can copy but when pasting gets nothing.  Antes, quando lia arquivos PDF, eu conseguia copiar e colar parte do livro. Agora isso não é possível.

    Before, when reading PDF files, I was able to copy and paste part of the book. Now it is not possible. I can copy but when pasting gets nothing.
    Antes, quando lia arquivos PDF, eu conseguia copiar e colar parte do livro. Agora isso não é possível. Eu consigo copiar, mas quando vou colar o texto, não cola nada.

    Caro Fabiano,
    Obrigado por ter contactado as Comunidades de Suporte Apple.
    Na origem do seu problema podem estar várias causas. Nomeadamente:
    O ficheiro (arquivo) que está a ler pode não ser texto, ou seja, pode ser texto transformado em imagem e exportado como PDF.
    A aplicação de destino (onde está a tentar colar o texto copiado) pode não aceitar a colagem de texto formatado.
    A aplicação que está a utilizar para abrir os ficheiros PDF pode não ser indicada para certo tipo de documentos. Experimente o iBooks, o Dropbox ou até mesmo o seu e-mail.
    No caso de nenhuma destas causas estar na origem do seu problema, forneça, por favor, mais informações sobre a origem do ficheiro (descarga pelo Safari, Mail ou outro) bem como o destino (documento Pages, Keynote ou Numbers ou outra aplicação que não o iWork).
    Atentamente,
    Gonçalo Matos
    Estou aqui para ajudar. Clique no botão "Reply" no caso de ter outra questão ou necessitar de outro esclarecimento para que eu possa ajudar da melhor forma que conseguir.

  • Hello downloading programs is not active, that I can do to fix this?

    Hello downloading programs is not active, that I can do to fix this?

    Link for Download & Install & Setup & Activation may help
    -Chat http://www.adobe.com/support/download-install/supportinfo/

  • Pieces of my ipod are falling apart after a really bad crack i have all over my screen, will it be possible that it can be fixed?

    Pieces of my ipod are falling apart after a really bad crack i have all over my screen, will it be possible that it can be fixed?

    Apple - Support - iPod - Repair pricing

  • HT2737 I understand this part but once it shows amount my account has why can I not use that to gift music.

    I understand this part but once it shows amount in my account why can I not use that amount shown to gift music?

    Apple doesn't allow that. They've never said why.
    (96758)

  • I just bought my iMac 2 days before the new iMac was launched. Is that possible that I can replace it with the new one?

    I just bought my iMac 2 days before the new iMac was launched.
    Is that possible that I can replace it with the new one?

    You can return a computer within 14 days of purchase for a refund.
    http://www.apple.com/legal/sales_policies/retail_us.html - Returns in the USA:  iPhones within 30 days, other items within 14 days.
    Do you really mean an iMac2?  If you do you're about 10 years too late in wanting to return it.  I guess if you do have an iMac2 then it makes sense you posted on the iMac(PPC) forum since this one is for models at least 6 years old.

  • Hi Can anyone tell me that where can I find the details of note 870314.1

    Hi All
    Can anyone tell me that where can I find the details of note 870314.1?
    Thanks!!!!

    Check this
    https://support.oracle.com/epmos/faces/KmHome?_adf.ctrl-state=13qp3oaqpp_14&_afrLoop=413661905932923
    Go to Knowledge Tab and there you can access these all stuff.
    Thanks,

  • I have 0,3€ credits. How can remove them so that I can change to the app store of another country?

    I have 0,3€ credits. How can remove them so that I can change to the app store of another country? I need to change to the Chinese app store as the apps I am looking for can be only found there. Thanks for all answer in advance!

    Click here and ask the iTunes Store staff to zero your account balance. Note that if you're not in China, you won't be able to use the Chinese App Store.
    (125951)

  • I got a new ipad2 for Christmas and I am unable to get it to accept my password for my wifi. I am using the same password that I have always used for all of my other devices. Can somebody help me????

    I got a new ipad2 for Christmas and I am unable to get it to accept my password for my wifi. I am using the same password that I have always used for all of my other devices. Can somebody help me????

    Hi there
    I had the same trouble today, I kept entering the sky password but would not accept, my iMac and iPod work ok but just could not get my iPod to work. But I found the fault, the password is case sensitive and mine on sky is in caps, the up arrows on the keypad put the caps on,but after each letter you must put the caps back or it wil revert to lower case, I hope this may help you

Maybe you are looking for

  • Bit Locker Recovery key lost

    hi, i recently formated my system. i lost my bit locker recovery key. how to remove bit locker to the drive. i tried these.... C:\Windows\System32>manage-bde -status J: BitLocker Drive Encryption: Configuration Tool version 6.1.7600 Copyright (C) Mic

  • Memory problem on my e3500

    Hi all, I've a problem on this e3500 server, I had several reboot without printing anything in messages. Now I found something, I think it's not cpu19 involved (score05 and syndrome not equal to 0x3), I suppose it's fault of 2 memory slot on board 7

  • Error in ESS App Change Own Data

    Hello!!! I am in process of implementing ESS for a middle eat client. For some reason unknown to me the application "Change Own Data" isn't working. When I click on the link to "Change Own Data" it throws the following error: Critical Error A critica

  • Writing file with windows 7 and vista os..

    hi, since i am using Windows XP operating system with Labview, i made a executable file and i trying to install with Windows 7 or Vista OS installed PC.  when my device is detect it will gives the hardware information , that have to save in to the ha

  • SAP BO Disclosure Management - Setting - Period

    Can the display of valid from and valid to dates be in dd/mm/yyyy instead of the American format of mm/dd/yyyy?