Suppose a registration website creates data with the following fields for each person registered (note: if the user does not input a value, NULL is stored instead): Name, Date, Address, and Account Number. Which we have placed on the Account Number field for the end of year collection?
4 phương ánCó giải thích
Các phương án trả lời
Chọn một phương ánLời giảiChọn phương án để mở
Đáp án đúng: "Account Number should be unique". Câu dẫn bị cụt chữ, nhưng ý định là hỏi ràng buộc (constraint) nào đặt lên trường Account Number khi tổng hợp dữ liệu cuối năm: số tài khoản dùng để nhận diện từng người đăng ký, nên mỗi số chỉ được xuất hiện một lần trong tập tổng hợp, tức ràng buộc duy nhất (unique) giống một khoá. "Account should have at most n digits" là ràng buộc về độ dài, có thể tồn tại trong thiết kế nhưng không phải điều mà việc tổng hợp cuối năm dựa vào. "If we had n duplicate Account Numbers then we will remove n-1 duplicate fields" mô tả thao tác làm sạch (khử trùng lặp), là cách thực thi hệ quả của ràng buộc duy nhất chứ bản thân nó không phải ràng buộc. "There are no constraints" sai vì nếu trường này không có ràng buộc gì thì không thể dựa vào số tài khoản để gộp bản ghi của cùng một người; ghi chú về NULL chỉ nói cách lưu giá trị bị bỏ trống.
Cùng phần 4
What is one defining attribute of data that is being streamed?Có lời giảiCâu hỏiSuppose a registration website creates data with the following fields for each person registered (note: if the user does not input a value, NULL is stored instead): Name, Date, Address, and Account Number.
Suppose we collect data month by month. Each month, we would have a batch of data containing the fields listed above. At the end of the year, we want to summarize our registrant activities for the entire year, so we would remove redundancies in our data by removing any records with duplicate account numbers from month to month. What type of operation do we use in this scenario?Có lời giảiCâu hỏiWhat's the relationship between modeling data and its format?Có lời giảiCâu hỏiCả 11 câu của chủ đề11 câu
Xuất hiện trong 1 bộ đề
Đi tiếp từ đây