Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

GROUP_CONCAT equivalence in Oracle

653361Oct 29 2010 — edited Nov 8 2010
Hello All, I have this table from the MySQL Database and willing to transform it in Oracle. How can I go about it? I am supporting developers who need it to move ahead. Thanks for any input.

SELECT * FROM ( SELECT a.employee_id , a.emp_firstname ,
a.emp_lastname , a.emp_middle_name , LPAD(a.emp_number, 4, 0) , a.work_station ,
c.jobtit_name , CONCAT(CONCAT(a.emp_firstname, ' '), a.emp_middle_name) || CONCAT(' ', a.emp_lastname) ,
d.title , e.estat_name , GROUP_CONCAT(g.emp_firstname, ' ', g.emp_lastname ORDER BY
erep_reporting_mode ) AS Supervisor FROM ( ( ( ( ( hs_hr_employee a LEFT JOIN hs_hr_job_title
c ON ( a.job_title_code = c.jobtit_code ) ) LEFT JOIN hs_hr_compstructtree d ON
( a.work_station = d.id ) ) LEFT JOIN hs_hr_empstat e ON ( a.emp_status =
e.estat_code ) ) LEFT JOIN hs_hr_emp_reportto f ON ( a.emp_number =
f.erep_sub_emp_number ) ) LEFT JOIN hs_hr_employee g ON ( f.erep_sup_emp_number =
g.emp_number ) ) WHERE (a.emp_status != 'EST000' OR a.emp_status IS NULL) GROUP BY
a.emp_number ORDER BY a.employee_id ASC) AS subsel where a.employee_id between 0 and 50;
Regards,
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 6 2010
Added on Oct 29 2010
3 comments
1,101 views