Quantcast
Browsing all 162 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Use SQL Server to Create a Cross Tab Query

In this puzzle, we’re going to learn how to create a cross tab query using SQL Server.  Cross tabs are a great way to summarize data.  And given that Business Intelligence is a hot topic, knowing how...

View Article


Image may be NSFW.
Clik here to view.

What is a Dynamic Pivot Table?

In this puzzle, we’re going to learn how to create a dynamic pivot table using SQL Server.  A dynamic pivot table is a great way to summarize data.  And given that Business Intelligence is a hot topic,...

View Article


Image may be NSFW.
Clik here to view.

Learn to use the Data Dictionary in SQL Server

In this puzzle, we’re going to learn how to query the data dictionary using SQL Server.  Knowing how to query the data dictionary is good to know.  There are many questions you can answer about your...

View Article

Image may be NSFW.
Clik here to view.

Learn how to Calculate the Median Value using PERCENTILE_DISC

In this puzzle we’re going to learn how to find the person whose birthday, among others, is in the middle.  Knowing how to calculate the median value is a good skill to have.  As you start to explore...

View Article

Image may be NSFW.
Clik here to view.

What is the difference between a subquery and inner join?

In this puzzle, we’re going to learn how to rewrite a subquery using inner joins.  Knowing about a subquery versus inner join can help you with interview questions and performance issues.  Though...

View Article


Image may be NSFW.
Clik here to view.

Joins versus Subqueries SQL Puzzle

In this puzzle, we’re going to learn about joins versus subqueries.  In many queries you can substitute joins and subqueries.  Yet, since each has their strengths, it isn’t wise to do so.  Once you...

View Article

Image may be NSFW.
Clik here to view.

Data Modeling Principles in Action

In this puzzle, we’re going to learn how to do some basic data modeling.  Many of you have expressed an interest in learning more about data modeling and database design.  I figure we could start with...

View Article

Image may be NSFW.
Clik here to view.

SQL Server and Set Operations

In this puzzle, we’re going to about SQL set operations.  Set operations allow us to compare rows from two or more tables to arrive at a result.   For several classes of problems, is is much easier to...

View Article


Image may be NSFW.
Clik here to view.

How to use SQL Union in Set Operations

  In this puzzle, we’re going to learn how to write a SQL UNION without using Set Operations.  Set operations allow us to compare rows from two or more tables to arrive at a result.   For several...

View Article


Image may be NSFW.
Clik here to view.

What is the difference between a primary and unique key?

In this article we learn the difference between a primary and unique key, and why both are important to maintaining a relational database structure. All the examples for this lesson are based on...

View Article

Image may be NSFW.
Clik here to view.

Calculate a Running Total in SQL with Joins or Window Functions

There are several ways to calculate a running total in SQL.  In this article, we will cover two methods:  Joins, and Window Functions. We’ll first look at how to calculate the running total using an...

View Article

TOP Clause in SQL

In this Video we’ll show you how to use the TOP clause to return a portion of the result.  This comes in handy in situations you’re required to return the top or bottom ten entries of a list. This...

View Article

Image may be NSFW.
Clik here to view.

Introduction to Stored Procedures for SQLServer

After reading this article you will understand the benefits of stored procedures and how to create and execute them. All the examples for this lesson are based on Microsoft SQL Server Management Studio...

View Article


Image may be NSFW.
Clik here to view.

Use IF…ELSE Statements to Program a Stored Procedure

After reading this article you will understand the basics of programming a stored procedure using IF…ELSE statements; most importantly how keywords, such as BEGIN, END, IF and ELSE affect the order of...

View Article

Image may be NSFW.
Clik here to view.

Using the WHILE Statement in Stored Procedures

After reading this article you will understand the basics of using the WHILE statement to write a loop within a stored procedure. All the examples for this lesson are based on Microsoft SQL Server...

View Article


Image may be NSFW.
Clik here to view.

Build Dynamic SQL in a Stored Procedure

After reading this article you will understand the basics of dynamic SQL; how to build statements based on variable values, and how to execute those constructed statements using sp_executesql and...

View Article

Image may be NSFW.
Clik here to view.

Getting Started with SQL Server: 1. Simple SELECT Queries

In this series of lessons you’re going to learn how to query Microsoft SQL Server using the SQL SELECT statement.  Once you have read this lesson you’ll be able to: Identify all the tables in a SQL...

View Article


Getting Started With SQL Server: 2. Sort Your Query Results

In this lesson you are going to explore how to sort your query results by using SQL’s ORDER BY statement.  Using this phrase allows us to sort our result in ascending or descending order.  In addition...

View Article

SQL ACID Explained

What are the  ACID Database Properties? The ACID database properties define the key characteristics SQL databases use to ensure database modification are saved in a consistent, safe, and robust manner....

View Article

What are the Major Part of a SQL DB?

A SQL database is used to store and retrieve data.  The database is housed in a database server and largely controlled by a database management system.  All SQL databases, whether they MS SQL Server,...

View Article
Browsing all 162 articles
Browse latest View live