dbTalk Databases Forums  

English help: name a boolean value that means "if it makes senseto calculate the sum of the field"

comp.databases.postgresql comp.databases.postgresql


Discuss English help: name a boolean value that means "if it makes senseto calculate the sum of the field" in the comp.databases.postgresql forum.



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

Default English help: name a boolean value that means "if it makes senseto calculate the sum of the field" - 05-20-2008 , 07:49 AM






Dear all

I have a db table for all fields used in a calculation.

id field_name
-------------
01 Telephone Number
02 Number of Children
... ...

Now I wish to add a column of a boolean value to represent if it makes
sense to sum up this field. let's say, it makes sense to sum up number
of children so you know how many children in total are there, but it
doesn't make sense to sum up telephone number.

id ? field_name
-------------
01 N Telephone Number
02 Y Number of Children
... ...

The question is what would you choose for column name?
1. "whether or not make sense to sum up this field" -- too long;
2. "sum-able" -- is it a good idea to create new word? Also values
are always sum-able in certain sense.

Thanks in advance for better word for this.

Reply With Quote
  #2  
Old   
Laura I Kataja
 
Posts: n/a

Default Re: English help: name a boolean value that means "if it makes sense to calculate the sum of the field" - 05-20-2008 , 08:12 AM






In article <69fvs3F331a0hU1 (AT) mid (DOT) individual.net>, Zhang Weiwu wrote:
Quote:
Dear all

I have a db table for all fields used in a calculation.

id field_name
-------------
01 Telephone Number
02 Number of Children
.. ...

Now I wish to add a column of a boolean value to represent if it makes
sense to sum up this field. let's say, it makes sense to sum up number
of children so you know how many children in total are there, but it
doesn't make sense to sum up telephone number.

id ? field_name
-------------
01 N Telephone Number
02 Y Number of Children
.. ...

The question is what would you choose for column name?
1. "whether or not make sense to sum up this field" -- too long;
2. "sum-able" -- is it a good idea to create new word? Also values
are always sum-able in certain sense.

Thanks in advance for better word for this.
English isn't my mother-tongue, either, but the word "countable" is the
first to my mind, giving an idea whether you have there an amount (like
the number of children, or an amount of money), or just a string of
digits (like phone number or birthdate).

--

Sananvapaus on perusoikeus, ei erioikeus!
Laura Kataja
kisuli miau iki poäng fi
Kuvaelma: <http://www.helsinki.fi/~likataja/Kirjakauppa.html>


Reply With Quote
  #3  
Old   
Laura I Kataja
 
Posts: n/a

Default Re: English help: name a boolean value that means "if it makes sense to calculate the sum of the field" - 05-20-2008 , 08:12 AM



In article <69fvs3F331a0hU1 (AT) mid (DOT) individual.net>, Zhang Weiwu wrote:
Quote:
Dear all

I have a db table for all fields used in a calculation.

id field_name
-------------
01 Telephone Number
02 Number of Children
.. ...

Now I wish to add a column of a boolean value to represent if it makes
sense to sum up this field. let's say, it makes sense to sum up number
of children so you know how many children in total are there, but it
doesn't make sense to sum up telephone number.

id ? field_name
-------------
01 N Telephone Number
02 Y Number of Children
.. ...

The question is what would you choose for column name?
1. "whether or not make sense to sum up this field" -- too long;
2. "sum-able" -- is it a good idea to create new word? Also values
are always sum-able in certain sense.

Thanks in advance for better word for this.
English isn't my mother-tongue, either, but the word "countable" is the
first to my mind, giving an idea whether you have there an amount (like
the number of children, or an amount of money), or just a string of
digits (like phone number or birthdate).

--

Sananvapaus on perusoikeus, ei erioikeus!
Laura Kataja
kisuli miau iki poäng fi
Kuvaelma: <http://www.helsinki.fi/~likataja/Kirjakauppa.html>


Reply With Quote
  #4  
Old   
Laura I Kataja
 
Posts: n/a

Default Re: English help: name a boolean value that means "if it makes sense to calculate the sum of the field" - 05-20-2008 , 08:12 AM



In article <69fvs3F331a0hU1 (AT) mid (DOT) individual.net>, Zhang Weiwu wrote:
Quote:
Dear all

I have a db table for all fields used in a calculation.

id field_name
-------------
01 Telephone Number
02 Number of Children
.. ...

Now I wish to add a column of a boolean value to represent if it makes
sense to sum up this field. let's say, it makes sense to sum up number
of children so you know how many children in total are there, but it
doesn't make sense to sum up telephone number.

id ? field_name
-------------
01 N Telephone Number
02 Y Number of Children
.. ...

The question is what would you choose for column name?
1. "whether or not make sense to sum up this field" -- too long;
2. "sum-able" -- is it a good idea to create new word? Also values
are always sum-able in certain sense.

Thanks in advance for better word for this.
English isn't my mother-tongue, either, but the word "countable" is the
first to my mind, giving an idea whether you have there an amount (like
the number of children, or an amount of money), or just a string of
digits (like phone number or birthdate).

--

Sananvapaus on perusoikeus, ei erioikeus!
Laura Kataja
kisuli miau iki poäng fi
Kuvaelma: <http://www.helsinki.fi/~likataja/Kirjakauppa.html>


Reply With Quote
  #5  
Old   
Laura I Kataja
 
Posts: n/a

Default Re: English help: name a boolean value that means "if it makes sense to calculate the sum of the field" - 05-20-2008 , 08:12 AM



In article <69fvs3F331a0hU1 (AT) mid (DOT) individual.net>, Zhang Weiwu wrote:
Quote:
Dear all

I have a db table for all fields used in a calculation.

id field_name
-------------
01 Telephone Number
02 Number of Children
.. ...

Now I wish to add a column of a boolean value to represent if it makes
sense to sum up this field. let's say, it makes sense to sum up number
of children so you know how many children in total are there, but it
doesn't make sense to sum up telephone number.

id ? field_name
-------------
01 N Telephone Number
02 Y Number of Children
.. ...

The question is what would you choose for column name?
1. "whether or not make sense to sum up this field" -- too long;
2. "sum-able" -- is it a good idea to create new word? Also values
are always sum-able in certain sense.

Thanks in advance for better word for this.
English isn't my mother-tongue, either, but the word "countable" is the
first to my mind, giving an idea whether you have there an amount (like
the number of children, or an amount of money), or just a string of
digits (like phone number or birthdate).

--

Sananvapaus on perusoikeus, ei erioikeus!
Laura Kataja
kisuli miau iki poäng fi
Kuvaelma: <http://www.helsinki.fi/~likataja/Kirjakauppa.html>


Reply With Quote
  #6  
Old   
Laura I Kataja
 
Posts: n/a

Default Re: English help: name a boolean value that means "if it makes sense to calculate the sum of the field" - 05-20-2008 , 08:12 AM



In article <69fvs3F331a0hU1 (AT) mid (DOT) individual.net>, Zhang Weiwu wrote:
Quote:
Dear all

I have a db table for all fields used in a calculation.

id field_name
-------------
01 Telephone Number
02 Number of Children
.. ...

Now I wish to add a column of a boolean value to represent if it makes
sense to sum up this field. let's say, it makes sense to sum up number
of children so you know how many children in total are there, but it
doesn't make sense to sum up telephone number.

id ? field_name
-------------
01 N Telephone Number
02 Y Number of Children
.. ...

The question is what would you choose for column name?
1. "whether or not make sense to sum up this field" -- too long;
2. "sum-able" -- is it a good idea to create new word? Also values
are always sum-able in certain sense.

Thanks in advance for better word for this.
English isn't my mother-tongue, either, but the word "countable" is the
first to my mind, giving an idea whether you have there an amount (like
the number of children, or an amount of money), or just a string of
digits (like phone number or birthdate).

--

Sananvapaus on perusoikeus, ei erioikeus!
Laura Kataja
kisuli miau iki poäng fi
Kuvaelma: <http://www.helsinki.fi/~likataja/Kirjakauppa.html>


Reply With Quote
  #7  
Old   
Laura I Kataja
 
Posts: n/a

Default Re: English help: name a boolean value that means "if it makes sense to calculate the sum of the field" - 05-20-2008 , 08:12 AM



In article <69fvs3F331a0hU1 (AT) mid (DOT) individual.net>, Zhang Weiwu wrote:
Quote:
Dear all

I have a db table for all fields used in a calculation.

id field_name
-------------
01 Telephone Number
02 Number of Children
.. ...

Now I wish to add a column of a boolean value to represent if it makes
sense to sum up this field. let's say, it makes sense to sum up number
of children so you know how many children in total are there, but it
doesn't make sense to sum up telephone number.

id ? field_name
-------------
01 N Telephone Number
02 Y Number of Children
.. ...

The question is what would you choose for column name?
1. "whether or not make sense to sum up this field" -- too long;
2. "sum-able" -- is it a good idea to create new word? Also values
are always sum-able in certain sense.

Thanks in advance for better word for this.
English isn't my mother-tongue, either, but the word "countable" is the
first to my mind, giving an idea whether you have there an amount (like
the number of children, or an amount of money), or just a string of
digits (like phone number or birthdate).

--

Sananvapaus on perusoikeus, ei erioikeus!
Laura Kataja
kisuli miau iki poäng fi
Kuvaelma: <http://www.helsinki.fi/~likataja/Kirjakauppa.html>


Reply With Quote
  #8  
Old   
Laura I Kataja
 
Posts: n/a

Default Re: English help: name a boolean value that means "if it makes sense to calculate the sum of the field" - 05-20-2008 , 08:12 AM



In article <69fvs3F331a0hU1 (AT) mid (DOT) individual.net>, Zhang Weiwu wrote:
Quote:
Dear all

I have a db table for all fields used in a calculation.

id field_name
-------------
01 Telephone Number
02 Number of Children
.. ...

Now I wish to add a column of a boolean value to represent if it makes
sense to sum up this field. let's say, it makes sense to sum up number
of children so you know how many children in total are there, but it
doesn't make sense to sum up telephone number.

id ? field_name
-------------
01 N Telephone Number
02 Y Number of Children
.. ...

The question is what would you choose for column name?
1. "whether or not make sense to sum up this field" -- too long;
2. "sum-able" -- is it a good idea to create new word? Also values
are always sum-able in certain sense.

Thanks in advance for better word for this.
English isn't my mother-tongue, either, but the word "countable" is the
first to my mind, giving an idea whether you have there an amount (like
the number of children, or an amount of money), or just a string of
digits (like phone number or birthdate).

--

Sananvapaus on perusoikeus, ei erioikeus!
Laura Kataja
kisuli miau iki poäng fi
Kuvaelma: <http://www.helsinki.fi/~likataja/Kirjakauppa.html>


Reply With Quote
  #9  
Old   
Laura I Kataja
 
Posts: n/a

Default Re: English help: name a boolean value that means "if it makes sense to calculate the sum of the field" - 05-20-2008 , 08:12 AM



In article <69fvs3F331a0hU1 (AT) mid (DOT) individual.net>, Zhang Weiwu wrote:
Quote:
Dear all

I have a db table for all fields used in a calculation.

id field_name
-------------
01 Telephone Number
02 Number of Children
.. ...

Now I wish to add a column of a boolean value to represent if it makes
sense to sum up this field. let's say, it makes sense to sum up number
of children so you know how many children in total are there, but it
doesn't make sense to sum up telephone number.

id ? field_name
-------------
01 N Telephone Number
02 Y Number of Children
.. ...

The question is what would you choose for column name?
1. "whether or not make sense to sum up this field" -- too long;
2. "sum-able" -- is it a good idea to create new word? Also values
are always sum-able in certain sense.

Thanks in advance for better word for this.
English isn't my mother-tongue, either, but the word "countable" is the
first to my mind, giving an idea whether you have there an amount (like
the number of children, or an amount of money), or just a string of
digits (like phone number or birthdate).

--

Sananvapaus on perusoikeus, ei erioikeus!
Laura Kataja
kisuli miau iki poäng fi
Kuvaelma: <http://www.helsinki.fi/~likataja/Kirjakauppa.html>


Reply With Quote
  #10  
Old   
Ben Finney
 
Posts: n/a

Default Re: English help: name a boolean value that means "if it makes sense to calculate the sum of the field" - 05-20-2008 , 05:42 PM



Zhang Weiwu <zhangweiwu (AT) realss (DOT) com> writes:

Quote:
I have a db table for all fields used in a calculation.

id field_name
-------------
01 Telephone Number
02 Number of Children
.. ...

Now I wish to add a column of a boolean value to represent if it
makes sense to sum up this field. let's say, it makes sense to sum
up number of children so you know how many children in total are
there, but it doesn't make sense to sum up telephone number.
The example of a telephone number is easily solved for this case:
don't make telephone numbers as numeric types. There are no numeric
operations that make sense on telephone numbers, so store them as a
text type or some more-specific type, not numeric.

This is true for many values that superficially appear to be numbers.
Any identifying "number" (such as a postal code) is useless as a
numeric value, so should instead be stored as a sequence of characters
(e.g. one of the text types).

Do you have an example of a domain that actually is numeric, but still
makes no sense to sum the values?

--
\ "Saying that Java is nice because it works on all OSes is like |
`\ saying that anal sex is nice because it works on all genders" |
_o__) —http://bash.org/ |
Ben Finney


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.