When is it better to use a subquery over a join?

What will be an ideal response?


Often, a subquery and join will return the same results. Joining is most useful when data from several tables needs to be retrieved and there is no nesting. When relationships are nested, it is best to use a subquery. Also, some queries (such as some not in queries) could not be done with joins.

Business

You might also like to view...

A marketing plan should open with a situation analysis

Indicate whether the statement is true or false

Business

When marketers at P&G selected Generation Y, a demographic that includes college students, as an untapped group of potential customers for their Febreze line of products, they were executing which of the following?

A) market segmenting B) undifferentiated targeting C) differentiation D) targeting E) positioning

Business

Your choice of physician care will be greater if you join an HMO with

A) a group-staff arrangement. B) an individual practice arrangement. C) preferred provider arrangement. D) an indemnification agreement.

Business

The grounds for a products liability claim are:

A) Negligent design. B) Defects in the manufacturing process. C) Breach of the duty to warn D) Both A and C E) All of the above

Business