Question

In: Computer Science

QUESTION 71 For first name column in our subsidiary’s database in Japan, we should use _____...

QUESTION 71

For first name column in our subsidiary’s database in Japan, we should use _____

A.
nchar(30)

B.
char(30)

C.
varchar(30)

D.
nvarchar(30)

QUESTION 72

for column definition of middle name in US., we should use _____

A.
nchar(20)

B.
char(20)

C.
varchar(20)

D.
varchar2(20)

Solutions

Expert Solution

71)
Answer D) nvarchar(30)

Explanation:
Let us first unserstand the differences between char(n), varchar(n), nchar(n), nvarchar(n)
char(n): stores fixed length data
varchar(n): stores variable length data
nchar(n): stores fixed length data, but in unicode format (supports different languages like Japanese, etc)
nvarchar(n): stores variable length data, but in unicode format (supports different languages like Japanese, etc)

Since we want to store firstname in Japanese, we must use nvarchar(30), since firstnames are variable length and also first name should be in Japanese, so we want unicode support.
Hence
Answer D) nvarchar(30)

----------------------------------------------------------------------

71)
Answer D) varchar2(20)

Explanation:
Let us first unserstand the differences between char(n), nchar(n), varchar(n), varchar2(n)
char(n): stores fixed length data
nchar(n): stores fixed length data, but in unicode format (supports different languages like Japanese, etc)
varchar(n): stores variable length data
varchar2(n): stores variable length data, but it is recommended to use over varchar.

Since we want to store middlename in US,
nchar and char cannot be used since middle names are not fixed length data.
Hence, we want support for variable length, we can either choose varchar() or varchar2().
But, practically varchar2 is always chosen over varchar, because varchar2 treats empty string and null values similar.
Hence,
Answer D) varchar2(20)

---------------------------------------------

Please give a thumbs up if you find this answer helpful.
If it doesn't help, please comment before giving a thumbs down.
Please Do comment if you need any clarification.
I will surely help you.

Thankyou


Related Solutions

We plan to develop customer’s database that stores customer’s number (ID), first name, last name and...
We plan to develop customer’s database that stores customer’s number (ID), first name, last name and balance. The program will support three operations: (a) reading and loading customer’s info from the text file, (b) entering new customer’s info, (c) looking up existing customer’s info using customer’s number(ID), (d) deleting the customer’s info and (e) the updated database will be stored in the text file after the program terminate. Customer’s database is an example of a menu-driven program. When the program...
Question 1: In the NCBI database, retrieve the nucleotide sequences NG011676. Report: Gene name, database name....
Question 1: In the NCBI database, retrieve the nucleotide sequences NG011676. Report: Gene name, database name. Number of exons and its position (the start and the end of each exon). The start and the end of coding region (CDS) Accession number of protein from this gene and the length of polypeptide. Question 2: Use NG011676 to run GenScan. Report the results and compare the results with information of this gene from Question 1. Question 3: Use NG011676 to run FGENESH...
We have provided you the Hotel database to be used with SQLite DBMS. You should use...
We have provided you the Hotel database to be used with SQLite DBMS. You should use this database in SQLite to extract the necessary information as per the following query requirements. The sqlite script is based on the following relational schema: •Hotel (hotelNo, hotelName, city) • Room (roomNo, hotelNo, type, price) • Booking (hotelNo, guestNo, dateFrom, dateTo, roomNo) •Guest (guestNo, guestName, guestAddress) Note the following details of the hotel database; •Hotel contains hotel details and hotelNo is the primary key;...
Name a new example of the use of an ODS. Is a database server horizontal scalable?...
Name a new example of the use of an ODS. Is a database server horizontal scalable? Why/why not? In horizontal scaling, why does doubling the number of components not necessarily double the performance?
Advergaming; Are we exploiting our children? Write a response to the question "Are we exploiting our...
Advergaming; Are we exploiting our children? Write a response to the question "Are we exploiting our children" ( minimum 400 words).
Question #2: Which Should We Buy? Using the EAC approach, which machine should we choose? Use...
Question #2: Which Should We Buy? Using the EAC approach, which machine should we choose? Use the table below to plan your cash flows (Bold boxes are where #’s should be). Neither machine will have a differential impact on revenue. No change in NWC is required. The straight line depreciation rate is 20%, the required return is 10% and the tax rate is 40%. There is no salvage values for either machine. Machine A Machine B Initial Cost $150,000 $100,000...
Question #2: Which Should We Buy? Using the EAC approach, which machine should we choose? Use...
Question #2: Which Should We Buy? Using the EAC approach, which machine should we choose? Use the table below to plan your cash flows (Bold boxes are where #’s should be). Neither machine will have a differential impact on revenue. No change in NWC is required. The straight line depreciation rate is 20%, the required return is 10% and the tax rate is 40%. There is no salvage values for either machine. Machine A Machine B Initial Cost $150,000 $100,000...
Create the following SQL queries using the lyrics database below 1. List the first name, last...
Create the following SQL queries using the lyrics database below 1. List the first name, last name, and region of members who do not have an email. 2. List the first name, last name, and region of members who do not have an email and they either have a homephone ending with a 2 or a 3. 3. List the number of track titles that begin with the letter 's' and the average length of these tracks in seconds 4....
In each chapter of this book, we use a database for a fictitious company, Performance Lawn...
In each chapter of this book, we use a database for a fictitious company, Performance Lawn Equipment (PLE), within a case exercise for applying the tools and techniques introduced in the chapter.33 To put the database in perspective, we first provide some background about the company, so that the applications of business analytic tools will be more meaningful. 33 The case scenario was based on Gateway Estate Lawn Equipment Co. Case Study, used for the 1997 Malcolm Baldrige National Quality...
PLEASE DO NO USE EXCEL, as we are not able to use excel on our test...
PLEASE DO NO USE EXCEL, as we are not able to use excel on our test XYZ company is considering a new machine that costs $300,000 and would reduce pre-tax manufacturing costs by $108,000 annually. XYZ would use the 3-year MACRS method to depreciate the machine, and management thinks the machine would have a value of $23,000 at the end of its 5-year operating life. The applicable depreciation rates are 33%, 45%, 15%, and 7%. The net operating working capital...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT