SQL Server
T-SQL from the ground up, database design, administration and tuning, SSIS, SSRS and SSAS, data warehousing and ETL, and SQL interview prep.
Page 3 of 4
2012 · 41 posts
TSQL Stored Procedure that returns all tables in a given schema
· 1 min read
This is a little post to illustrate how to retrieve all tables in a given schema. This is a handy tool and can be used for various purposes. So lets call this…
TSQL Tutorial 27: Microsoft SQL Server Authentication
· 10 min read
I just want to talk briefly about how we can access sql server instance running either on your personal computer or on a network. Authentication is a big issue…
TSQL Tutorial 26: Pivot and Unpivot
· 6 min read
Hello, I'm briefly going to discuss one topic that can easily throw you under the bridge if you did not take the time to actually practice it. Pivot and…
TSQL Tutorial 25:Common Table Expressions(CTE)
· 7 min read
Hello world, l hope everyone is having peace where ever you are. This week has been a tough one for the United States, I'm talking in regards of the Theater…
TSQL Tutorial 23: Implementing Database Disaster Recovery-Backup and Restore
· 12 min read
I'm going to discuss one important job of Database administrators, that is Disaster management and recovery. This is a critical aspect of the life of a…
TSQL Tutorial 24: Index Maintenance
· 5 min read
Here we go again, guys. Lets take care of our indexes this time. Fragmentation occurs in case of large number of DML Statements on a table which has indexes.…
TSQL Tutorial 22: Partition
· 9 min read
Hello world, welcome to another important tutorial on database programming using TSQL. Today, we are going to talk about Partition. This is a very important…
TSQL Tutorial 21: Triggers
· 8 min read
Ok, here we go again guys/girls, lets try to learn something smart together. In this tutorial, I'm focusing on triggers. So What are triggers? I like to keep…
TSQL Tutorial 20: Index
· 13 min read
In this tutorial, l'll be discussing one of the most used database objects for optimizing the performance of queries. Indexes are very important and every…
TSQL Tutorial 19:Views
· 13 min read
I've been a little busy for the past week which made me fall behind most of the things l wanted to write on the Learning Blog. There are more features added to…
TSQL Tutorial 18:User Defined Functions.
· 3 min read
In the last tutorial, l discussed stored procedures. Stored procedures are used for implementing the complex logic of a business while functions are commonly…
TSQL Tutorial 17: Recompiling Stored Procedures, strength and weak points of stored procedures.
· 4 min read
In TSQL Tutorial 16, l discussed and implemented the various types of user defined stored procedures. I'm going to continue the discussion and probably end my…
TSQL tutorial16: Stored Procedures
· 7 min read
In this tutorial, I'm going to discuss one of the most important database objects that you'll ever come across in SQL Sever Programming, that is Stored…
TSQL Tutorial 14:Subqueries
· 5 min read
In today's discussion, I'm focusing on one important component of T-SQL, that is sub queries. As the name implied, a sub query is simply a query that is made…
TSQL Tutorial 15: Temporary tables, Derived tables and Table variables.
· 5 min read
l want to take on three topics in this tutorial. That is temporary tables, derived tables and table variables. l want to take on all of them at once so l can…
TSQL Tutorial 10:Aggregate Functions, Group By Clause, Having Clause
· 3 min read
Aggregate functions are in built functions that sql server uses to perform some basic tasks. If you need a more complex function to perform a task, then you…
TSQL tutorial 11: System Functions
· 2 min read
System functions are inbuilt functions that can be used to perform some tasks without writing code to perform the task. There are lot of system functions but…
TSQL Tutorial 12: JOINS
· 4 min read
In this tutorial, l'm going to touch on one of the most common statements you'll see on daily basis when writing sql in real time programming environment.…
TSQL Tutorial 13: Set Operators
· 3 min read
In this tutorial, we'll look at the set operators used in TSQL. Set operators and Joins work very similar but the biggest difference is that, in set operators,…
TSQL Tutorial 9: Control Structures(While, If and Case)
· 3 min read
I want to quickly go over the 3 main control structures in TSQL in this tutorial. Control structures are structures that help us control how we want our…
TSQL Tutorial 7: System Variables, Table Variables and User Defined Variables
· 3 min read
I'm going to discuss what variables are in TSQL and how to use them. First of all, if you have ever programmed, then you already know what a variable is. It's…
TSQL Tutorial 8: Dynamic SQL
· 2 min read
One very beautiful feature of sql is the dynamic nature. Dynamic sql referes to code/script which can be used to opereate on different data-sets based on some…
TSQL tutorial 6: Performing search using Wild Card %
· 4 min read
In this lesson, l want to briefly go over how to perform search using a wild card. The symbol used for wild card is the percent sign (%). Lets see how this is…
TSQL Tutorial 4. Delete, Drop and Truncate Statements
· 2 min read
In this lesson, l'm going to explore 3 statements that might sound similar but are different in how they work. The first statement is the Delete statement.…
TSQL Tutorial 5: UPDATE STATEMENT and the WHERE CLAUSE
· 2 min read
In this discussion, we'll explore the update statement and take look at the where clause. The Update statement is used for updating values in a cell/cells of a…
TSQL Tutorial 2:The Insert Statement
· 4 min read
In this discussion, we'll explore different ways records can be added to a table using the insert statement. The insert statement is the only statement that…
TSQL Tutorial 3 :The select and select into statement
· 2 min read
In this lesson, we'll explore the select statement. The select statement is used mostly for reading data from objects in the database. Let's create a table,…
TSQLTutorial 1: Constraints-Primary key, foreign key, check, default,unique key
· 5 min read
I've been discussing general information about database/sql development but l'm now going to concentrate on one flavour of SQL called TSQL, microsoft version…
Sql development. Tutorial 7: DDL,DML and DCL Components of SQL
· 4 min read
In this tutorial, l'm going to quickly go over the languages that exist in SQL. SQL stands for Structured Query Language. It is made up of three components,…
Sql development. Tutorial 5: Relation Schema
· 4 min read
Today, l'm discussing the relation schema. This document comes directly from the Entity Relationship Diagram. However, l don't think you need an entity…
One Mission:Help You Thrive with AI.
Whether you are just getting started or ready to level up, our programs help you build practical AI skills you can use in real life and work.