Click here to Skip to main content
15,895,084 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Actually i have table but i want to access some rows based on where condition

my database fields:


HTML
[CustomerId]
      ,[CustomerName]
      ,[Designation]
      ,[Age]
      ,[Gender]
      ,[EmailId]
      ,[Phone]
      ,[City]
      ,[Country]
      ,[Address]
      ,[ZipCode]
      ,[LoanType]
      ,[BankName]
      ,[creditscore]
      ,[status]
      ,[InterestRate]


this table contain some attributes.attribute contain values.my intention is acceess

some rows based where condtion.actally status attribute contain some values that is


HTML
 New 
 legal 
confirmation 
 completed


Finally i want to access the rows except "completed"status attribute.where contain

multiple parameters or not.

please help me.
thank u
Posted
Comments
PIEBALDconsult 2-Aug-15 16:28pm    
http://www.w3schools.com/sql/default.asp
Krishna Veni 2-Aug-15 16:35pm    
Not sutable for my problem
Afzaal Ahmad Zeeshan 2-Aug-15 16:45pm    
Please reply to their comment in order to notify them.

Also, he didn't mean to share just that specific page with you. Instead, he meant to share the entire tutorial course. Learn SQL first, generating statements is a very logical case and would change the results entirely if mistakenly.
Suvendu Shekhar Giri 3-Aug-15 1:47am    
try-

SELECT * FROM YourTable
WHERE [status]<>'completed'

Check this link-
SQL WHERE Clause
and check the Operators in The WHERE Clause section.
Maciej Los 3-Aug-15 4:52am    
What have you tried? Where are you stuck?

1 solution

I'd suggest to start reading the SQL documentation: WHERE[^]
 
Share this answer
 

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