File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
EJB 3 in Action
this week in the
EJB and other Java EE Technologies
update query feasible solution
Joined: Jun 22, 2010
Mar 25, 2011 04:35:14
My Requirement is updating the emp table, sal column
if sal>=2000 and <3000 add 2000
if sal>=3000 and <4000 add 3000
if sal>=4000 and <5000 add 5000
you can do this in many ways.but what is the feasible solution?
Joined: May 26, 2003
Mar 25, 2011 08:00:48
How many ranges do you have? If just the thre, I would use three update statements? If a lot, I would use a stored procedure.
How To Ask Questions The Smart Way
Blogging on Certs:
SCEA Part 1
Part 2 & 3
Core Spring 3
TOGAF part 1
I agree. Here's the link:
subject: update query feasible solution
Best Way to Edit a Byte Array
How to pass arraylist in methods?
Get Maximum sal from emp table
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014