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
How can you validate Sql errors during cursor operation in db2 pgms and where do you code?
What is commit in db2?
What is cursor with hold option in db2?
What is check constraint in db2?
What is ibm db2 client?
What are the different types of base tables?
Can you use max on a char column?
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?
How and when does the db2 enforces the unique key?
What is the difference between "db2ilist" and "db2 get instance" commands in DB2 Database Server?
Which isolation level provides highest data integrity?
What parameters are used to control the free space in DB2?
What is ibm db2 used for?
What does a deadlock mean in DB2?
What are the two types of logging in the db2 database? Explain them.