Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 

Content with tags t-sql, advanced querying Rss

<< Newer    Items 21 to 40 of 218    Older >>
 

Four Rules for NULLs

In SQL Server 2000 or any relational database, the concept of NULL can be both confusing and hazardess to your employment. Not understanding how to work with NULLs can lead to incorrect responses to queries and poor business decisions being made. New author Michael Coles brings us four rules that can help you work with NULL values in your tables.   Read more...
By Michael Coles 2008/03/28 (first published: 2005/06/27) | Source: SQLServerCentral.com | Category: advanced querying
Rating: |  Discuss |   Briefcase | 88,244 reads

The Truth Table

Truth tables are an important part of working with logical values in SQL Server. Yousef Ekhtiari brings us some T-SQL that can help you construct those many variable truth tables and ensure you are getting the results you expect.   Read more...
By Yousef Ekhtiari 2007/04/19 | Source: SQLServerCentral.com | Category: advanced querying
Rating: |  Discuss |   Briefcase | 10,594 reads

Keyword Searching in SQL Server

Have you ever wanted to ensure that keywords in your data are easily searchable? Have you struggled with full-text search? New author Michael Ahmadi brings us an interesting idea for a keyword tracking and searching subsystem based on T-SQL and triggers.   Read more...
By Michael Ahmadi 2007/04/09 | Source: SQLServerCentral.com | Category: miscellaneous
Rating: |  Discuss |   Briefcase | 10,369 reads

Storing IPs in SQL Server

An IP address is something we all recognize and is a piece of data that is quite prevalent in many systems. However it is a piece of data tha presents some challenges in its storage and retrieval. SQL Server guru David Poole presents us with a look at how you can work with this strange formatting.   Read more...
By David Poole 2007/04/02 | Source: SQLServerCentral.com | Category: advanced querying
Rating: |  Discuss |   Briefcase | 13,945 reads

The ARRAY In SQL Server 2000

SQL Server 2000 and Transact-SQL have many features, but one of the most often asked for features has been the implementation of some sort of array data type. This basic programming concept is notably absent from the development platform and results in many headaches and frustrations for DBAs. New author Alex Grinberg brings us his techniques for simulating arrays in SQL Server 2000.   Read more...
By Alex Grinberg 2008/02/15 (first published: 2005/05/16) | Source: SQLServerCentral.com | Category: advanced querying
Rating: |  Discuss |   Briefcase | 141,464 reads

Tame Those Strings - Finding Carriage Returns

Expanding on his series of string manipulation in T-SQL, Steve Jones takes a look at how you go about removing those unseen characters from your strings.   Read more...
By Steve Jones 2007/02/13 | Source: SQLServerCentral.com | Category: advanced querying
Rating: |  Discuss |   Briefcase | 12,401 reads

Solving the "Running Total" & "Ordinal Rank" Problems in SS 2k/2k5

Learn how to solve a couple of common T-SQL issues with MVP Jeff Moden.  Read more...
By Jeff Moden 2008/01/31 | Source: SQLServerCentral.com | Category: advanced querying
Rating: |  Discuss |   Briefcase | 15,092 reads

NULL Versus NULL?

Dealing with NULL data is something that often confuses new SQL Server developers, but even experienced DBAs might not understand all the intricacies of NULL operations. In a follow up to his highly acclaimed Four Rules of Null article, Michael Coles brings us a few new tricks with NULLs.   Read more...
By Michael Coles 2007/10/05 (first published: 2007/02/26) | Source: SQLServerCentral.com | Category: advanced querying
Rating: |  Discuss |   Briefcase | 37,458 reads

When To Use Cursors

Most SQL Server DBAs have been taught that cursors are bad and should not be used. However there are some cases and places where they might be useful. SQL Server guru Andy Warren brings us an example of where they may be handy.   Read more...
By Andy Warren 2007/01/15 | Source: SQLServerCentral.com | Category: advanced querying
Rating: |  Discuss |   Briefcase | 16,717 reads

Creative Ways to Use the TOP Clause

Gregory Larsen discusses how to use the TOP clause to help solve requests where you want to restrict the number of records returned based on a record count.  Read more...
By Additional Articles 2007/01/05 | Source: Database Journal | Category: advanced querying
Rating:  Rate this |   Briefcase | 7,816 reads

Hidden RBAR: Triangular Joins

Just because it looks set based, doesn't mean it is. T-SQL Crackerjack Jeff Moden takes a look at a mistake that many query writers make.  Read more...
By Jeff Moden 2009/01/16 (first published: 2007/12/06) | Source: SQLServerCentral.com | Category: t-sql
Rating: |  Discuss |   Briefcase | 50,324 reads

Running totals in SQL Server queries

How often do you need to keep a total of all previous rows values when you run a query? This article shows you how you can achieve this.  Read more...
By Additional Articles 2006/11/23 | Source: Builder.com | Category: advanced querying
Rating:  Rate this |   Briefcase | 6,619 reads

NULL Versus NULL?

Dealing with NULL data is something that often confuses new SQL Server developers, but even experienced DBAs might not understand all the intricacies of NULL operations. In a follow up to his highly acclaimed Four Rules of Null article, Michael Coles brings us a few new tricks with NULLs.   Read more...
By Michael Coles 2007/10/05 (first published: 2007/02/26) | Source: SQLServerCentral.com | Category: advanced querying
Rating: |  Discuss |   Briefcase | 37,458 reads

The Puzzle of 'Rating Decomposition'

When reading rating information, how do you you knew how many points each separate voter gave if you only know the average rating and the number of votes? Well, you might be surprised to learn that you can figure it out using SQL  Read more...
By Additional Articles 2007/10/01 | Source: SimpleTalk | Category: advanced querying
Rating:  Rate this |   Briefcase | 1,421 reads

Conditional Statements in WHERE Clauses

T-SQL is a powerful language, enabling you to handle many different types of set based operations. But having flexible WHERE clauses isn't something that many DBAs deal with on a daily basis. New Author Sotiris Filippidis brings us an article on how you can structure a WHERE clause to handle all types of strange business logic without using dynamic SQL. Read on to learn more about his technique.   Read more...
By Sotiris Filippidis 2007/09/28 (first published: 2004/07/26) | Source: SQLServerCentral.com | Category: advanced querying
Rating: |  Discuss |   Briefcase | 34,244 reads

Avoid enclosing Indexed Columns in a Function in the WHERE clause

When a function is wrapped around an indexed column in the WHERE clause it will usually prevent the proper usage of that index. This article gives an example and discusses what other options are available.  Read more...
By Additional Articles 2007/09/27 | Source: SQLTeam.com | Category: advanced querying
Rating: (not yet rated)  Rate this |   Briefcase | 4,475 reads

Working with Datetime

Datetime data in SQL Server can be a little confusing to work with, especially as many front end languages do not combine the date and time into a single datatype. As a result, T-SQL is sometimes used to manipulate and convert datetime data into more useable formats. Author Leo Peysakhovich has written about some tricks that he uses to reformat and work with datetime data.   Read more...
By Leo Peysakhovich 2007/09/21 (first published: 2004/12/22) | Source: SQLServerCentral.com | Category: advanced querying
Rating: |  Discuss |   Briefcase | 29,013 reads

SQL Server 2008 - The Power of Merge

We have a first look at one of the features in SQL Server 2008 that was cut from SQL Server 2005, but which has been highly anticipated. How many times have you written an "insert new, update match" routine? Jacob Sebastion shows us easy this becomes with the new MERGE keyword in SQL Server 2008.   Read more...
By Jacob Sebastian 2007/09/11 | Source: SQLServerCentral.com | Category: advanced querying
Rating: |  Discuss |   Briefcase | 13,578 reads

Calculating Work Days

How many times have you wished that there was a parameter for DATEPART to allow you to check for workdays? While many of us may get stuck working 6 or 7 days a week, most of the world revolves on a 5 day work week. Monday through Friday. New author Jeff Moden brings us a method of easily calculating the number of workdays between any two dates.   Read more...
By Jeff Moden 2007/09/07 (first published: 2005/01/10) | Source: SQLServerCentral.com | Category: advanced querying
Rating: |  Discuss |   Briefcase | 42,614 reads

Server Side Paging With SQL Server 2005

One of the more common requests of an application working with SQL Server is to deal with pages, or sections, or data rather than an entire result set. Often an application retreives the entire result set and then only shows the user a few records, repeating the process with the next page. Regular columnist Jacob Sebastian brings us a more efficient method of implementing paging in SQL Server 2005.   Read more...
By Jacob Sebastian 2007/08/29 | Source: SQLServerCentral.com | Category: advanced querying
Rating: |  Discuss |   Briefcase | 12,828 reads
<< Newer    Items 21 to 40 of 218    Older >>
 
Tags
sql server 7 (25)    
administration (15)    
sql server 2005 (12)    
miscellaneous (11)    
stored procedures (9)    
development (8)    
nums (8)    
sqlinsider scripts (8)    
table of numbers (8)    
tally (8)    
counter (7)    
performance tuning (7)    
programming (7)    
arrays (5)    
delimited strings (5)    
parse (5)    
security (5)    
strategies (5)    
string manipulation (5)    
monitoring (4)    
sql puzzles (3)    
system development life cycle (3)    
2-dimensional arrays (2)    
table (2)    
visual basic 6 (2)    
ado (1)    
advanced (1)    
analysis services (ssas) (1)    
backup / restore (1)    
basics (1)    
common table expression (cte) (1)    
configuring (1)    
data warehousing (1)    
database design (1)    
dba (1)    
dts (1)    
extract, transform, load (etl) (1)    
games (1)    
maintenance and management (1)    
openxml (1)    
prime (1)    
prime number (1)    
puzzle (1)    
scripts (1)    
sieve (1)    
sql server 2008 (1)    
sql server 6.5 (1)    
triangular joins (1)    
triggers (1)    
user defined function (udf) (1)    
xml (1)