Say CUST Table contains records like:
CUSTNO CUSTNAME CUSTLOC
100 ABC SSS
200 XYZ
300 PQR
400 MNO WWW
500 CVV
-------------
-------------
Now write a query to retrieve all records with CUSTLOC no
data.

Answer Posted / sharat

EXEC SQL
SELECT * FROM CUST
WHERE CUSTLOC = NULL
END-EXEC.
Can anyone let me know whether the query coded above is right.

Is This Answer Correct ?    0 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Define db2 and its databases?

622


Suppose pgm A calling Pgm B .Pgm B has some Db2 program. at the time of compilation should plan and package will be created for both A and B or only B? What is the concept?

6866


Mention data types used in db2 ?

682


How can you count the number of rows from a table tab?

639


What are the various data types available in db2?

638






What is the function of logging in the db2 database?

647


B37 abend during spufi?

984


How does coalesce work?

588


What is a dbrm in db2?

580


What is ibm db2 client?

523


If the cursor is kept open followed the issuing of commit, what is the procedure to leave the cursor that way?

706


How is the value function used?

606


What is release/acquire in bind?

656


Where do you specify them?

681


What is the difference between db2 and oracle?

683