This month's discount Comprehensive Database Performance Health Check · Testimonials
SQLAuthority with Pinal Dave
Home
  • Consulting
    • Health Check
  • Free Videos
  • All Articles
    • AI
    • SQL Performance
    • SQL Tips and Tricks
    • Interview Questions and Answers
    • SQL Puzzle
    • SQL Video
    • SQLAuthority News
    • Personal
  • Books
  • Consulting
Old record (deleted) New record (inserted).

SQL SERVER – Tips from the SQL Joes 2 Pros Development Series – Output Clause in Simple Examples – Day 14 of 35

August 14, 2011
Pinal Dave
SQL Tips and Tricks
Joes 2 Pros, SQL Scripts

The OUTPUT clause in simple examples: see exactly which rows your INSERT, UPDATE or DELETE changed, using the INSERTED and DELETED tables.

Read More
Ranking Functions with NTILE.

SQL SERVER – Tips from the SQL Joes 2 Pros Development Series – Ranking Functions – Advanced NTILE in Detail – Day 13 of 35

August 13, 2011
Pinal Dave
SQL Tips and Tricks
Joes 2 Pros, SQL Scripts

How the NTILE ranking function splits sorted rows into groups, or tiles, explained with a class ranking example from the Joes 2 Pros series.

Read More
SQL SERVER - Ranking Functions - RANK( ), DENSE_RANK( ), and ROW_NUMBER( ) - Day 12 of 35

SQL SERVER – Ranking Functions – RANK( ), DENSE_RANK( ), and ROW_NUMBER( ) – Day 12 of 35

August 12, 2011
Pinal Dave
SQL Tips and Tricks
Joes 2 Pros, Ranking Functions, SQL Scripts, SQL Server

RANK( ), DENSE_RANK( ), and ROW_NUMBER( ) return the same results until your data has a tie. Day 12 shows how each ranking function handles tied values.

Read More
SQL query results window.

SQL SERVER – Tips from the SQL Joes 2 Pros Development Series – Advanced Aggregates with the Over Clause – Day 11 of 35

August 11, 2011
Pinal Dave
SQL Tips and Tricks
Joes 2 Pros, SQL Scripts

Advanced aggregates with the OVER clause from Joes 2 Pros: partition your data so each number is compared against its own category, not the whole set.

Read More
SQL SERVER - Tips from the SQL Joes 2 Pros Development Series - Aggregates with the Over Clause - Day 10 of 35

SQL SERVER – Tips from the SQL Joes 2 Pros Development Series – Aggregates with the Over Clause – Day 10 of 35

August 10, 2011
Pinal Dave
SQL Tips and Tricks
Joes 2 Pros, SQL Scripts

A Joes 2 Pros tip on aggregates with the OVER clause: show each grant next to the total of all grants and work out its share, just like market share.

Read More
SQL SERVER - Tips from the Development Series - Overriding Identity Fields - Day 9 of 35

SQL SERVER – Tips from the Development Series – Overriding Identity Fields – Day 9 of 35

August 9, 2011
Pinal Dave
SQL Tips and Tricks
Joes 2 Pros, SQL Identity, SQL Scripts, SQL Server

Identity fields give each new customer or invoice a unique number, even with many users entering data. Here is when and how to go about Overriding Identity Fields.

Read More
Sales Invoice and Products table in database.

SQL SERVER – Tips from the SQL Joes 2 Pros Development Series – Many to Many Relationships – Day 8 of 35

August 8, 2011
Pinal Dave
SQL Tips and Tricks
Joes 2 Pros, SQL Scripts

Many to many relationships explained with an online shopping cart: one order holds many products, and one product is bought by many customers.

Read More
Previous 1 … 4 5 6 7 8 Next
  • Books
  • Testimonials
  • Privacy Policy

© 2006 – 2026 All rights reserved. pinal @ SQLAuthority.com