If statement in SQL

Can I use a Neted If statement, or similar statement in SQL??
If so, how????
traceysmallAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

kretzschmarCommented:
explain,
what database you use and what you want.
0
traceysmallAuthor Commented:
I've developed a database in Borland Delphi 2.0's Database Desktop.
0
kretzschmarCommented:
dbase, paradox, oracle, informix ...?
0
Cloud Class® Course: C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

traceysmallAuthor Commented:
paradox
0
kretzschmarCommented:
what kind of 'if' (a sample) ?
0
traceysmallAuthor Commented:
Just a sample in simple English:
If col1(i) = col2(j) then
  write row (from col1 ... col12)
If col1(i) > col2(j) but < col(i+1)     then write row (from col2 ... col12)
0
kretzschmarCommented:
ok,
no sql for this,
you need to iterate
through the dataset

explain: whats i,j, write row?
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
traceysmallAuthor Commented:
thanks, that's all I wanted to know - i was just looking for an easy way out - I'll try to iterate through the dataset.
0
kretzschmarCommented:
well ok,
thanks for accepting
good luck

meikl

0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Delphi

From novice to tech pro — start learning today.