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 / madhuri tungal

In the CUSTLOC field the no data is represented by SPACES
but not by .... i.e NULL VALUE

Hence the query would be,

SELECT * FROM CUST WHERE CUSTLOC IS SPACES;

Is This Answer Correct ?    0 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Define declaration generator (dclgen).

669


What is plan in cobol db2?

595


What is explain in db2?

586


What is null indicator in cobol db2?

588


How is deadlock resolved?

652






is it compulsory commitment control in journal?

2016


How connect db2 database to datastage?

767


What is null indicator in db2?

606


What is runstats db2?

588


What are the various data types available in db2?

638


What is the physical storage length of time data type?

678


How is the value function used?

606


How many databases can be created inside an instance in db2 ?

605


How does coalesce work?

588


What db2 400?

681