SQL-Query Basics  «Prev  Next»
Lesson 7

SQL Server Basics Conclusion

This module discussed information with respect to query basics in SQL. In the upcoming modules, you will see how this information helps you in writing your queries and these queries can be constructed using techniques discussed in this chapter by using
  1. logic,
  2. system catalogs, and
  3. dynamically constructed SQL.

Having completed this module, you should be able to:
  1. Describe how to execute your queries
  2. Compare and contrast batch queries with single queries
  3. Describe the purpose of and how to use system catalogs in your queries
  4. Write logic within your queries
  5. Describe how to construct SQL statements dynamically

SQL Server - Glossary terms

This module introduced you to the following terms:
  1. Executing: The process of sending a query to SQL Server for processing. This is synonymous with Issuing.
  2. Issuing: 'The process of sending a query to SQL Server for processing. This is synonymous with Executing.
  3. Batch: A set of Transact-SQL commands that are sent to the SQL Server engine, all at one time. Batches are separated by GO keywords. If there are no GO keywords in a set of Transact-SQL statements, they are all considered to be in one batch.
  4. System catalogs: Also known as system tables, these tables store meta-data, which is data that describes other data.
  5. Dynamically: A process or statement that is constructed at run-time, as opposed to compile-time. Sometimes constructing SQL statements dynamically is necessary because the statement is constructed based on options chosen by the user.
  6. Optimized: The process of determining the fastest possible way to execute a query. Optimization can be simple or complex, depending on the complexity of the query or stored procedure being issued.
  7. SQL Server role: A group of users who are allowed the same access permission to certain objects. There are two main types of roles that come pre-installed in SQL Server
    1. Fixed Server Role: allowed to perform administrative functions on specific, pre-defined categories of built-in objects.
    2. Fixed Database Role:allowed to perform database-specific tasks, such as INSERTING, UPDATING, DELETING, or SELECTING data.
  8. Meta-data: Information (data) about database structures. For example, the meta-data about a table includes its name, its column names, and the filegroups in which it resides. In other words, meta-data is data about data.
In the next module, learn about selecting data from your SQL Server 2005 tables.

Query Basics - Quiz

Before moving on to the next module, click the Quiz link below to check your knowledge of the material covered in this module with a short, multiple-choice quiz.
Query Basics - Quiz