testcode eligibility(subjects)
100 8,26,36,40
101 18,56,87,10
102 38,28,46,11
103 48,128,58,68
this is my sample data
my question is
i want to retrieve the data from the above table depending on user requmnt
if user choose the subject no 8 then he had to get only 100 row not only remaining rows
if user choose the subject no 28 then user to get only 102 row not the 102 & 103
please help me how to write the command . please help me
thanks in advance
Loading
Purvi Barot166 reputationPosted Mar 18, 2019, 2:53 AM EDT
Jignesh KumarRank #91 · 22.9K reputationPosted Mar 18, 2019, 3:10 AM EDT
Ahmar HusainRank #1,312 · 1.3K reputationPosted Dec 29, 2013, 1:08 AM EST
(consider the example of 28)
select testcode from table name where eligiblity like '%,28,%' or eligiblity like '28,%' or eligiblity like '%,28'
Dhruvil Shah29 reputationPosted Mar 18, 2019, 4:19 AM EDT
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questionsTop experts