Karim,

OEP55 is not especially "optimized" for inserts, rather, it's just that no one has bothered to create any sensible indexes over it. If you create the indexes necessary for your query they will perform fine. This is what I have done and use OEP55a extensively for reporting and audits.

Best regards
Gary.


-----Original Message-----
From: system21-bounces@xxxxxxxxxxxx [mailto:system21-bounces@xxxxxxxxxxxx] On Behalf Of Karim Khuweldi
Sent: 26 January 2012 13:04
To: system21@xxxxxxxxxxxx
Subject: [SYSTEM21] System21 - Time from Pick Note to Despatch Note

UPDATE TO JANUARY 2012 THREAD "System21 - Time from Pick Note to Despatch Note"


Ok here's how we've gone about it.

After some useful advice by Gary, we created two tables (in SQL Server), one for OE340 transactions (pick note prints) and another for OE125 transactions (confirmation of despatch).

These were populated from OEP55A: table OE340 with APRG55 = 'OE340' and ARCT55 = '2'; table OE125 with APRG55 = 'OE125' and ARCT55 = '2'.

A select query then joins these two tables to show the times (ADAT55 and ATIM55) for both transactions side by side and the amount of time between the two.

In theory, it should be possible to query the source table directly, without the need for the two tables above. However, OEP55A is a huge table and is optimised for inserts rather than reporting.

Regards,
Karim


________________________________

Karim Khuweldi
Sauflon Pharmaceuticals Ltd, 49-53 York Street, Twickenham, Middlesex TW1 3LP England

[cid:image0015985.gif]

________________________________

Contact Information

Tel +44(0) 20 8322 4277
Fax: +44(0) 845 051 8704
Email: KarimK@xxxxxxxxxxxxx
Web: www.sauflon.com <http://www.sauflon.com>
________________________________

Disclaimer added by CodeTwo Exchange Rules 2010 www.codetwo.com<http://www.codetwo.com>

_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

This e-mail and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom
they are addressed.
If you have received this e-mail in error please notify the
originator of the message.

The views and opinions specified in this email may well be those of
an individual and not truely reflect the opinion of Showerlux UK Ltd.
as a whole.

All possible care has been taken to ensure our network and email
service remains virus free. We can not however accept liability for
any virus transmitted to you from a Showerlux user. We urge you to scan any
emails with your own virus software for your own peace of mind.

Showerlux UK Ltd is a company registered in England and Wales, registration number 1102862.

Registered office: Sibree Road, Coventry CV3 4FD.

VAT No: 273439150.

This message has been scanned by MailControl
provided by www.cbs.cc/MailControl


This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2020 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].