Question

In: Computer Science

You have been accepted as an intern at an IT start-up. In a database design session,...

You have been accepted as an intern at an IT start-up. In a database design session, you see that phone number, post code and some other attributes have been defined as numeric datatype. Do you think it is the correct decision? If not, suggest the reasons why this is not appropriate.

Solutions

Expert Solution

No, I don't think that defining phone number, post code and some other attributes as the numeric data type is the correct decision. This is because the length of the value in this field will be very less and only numerical data will be allowed. There are some countries where post code contains both numbers and alphabets and if post code is defined as numeric datatype then it will not accept post code of these countries. Also, in the phone numbers, there is a convention to put "+" at the starting, followed by country code. Even putting the "+" sign may create a problem when the phone number is defined as a numeric datatype. Other attributes may be name, country, city, and other fields where data may be in the alphabets and declaring it as numeric datatype will create a problem. Instead of using numeric datatype, if VARCHAR(or string) datatype is used then there will be larger limit on length on value and there won't be any constraint on type of value.


Related Solutions

You have been requested to design a schema (as an E/R diagram) for the contact-tracing database....
You have been requested to design a schema (as an E/R diagram) for the contact-tracing database. Your group is busy working to design and field a contact-tracing database to be able to trace rapidly people who may have been in close proximity (contact) to someone diagnosed with a highly infectious disease. The Contact Tracing Domain To be able to trace with whom a person has been in contact, we need to know where that person has been and when. We...
You have recently been employed by DRYSON, a start-up in the business of manufacturing and supplying...
You have recently been employed by DRYSON, a start-up in the business of manufacturing and supplying home appliances through online stores. DRYSON’s business model is based on evaluating and understanding existing successful products, then improving on their design. You have been assigned to advise DRYSON on the design of a new top of the range hand-held hair dryer. A hair dryer is a hand-held device that accelerates the hair drying process by blowing out high velocity hot air. a) Identify...
You are an intern with an equity research organization. You have been given the task to...
You are an intern with an equity research organization. You have been given the task to project the values of certain income statement and balance sheet items for the next year (FY2020) for ABC Ltd (Your current time=0 is FY ending 2019). You have collected information about the historical income statement and balance sheet items. The historical information is provided in Table 1. Table 1 PARTICULARS (All values in INR crores) FY2019 FY2018 FY2017 FY2016 Sales Revenue 21118.00 22084.00 17273.00...
You have a new start-up firm. You think that the value of your start-up is around...
You have a new start-up firm. You think that the value of your start-up is around $60 million, but you will need to do a serious NPV analysis before you know the precise value. You are planning to have a 50% debt-to-value ratio, and that you will continuously rebalance to maintain this leverage. You have information on two other companies. The names of these companies are “Comp A” and “Comp B”. Comp A has the same business risk as your...
You have just been accepted to nursing school. As a requirement, you have to have a...
You have just been accepted to nursing school. As a requirement, you have to have a tuberculosis (TB) test as well as a hepatitis B recombinant vaccine. The nurse who administers the TB skin test explains that if significant swelling occurs around the injection site, you will need to have chest x-rays to determine if you are infected with Mycobacterium tuberculosis. On the morning of the second day after the skin test, you awake to find your arm red and...
You have just been accepted to nursing school. As a requirement, you have to have a...
You have just been accepted to nursing school. As a requirement, you have to have a tuberculosis (TB) test as well as a hepatitis B recombinant vaccine. The nurse who administers the TB skin test explains that if significant swelling occurs around the injection site, you will need to have chest x-rays to determine if you are infected with Mycobacterium tuberculosis. On the morning of the second day after the skin test, you awake to find your arm red and...
Database You have just started a new position on the database design staff at Gizmonic Consultants,...
Database You have just started a new position on the database design staff at Gizmonic Consultants, Inc. Your first project is to translate the database requirements for Continental Hotels into an ER representation. In the next project, you will derive a relational schema from an ER diagram and implement the schema, populate it, and query over it. Requirements: Develop an ERD to capture the entities and relationships specified in the requirements documentation below. Use only the conventions covered in class....
You are an intern for the corporate finance office of SCF, Inc. and have been tasked...
You are an intern for the corporate finance office of SCF, Inc. and have been tasked to evaluate the following potential investment projects: Project A: Initial cash outflow of $96 million followed by cash inflows of $23 million per year for the next 10 years. Project B: Initial cash outflow of $22 million followed by cash inflows for the next 10 years, starting at $5 million next year and growing at an annual rate of 3%. Project C: Initial cash...
As an intern at a midsized company, you have been asked to submit ideas for improving...
As an intern at a midsized company, you have been asked to submit ideas for improving remote working and managing productivity amid coronavirus outbreak. You will be attending a meeting with your supervisor in order to discuss your ideas and their implementation. Your task. Prepare an email outlining five to ten suggestions for improving and managing productivity and remote working practice. Address your email to your direct supervisor, Ms. Yunnie Isab, at [email protected], who requested the ideas prior to the...
As an intern at a midsized company, you have been asked to submit ideas for improving...
As an intern at a midsized company, you have been asked to submit ideas for improving remote working and managing productivity amid coronavirus outbreak. You will be attending a meeting with your supervisor in order to discuss your ideas and their implementation. Your task: Prepare an email outlining five to ten suggestions for improving and managing productivity and remote working practice. Address your email to your direct supervisor, Ms. Yunnie Isab, at [email protected], who requested the ideas prior to the...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT