Beginning SQL Server Modeling- P7
Số trang: 20
Loại file: pdf
Dung lượng: 990.37 KB
Lượt xem: 8
Lượt tải: 0
Xem trước 2 trang đầu tiên của tài liệu này:
Thông tin tài liệu:
Tham khảo tài liệu beginning sql server modeling- p7, công nghệ thông tin, cơ sở dữ liệu phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả
Nội dung trích xuất từ tài liệu:
Beginning SQL Server Modeling- P7 CHAPTER 5 M – THE MODELING LANGUAGEDecimal28 A fixed point or exact number.Decimal38 A fixed point or exact number.Integer A signed integer.Integer8 A signed integer with fewer than 9 bits of precision.Integer16 A signed integer with fewer than 17 bits of precision.Integer32 A signed integer with fewer than 33 bits of precision.Integer64 A signed integer with fewer than 65 bits of precision.Scientific A floating-point or exact number.Single A 32-bit floating-point or exact number.Double A 64-bit floating-point or exact number.Unsigned An unsigned integer.Unsigned8 An unsigned integer with fewer than 9 bits of precision.Unsigned16 An unsigned integer with fewer than 17 bits of precision.Unsigned32 An unsigned integer with fewer than 33 bits of precision.Unsigned64 An unsigned integer with fewer than 65 bits of precision.Date A calendar date.DateTime A calendar date and time of day independent of time zone.DateTimeOffset A calendar date and time of day within a specific time zone.Time A time of day and time zone.Text A sequence of characters.Logical A logical flag.Binary A sequence of binary octets.Guid A globally unique identifier 121 Download from Wow! eBook CHAPTER 5 M – THE MODELING LANGUAGE Byte A single binary octet. Collection An unordered group of potentially duplicate values. Entity A collection of labeled values. The Collection Type The collection type is an unordered group of potentially duplicate values. A collection can be constructed as an expression with a beginning brace ({), a type reference, an optional multiplicity (described shortly), and an ending brace (}). So the following examples are all valid collections: • {“NPR”, “ABC”, “CBS”, “NBC”} // a collection of four broadcast network names • {“Red”, “White,” “Blue”} // a collection of three color names • {“Baseball”, “Basketball”, “Soccer”} // a collection of three ball game names • {3.141, 2.718} // the collection of the two transcendental numbers π and e, expressed to a 3-decimal precision • {Integer#8} // a collection of any eight integers • {Unsigned16#1..8} // a collection of one to eight Unsigned16 integers • {Date#4..} // a collection of four or more Date types • {Single*} // a collection of zero or more 32-bit floating point numbers • {Double+} // a collection of one or more 64-bit floating point numbers • Cars : {Car*} // defines the Cars extent as the collection of all values of the Car derived type • {“Red”, 32, { }, “NPR”} // defines a collection with two text values, an integer value, and an empty collection value The last example in the preceding list shows that the elements of a collection do not necessarily have to be of the same type, and that collections can contain other collections. The next to last expression uses the ascription operator (:), (as in, “ascribe this identifier to this type”) to define the Cars extent. I’ll talk about this in the section titled “Extents.” Note that the definition of the collection type said that the collections can have duplicate values. So the collection {1, 2, 3, 1, 1, 3, 4, 98} would conform to an {Integer}#8 definition because it is a collection of eight integers, though with some duplicates. Collections also have no positional or sequential information (unlike lists), so the following expression would be true: {1, 2, 3, 4} == {4, 1, 3, 2}.122 Download from Wow! eBook CHAPTER 5 M – THE MODELING LANGUAGEMultiplicity ConstraintsTable 5-2 shows the different kinds of multiplicity operators that can be used in defining or constraininga collection. Since types are simply collections of conforming values, multiplicity operators areimportant in type definitions.Table 5-2. Multiplicity OperatorsMultiplicity Operator Constraint * Requires zero or more values (allows an empty ...
Nội dung trích xuất từ tài liệu:
Beginning SQL Server Modeling- P7 CHAPTER 5 M – THE MODELING LANGUAGEDecimal28 A fixed point or exact number.Decimal38 A fixed point or exact number.Integer A signed integer.Integer8 A signed integer with fewer than 9 bits of precision.Integer16 A signed integer with fewer than 17 bits of precision.Integer32 A signed integer with fewer than 33 bits of precision.Integer64 A signed integer with fewer than 65 bits of precision.Scientific A floating-point or exact number.Single A 32-bit floating-point or exact number.Double A 64-bit floating-point or exact number.Unsigned An unsigned integer.Unsigned8 An unsigned integer with fewer than 9 bits of precision.Unsigned16 An unsigned integer with fewer than 17 bits of precision.Unsigned32 An unsigned integer with fewer than 33 bits of precision.Unsigned64 An unsigned integer with fewer than 65 bits of precision.Date A calendar date.DateTime A calendar date and time of day independent of time zone.DateTimeOffset A calendar date and time of day within a specific time zone.Time A time of day and time zone.Text A sequence of characters.Logical A logical flag.Binary A sequence of binary octets.Guid A globally unique identifier 121 Download from Wow! eBook CHAPTER 5 M – THE MODELING LANGUAGE Byte A single binary octet. Collection An unordered group of potentially duplicate values. Entity A collection of labeled values. The Collection Type The collection type is an unordered group of potentially duplicate values. A collection can be constructed as an expression with a beginning brace ({), a type reference, an optional multiplicity (described shortly), and an ending brace (}). So the following examples are all valid collections: • {“NPR”, “ABC”, “CBS”, “NBC”} // a collection of four broadcast network names • {“Red”, “White,” “Blue”} // a collection of three color names • {“Baseball”, “Basketball”, “Soccer”} // a collection of three ball game names • {3.141, 2.718} // the collection of the two transcendental numbers π and e, expressed to a 3-decimal precision • {Integer#8} // a collection of any eight integers • {Unsigned16#1..8} // a collection of one to eight Unsigned16 integers • {Date#4..} // a collection of four or more Date types • {Single*} // a collection of zero or more 32-bit floating point numbers • {Double+} // a collection of one or more 64-bit floating point numbers • Cars : {Car*} // defines the Cars extent as the collection of all values of the Car derived type • {“Red”, 32, { }, “NPR”} // defines a collection with two text values, an integer value, and an empty collection value The last example in the preceding list shows that the elements of a collection do not necessarily have to be of the same type, and that collections can contain other collections. The next to last expression uses the ascription operator (:), (as in, “ascribe this identifier to this type”) to define the Cars extent. I’ll talk about this in the section titled “Extents.” Note that the definition of the collection type said that the collections can have duplicate values. So the collection {1, 2, 3, 1, 1, 3, 4, 98} would conform to an {Integer}#8 definition because it is a collection of eight integers, though with some duplicates. Collections also have no positional or sequential information (unlike lists), so the following expression would be true: {1, 2, 3, 4} == {4, 1, 3, 2}.122 Download from Wow! eBook CHAPTER 5 M – THE MODELING LANGUAGEMultiplicity ConstraintsTable 5-2 shows the different kinds of multiplicity operators that can be used in defining or constraininga collection. Since types are simply collections of conforming values, multiplicity operators areimportant in type definitions.Table 5-2. Multiplicity OperatorsMultiplicity Operator Constraint * Requires zero or more values (allows an empty ...
Tìm kiếm theo từ khóa liên quan:
thủ thuật máy tính công nghệ thông tin tin học quản trị mạng computer networkTài liệu liên quan:
-
52 trang 432 1 0
-
24 trang 358 1 0
-
Top 10 mẹo 'đơn giản nhưng hữu ích' trong nhiếp ảnh
11 trang 319 0 0 -
Làm việc với Read Only Domain Controllers
20 trang 307 0 0 -
74 trang 303 0 0
-
96 trang 297 0 0
-
Báo cáo thực tập thực tế: Nghiên cứu và xây dựng website bằng Wordpress
24 trang 291 0 0 -
Đồ án tốt nghiệp: Xây dựng ứng dụng di động android quản lý khách hàng cắt tóc
81 trang 284 0 0 -
EBay - Internet và câu chuyện thần kỳ: Phần 1
143 trang 277 0 0 -
Tài liệu dạy học môn Tin học trong chương trình đào tạo trình độ cao đẳng
348 trang 269 1 0