concept column in category sql

This is an excerpt from Manning's book SQL Server MVP Deep Dives Vol. 2.
A natural key is a key that consists of columns that contain information natural to the entity that the table represents. An example is the vehicle identification number (VIN) of a car. The deeper theoretical aspects of key definitions and all the various subtypes of keys are useful in other discussions but don’t contribute to the purpose of this chapter. This chapter’s purpose is to present the practical aspects and ramifications of the choices you make for your keys when designing your database. Therefore, I’ll focus on what I’ve found to be the most common choices for key selection that SQL Server database designers face: should you use a column or a set of columns that are already a part of your row and contain information about the entity (broadly called the natural key), or should you add an IDENTITY or similar column (broadly called here the artificial key) to generate values that will identify the row and serve as the primary key?
4. Add sensible table aliases as needed to make the column memberships easier to understand.
Listing 1. Example query script
with member Measures.TrendValue as ([Measures].[Internet Sales Amount] , ParallelPeriod([Date].[Calendar].[Month], 12 , [Date].[Calendar].CurrentMember)) select {[Measures].[Internet Sales Amount], Measures.TrendValue} on columns , NON EMPTY LASTPERIODS(-30, [Date].[Calendar].[Date].&[20030131]) on rows from [Adventure Works] ;

This is an excerpt from Manning's book SQL Server DMVs in Action: Better Queries with Dynamic Management Views.
To identify the SQL statements currently running now on your SQL Server, run the query given in listing 1.4. If a stored procedure or batch of SQL is running, the column Parent Query will contain the text of the stored procedure or batch, and the column Individual Query will contain the current SQL statement within the batch that’s being executed (this can be used to monitor progress of a batch of SQL). Note that if the batch contains only a single SQL statement, then this value is reported in both the Individual Query and Parent Query columns. Looking at the WHERE clause, you’ll see that we ignore any system processes (having a spid of 50 or less), and we also ignore this actual script.
But in my testing I discovered that the column was not updated for several of these commands, for example, UPDATE STATISTICS. For the commands that use the percent_complete column correctly, the script that follows allows you to estimate when a job will finish.
Table 11.4. The columns of the sys.dm_os_sys_info DMV
Column
Description
ms_ticks Number of milliseconds since the computer was started cpu_count Number of logical CPUs on the computer physical_memory_in_bytes Amount of physical memory available virtual_memory_in_bytes Amount of virtual memory available sqlserver_start_time_ms_ticks Number of milliseconds since SQL Server was last restarted (in 2008 and higher) sqlserver_start_time Date and time SQL Server was last started (in 2008 and higher)

This is an excerpt from Manning's book SQL Server MVP Deep Dives.
First normal form is critical: first normal form means not duplicating columns, but it also means one fact per attribute with plain, human-readable data, as well as not having unique rows. Violating first normal form is more common than you might think: smart keys such as product codes that embed data within the product code violate first normal form. If it takes combining multiple attributes to deduce a fact, that violates first normal form. Bitmasked attributes that embed data within a binary column (bit 1 means this, bit 2 means that) is an extreme violation of first normal form because anyone who can figure out binary encoding should know better. Remember, good index utilization is very specifically tied to first normal form. Embedded meaning inside a column (for example, the middle three characters of a five-character string), is not so easily indexed, particularly when it is not the first part of the value.
SQL Server can use composite indexes in a similar manner. Composite indexes contain more than 1 column and can reference up to 16 columns from a single table or view. The columns that compose a composite index can contain up to a combined 900 bytes.
You may have noticed that the WHERE clause in listing 1 provides the columns in the order that they appear in the ix_Customer_Name index. This is not a requirement in order for SQL Server to be able to use the index. If we reversed the order of the columns in the WHERE clause, SQL Server would still be able to use the index. But don’t take my word for it. Let’s look at another example to prove that this is indeed the case. Listing 4 shows the newly rewritten query that reverses the order of the columns in the WHERE clause.