troubleshooting Question

how to remove the space in the data to get the value

Avatar of pardeshirahul
pardeshirahul asked on
Oracle Database
3 Comments1 Solution398 ViewsLast Modified:
I have a query

 SELECT p1.person_id
           FROM per_all_people_f p1
          WHERE UPPER (trim(p1.last_name) || ', ' || trim(p1.first_name)) =
                   UPPER ('LEJOLIVET               , HUBERT')
                AND p1.business_group_id = 1747
                AND p1.current_employee_flag = 'Y'
                AND p1.effective_start_date =
                       (SELECT MAX (pp.effective_start_date)
                          FROM per_all_people_f pp
                         WHERE pp.person_id = p1.person_id
                               AND pp.business_group_id =

the data which i am getting is 'LEJOLIVET               , HUBERT'
now when i am comparing it with UPPER (trim(p1.last_name) || ', ' || trim(p1.first_name)) =

i am not getting the value
individual last_name 'LEJOLIVET'  and first_name 'HUBERT'
is in the table
Information Technology Specialist

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 3 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros