Computer homework of SQL 25queries
Computer homework of SQL 25queries
ON MY
SQL
By PARTH PATIL
Q6. Display the details of the car whose purchase year is 2023 and name starting
from ‘S’:
Q7. Display the details of Harrier whose price ranges b/w 15 to 30 lakhs:
Q8. Display the details of BMW cars whose fuel type is DIESEL and price ranges
between 50-70 lakhs:
Q9. Display the details of the car(s) whose name has ‘TR’ substring in their name:
Q10. Display the details of the car whose company name starts with ‘M’ fuel type
‘PETROL’ and car type ‘SUV’:
Q11. Display the details of car which gives maximum mileage: (electric)
Q12. Display the details of Sports cars which are either Red or Orange in color:
Q16. Display the details of car purchased between year 2020-23 whose price is
between 10-20 lakhs:
Q17. Display the details of cars whose fuel capacity is more than 50 liters :
Q18. Display the details of car whose number plate starts with ‘MH-12’:
Q19. Display the details of diesel SUV’s whose mileage is between 40-50 lit:
Q20. Display the details of CNG cars whose no. plate has ‘245’:
Q21. Display the details of Toyota and Nissan Company car ranging b/w 50 lakhs
to 1 Cr:
Q22. Display the details of car whose name has ‘or’ substring in it purchased in
year 2024:
Q24. Display the average price of cars whose company name starts with ‘M’ or ‘H’:
Q25. Delete the records of cars whose price is more than 1 CR:
---------------------THANK YOU------------------------