Question

Retrieve the details of vehicles whose total service cost exceeds ₹50,000.

08 Aug 2026
Answer :
Word Count : 1125
The requirement to retrieve the details of vehicles whose total service cost exceeds ₹50,000 is a common database query problem in a DBMS and C++ Lab. It involves storing vehicle information, maintaining service records, calculating the total service cost for each vehicle, and displaying only those vehicles for which the accumulated service expenditure is greater than ₹50,000. This type of query demonstrates the practical use of relational tables, aggregate functions, grouping, joins, and the `HAVING` clause in SQL. A suitable database design can contain two related tables: `Vehicle` and `Service`. The `Vehicle` table stores basic information about each vehicle, while the `Service` table stores individual service transactions. For example, the `Vehicle` table may contain attributes such as `Vehicle_ID`, `Vehicle_No`, `Vehicle_Model`, `Owner_Name`, and `Vehicle_Type`. The `Service` table may contain `Service_ID`, `Vehicle_ID`, `Service_Date`, `Service_Type`, and `Service_Cost`. The `Vehicle_ID` acts as the primary key in the `Vehicle` table and as a foreign key in the `Service` table. An example structure can be represented as follows: ```sql CREATE TABLE Vehicle ( Vehicle_ID INT PRIMARY KEY, Vehicle_No VARCHAR(20), Vehicle_Model VARCHAR(50), Owner_Name VARCHAR(50), Vehicle_Type VARCHAR(30) ); CREATE TABLE Service ( Service_ID INT PRIMARY ________ ______ ______ ______ _________ _______ ______ __________ _________ ____.
______ __________ ________ ___ ______ _____ ___ ___ ______ ____ ____.
____ ________ _______ __________ ________ _________ __________ _________ ________ _______ ______.
___ ___ __________ __________ ___.
___ ________ ______ _________ ___ __________ _______ __________ __________ ___ ___ ________.
___ _____ _________ _________ ___ ________ ___ ____.
____ ____ ______ __________ ______.
___ ____ ________ _______ ________ _______ _______ __________ ____ ______ ________.
___ _______ ___ __________ __________ ___ ____ ____ _______ ____ _____.
_________ _________ ________ _________ __________ ______ ____ _____ ________ ________ _____.
_____ __________ ____ _______ _________ _________ ___ ______ __________ ___ _________ ____.
______ __________ ______ _______ _____ _________.
________ ___ _________ __________ _____ _________ _____ _______ ________ _________ __________ ________.
___ _______ ____ _________ ___ __________.
____ ________ _______ ___ ____ ______ ______ __________ ________ _________ _____ _____.
________ ____ ___ ______ _________ ________.
________ _____ __________ ___ __________ ___ __________.
__________ __________ ________ ___ _______ ________ _______ ___.
_____ ______ __________ _____ ________ _______ ___ _______ _______.
_______ __________ _______ __________ ______ _____ _________ __________ __________.
_________ ___ _____ _____ _________.
________ ___ ______ ______ _____ __________.
____ ___ _________ ________ ____ ________ ______ __________ __________ _________.
________ _____ ____ ________ __________ ________ ________ __________.
_____ ____ _______ _______ _____.
_________ _____ _________ ______ ____ ________ _______ _________ _______ _______.
_______ ______ ______ _________ _________ ___ ________ ____ _______ ________.
______ ___ _________ __________ _________ ________ _________ __________ __________ ______.
___ _____ _____ _______ ____ _______ _______ _________ ____ __________ ____ ___.
_______ _________ __________ ____ ______ ________ _________ __________.
____ _________ ____ _____ ____ ____ ____ _______ ______ ___.
___ ________ _______ ______ _______ _________ _________ ____ ____ _________ ________.
______ ____ ________ _____ _________.
_______ ___ ____ _________ __________ ______ ______ __________ _______ _____.
____ ________ ______ ____ ________ ___.
________ __________ ____ _____ ________ ________ ________ _______ ___ ___ ___ ________.
__________ ____ ____ _______ ____ _____ ________ _______ __________ _________ _______ _________.
______ __________ ________ ___ __________ ____.
_________ _____ __________ ____ ______ __________ ______ _____.
______ ___ ________ _____ _____ ______ ______ _______ _________ ________ _____.
_______ ______ __________ __________ ____ ___ ______ _________.
________ ________ _________ ______ _______ ___.
___ _____ _____ ________ ________ __________ ________ __________ ________.
_________ ________ _________ ___ _______ _______ _____.
_______ _____ ___ _______ _______.
________ ____ ________ ______ ___ _______ __________ ____ _________ ________ ________ ________.
___ ________ _____ ____ _______ _____ __________ ________ _____ ________ ________ ______.
_______ __________ _________ ______ ___ _______ _________ _____ _________ __________ ___ ______.
_____ _____ ___ _____ _______ ________.
___ ___ ______ ____ ____ ________ ___.
____ ____ __________ ________ ___ __________ ________ __________ _________.
__________ __________ ________ __________ _____ ____ _____ ___ ___ _____ _____.
___ _________ ____ __________ ______ _____ ________ _________ ______ ____ ____.
_______ ____ __________ _____ _________ ____ ____ _______ _________ __________ _____ ____.
_______ _____ ____ ________ ________.
__________ __________ _______ __________ _____ _______ ____ ________ ________.
_________ ______ __________ ______ ______ ______ ___ _________.
________ __________ _______ _____ ___ __________ ___ _______ _________.
____ ________ ___ __________ __________ _______ ________.
________ __________ ________ _________ ________ ________ ______ __________ ____ _______ _______.
__________ ______ _______ _________ _________.
_______ __________ _________ ___ _____.
____ ___ _____ _______ _________ ______ ___ __________ ____ ___ _____ _____.
____ ___ ___ ______ _______ ___ ________ _______ ____ _____ ____ _______.
____ _____ _______ _______ ______ ______ __________ _______ _______.
________ _________ ________ _______ ______ _______ ____ _________ ___ ______.
___ _________ ____ ______ ________ ________.
_____ ___ _______ ________ ________ _________ ____ _______.
____ _________ _____ ____ ______ ______ _____ _____.
________ ___ __________ ___ ______ _________ _______ _________.
_________ _______ ___ ____ _______ _________ _________ _______ _____ ________ ___ _________.
________ _______ __________ __________ _________ _______ __________ _________ _____.
_________ ____ ___ ____ ________ ___ __________ _____ ________ _________ ________ ___.
___ _________ _________ ___ ______ ____ _________ _________ ____ _____.
_______ ____ __________ __________ ___ ______ __________ ____ _____.
______ _______ _______ _________ _______ ________ ________ ________ ____ ________ ______.
_______ _________ ______ _________ _____ ____ __________ ________ _____.
_____ ________ ____ ______ ________ __________ ______.
_________ ________ _________ _________ ____ ____ ___ ______.
__________ _______ _________ ______ _____ _______.
______ _____ ___ _________ ____ _____ _______ __________ _________ ______ ____ _________.
______ _______ ________ __________ _________ _______.
____ ______ _______ _____ ________ _______ __________ ___ ___ ______ _________.
________ ________ _____ _________ ____ ________.
______ _____ __________ ___ _________ _____ ________ ________ ______ _______ _______ _________.
___ _______ ________ _________ __________ _______ ________ ____.
________ ___ ______ __________ ________ _________.
___ ________ ____ _______ ______ _______ ____ __________ __________ _____.
________ _______ ____ _______ _________ ______ ____ __________ _________ ______ ____.
_______ ____ _______ _______ _____ ______ _______ ___ _______ _________ __________ ___.
__________ ________ ___ ________ _________ ____ _________ ______ _______ __________ ________.
__________ ____ __________ ____ _____ __________ ___.
__________ _______ _______ ________ _______.
__________ _______ _______ ________ __________ ______ ______ ____ __________ ____ ___.
___ _________ _______ ___ ______ ________ ___ ___ ______ _______ _____.
____ _____ __________ ____ ________ ___ ____.
_______ _________ ________ ________ __________ _________.
___ _________ ____ ____ ____ ___.
________ ____ __________ ___ ________.
______ _________ _________ _______ _______ ________ ________ ________ _____ ______ _____ ___.
____ ________ _____ ______ ________ ________ _________.
___ _____ _________ _____ __________ ___ ___ _________ _______ _______ ___ _______.
_______ ________ ______ ____ ___ _________.
_______ ______ ___ ______ _________ _____ ____ ________ _____ _______ _____.
________ _______ _____ ________ _________.
___ _______ ______ __________ ________ _________.
______ _______ ____ _________ _______ _______ _________.
Get Full Answer on WhatsApp
IGNOU NEWS
Assignment Submission Last Date Extended Till 30 June 2026 Click Here★★★IGNOU June 2026 TEE Date Sheet Released Click Here★★★
Top
📞
Call Support Instant phone assistance Retrieve the details of vehicles whose total service cost exceeds ₹50,
→
🟢
WhatsApp Chat Fast live messaging
→
Email Us Business enquiries & support
→