Buy Support
Incidents |
If you can't find your answer
in the FREE PUBLIC QDeveloper Forum, require URGENT Priority Support, or you need to send us
private or confidential information: |
Click Here
|
If you can't
login and post questions or you are having trouble viewing forum posts:
Click Here
|
Callback
Support |
If you live in USA, UK, Canada, Australia or New
Zealand, you can leave us details on your question and request us to call you back and discuss
them with you personally (charges apply). |
Click Here
|
Buy Support
Incidents |
If you can't find your answer
in the FREE PUBLIC QDeveloper Forum, require URGENT Priority Support, or you need to send us
private or confidential information: |
Click Here
|
|
Retrieve recently modified invoices |
Author |
Message |
|
Posted : 2007-01-05 02:56:11 |
I want to retrieve only recently created/modified invoices, saying, modified during the last 60 minutes. But field TimeModified seems to contain no time, date only, so my select through qbodbc driver retrieves all invoices modified within the specified day. Is there a way to filter only invoices modified within the last 60 minutes?
Thanks in advance,
Sergey |
|
|
|
Tom |
|
Group | : Administrator |
Posts | : 5510 |
Joined | : 2006-02-17 |
|
Profile |
|
Posted : 2007-01-05 10:14:11 |
SELECT SalesOrderLine.TxnID, SalesOrderLine.CustomerRefFullName, SalesOrderLine.TxnDate, SalesOrderLine.RefNumber, SalesOrderLine.PONumber, SalesOrderLine.DueDate, SalesOrderLine.ShipDate, SalesOrderLine.ShipMethodRefFullName, SalesOrderLine.SalesOrderLineItemRefFullName, SalesOrderLine.SalesOrderLineQuantity, SalesOrderLine.SalesOrderLineRate, SalesOrderLine.SalesOrderLineAmount FROM SalesOrderLine where TimeModified > {fn TIMESTAMPADD(SQL_TSI_MINUTE, -60, {fn NOW()})}
will automatically retreive only the records in the SalesOrderLine table that have been changed in the last 60 minutes. You can use where TimeModified > {fn TIMESTAMPADD(SQL_TSI_MINUTE, -60, {fn NOW()})} with the InvoiceLine table also. |
|
|
|
|