Microsoft Press microsoft sql server 2005 PHẦN 3

Tạo ít nhất một filegroup người dùng định nghĩa để tổ chức các tập tin dữ liệu thứ cấp và các đối tượng cơ sở dữ liệu. Cấu hình này filegroup như filegroup mặc định SQL Server sẽ lưu trữ tất cả các đối tượng bạn tạo ra trong filegroup này. | 144 Chapter 3 Review All pieces of data need to be uniquely identified within the tables. Referential integrity is crucial to the successful operation of the database application. How would you define the table structures to meet the needs of the patient claims database Suggested Practices Before doing the following suggested practices skip forward in this book to read Chapter 5 Working with Transact-SQL. This chapter familiarizes you with the basics of adding data to a table as well as retrieving it. Understanding these functions is important for performing the practice tasks which will help you see how the various table structures interact with data. Creating Tables Practice 1 Insert some data into the StateProvince Country and AddressType tables. Retrieve the data from the table and inspect the identity column. Change the seed increment or both for the identity column and insert more rows. Retrieve the data from the table. Are the values in the identity column what you expected Practice 2 Concatenate the City StateProvince and PostalCode columns together. Change the data type of the resulting new column from a varchar to a char. Execute the same query you used in Practice 1. Why do the results differ Creating Constraints Practice 1 Insert some data into the CustomerAddress table. What happens when you do not specify an AddressType What happens when you do not specify either a Country or StateProvince Practice 2 Change the value in one of the foreign key columns to another value that exists in the referenced table. What happens Change the value to something that does not exist in the referenced table. What happens Is this what you expected Practice 3 Try to insert a row into the Customer table that has a negative value for the credit line. Are the results what you expected Practice 4 Insert a row into the Customer table without specifying a value for the outstanding balance. Retrieve the row. What are the values for the outstanding balance and available credit .

Không thể tạo bản xem trước, hãy bấm tải xuống
TÀI LIỆU MỚI ĐĂNG
28    239    1    29-03-2024
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.