SELECTING FROM MORE THAN ONE TABLE (review)

 

Many of the examples and exercises that follow use more than one table, with one or more INNER JOINs.  To review:

 

 order details extended result

order details extended sql

 

 

Note:  To simplify rewriting the query, omit the table names where not needed, use table aliases if you wish, and calculate the total price without discounting (that is, replace the "Extended Price" calculation) as follows:

 

            [Unit Price] * Quantity AS NondiscountPrice

 

The Unit Price column appears in more than one table, so you will have to specify which table the database engine should use.