dbTalk Databases Forums  

interger column not empty

comp.databases.postgresql comp.databases.postgresql


Discuss interger column not empty in the comp.databases.postgresql forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
fireman
 
Posts: n/a

Default interger column not empty - 11-02-2010 , 01:31 PM






Hi, suppose I have a table

Match play score

xx John 10
yy Smith
zz Paul 5

The "score" column is a Integer column, but it could be empty. How can
I select the rows that score is not empty?

Thanks,
fireman

Reply With Quote
  #2  
Old   
Lennart Jonsson
 
Posts: n/a

Default Re: interger column not empty - 11-02-2010 , 02:05 PM






On 2010-11-02 20:31, fireman wrote:
Quote:
Hi, suppose I have a table

Match play score

xx John 10
yy Smith
zz Paul 5

The "score" column is a Integer column, but it could be empty. How can
I select the rows that score is not empty?
If by empty you mean null, then:

where score is not null

OTOH, if score is always positive:

where score >= 0

will also do.

/Lennart

Reply With Quote
  #3  
Old   
Mladen Gogala
 
Posts: n/a

Default Re: interger column not empty - 11-03-2010 , 07:09 AM



On Tue, 02 Nov 2010 12:31:29 -0700, fireman wrote:

Quote:
Hi, suppose I have a table

Match play score

xx John 10
yy Smith
zz Paul 5

The "score" column is a Integer column, but it could be empty. How can I
select the rows that score is not empty?

Thanks,
fireman
Last time someone has directed you to read the documentation. This is
really a trivial question that shouldn't have been asked on this forum.
Asking such trivial questions makes the forum unreadable and makes people
wasting their valuable time. There are plenty of "novice" mailing lists,
such questions should be sent there.



--
http://mgogala.byethost5.com

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.