i have a table that has multiple records, however some records are similar from the following table
Table 1
Code P1 P2 P3
W 5 10 20
S 5 10 20
W 6 20 35
if i pass P1 , P2 , P3 as parameters following
select *
from table 1
where P1=5 and P2=10 and P3=20
it will return the result W and S,but only the W that matches to the paramteres. How do i go about creating a package that will count all the multiple records and return the codes that are similar? I am not familiar with oracle
select code from table1 where P1=5 and P2=10 and P3=20- only a result should come from a function (inside a package) ?