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
Three seedling cups travel together on one tray toward matching recesses

How to Insert Multiple Rows in a Single SQL Query – Interview Question of the Week #069

May 1, 2016
Pinal Dave
SQL Interview Questions and Answers
MySQL, PostgreSQL, SQL Scripts, SQL Server

Interview question: write one script that inserts multiple rows in a single SQL query and runs unchanged in SQL Server, MySQL and PostgreSQL. Here is my answer.

Read More
SELECT One by Two - Interview Question Extended - Part II

SELECT One by Two – Interview Question Extended – Part II

April 30, 2016
Pinal Dave
SQL Interview Questions and Answers
SQL Operator, SQL Scripts, SQL Server

After my SELECT One by Two puzzle, I played with a small extension: three queries mixing 1. and 1/2. Can you guess what each one returns and why?

Read More
SQL SERVER - Computed Column and Conditions with Case Statement

SQL SERVER – Computed Column and Conditions with Case Statement

April 27, 2016
Pinal Dave
SQL Tips and Tricks
Computed Column, SQL Scripts, SQL Server

How to write conditions with CASE statement in a computed column, using a simple AdventureWorks script you can adapt for any complicated logic.

Read More
Table type descriptor window.

SQL SERVER – Identify Table Where Clustered Index is Not a Primary Key – DMV

April 26, 2016
Pinal Dave
SQL Performance
SQL Constraint and Keys, SQL Index, SQL Scripts, SQL Server

Let us first see script which will return us tablename with schema where clustered index is not a primary key.

Read More
Individual green pears are sorted before filled crates are compared

What is Difference Between HAVING and WHERE – Interview Question of the Week #068

April 24, 2016
Pinal Dave
SQL Interview Questions and Answers
SQL Scripts, SQL Server

Clients sometimes interview me, and my answers from experience do not always match the textbook. Last week’s Interview Question: HAVING versus WHERE.

Read More
PowerShell Script - Backup Every Database In SQL Server

PowerShell Script – Backup Every Database In SQL Server

April 23, 2016
Pinal Dave
SQL Tips and Tricks
PowerShell, SQL Backup and Restore, SQL Scripts, SQL Server

A client wanted to automate backups with a script instead of a GUI. Here is the PowerShell and SMO script I have used for years to backup every database.

Read More
MySQL - LEAST and GREATEST Comparison Operators

MySQL – LEAST and GREATEST Comparison Operators

April 19, 2016
Pinal Dave
SQL Tips and Tricks
MySQL, SQL Function, SQL Operator, SQL Scripts

Comparing values across many columns is a common chore. Here is how the MySQL LEAST and GREATEST comparison operators find the smallest and largest value.

Read More
Previous 1 … 151 152 153 154 155 156 157 … 366 Next
  • Books
  • Testimonials
  • Privacy Policy

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