Thursday 24 August 2017

Question no.1

Which data type should you use for CustomerID?

A. varchar(11)

B. bigint

C. nvarchar(11)

D. char(11)

Correct Answer: D 

Explanation Explanation/Reference: 
Explanation: Invoices.xml All customer IDs are 11 digits. The first three digits of a customer ID represent the customer's country. The remaining eight digits are the customer's account number. int: -2^31 (-2,147,483,648) to 2^31-1 (2,147,483,647) (just 10 digits max) bigint: -2^63 (-9,223,372,036,854,775,808) to 2^63-1 (9,223,372,036,854,775,807) http://msdn.microsoft.com/en-us/library/ms176089.aspx http://msdn.microsoft.com/en-us/library/ms187745.aspx

No comments:

Post a Comment