Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

How to indicate whether more than total number exists?

$
0
0

I'm developing a relational database for storing environmental (biological and ecological) data.

A sub-consultant submitted caribou survey data for which I have one column that records an actual total number of caribou observed, and a second column named "Plus" that stores the "+" plus character in some of the rows. The "+" indicates that there could be more than the number in the Number column.

Here's an example:

SpeciesNumberPlus
caribou4
caribou3
caribou3
caribou3
caribou10+
caribou2
caribou6
caribou2
caribou2
caribou40+
caribou5
caribou6
caribou4
caribou2
caribou20+
caribou10+
caribou15
caribou2
caribou2

I don't like the idea of storing "+" in a column and leaving the other rows without a "+" blank (null).

What's the best way of dealing with this problem? Should I use a look-up table instead of a Plus column?


Rupertsland, Canada


Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>