IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to remove colums having null values


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
deesun

New User


Joined: 29 Aug 2006
Posts: 15

PostPosted: Mon Sep 03, 2007 12:02 pm
Reply with quote

Can anyone please let me know how to remove teh columns with null values
Back to top
View user's profile Send private message
guptae

Moderator


Joined: 14 Oct 2005
Posts: 1208
Location: Bangalore,India

PostPosted: Mon Sep 03, 2007 12:21 pm
Reply with quote

Hi There,

I have not understood ur query clearly but i think u want to get all the rows where coloum1 is not null
Query

Code:
SELECT *
FROM table1
WHERE col1 IS NOT NULL;


Please let us know if you want any thing other than this?
Back to top
View user's profile Send private message
deesun

New User


Joined: 29 Aug 2006
Posts: 15

PostPosted: Mon Sep 03, 2007 12:29 pm
Reply with quote

I have got what i wanted Thanks actually I wanted to do something like below remove the null values

EXEC SQL
UPDATE EMPLOYEE
SET PHONENO='NONUM' WHERE PHONENO IS NULL;
END;
EXEC SQL CLOSE UPCUR;
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts Sortjoin and Search for a String and ... DFSORT/ICETOOL 1
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts Remove leading zeroes SYNCSORT 4
No new posts Null values are considered in Total c... DFSORT/ICETOOL 6
Search our Forums:

Back to Top