A Guide to SQL
A Guide to SQL
9th Edition
ISBN: 9781111527273
Author: Philip J. Pratt
Publisher: Course Technology Ptr
Expert Solution & Answer
Book Icon
Chapter 8, Problem 6RQ

Explanation of Solution

“RTRIM” function:

  • The “RTRIM” function is used to remove the additional spaces at the end of a value.
    • The “RTRIM” means right trim which is used to remove any additional spaces inserted at the end of the value.

Example:

The Example for “RTRIM” function is given below:

SELECT STUDENT_ID, RTRIM(FIRST_NAME)||''||RTRIM(LAST_NAME) AS STUDENT_NAME FROM STUDENT;

  • The above query is used to display the stu...

Blurred answer
Students have asked these similar questions
Why does this chapter refer to functions as "single-row" functions?
Why are functions in this chapter referred to as “single-row” functions?
Which of the statements below is correct? (See the tables in the JustLee Books database for further information.) Only numeric data may be utilized with the MIN function. Only date values may be utilized with the MAX function. Only numeric data may be utilized with the AVG function. A nested function cannot contain the SUM function.
Knowledge Booster
Background pattern image
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
A Guide to SQL
Computer Science
ISBN:9781111527273
Author:Philip J. Pratt
Publisher:Course Technology Ptr
Text book image
Oracle 12c: SQL
Computer Science
ISBN:9781305251038
Author:Joan Casteel
Publisher:Cengage Learning
Text book image
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:9781337508841
Author:Carey
Publisher:Cengage