Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / December 2006

Tip: Looking for answers? Try searching our database.

SQL database

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Pink Panther - 15 Dec 2006 13:58 GMT
I retrieve data from a SQL database (AspenTech IP21) from within VBA.
No problem at all. But for those who know teh AspenTech database, know that
Aspentech realtime scans values and put them into the database.
In this database, there is running an algorithm that compresses these
database, this means, when a scanned value not has been changed in compare
with last saved data, the data will not be saved in the database.
So far so good. That would be nice for me, but the problem is, when a
datapoint doesn't change within 10 minutes, it will be put also in the
database.

My problem is, when I retrieve data from this database, I will get these
values back:

12-12-2006 0:00             1       *
12-12-2006 0:10             1
12-12-2006 0:20             1
12-12-2006 0:23             0       *
12-12-2006 0:33             0
12-12-2006 0:35             1       *
12-12-2006 0:38             0       *
12-12-2006 0:45             1       *
12-12-2006 0:55             1

My point is, at the moment I will get all above values and timestamp when I
select between 12-12-2006 0:00 and 12-12-2006 1:00, but I only want the
values and timestamps back where the value changes (marked with an asteriks)
Is there any SQL command that could do this filtering for me?!?!?

Thanks in advance.....

Paul
RB Smissaert - 16 Dec 2006 11:49 GMT
How about

select * from table where field = '*'

RBS

>I retrieve data from a SQL database (AspenTech IP21) from within VBA.
> No problem at all. But for those who know teh AspenTech database, know
[quoted text clipped - 28 lines]
>
> Paul
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.