Thư viện tài liệu trực tuyến miễn phí dành cho các bạn học sinh, sinh viên
Allows the expression of constraints on domain variables that are either inconvenient or impossible to express within the skeleton tables. ■ Complex conditions can be used in condition boxes ■ Example: Find the loan numbers of all loans made to Smith, to Jones, or to both jointly
84 trang | Chia sẻ: huyhoang44 | Ngày: 16/03/2020 | Lượt xem: 1328 | Lượt tải: 0
The SQL standard defines embeddings of SQL in a variety of programming languages such as C, Java, and Cobol. ■ A language to which SQL queries are embedded is referred to as a host language, and the SQL structures permitted in the host language comprise embedded SQL. ■ The basic form of these languages follows that of the System R embedding o...
58 trang | Chia sẻ: huyhoang44 | Ngày: 16/03/2020 | Lượt xem: 1231 | Lượt tải: 0
Find all customers who have an account at all branches located in Brooklyn. select distinct S.customer_name from depositor as S where not exists ( (select branch_name from branch where branch_city = 'Brooklyn') except (select R.branch_name from depositor as T, account as R where T.account_number = R.account_number and S.customer_name = ...
66 trang | Chia sẻ: huyhoang44 | Ngày: 16/03/2020 | Lượt xem: 1494 | Lượt tải: 0
Aggregation function takes a collection of values and returns a single value as a result. avg: average value min: minimum value max: maximum value sum: sum of values count: number of values ■ Aggregate operation in relational algebra E is any relationalalgebra expression ● G 1, G2 , Gn is a list of attributes on which to group (can be em...
96 trang | Chia sẻ: huyhoang44 | Ngày: 16/03/2020 | Lượt xem: 1298 | Lượt tải: 0
Alternative ways of evaluating a given query ● Equivalent expressions ● Different algorithms for each operation Cost difference between a good and a bad way of evaluating a query can be enormous Need to estimate the cost of operations ● Depends critically on statistical information about relations which the database must maintain ● Need to ...
31 trang | Chia sẻ: huyhoang44 | Ngày: 16/03/2020 | Lượt xem: 1128 | Lượt tải: 0
The following list describes the basic monitoring tools: Activity Monitor: a tool graphically displays the following information: Processes running on an instance of SQL Server Locks User activity Blocked processes Dynamic management views: return server state information that can be used to monitor the health of a server instance, diagnose ...
47 trang | Chia sẻ: huyhoang44 | Ngày: 16/03/2020 | Lượt xem: 1016 | Lượt tải: 0
Log shipping is: To send transaction logs from the primary database to the secondary database. To back up the transaction logs from a primary database and then copy and restore them to a secondary database, keep the secondary database nearly synchronized with the primary database. The destination server acts as a backup server. Log shipping ...
33 trang | Chia sẻ: huyhoang44 | Ngày: 16/03/2020 | Lượt xem: 1191 | Lượt tải: 0
Distributor: Each publisher has a distributor to store replication status data, and metadata about the publication. Sometimes the distributor acts as a data queue for data moving from the publisher to the subscribers and vice versa. There are two types of distributors: local and remote. Local distributor is where the publisher and distribut...
11 trang | Chia sẻ: huyhoang44 | Ngày: 16/03/2020 | Lượt xem: 1504 | Lượt tải: 0
One of the most important advantages of Database Engine is its capability to automate administrative tasks and hence to reduce costs. Examples of some important tasks that are performed frequently and therefore could be automated: Backing up the database and transaction log Transferring data Dropping and re-creating index Checking data integr...
19 trang | Chia sẻ: huyhoang44 | Ngày: 16/03/2020 | Lượt xem: 1094 | Lượt tải: 0
SQL Server provides several options for importing XML documents. You can use the OPENROWSET Transact-SQL function to read data, including XML data, from a file. SQL Server also offers many ways to transfer data: OPENXML and XML stored procedures the XML data type’s nodes() method the SQLXML middle-tier API to load XML data as relational data I...
45 trang | Chia sẻ: huyhoang44 | Ngày: 16/03/2020 | Lượt xem: 1323 | Lượt tải: 0