Presentation is loading. Please wait.

Presentation is loading. Please wait.

Non-selection queries

Similar presentations


Presentation on theme: "Non-selection queries"— Presentation transcript:

1 Non-selection queries
Make table Append fields must be identical to table’s ones Update Delete choose wisely Where or From it deletes all records involved in From Properety Sheet  Unique Records  Yes # build a query which selects categories, supplier’s companyname and products’s name and price and build table ProductsExtended using these data # build a query which extracts suppliers from Germany (fields Companyname and phone) and appends the 3 resulting records to table Shippers # build a query which increments all German products’ prices by 15% # build a query which deletes shippers whose phone starts with parenthesis zero (0 # build a query which deletes all order details for orders handled by Nancy Davolio and then all the orders. 28 May 2015

2 Non-inner joins Left/right joins
include fields which do not appear on 1 side get the list of non-matching fields # add to database some suppliers which does not have any product # get the list of suppliers without product. Hint: is criteria Is Null # delete these suppliers 28 May 2015

3 Database documentation
Database’s verbose description and schema Tables Fields Types Options Comments Queries, Forms and Reports Database Tools  Database Documenter Options to remove properties needs to be heavily integrated! 28 May 2015

4 Home exercise : Your library
Very advanced queries. Build a query which: finds authors without books deletes all books written after 2000 extracts all books written by Shakespeare and puts them into a table 4

5 Home exercise : students and exams
Very advanced queries. Build a query which: asks for a student and increments all his grades below 28 by 2 points Finds students without passed exams Extracts professors without courses and appends them to table students 5


Download ppt "Non-selection queries"

Similar presentations


Ads by Google