English

Write suitable SQL query for the following: To display the last three characters of the registration_number column (attribute) in the Vehicles table. - Informatics Practices

Advertisements
Advertisements

Question

Write suitable SQL query for the following:

To display the last three characters of the registration_number column (attribute) in the Vehicles table. (Note: The registration numbers are stored in the format DL-01-AV-1234).

Code Writing

Solution

SELECT RIGHT(registration_number, 3) FROM Vehicles;

shaalaa.com
  Is there an error in this question or solution?
2024-2025 (March) Board Sample Paper
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×