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
Do you think people are willing to buy these products? Why?
SSSSS [86.1K]
What products ma’am/sir
3 0
3 years ago
Read 2 more answers
. SQL is a(n) _____ language.
Blababa [14]

Answer: Fourth- generation language

Explanation:Structured Query Language (SQL) is the language that is in the form of database structure which helps in the manipulation of the data and management as well.

SQL is considered as the fourth generation language because it is used for the accessing of the data from the database.It is also known for the advancement in the third generation language and thus also improving the language interface with users.

7 0
3 years ago
5. Bits are sent over a communications channel in packets of 12. (a) If the probability of a bit being corrupted over this chann
user100 [1]

Answer:

0.889

Explanation:

7 0
4 years ago
AYUDAAA ESPARA HOYYY
DIA [1.3K]

Answer:

what?

Explanation:

8 0
3 years ago
Read 2 more answers
Items on a storage medium remain intact even when power is removed from the computer. what term describes this characteristic?
stellarik [79]
Non-volatile, persistent or permanent storage are terms used for this.
7 0
3 years ago
Other questions:
  • If you are installing separate anti-virus and anti-spyware programs, which should you install first
    7·1 answer
  • Suppose the program counter (pc) is set to 0x2000 0000. is it possible to use the jump (j) mips assembly instruction to set the
    15·1 answer
  • I'll pay 50 dollars to anyone who can do this leave your snap after answering doing it and ill cash app it
    13·1 answer
  • NEED HELP AGAIN
    11·2 answers
  • Write a class called Counter that represents a simple tally counter, which might be used to count people as they enter a room. T
    9·1 answer
  • Given numRows and numColumns, print a list of all seats in a theater. Rows are numbered, columns lettered, as in 1A or 3E. Print
    7·1 answer
  • What are the pros and cons of stone, wood, brick, concrete, steel, and glass for architecture building materials?
    7·2 answers
  • Julie has a difficult time seeing her computer Screen and uses adaplive technology tools to help he see better. One of the tools
    13·2 answers
  • Meats ages hair and feathers all contain this monomer
    13·1 answer
  • Which attributes does not come in tag?
    12·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!