Compare list in PL/SQL - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

Compare list in PL/SQL

MeldrozMeldroz Posts: 38Member
Hi all,
I'm a java programmer but currently have a task to compare different list and output their common element in PL/SQL. In java this is very simple but i'm not sure how i would handle this in sql since i'm fairly new to it.

ex
l1='A,B,C,D'
l2='B,C,D'
l3 ='A'

l1+l2 = (B,C,D)

l1+l3 = (A)

l2+l3 = 0

Has anyone ever done anything similar in sql? Would really appreciate any help on this.

Comments

Sign In or Register to comment.