1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Vesna [10]
4 years ago
11

Explain why it might be more appropriate to declare an attribute that contains only digits as a character data type instead of a

numeric data type.
Computers and Technology
1 answer:
Alborosie4 years ago
7 0

Answer:

  • There can be string data type and numeric data type to declare the attribute and specify the type of value that can be contained by a column.
  • For example VARCHAR, CHAR etc are examples of commonly used string data types that can hold alphanumeric characters and also special characters.
  • INT, FLOAT, DECIMAL, etc are examples of numeric data types that can hold numerical values. For example you would not want to use numeric data type for name attribute of person entity.
  • However it might be better to declare an attribute that contains only digits as a string data type as character data type can also hold digits.
  • For example a social security number attribute can be declared as character data type instead of numeric data type. Although a social security number only consists of digits but it can be declared as a character data type because there is no need of performing any mathematical operations on a social security number. It is just a combination of digits and it might not need to be subtracted, added, multiplied etc.
  • Another example can be of a phone number. It also is a combination of digits but again there is no need to perform mathematical functions over a phone number attribute. But as we know there are different area codes for different countries, so there might be a need of adding or removing an area code with a phone number. So it is appropriate to declare such an attribute as a character data type.
You might be interested in
What is the simplest way to permanently get rid of an unwanted file? A. Cancel the file. B. Go to the Start menu and then delete
Morgarella [4.7K]
Go to the Start menu and then delete the file <span>is the simplest way to permanently get rid of an unwanted file</span>
5 0
4 years ago
The factorial of an integer N is the product of the integers between 1 and N, inclusive. Write a while loop that computes the fa
alexdok [17]

the function and loop will be

def factorial(x):

   total = 1

   if x != 1 and x != 0:

       for i in range(x,1,-1):

           total *= i

   return total

3 0
4 years ago
We piped the results of the Get-Process cmdlet to the Sort-Object cmdlet to sort them in descending order. Which property was us
Basile [38]
The answer is yes hope this helps did before
5 0
3 years ago
Computers are not automatic they need human to operate.(true or false)​
Soloha48 [4]

Answer:

both

Explanation:

most computers need a human to operate but there are ai can run without human intervention

7 0
3 years ago
Read 2 more answers
An example of a target group might be people who:
Pie
C. They have something in common: they don't have access to social media.
7 0
3 years ago
Read 2 more answers
Other questions:
  • The set of specific, sequential steps that describe exactly what a computer program must do to complete the work is called a(n)
    10·2 answers
  • The condition, ____, entered in the criteria row of a long text field in a query window would retrieve all records where the lon
    8·1 answer
  • Anyone willing to help with Excel?!!
    15·1 answer
  • Desirable workplace habits and skills include:
    6·2 answers
  • Computers are used to store, retrieve, and _____ data. manipulate mechanize memorize operate
    12·1 answer
  • . Suppose that name is a variable of type string. Write the input statement to read and store the input Brenda Clinton in name
    5·1 answer
  • Write a simple hello world program in python 3
    8·2 answers
  • There are some network modeling tools that can ________ the existing network.
    12·2 answers
  • How am i supposed to add subtitles to a video without have to waist money???
    7·1 answer
  • Which program assesses and measures improper medicare fee-for-service payments (based on reviewing selected claims and associate
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!