What is meant by “query modification” as an approach to implementing representations?

Just do some revision and one of the questions:

"Explain what is meant by a modification request" as an approach to implementing representations. "

Now I’m not quite sure how to answer this ... I know what ideas, how to create them and why they are used, etc., but what exactly does this question want to know?

+6
sql mysql views
source share
1 answer

This is a theoretical concept from David Meyer working on relational theory .

When you use a view in your queries, for example:

CREATE VIEW v_filtered AS SELECT * FROM mytable WHERE mycolumn = 1 SELECT * FROM v_filtered JOIN othertable ON otherid = myid 

in order to fulfill your query, the database engine must be able to rewrite the query by virtual relationship (for example, your view) to one using the underlying relationship, as this is what is actually stored:

 SELECT * FROM mytable JOIN othertable ON otherid = myid WHERE mycolumn = 1 

This process is called query modification.

+7
source share

All Articles