Click here to Skip to main content
15,891,704 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello Experts,
I have a table name StData, Structure like this


PaperNo                                                           Batch

A123123                                                            A0-A12-A13-A14-A15
A234234                                                            A12-A14
A345345                                                            A14
A456456                                                            A0-A12-A16


Batch Column have values of different batches given the test.
Now, I want a Sql query so that it will give me all PaperNo of "A14" batch.


URGENTLY Need Help to solve it ...
Posted
Updated 11-Dec-12 0:13am
v3

Hi,
Select PaperNo from StData where Batch like '%A14%'
 
Share this answer
 
Try This
SQL
select PaperNo  from StData
where Batch Like '%A14%'
 
Share this answer
 
SQL
Select PaperNo from StData where batch like %A14%
 
Share this answer
 
Try:
SQL
SELECT PaperNo FROM StData WHERE Batch LIKE '%A14%'
 
Share this answer
 
Comments
AnkitGoel.com 11-Dec-12 6:17am    
correct answer :) rated 5

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900