dbTalk Databases Forums  

Protect Query Result

comp.databases.theory comp.databases.theory


Discuss Protect Query Result in the comp.databases.theory forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
agileball@gmail.com
 
Posts: n/a

Default Protect Query Result - 09-10-2007 , 12:42 AM






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


Reply With Quote
  #2  
Old   
Ed Prochak
 
Posts: n/a

Default Re: Protect Query Result - 09-11-2007 , 12:43 PM






On Sep 10, 1:42 am, agileb... (AT) gmail (DOT) com wrote:
Quote:
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
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





Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.