How can I select all id’s for records in single cell?
For example:
--example select of all values
select id, name, address, phone from table
And get all id’s where phone like ‘%555%’ and show them in single field like:
‘111 123 234 321 231 234’
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you are using Oracle 11gR2:
If you are not running Oracle 11gR2, check if wm_concat function is available and do:
Keep in mind that you might want to combine these functions with group by clauses. Check out link I gave you for more options.