Remove c
article thumbnail

Deprecated features to take out of your toolbox – Part 3

SQL Performance

These types are on the deprecated list for many reasons, and have held a permanent spot on that list since being replaced by the max types way back in SQL Server 2005. Let's create a simple database with a few tables: CREATE DATABASE BadIdeas ; GO. name , [ Column ] = c. system_type_id <> c.

C++ 58
article thumbnail

Fundamentals of table expressions, Part 5 – CTEs, logical considerations

SQL Performance

In my examples I’ll use a sample database called TSQLV5. So it could be that the term originated in one of the database products and later adopted by some of the other database vendors. So it could be that the term originated in one of the database products and later adopted by some of the other database vendors.

C++ 140
Insiders

Sign Up for our Newsletter

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

article thumbnail

Overlooked T-SQL Gems

SQL Performance

In my examples I'll use a sample database called TSQLV5. You can find the script that creates and populates this database here , and its ER diagram here. As an example, suppose that you need to perform some task per database in your instance. databases ; OPEN C ; FETCH NEXT FROM C INTO @dbname ; WHILE @@FETCH_STATUS = 0.

C++ 111
article thumbnail

Back-to-Basics Weekend Reading - A Decomposition Storage Model

All Things Distributed

Traditionally records in a database were stored as such: the data in a row was stored together for easy and fast retrieval. Combined with the rise of data warehouse workloads, where there is often significant redundancy in the values stored in columns, and database models based on column oriented storage took off.

Storage 79
article thumbnail

Additional T-SQL Improvements in SQL Server 2022

SQL Performance

I’ll be using the sample database TSQLV6 in the examples in this article. You can download this sample database here. 75 Test XYZ Student C 55 Test XYZ 77.5 75 Test XYZ Student C 55 Test XYZ 77.5 In this article, I focus on the distinct predicate and the approximate percentile functions. The Distinct Predicate.

Servers 142
article thumbnail

Data Mining Problems in Retail

Highly Scalable

Recall the basic equation for enterprise profit: where Q is quantity sold, P is price, V denotes variable costs, and C denotes fixed costs. Heckerman, and C. DG12] How Companies Learn Your Secrets, C. Kleinberg, C. Jain, 2005. MA08] Introduction to Information Retrieval, C. Rodriguez, C. Kadie, 1998.

Retail 152
article thumbnail

SQL Server I/O Basics Chapter #2

SQL Server According to Bob

KB sectors run on smaller sectors   14 System and sample databases   15 Determining the formatted sector size of database   15 What sector sizes does SQL Server support? KB boundary   12 Larger transaction logs   13 Restore and attach   14 Format for 4 ?KB

Servers 40