• Chapter 5: Other relational languagesChapter 5: Other relational languages

    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

    pdf84 trang | Chia sẻ: huyhoang44 | Ngày: 16/03/2020 | Lượt xem: 1328 | Lượt tải: 0

  • Cơ sở dữ liệu - Chapter 4: Advanced SQLCơ sở dữ liệu - Chapter 4: Advanced SQL

    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...

    pdf58 trang | Chia sẻ: huyhoang44 | Ngày: 16/03/2020 | Lượt xem: 1231 | Lượt tải: 0

  • Cơ sở dữ liệu - Chapter 3: SQLCơ sở dữ liệu - Chapter 3: SQL

    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 = ...

    pdf66 trang | Chia sẻ: huyhoang44 | Ngày: 16/03/2020 | Lượt xem: 1494 | Lượt tải: 0

  • Cơ sở dữ liệu - Chapter 2: Relational modelCơ sở dữ liệu - Chapter 2: Relational model

    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 relational­algebra expression ● G 1, G2 , Gn is a list of attributes on which to group (can be em...

    pdf96 trang | Chia sẻ: huyhoang44 | Ngày: 16/03/2020 | Lượt xem: 1298 | Lượt tải: 0

  • Cơ sở dữ liệu - Chapter 1: IntroductionCơ sở dữ liệu - Chapter 1: Introduction

    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 ...

    pdf31 trang | Chia sẻ: huyhoang44 | Ngày: 16/03/2020 | Lượt xem: 1128 | Lượt tải: 0

  • Cơ sở dữ liệu - Chapter 8: Monitoring sql serverCơ sở dữ liệu - Chapter 8: Monitoring sql server

    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 ...

    ppt47 trang | Chia sẻ: huyhoang44 | Ngày: 16/03/2020 | Lượt xem: 1016 | Lượt tải: 0

  • Cơ sở dữ liệu - Chapter 7: Maintaining high availabilityCơ sở dữ liệu - Chapter 7: Maintaining high availability

    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 ...

    ppt33 trang | Chia sẻ: huyhoang44 | Ngày: 16/03/2020 | Lượt xem: 1191 | Lượt tải: 0

  • Cơ sở dữ liệu - Chapter 6: Data replicationCơ sở dữ liệu - Chapter 6: Data replication

    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...

    ppt11 trang | Chia sẻ: huyhoang44 | Ngày: 16/03/2020 | Lượt xem: 1504 | Lượt tải: 0

  • Cơ sở dữ liệu - Chapter 5: Automating administrative tasksCơ sở dữ liệu - Chapter 5: Automating administrative tasks

    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...

    ppt19 trang | Chia sẻ: huyhoang44 | Ngày: 16/03/2020 | Lượt xem: 1094 | Lượt tải: 0

  • Cơ sở dữ liệu - Chapter 4: Transferring data and using service brokerCơ sở dữ liệu - Chapter 4: Transferring data and using service broker

    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...

    ppt45 trang | Chia sẻ: huyhoang44 | Ngày: 16/03/2020 | Lượt xem: 1323 | Lượt tải: 0