Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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.

Answers were Sorted based on User's Feedback



Say CUST Table contains records like: CUSTNO CUSTNAME CUSTLOC 100 ABC SSS ..

Answer / vineet chauhan

no you have to use IS keyword as:


SELECT * FROM CUST
WHERE CUSTLOC IS NULL

Is This Answer Correct ?    11 Yes 2 No

Say CUST Table contains records like: CUSTNO CUSTNAME CUSTLOC 100 ABC SSS ..

Answer / 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

Say CUST Table contains records like: CUSTNO CUSTNAME CUSTLOC 100 ABC SSS ..

Answer / 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

More DB2 Interview Questions

where can we use index and subscript ? with example ?

3 Answers   CTS,


What are db2 error codes -305 and -407. What is the difference between these 2 error codes ?

1 Answers  


Can DB2 be accessed by TSO users? If yes, which command is used to invoke DB2?

1 Answers  


Is it possible to update a primary key value? If not, what is the error code given? If yes, can more than 1 primary key column be updated at a time?

8 Answers  


Define buffer pool.

0 Answers  


Is ibm db2 open source?

0 Answers  


What is check constraint in db2?

0 Answers  


Which one allows duplicate values Union or Union All ?

3 Answers  


There is a 5000 EMP in company.how we find out the 5th highest getting salary employee outof 5000 employes........

10 Answers   IBM,


What is a host variable?

3 Answers  


What is a LIKE table and how is it created?

2 Answers  


What is sqlca?

0 Answers  


Categories