How to use not equals in sql query

First of all let me tell you i am just a beginner in sql. Now, I am in a condition of applying not equals in a sql query. I want to select only that records where class not equals to 5th. How to write sql query for this condition.
Posted by Prince Mahajan 3/23/2014 10:39:15 AM
Total Answers : 2
Answer 1
Your sql query will be like :
select * from table_name where class <> '5th'
Posted by StepCoder Team 3/25/2014 9:44:56 AM
Answer 2
You can use <> for not equals in a sql query.
Posted by Andrew Dvorkin 3/26/2014 4:51:12 PM
Post your answer
Preview
Sign in to your account
Your Email : 
Password :   
Forgot your password
Don't have StepCoder account ?
Create a new account
 
Follow me on twitter
About Me
Harpreet Singh
I began programming with C++ when i was 17. Then at the middle of my study .NET came. Then I began to read C# and VB.NET. By the time i learnt SQL and ASP.NET, and developed some websites such as news portals that are active now. Currently i am running my own Software company.
Answer these questions! If you know the answer.