| CREATE A DATA TABLE. | 
| If Access is   not open, open it in order to be able to carry out the following exercises. | 
| Exercise 1: Distributer. | 
| 1 Open the Cars database in My   exercises folder in the   hard drive. 2 Create a table named Clients with the following fields: 
 The primary key   will be Client code. 3 Create another table named Sold   Cars with the   following fields. 
 The primary   key will be License. 4 Create another table named Services with the following fields: 
 The primary   key will be Service Number 5 Close the database. | 
| Exercise 2: Clinic. | 
| 1 Open the Clinic database in My   exercises folder in the hard   drive. 2.Create another table named Patients with the following fields. 
 For the   moment we will not define a primary key. 3 Create another table named Doctors with the following fields. 
 For the   moment we will not define a primary key. 4 Create another table named Entries with the following fields: 
 Do not define   a primary key. 5 Close the database | |||||||||||||||||||||||||||||||||||||||||||
| Exercise Unit 4: Modifying data tables. | |||||||||||||||||||||||||||||||||||||||||||
| If Access is   not open, open it in order to be able to carry out the following exercises. | 
| Ejercicio 1: Cars. | 
| 1 Introduce the following data into the Clients table in the Cars database in My   exercises folder. 
 2 Change the name of James   Smith to Antony. 3 Delete the last record. 4 Close the table and the database. | 
| Exercise 2: Clinic. | 
| 1 Modify the structure of the Patients table in the Clinic database in My   exercises folder   following these indications: 
 2 Edit the structure of the Doctors table with the following data: 
 3 Edit the structure of the Admissions table with the following data: 
 4 Close the database | 
| Unit 5 Exercises. The field properties | 
| If Access is   not open, open it in order to be able to carry out the following exercises. | 
| Exercise 1: Distributer | 
| 1 Edit the structure of Clients table in Cars database using the following data: 
 2 Try to change the code of the first   client to 3500: Observe how   we are not allowed to as the validation rule has not been complied with, and   the message you typed is displayed. 3 Answer OK and leave the code as 100. 4 Test all the rest of the properties   that we have included. 5 Edit the structure of the Sold   Cars table. 
 6 Close the table saving changes. 7 Close the database. | 
| Exercise 2: Clinic III. | 
| 1 Edit the Patients table in the Clinic database following these indications: 
 2 Edit the Doctors table with the following fields: 
 3 Edit the Entries table with the following fields. 
 4 Close the database. | 
| If Access is   not open, open it in order to be able to carry out the following exercises. | 
| Exercise 1: Cars | 
| 1 Open the Cars database from My   exercises folder. 2 Add a Numeric field Client to the Sold   cars table. This field will tell us which client has bought   the car. 3 Add a Text field Car, Size 7, in the Services table which will tell us which car   (of the Sold Cars) corresponds the service. 4 Create appropriate relationships   between tables. 5 Introduce the following data into Sold   cars: 
 6 Introduce the following data into the Services table: 
 7 Close the database. | 
| Exercise 2: Clinic IV. | 
| 1 Open the Clinic database from My   exercises folder. 2 Add to the Entries table a numeric Patient field with Field Size Integer (this field will serve to show us   which client corresponds the entry) and whitout Default value (remember what   we said about numeric related fields!), and a text field (Size 5) named Doctor (this field will serve to know which   doctor to entrust the entry to). 3 Create the appropriate relationship   between the tables. 4 Introduce the following data into the Patients table. 
 5 Introduce the following data to the Doctors table. 
 6 Introduce the following data to the Admissions table. 
 7 Close the database. | 
| Unit 7 exercises. Queries | 
| If Access is   not open, open it in order to be able to carry out the following exercises. | 
| Exercise 1: Cars | 
| 1 Open the Cars database from My   exercises folder. 2 Create a query to visualize only the License, Make, and Model of the Sold   Cars, name it Sold   cars query. 3 Edit the previous query and add the   price, and only visualize those cars that are Ford, save the query with the   name Ford cars. 4 Edit the previous query to visualize   those that are Ford, and that have a price superior to 16000, name it Ford   superiors. 5 Create a query to see the surnames   and cities of those clients that have bought a Ford or a Audi, the clients should appear in   alphabetical order within each city. Name the query Ford   and Audi clients. 6 Close the database. | 
| Exercise 2: Clinic | 
| 1 Open the Clinic database from My   exercises folder. 2 Create a query to see the surnames,   addresses, and date of birth of those patients who were born before 1960 and whose postal code is 78767, name the query: Patients   from 78767. 3 Create a query to see those patients   whose admittance date was before the 12/31/98, their surnames, date of birth,   admittance date, and surname of the doctor assigned to them as well as his   speciality, save the query as Patients with doctor. 4 Close the database. | 
| Unit 7 exercises. Queries | 
| If Access is   not open, open it in order to be able to carry out the following exercises. | 
| Exercise 1: Cars | 
| 1 Open the Cars database from My   exercises folder. 2 Create a query to visualize only the License, Make, and Model of the Sold   Cars, name it Sold   cars query. 3 Edit the previous query and add the   price, and only visualize those cars that are Ford, save the query with the   name Ford cars. 4 Edit the previous query to visualize   those that are Ford, and that have a price superior to 16000, name it Ford   superiors. 5 Create a query to see the surnames   and cities of those clients that have bought a Ford or a Audi, the clients should appear in   alphabetical order within each city. Name the query Ford   and Audi clients. 6 Close the database. | 
| Exercise 2: Clinic | 
| 1 Open the Clinic database from My   exercises folder. 2 Create a query to see the surnames,   addresses, and date of birth of those patients who were born before 1960 and whose postal code is 78767, name the query: Patients   from 78767. 3 Create a query to see those patients   whose admittance date was before the 12/31/98, their surnames, date of birth,   admittance date, and surname of the doctor assigned to them as well as his   speciality, save the query as Patients with doctor. 4 Close the database. | 
| Unit 8 exercises . Summary queries | 
| If Access is   not open, open it in order to be able to carry out the following exercises. | 
| Exercise 1: Cars | 
| Create in the Cars database: 1 A query to know how many cars have   been sold, how much money they cost, and the average sale amount. Audi Cars should not be counted, name the query Summary   without Audi. 2 A query to know how many services we   have with oil changes, how many with filter changes, and how many changes of   brakes, name it Summary Services. | 
| Exercise 2: Clinic | 
| Create in the Clinic database: 1 A query to know the doctors that have   more than three admissions, indicating for each one of these the name and   surname of the each doctor, and how many admissions they have. Name the query Saturated   doctors. 2 A query to know the oldest admission   date within each speciality. Name the query Oldest   admissions. | |
| Unit 9 exercise. Crosstab queries | |
| If Access is   not open, open it in order to be able to carry out the following exercises. | 
| Exercise 1: Cars | 
| Create a   query in the Cars database in My   exercises folder to   obtain a crosstab query to know for each make, how many cars were sold in   each colour, and also the total sold of each make should appear. Name it Cross   make-colour. | 
| Exercise 2: Clinic | 
| Create a   query in the Clinic database in the My exercises folder to obtain a crosstab query to   know how many admissions in every speciality we have in each city. Name it Cross   Entries-Patients-Doctors. | |
| Unit 10 exercise. Action queries | |
| If Access is   not open, open it in order to be able to carry out the following exercises. | 
| Exercise 1: Distributer | 
| Open the Cars database. 1 Create the Create   Ford services query that will generate a new table named Ford   services and will contain the records of the Services carried out on Ford cars. 2 Create an Increase   price query that will permit the price of all Ford cars to   increase by 5%. 3 Create a Delete   Ford services query that will delete all records of Services carried out on Ford cars. 4 Create a Recover   services query that will recover the records deleted in the   previous query from the table that we created in part 1. | 
| Exercise 2: Clinic | 
| Open the Clinic database. 1 Create a Create   non admitted patients that will generate a new table named Non   admitted patients and will contain the records of the Patients that are not in the Entries table. 2 Create a Change   room query to change the patients from room 504 to room 505. 3 Create a Create   room 201 query that   will generate a new table named Rooms 201 and will contain the records of the Entries in room number: 201. 4 Create a Delete   entries that will delete the Entries in room number 201. 5 Create a Recover   entries query to   recover the records deleted in the previous query | 
| Unit 11 exercise. Forms | 
| If Access is   not open, open it in order to be able to carry out the following exercises. | 
| Exercise 1: Cars | 
| 1 Open the Cars database. 2 Create a form with which to edit the   records in the Clients table, naming it Client   maintenance. 3 Create a form with which to introduce   and edit the records of the Sold cars table, naming it Sold   cars maintenance. 4 Create a form with which to introduce   and edit the records of the Services table. Design it in such a way that   at the time of introducing the license the user can see the name of the   client who has the licence, naming itServices   maintenance. | 
| Exercise 2: Clinic | 
| 1 Open the Clinic database. 2 Create a form with which to edit the   records in the Patients table, naming it Patients   maintenance. 3 Create a form with which to introduce   and edit the records in the Doctors table, naming it Doctors   maintenance. 4 Create a form in which a doctors data   will appear in a zone, and below this the list of admissions that the doctor   has, naming it Entries per doctor. | 
| Unit 12 exercise. Reports | 
| If Access is   not open, open it in order to be able to carry out the following exercises. | 
| Exercise 1: Distributer | 
| 1 Open the Cars database. 2 Create a report to obtain a list of   the clients sorted by surname in such a way that the clients of each city can   be filed in a separate page. 3 Create a report to print the records   of the Sold cars table, grouped by Make and sorted by Model and also extracting how many cars   have been sold of each make and how much do they cost, and print it. 4 Create a report with which to print   the records of the Services table, and print it. | 
| Exercise 2: Clinic | 
| 1 Open the Clinic database. 2 Create a report to print the Name and   surname of each patient as well as their Entry date and surname of the   assigned doctor. | 
 
No comments:
Post a Comment