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

Query to select only the null values from my table


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ashwini patil

New User


Joined: 15 Oct 2007
Posts: 2
Location: pune

PostPosted: Fri Oct 19, 2007 11:55 am
Reply with quote

hi all,
I want a query to select only the null values from my table?
Back to top
View user's profile Send private message
hemanth.nandas

Active User


Joined: 18 Aug 2007
Posts: 120
Location: India

PostPosted: Fri Oct 19, 2007 12:18 pm
Reply with quote

Hi Aswini,

Quote:
I want a query to select only trhe null values from my table?


Code:
SELECT * FROM your_table
WHERE your_field_where_null LIKE NULL
Back to top
View user's profile Send private message
vasanthkumarhb

Active User


Joined: 06 Sep 2007
Posts: 275
Location: Bang,iflex

PostPosted: Fri Oct 19, 2007 12:31 pm
Reply with quote

Hi,

ashwini patil wrote:
hi all,
I want a query to select only the null values from my table?





SELECT * FROM TABLE_NAME WHERE VAR-NAME IS NULLS;



Regard's
Vasanth,
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 -> Mainframe Interview Questions

 


Similar Topics
Topic Forum Replies
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts Load new table with Old unload - DB2 DB2 6
No new posts Pulling a fixed number of records fro... DB2 2
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts RC query -Time column CA Products 3
Search our Forums:

Back to Top