0


I've a query:

QUERY1{statements...} 
INTERSECT
QUERY2{statements...}

I need to evaluate these 2 queries according to giving database data,
my question is: do I have to evaluate each query separately and then combine the 2 results together?
i.g: cost(Query1) + cost(Query2) = Total query's cost ? .. or there is another way to solve this?

3
  • MySQL doesn't support intersect, so your query is not going to run. Commented Aug 31, 2015 at 13:34
  • It's not mySQL, sorry that was by mistake. Commented Aug 31, 2015 at 13:37
  • 1
    Which database are you using? Commented Aug 31, 2015 at 14:25

1 Answer 1

1

Yes, you have to add the 2 queries' cost.

In Toad Oracle you can evaluate the global intersect query:enter image description here

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.