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
SQL SERVER - 2005 Limiting Result Sets by Using TABLESAMPLE - Examples

SQL SERVER – 2005 Limiting Result Sets by Using TABLESAMPLE – Examples

May 27, 2007
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Random, SQL Scripts

TABLESAMPLE returns a random sample of rows by percent or row count. My examples show why the same query returns a different number of rows each time.

Read More
A striped hand-knitted scarf on a chair, no color repeated, with two unused balls of yarn in a basket on the seat.

A Quote of the Day From a Table, With No Repeats Until All Are Used

May 23, 2007
Pinal Dave
SQL Tips and Tricks
SQL Random, SQL Scripts, SQL Server, SQL Transactions

Build a quote of the day table that rotates without repeats, handles concurrent requests, and supports a stable date-based selection.

Read More
Random Number Generator

SQL SERVER – Random Number Generator Script – SQL Query

April 29, 2007
Pinal Dave
SQL Tips and Tricks
SQL Cursor, SQL Random, SQL Scripts, SQL Server, SQL Stored Procedure, SQL Utility

Random Number Generator. There are many methods to generate random numbers in SQL Server.
Method 1: Generate Random Numbers (Int) between Rang

Read More
Previous 1 2 3
  • Books
  • Testimonials
  • Privacy Policy

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