0

I have the following record in a table:

id | Name | 

1  | abc 
2  | bac
3  | abc
4  | cab
5  | abc
6  | abc
7  | cab
8  | cab
9  | cab

I would like to retrieve only records with 'abc' entries. How do I construct a query to accomplish this?

Here's an example output illustrating what I mean:

1  | abc 
3  | abc
5  | abc
6  | abc
5
  • Select * from YourTable Where Name = 'abc' Commented Aug 14, 2014 at 6:34
  • i know but this table data are coming randomly. @JithinShaji Commented Aug 14, 2014 at 6:38
  • What ever it is, If you use a SELECT with that WHERE condition, we will get the desired Out put. Commented Aug 14, 2014 at 6:44
  • What do you mean with "randomly"? What is the difference between the output and your desired output? Commented Aug 14, 2014 at 8:34
  • some of them is WHERE, not randomly is ORDER BY Commented Aug 14, 2014 at 13:53

1 Answer 1

1

SELECT * FROM [TABLE_NAME] WHERE Name = "abc";

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.