Sunteți pe pagina 1din 28

Cars Database

Made By:
Hussain Elahi
Affan Asim
Mubeen Wasim
Ibrahim Khawaja
Fasih Amer
Zubair Ifthikar
Contents
Mathematical Functions 3
Lookup Functions........4
Database functions.....5
Statistical Functions....6

Purchase Selling
Model Make Year Import year Chassis number Color price($) price($) Profit($) Import Duty($)
Move Daihatsu 2007 2009 YV149MTS6G2409804 White 1300 1500 200  
Pixis Toyota 2009 2011 JTJYWRBZ6G2009198 Blue 1400 1700 300  
Picanto KIA 2010 2012 YV126MEB3F1186381 Black 2000 2500 500  
Mira Daihatsu 2013 2015 SALWG2VF5GA642581 Red 1350 1700 350  
Light
Vitz Toyota 2010 2012 JA4JZ4AX9FZ001840 blue 1800 1920 120  

Fielder Toyota 2008 2010 WMWZP3C56FT298666 Grey 1900 2000 100  

Lancer Mitsubishi 2004 2006 KNAFZ4A81F5290432 Silver 2500 2650 150  

Fit Honda 2005 2007 WA1CMCFE3FD080332 Golden 3600 3850 250  

Prius Toyota 2007 2009 3VW2M1AJ5EM308034 White 4700 5000 300  


Red
Aqua Toyota 2009 2011 WMWSX1C50ET623235 wine 5900 6000 100  

Vezel Honda 2017 2019 WDDHH8JB5EA799727 Grey 9500 10000 500  


C-HR Toyota 2013 2015 JTHBE5D25E5999999 White 7700 8800 1100  

Highlander Toyota 2012 2014 JTHBE5D21E5009987 Black 2400 2700 300  

Amaze Honda 2016 2018 WAUWFBFL0E0015575 Red 1560 1720 160  


Accord Honda 2017 2019 JM3TB3BV1D0402771 Blue 1970 2340 370  
Brio Honda 2018 2020 JM1BL1UF2D1843458 Peach 2020 2450 430  
Harrier Tata 2013 2015 1C4BJWKGXDL508578 Golden 1440 2000 560  

Nexon Tata 2014 2016 WBA3A5C5XDF255852 Yellow 2000 2500 500  


Dark
Indigo Tata 2015 2017 SALSF2D48CA745019 blue 1370 1900 530  
Juke Nissan 2017 2019 5UXWX5C51CC727594 Black 1800 3000 1200  
Every Suzuki 2018 2019 WBSDX9C50CE632859 White 1250 1400 150  
Alto Suzuki 2006 2008 WAUFEAFMXCA868546 Grey 1760 1800 40  
Clipper Nissan 2009 2011 5J8TB18219A802665 Silver 1920 2500 580  
Passo Toyota 2010 2012 2G2WP552681193952 Silver 2020 3000 980  

Pino Nissan 2012 2014 KMHEU41DX8A516824 Black 1440 2000 560  


Navarra Nissan 2013 2015 1ZVFT80N475211367 Golden 2200 3500 1300  

Mathematical Functions
Q1: Find the import duty on each car.It is calculated by taking 3% of
selling price if the selling price is <2000,it is also calculated by taking 5%
of selling price if the selling price is >2000 otherwise 10% of selling
price.
Ans =IF(H3<2000,H3*0.03,IF(H3>2000,H3*0.05,H3*0.1))
Q2: Find the total profit made by each car
Ans: =SUM(I3:I28)
Q3: Find the maximum purchase price:
Ans: =MAX(G3:G28)
Q4: Find the minimum import duty.
Ans:=MIN(J3:J28)
Q5:Count the total number of cars using import year.
Ans: =COUNT(D3:D28)
Q6:Count the total number of cars made by Toyota
Ans: =COUNTIF(B3:B28,"Toyota")
Q7:Find the average profit made by each car.
Ans: Average(I3:I28)
Q8: Find the total import duty of Honda cars
Ans: =SUMIF(B3:B28,"Honda",J3:J28)
Lookup Functions
Q9:Find the row number of Pino.
Ans: =ROW(A27)
Q10:Find the column number of chasis number 5J8TB18219A802665.
Ans: =COLUMN(E25)
Q11: Find the name of the car having chassis number
“WBSDX9C50CE632859”.
Ans: =VLOOKUP("WBSDX9C50CE632859",A3:J28,1,1)
Database functions
Q12:Find the total profit made by suzuki cars
Ans: =DSUM(A2:J28,9,B30:B31)
Q13:Find the maximum import duty on Daihatsu cars.
Ans: =DMAX(A2:J28,10,B32:B33)
Q13:Find the minimum purchase price of black cars.
Ans: =DMIN(A2:J28,7,F34:F35)
Q14: Find the number of peach cars
Ans: =DCOUNTA(A2:J28,1,F36:F37)
Q15:Find the average price of Tata cars
Ans: =DAVERAGE(A2:J28,7,B38:B39)
Q16:Find the colour of Vezel
Ans: =DGET(A2:J28,6,A40:A41)

Statistical Functions
Q17:Find the average profit
Ans:= Average(i3:i28)
Q18: Find the average profit it is trimmed by 25%
Ans: =TRIMMEAN(I3:I28,25%)
Q19:In which year most cars were imported.
Ans:=Mode(D3:D28)
Q20: Median of import duty
Ans:=Median(J3:J28)
Q21:Find the variance and standard deviation of profit
Ans:
=var(I3:I28)
=stdev(I3:I28)
Q22:Find the kurtosis of selling price
Ans:=kurt(h3:h28)

Q23: Find the skewness of import duty


Ans: =SKEW(J3:J28)
Access Portion
Q1:Create the following tables :
Engine Customer Payment
Car_Detai
Details Details Details
ls
Model Engine Customer Id Payment
Number Id
Make Type of Engine Number Type of
engine payment
Year Engine Address Amount Ans:
Manufacturi paid(sellin
ng Date g price)
Import CNIC
year
Engine Payment ID
number
Model
Q2:Each customer id should have AB with two numbers .
Ans:

Q3:Each CNIC should start with "4200063829" and followed by two


numbers.
Ans:
Q4:Establish relationships between tables.
Ans:
Q5
Display all the details of customers who are living in house 101.
Ans
Q6:
Display which type of payment method is being used.If the amount
>$2000 than cheque else cash
Ans:
Q7:Calculate the average amount paid by house number 101.
Ans:

Q8:Display the customer id by using the amount(Hint use parmater


query).
Ans:
Q9:
Use year as column and type of engine as row and create a crosstab
query to calculate the number of cars sold.
Ans:
Q10:
Create a form which shows the details of cars sold to each customer.
Q12:
Add button so the form can go to first record,last record and add new
record
Q13:
Using a form show the payment method.If the car has been sold for
more than 2000 than the payment method will be cheque otherwise
cash.
Q14:
Create a report showing the details of cars bought by customers

S-ar putea să vă placă și