ITM 500 Lecture Notes - Lecture 9: Result Set, Aggregate Function, Virtual Method Table

83 views4 pages

Document Summary

Chapter 8 section 2: subqueries and correlated. It"s often necessary to process data based on other processed data. I. e. suppose that you want to generate a list of vendor who don"t provide products). You could do so by writing the following query. Select v_code, v_name from vendor where v_code not in (select v_code. In that case, you used a subquery to generate the required info, which could then be used as input for the original query. The basic characteristics for subqueries are the following: It"s a query (select statement) inside another query. The first query in the sql statement is known as the outer query. The query inside the sql statement is known as the inner query. The output of an inner query is used as the input for the outer query. The entire sql statement is sometimes referred to as a nested query. One single value (one column and one row).

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents