Login or Sign Up to become a member!
LessThanDot Site Logo

LessThanDot

A Technical Community for IT Professionals

Less Than Dot is a community of passionate IT professionals and enthusiasts dedicated to sharing technical knowledge, experience, and assistance. Inside you will find reference materials, interesting technical discussions, and expert tips and commentary. Once you register for an account you will have immediate access to the forums and all past articles and commentaries.

Browsing "rdbms"

2

SQL Advent 2012 Day 4: Triggers, what to do, what not to do

This is day four of the SQL Advent 2012 series of blog posts. Today we are going to look at triggers. Triggers are a great way to keep your database in a consistent state. There are two types of triggers, DML triggers and DLL triggers. DML triggers res…

Read More...
2

SQL Advent 2012 Day 3: Sargable Queries

This is day three of the SQL Advent 2012 series of blog posts. Today we are going to look at sargable queries. You might ask yourself, what is this weird term sargable. Sargable comes from searchable argument, sometimes also referred as Search ARGument…

Read More...
20

Only In A Database Can You Get 1000% + Improvement By Changing A Few Lines Of Code

Take a look at this query. select * from ( select customer_id, ‘MTD’ as record_type, count(*), sum(…), avg(…) from payment_table where year(payment_dt) = year(getDate()) and month(payment_dt) = month(getDate()) group by customer_id) MTD_payments UNION ALL ( select customer_id, ‘YTD’ as record_type, count(*), sum(…), avg(…) from payment_table where where year(payment_dt) = year(getDate()) group by customer_id) YTD_payments UNION […]

Read More...