Twitter

Follow SQLQuill on Twitter

Subscribe

MN Pass

TSQL Tip O’ the Week – 9/20/11 – Comparisons

This weeks tip:

Know your comparison operators!  Why?  It may save you some embarrassment.  For example:

  • There is a big difference between > and >=.  When writing TSQL, sometimes the “or equal to” of the comparison greater than or equal to gets forgotten.
  • Pending on the standards there is a difference!  The ! preceding the =,< and > is not ANSI compliant.
  • I was reviewing someone else’s code and I saw the != comparison used and I thought it meant the values really needed to be extra equal.
  • I thought !< was an emoticon.

Here’s a list with links for full clarification:

Comparison Meaning
= Equal
> Greater Than
< Less Than
>= Greater than or equal to
<= Less than or equal to
<> Not equal
!= Not equal
!< Not less than
!> Not greater than
 
Here are some related posts from the intraweb:
Previous Tips O’ the Week

September PASSMN Meeting – Denali

Sponsor: Visi

Date: September 20th, 2011

Time: 3:00 PM – 5:00 PM

Location: 8300 Norman Center Drive, 9th Floor, Bloomington, MN 55437

Live Meeting:

Agenda:

  • 3:00-3:15 : Registration / hospitality / networking
  • 3:15-3:30 : Announcements etc.
  • 3:30-4:45 : Introduction to Denali AlwaysOn and Column Store Technologies
  • 4:45-5:00 : Closing comments/prize giveaways

Presentation:

Introduction to Denali AlwaysOn and Column Store Technologies

Ajay Nangia, Microsoft

The session will talk about the new High Availability and Disaster Recovery solution being introduced in SQL Server “Denali”. It will provide an overview about the new features and capabilities such as utilization of secondary databases for a better return on hardware investment and how to simplify HADR deployments. It will also introduce the new column-based accelerator for vast improvements in query performance.

Ajay Nangia is a Data Platform Technology Specialist at Microsoft. In this role, Ajay enables customers and partners to develop, deploy, and support solutions based on Microsoft’s Database Technologies. Ajay has a long history of working with SQL Server – from its internals to application and BI development on the platform.

TSQL Tip O’ the Week – 9/6/11 – Get Free Training

This weeks tip:

There is a ton of SQL Training resources on the information super highway.  Take advantage of these opportunities, especially if it’s free.  Here are some Free training opportunities:

Previous Tips O’ the Week