Homework assignment #5
CS 643, Spring 2002
Due: Wednesday, March 13, 2002
Total points: 100
You're be asked to write the following queries with the tables in the SH schema. Save operations in "queries.sql". This section can be shared by two students.
- Write a query on a table of your choice. Specify the condition as a value of an index attribute.
- Write a query on a table of your choice. Specify the condition as a value of a non-index attribute.
- Write a query on a table of your choice. Specify the condition as either greater than or less than a value of an index attribute.
- Write a query on a table of your choice. Specify the condition as either greater than or less than a value of a non-index attribute.
- Write a query of equijoin between two tables. Specify additional condition on one of or both of the tables to see if there's any change of the execution plan.
- Write a query of non-equijoin between two tables. Specify additional condition on one or both of the tables to see if there's any change of the execution plan.
- Write a query of outer join between two tables. Specify additional condition on one or both of the tables to see if there's any change of the execution plan.
- Write a query of full outer join between two tables. Specify additional condition on one or both of the tables to see if there's any change of the execution plan.
- Write a query of Cartesian join between two tables. Specify additional condition on one or both of the tables to see if there's any change of the execution plan.
- Write a query of anti-join between two tables. Specify additional condition on one or both of the tables to see if there's any change of the execution plan.
- Write a query of semi-join between two tables. Specify additional condition on one or both of the tables to see if there's any change of the execution plan.
- Write a star query between a fact table and two lookup tables. Specify additional condition on either type of the tables to see if there's any change of the execution plan.
Back to CS643 schedule