I have one table with like did and patientid. here did is doctors id and patient id is for patient.
Now i have to retrieve records according to doctor.
Here the query is patient id like 12/2456. here 12 means 2012.
How i can pick up all rows with id only leaving 12 (year)?
Is it possible to pick up like that ?
table is like
did pid
101 12/3492
101 12/6789
now needed output like
did pid
101 3492
101 6789
Try this: