i have an employment table whch has salary,dept,name? i want
salary b/w 1000 to 5000 can anyone pls say the query for ths ?

Answer Posted / vaneesh khurana

Hi All

See the ques properly, he wants rows with salary bwtween
1000 to 5000. If one say between, it wont means inculsion
of 1000 and 5000 thus query will be

select * from employee where salary bwtween 1001 and 4999

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a storage group (stogroup)?

868


Explain various types of locks in db2?

776


How to connect to db2 database from windows command line?

651


How to execute stored procedure in db2 command editor?

630


Define buffer pool.

706






In case if at some point of time db2 is down, would that impact the pre-compilation process of a db2-cobol program?

668


How can the firstname and the lastname from the emp table be concatenated to generate complete names?

845


define clustering index.

702


What is consistency token in db2?

749


What is the physical storage length of the data types: date, time, timestamp in the db2 database?

757


Explain package in db2 and its advantages?

699


Is db2 a mainframe?

678


Why do we use cursor?

681


What is db2 optimizer?

868


Explain the contents that are a part of dclgen.

743