Вы находитесь на странице: 1из 4

Chapter 11: Movie Task

Simple Queries

Make sure currency is in Euros with two decimal places

Show the following fields only: Vin, Model, Cost_Price, Port, County and Updated_Price
Show only the cars dispatched from Paris
Insert a new field called Updated_Price which is calculated at a run time You need to add 10% to the price.
Sort the model into ascending order

Show the following fields only: Vin, Model, Engine size, Dispatched_Date, Port, Country and Updated_Price
Show only the cars dispatched between January and February 2014
Insert a new field called Updated_Price which is calculated at a run time You need to add 15% to the price.
Sort the Port and then Country into ascending order

Show the following fields only: Vin, Model, Colour, Dispatched, Distributor_Code, Contact Name and Updated_Price
Show only the Vin which ends in 22, Model is Micro, Colour is Red and has been Dispatched.
Insert a new field called Updated_Price which is calculated at a run time You need to add 25% to the price.
Sort the updated price into ascending order
Chapter 11: Movie Task
Simple Queries

Make sure currency is in Euros with two decimal places

Show the following fields only: Model, Colour, Vin, Distributor_Code, Region and Updated_Price
Show only the Vin which ends with 22, Model is Micro B, Colour is Green and models which have been dispatched
after January 2014
Insert a new field called Updated_Price which is calculated at a run time You need to add 17.5% to the price.
Sort the Region into ascending order
Count the total number of models. Include a suitable label.

Show the following fields only: Model, Cost_Price, Distributor, Port, Country, City and Updated_Price
Show only the Micro or MicroB models, Cost_Price is more than 7500 and Distributor is FMD SA
Insert a new field called Updated_Price which is calculated at a run time You need to add 22.5% to the price.
Sort the Cost_Price into ascending order
Work out the average of the Cost_Price field. Include a suitable label.

Show the following fields only: Model, Power, Colour, Dispatched_Date, Contact_Name, City and Updated_Price
Show only the Models which have been dispatched after February 2014, VIN ends in 13, Power is H or G and Colour
is Gold.
Insert a new field called Updated_Price which is calculated at a run time You need to add 5.5% to the price.
Sort the Contact_name into ascending order
Work out the total sum of the Updated_Price field. Include a suitable label.
Chapter 11: Movie Task
Simple Queries

Make sure currency is in Euros with two decimal places

Show the following fields only: Model, Dispatched, Colour, Cost_Price, Distributor, First_Name and Address_1
Show only the models which are not Micro or MicroB, colour is blue, Distributor is NMD or FMD SA and there is no
dispatched date.
Sort the Distributor into ascending order
Count the total number of models. Include a suitable label.

Show the following fields only: VIN, Engine_Size, Cost_Price, Distributor_Code, City, Region and Updated_Price
Show only the models which are green or red, Cost_Price is more than 9000 and Distributor is EMD SA or BMD AG
Insert a new field called Updated_Price which is calculated at a run time You need to add 12.5% to the price.
Sort the City into ascending order
Work out the average of the Updated_Price field. Include a suitable label.

Show the following fields only: Distributor_Code, Model, Engine, Colour, Port, Cost_Price and Updated_Price
Show only the Models which have a engine size of 1200, Price is between 7500 and 8600, dispatched date is after
May 2014 and the colour is Silver or Blue.
Insert a new field called Updated_Price which is calculated at a run time You need to add 7.5% to the price.
Sort the Port into ascending order
Work out the total sum of the Cost_Price field. Include a suitable label.
Chapter 11: Movie Task
Simple Queries

Make sure currency is in Euros with two decimal places

Show the following fields only: Port, City, Region, Model, Colour, Cost_Price, Power and Dispatched Date
Show only the models which are not Micro or MicroB, Colour is not Red or Silver, Power is not E and dispatched in
the month of May 2014.
Sort the Port and then City into ascending order
Count the total number of models. Include a suitable label.

Вам также может понравиться