How to add conditions in select statement in oracle?
Asked by
WhyIam (
17
)
December 25th, 2009
While i created the statement
select TNGSTNO||’,’|| CSTNO||’,’||RCNO from partymaster and i want to apply conditon statement here…
Observing members:
0
Composing members:
0
3 Answers
SELECT * FROM table WHERE field = value
In most cases in SQL, if you want to add a condition, you should use a WHERE clause as @StupidGirl points out. This is true in SELECT, UPDATE, and DELETE statements. The exception is aggregate functions, but that’s a different subject entirely.
If you’re new to SQL, you might consider a book on the subject. SQL isn’t terribly difficult, but it’s not necessarily intuitive. I hear this is a pretty good book for getting started with SQL.
Answer this question 