Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
Database Servers
DB2InformixIngresMS SQLOraclePervasive.SQLPostgreSQLProgressSybase
Desktop Databases
FileMakerFoxProMS AccessParadox
General
General DB TopicsDatabase Theory
Related Topics
Java Development.NET DevelopmentVB DevelopmentMore Topics ...

Database Forum / General DB Topics / DB Theory / September 2007

Tip: Looking for answers? Try searching our database.

Protect Query Result

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
agileball@gmail.com - 10 Sep 2007 06:42 GMT
Hi all,

I want to protect the result of a query. That means every database
update which change the result of the quer must be discovered.

For example:
the query is
SELECT name
FROM emp
WHERE age > 50
When the connection is closed. And another app execute
INSERT INTO emp (name, age) values ("asd", 60)
Some warning must be issued.

In this simple case, we can write a trigger to solve it. However, in
some other cases, the query is much complex (e.g there is sub-query).
How to write the trigger efficiently? Is there any research topic
about this area? (if yes, would you pls suggest me some keywords).

Thank in advance
AgileBall
Ed Prochak - 11 Sep 2007 18:43 GMT
On Sep 10, 1:42 am, agileb...@gmail.com wrote:
> Hi all,
>
[quoted text clipped - 17 lines]
> Thank in advance
> AgileBall

this doesn't make sense.

Who would you issue the warning to? How are you going to do that from
the trigger?

if the connection for the SELECT is closed, what exactly are you
trying to "protect"??

Your problem is unclear so any suggestion are likely to send you off
on a wrong search path.. Consider rephrasing your question. Once you
can define the problem often possible solutions become apparent.

HTH
 ed
 
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



©2009 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.