SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 

Content with tag Advanced Querying Rss

   Items 1 to 20 of 222    Older >>
 

Adding Years, Months and Days

Adding Years, Months and Days to Years, Months and Days, with Bonus UK Public Holiday calculation.  Read more...
By Pete Revell 2017/03/14 | Source: SQLServerCentral.com | Category: t-sql
Rating: |  Discuss |   Briefcase | 2,017 reads

Identify Unique Columns

Tool to automatically query combinations of columns in your table to determine candidate for unique key.  Read more...
By Jesse McLain 2012/08/21 | Source: SQLServerCentral.com | Category: t-sql
Rating: |  Discuss |   Briefcase | 1,887 reads

A Sudoku solution with set based T-SQL utilizing binary operators

A Sudoku solution with set based T-SQL approach utilizing binary values and operators, to ease the algorithm.  Read more...
By Kevin Duan 2011/12/21 | Source: SQLServerCentral.com | Category: t-sql
Rating: |  Discuss |   Briefcase | 3,555 reads

EXECute SQL Commands over entire sets of parameters!

A super-powered EXEC on steroids, the Power Tool every DBA wants for Christmas.  Read more...
By RBarry Young 2010/03/16 | Source: SQLServerCentral.com | Category: administration
Rating: |  Discuss |   Briefcase | 2,824 reads

Prime Number Table Generator (new ver crunches to 1 Mil in <10.5 sec!)

Generates prime numbers and puts them into a table for future reference by adhoc queries and database and application code. 100% set-based. DDL embedded.  Read more...
By Jesse Roberge 2009/07/15 | Source: SQLServerCentral.com | Category: advanced querying
Rating: |  Discuss |   Briefcase | 1,254 reads

Comparing Stored Procedures, Part 6

Sixth in a series of scripts demonstrating a quantitative comparison between the text of two stored procedures  Read more...
By Jesse McLain 2009/04/15 | Source: SQLServerCentral.com | Category: t-sql
Rating: |  Discuss |   Briefcase | 1,375 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 | 53,413 reads

Delimited String Parsing Functions - TwoCol set

Feed it two delimited strings of horizontal data and it returns it back as a vertical table with the two column data in the same synchronized position order.  Read more...
By Jesse Roberge 2008/11/03 | Source: SQLServerCentral.com | Category: t-sql
Rating: |  Discuss |   Briefcase | 2,171 reads

Delimited String Parsing Functions - Big2D set

Feed it large strings of double-delimited horizontal data and it returns it back as a non-pivoted vertical table with a 2-diemensional star schema.  Read more...
By Jesse Roberge 2008/10/22 | Source: SQLServerCentral.com | Category: t-sql
Rating: |  Discuss |   Briefcase | 1,133 reads

Delimited String Parsing Functions - Basic Set

Feed it delimited horizontal data and it returns it back as a vertical table.  Read more...
By Jesse Roberge 2008/10/20 | Source: SQLServerCentral.com | Category: t-sql
Rating: |  Discuss |   Briefcase | 2,626 reads

Delimited String Parsing Functions - 2D set

Feed it double-delimited horizontal data and it returns it back as a non-pivoted vertical table with a 2-diemensional star schema.  Read more...
By Jesse Roberge 2008/10/14 | Source: SQLServerCentral.com | Category: t-sql
Rating: |  Discuss |   Briefcase | 1,022 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 | 53,413 reads

Delimited String Parsing Functions - Big Set

Feed it large strings of delimited horizontal data and it returns it back as a vertical table.  Read more...
By Jesse Roberge 2008/08/05 | Source: SQLServerCentral.com | Category: t-sql
Rating: |  Discuss |   Briefcase | 1,368 reads

Counter Table (table of numbers) Setter-Upper for SQL Server 2005

Sets up 3 'table of numbers' that completely fill a 1, 2, and 3-level clustered index respectivly with 622, 386884, and 240641848 numbers.  Read more...
By Jesse Roberge 2008/08/05 | Source: SQLServerCentral.com | Category: t-sql
Rating: (not yet rated) |  Discuss |   Briefcase | 894 reads

Counter Table (table of numbers) Setter-Upper for SQL Server 2000

Sets up 3 'table of numbers' that completely fill a 1, 2, and 3-level clustered index respectivly with 620, 384400, and 238328000 numbers.  Read more...
By Jesse Roberge 2008/08/05 | Source: SQLServerCentral.com | Category: t-sql
Rating: (not yet rated) |  Discuss |   Briefcase | 463 reads

A Sudoku solution with set based T-SQL utilizing binary operators

A Sudoku solution with set based T-SQL approach utilizing binary values and operators, to ease the algorithm.  Read more...
By Kevin Duan 2011/12/21 | Source: SQLServerCentral.com | Category: t-sql
Rating: |  Discuss |   Briefcase | 3,555 reads

Everybody Reports to Somebody

One of the very common questions posted about T-SQL is how to traverse a hierarchy in a set based manner. New author Craig Hatley brings us his techniques for handling the common scenario of employees and managers.   Read more...
By Craig Hatley 2007/06/04 | Source: SQLServerCentral.com | Category: advanced querying
Rating: |  Discuss |   Briefcase | 5,695 reads

Converting Hexadecimal String Values to Alpha (ASCII) Strings

In an interesting exercise in data conversion, Stephen Lasham brings us a nice article on basic manipulations.   Read more...
By Stephen Lasham 2007/05/17 | Source: SQLServerCentral.com | Category: advanced querying
Rating: |  Discuss |   Briefcase | 10,955 reads

Identify Unique Columns

Tool to automatically query combinations of columns in your table to determine candidate for unique key.  Read more...
By Jesse McLain 2012/08/21 | Source: SQLServerCentral.com | Category: t-sql
Rating: |  Discuss |   Briefcase | 1,887 reads

CASE function in SQL Server – part II

Part I of this series illustrated how to use simple case functions in queries. This installment discusses how to use case functions in different types of scenarios.  Read more...
By Additional Articles 2007/04/12 | Source: Database Journal | Category: advanced querying
Rating:  Rate this |   Briefcase | 10,008 reads
   Items 1 to 20 of 222    Older >>
 
Tags
t-sql (181)    
sql server 7 (25)    
administration (15)    
sql server 2005 (12)    
miscellaneous (11)    
stored procedures (9)    
development (8)    
nums (8)    
performance tuning (8)    
sqlinsider scripts (8)    
table of numbers (8)    
tally (8)    
counter (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)    
user defined function (udf) (2)    
visual basic 6 (2)    
ado (1)    
advanced (1)    
analysis services (ssas) (1)    
backup and restore (1)    
basics (1)    
common table expressions (cte) (1)    
configuring (1)    
data warehousing (1)    
database design (1)    
datetime manipulation (1)    
dba (1)    
dts (1)    
extract, transform, load (etl) (1)    
games (1)    
humour (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)    
table valued parameters (tvp) (1)    
test data (1)    
triangular joins (1)    
triggers (1)    
xml (1)