SQL For .NET Programmers

Recent Posts

Calendar

April 2014
S M T W T F S
« Mar    
 12345
6789101112
13141516171819
20212223242526
27282930  

SQL For Programmers

SQL WHILE – SQL For Programmers

The IF statement we looked at on Tuesday was pretty tame compared to the WHILE construct.

Actually, the main thing you need to keep in mind is that WHILE is all you have.  There is no such thing as a FOR loop or a DO WHILE loop. … Read the rest

SQL For Programmers – Finding a String

tp_vol3_025 Many times in our queries, we aren’t looking for an exact match.  We are looking for one string that exists in another.  There are a couple statements available to us that will allow us to do this.

The first of these is the LIKE statement, and if you are familiar with DOS or the Linux equivalent, this should look familiar to you.… Read the rest

SQL for .NET Programmers–The Book

Today, I finally announce the availability of my new book.  SQL For .NET Programmers.

This book is based on the series of post I wrote in 2008.  If those post have been valuable to you and you’d like to have them all in one place on your Kindle reader, pick up your copy today.… Read the rest

SQL For Programmers – Stored Procedures (Better than LINQ)

arct-06 [Don't start the flames until you read the entire post :). ]

While we could go on with the various syntax elements in a SELECT statement, I doubt that it would be as helpful as the items we’ve already covered.  Most of what I use on a day to day basis is some combination of what I’ve shown already.… Read the rest

SQL SELECT CASE Instead of IIF

E05C0037

I’ve had to do this a couple of times and I just realized I haven’t written about it anywhere.

If you need to SELECT a field from a row that returns different content based on the content of the field, you’d think, based on previous programming experience, that your code would look something like this.… Read the rest