OK, I'm fairly new to PL/SQL, adn I have a query to write, which is confusing me. Let me explain:
I have a table, with three fields, CustID, CustName, Number
What I want to do, is identify and display all rows in the table, where the last four digits of the Number field match. So, for example, if teh table contained the following:
CustID CustName Number
-------- ----------- ---------
1 Brown 12345678
2 Smith 23456789
3 Jones 23445678
4 Davies 90908989
5 Royle 56231490
I would want the query to display:
CustID CustName Number
-------- ----------- ---------
1 Brown 12345678
3 Jones 23445678
As I say, I'm fairly new to PL/SQL, and so I'm hoping that someone will be able to explain it very simply to me.
Many thanks
KiltedScot