Click here to Skip to main content
15,891,938 members
Everything / Programming Languages / SQL

SQL

SQL

Great Reads

by Alex Pumpet
A simple program for comparing table data from two sources - SQL databases, Excel, CSV or XML-files
by Thomas Weller
Demonstrates how to run Python scripts from C#
by Mubin M. Shaikh
Create time dimension with 24 hour plus values and time buckets in your data warehouse
by Christoph Buenger
Describes PHP application development with the free Scavix Web Development Framework (Scavix-WDF).

Latest Articles

by Mishael Ogo
A look at a simple SQL builder for Dapper
by GabrieleTronchin
In this project, I've implemented the Transactional Outbox Pattern using EF Core.
by GabrieleTronchin
A simple stored procedure to add at your database to keep it reactive
by GabrieleTronchin
Automatic creation of non clustered indexes using system SQL entities

All Articles

Sort by Updated

SQL 

12 Sep 2012 by aasim abdullah
A simple way to swap column values.
12 Sep 2012 by aasim abdullah
Why we should avoid the NOLOCK table Hint in DELETE/UPDATE queries.
12 Sep 2012 by aasim abdullah
To find out whose birthday is coming in a given number of days is very simple.
15 Sep 2012 by aasim abdullah
How local variables can reduce query performance in SQL Server
16 Apr 2015 by Acharya Raja Sekhar
Capture SQL Server queries fired from your application
21 Apr 2012 by AlexTatiyants
JSON-oriented document stores like Mongo and Couch have really become the darlings of the web application crowd. Of course, JSON (or BSON) isn't the only game in town. When it comes to document store formats, the other white meat if you will is XML.
29 Jun 2017 by Alvin Bunk
How to use Oracle SQL Developer to connect to MySQL/Mariadb databases
3 Feb 2018 by Alvin Bunk
How to troubleshoot SQL code using comments
2 May 2013 by Amogh Natu
This post shows how to insert a comma-separated string into multiple rows in a table in SQL Server.
20 Aug 2012 by Andrei Ion Rînea
Simpler paging, sequences and FileTables in SQL Server 2012
20 Aug 2012 by Andrei Ion Rînea
Some performance tips
20 Aug 2012 by Andrei Ion Rînea
OUTPUT clause in UPDATE statements
12 May 2011 by Andrew Zwicker
An example of using a Cartesian [cross] join.
12 May 2011 by Andrew Zwicker
Do you find yourself or others doing repetitive tasks? The solution – automate if possible.
16 May 2011 by Andrew Zwicker
How to prevent duplicates in the data
19 May 2011 by Andrew Zwicker
The decision of where to put logic isn’t always clear cut.
22 May 2011 by Andrew Zwicker
A discussion about a forum post for handling a running subtraction in a SQL query.
23 May 2011 by Andrew Zwicker
A discussion about SQL joins and subqueries with information about how to format join statements properly
25 May 2011 by Andrew Zwicker
A discussion of how joins significantly outperform subqueries and how this is more evident when OR conditions are involved.
29 May 2011 by Andrew Zwicker
A discussion of how views give a more denormalized means for querying against normalized tables.
31 May 2011 by Andrew Zwicker
SQL Query run time estimation
4 Jun 2011 by Andrew Zwicker
Why OR conditions in join statements should be avoided and an example fix
10 Jun 2011 by Andrew Zwicker
Why table and column documentation is useful and some SQL for setting up the data dictionary tables
13 Jun 2011 by Andrew Zwicker
A continuation of the data dictionary discussion with information about how the documentation is done
22 Jul 2011 by Andrew Zwicker
This is part 2 of a discussion about replacing cursors with SQL statements for significant speed improvements.
22 Jul 2011 by Andrew Zwicker
How to replace cursors with set-based SQL queries - Part 1
26 Apr 2015 by Anton Angelov
Tutorial how to create test cases statistics for the automation status and their distribution by priority. Steps how to setup SSRS and TFS Data Warehose.
4 Jun 2015 by Anton Angelov
Tutorial on how to set up an email subscription for reports generated in SSRS (SQL Server Reporting Services). Step by step explanations with a lot of images.
27 Jun 2009 by Anton Burtsev
The article shows how one can use Microsoft SQL Server to generate millions of guids in seconds.
30 Aug 2017 by Anton Burtsev
If you want your database to be fast with a huge amount of data, you should test it with large test database.
21 Jul 2021 by Aram Tchekrekjian
In this tutorial, we will learn how to connect Android with ASP.NET Core Web API.
17 Feb 2022 by Aram Tchekrekjian
How to apply JWT Access Tokens and Refresh Tokens in ASP.NET Core Web API 6
24 Mar 2021 by Arctype SQL
When solving a problem that requires you to link a user's session data to their actual user object, Postgres comes in handy.
24 Mar 2021 by Arctype SQL
Using pg_notify in Postgres alongside the NOTIFY and LISTEN syntax is all that's needed to build a real time updating dashboard
24 Mar 2021 by Arctype SQL
Universally Unique IDs (UUIDs) use random numbers to create unique IDs. UUIDs use more storage, but they provide a good solution for distributed databases and security.
9 Apr 2021 by Arctype SQL
Explanation of how a query gets execution and understanding the EXPLAIN command
22 Apr 2021 by Arctype SQL
Simple examples of collaborative filtering with fundamental logic behind all of these systems boiling down to same principles used here
22 Apr 2021 by Arctype SQL
Write your query in a way to overcome the limitations of NULL rather than avoid using it.
19 Nov 2021 by Arctype SQL
Learn how to write a MySQL cursor or a MySQL loop
1 Dec 2021 by Arctype SQL
In this article, you'll learn about Postgres UUIDs and how to generate them with examples from two different modules.
31 Mar 2021 by Arctype SQL
Easily deploy PostgreSQL pod in Kubernetes
24 Jul 2021 by Arctype SQL
As a business expands, the need to ethically leverage data is not a luxury anymore, but a necessity.
30 Jun 2015 by Arkadeep De
SQL bulk copy from DataTable using XML
20 Jan 2014 by Arun Ramachandran India
What exactly is COALESCE function in SQL Server?
10 Feb 2014 by Arun Ramachandran India
ADO.NET - What is meant by SQL injection attack?
9 Jul 2014 by Arun Ramachandran India
How to write stored procedures with output parameters in SQL Server
24 Jan 2012 by atverma
Utility to Generate Word Documents from Templates Using Visual Studio 2010 and Open XML 2.0 SDK - Part 4
21 May 2013 by Basavaraj P Biradar
The new Merge statement in SQL Server 2008.
21 May 2013 by Basavaraj P Biradar
Difference between SET QUOTED_IDENTIFIERS ON and OFF settings.
28 May 2014 by Ben Liebert
Best practice front-end architecture using Microsoft ASP.NET MVC and Rivet.js
30 May 2014 by Ben Liebert
Best practice front-end architecture using Microsoft ASP.NET MVC and Rivets.js
6 Jan 2011 by Bikash Shaw
An Introduction to Bitronix JTA Transaction Manager with MySQL
21 Sep 2014 by Bob McGowan
Processing SQL Server FILESTREAM Data - Part 1
24 Sep 2014 by Bob McGowan
Utilizing SQL Server FILESTREAM capabilities from .NET
7 Oct 2017 by Brady Kelly
Making F5 execute your query
17 Aug 2012 by Bryan O'Connell
Review of the ebook: Brad's Sure Guide to SQL Server Maintenance Plans.
20 Jun 2013 by Bryan O'Connell
Using LINQ to SQL for ETL projects.
23 Dec 2009 by Bryan Thomas Weikel
CodeProject"LEK" is a three-tier .NET WinForms accounting application that can be configured at run time to use either LINQ to SQL, Entity Framework or NHibernate to access data in either a "main" or "testing" SQL Server database.
10 Apr 2012 by Cale Dunlap
Example of using code-based query generation, transposition, cross-tabulation, and normalized data to produce a query result that can feed a simple chart from data which was not originally designed with reporting or charting in mind.
18 Jan 2016 by Camilo Reyes
Demystify LocalDB in ASP.NET with sqlcmd
25 Sep 2009 by Charles Boyung
How to program for date ranges
15 Feb 2016 by Craig Pickles
Row-Level Security in Azure SQL with entity framework
31 Dec 2011 by Dave C Andrews
Use ROW_NUMBER() to enumerate and partition records in SQL Server
3 Jan 2012 by Dave C Andrews
You can have your tables make computations themselves, without running through a view.
5 Jan 2012 by Dave C Andrews
Count the records in a table which are of a certain type.
27 Jan 2012 by Dave C Andrews
How to join multiple columns with Linq to SQL
19 Apr 2016 by Dave Kerr
If you are looking to get your hands dirty and learn all about Docker, then look no further!
28 May 2014 by Debopam Pal
This example shows how you can generate INSERT, UPDATE & DELETE SQL Query for Oracle DB.
30 Jul 2014 by Debopam Pal
How to run SQL script containing DDL, DML, Select statements and PL/SQL block through reader in Java
28 Mar 2014 by derekman9707
SSIS - Do I Union All or Merge?
5 Apr 2014 by derekman9707
A SQL Cmdlet a Day 2 Piping and Select
10 Sep 2014 by derekman9707
Pseudo-simple recovery model
14 Sep 2014 by derekman9707
Different types of database backups
26 Sep 2014 by derekman9707
This post discusses about variable value assignment in SSIS.
9 Jul 2011 by Dinesh K Mandal
Some Hidden Facts about Stored Procedure and Its Optimization
29 Jan 2013 by DiscoverSQL
Using @@Error within a transaction.
2 Nov 2020 by DotNetLead.com
Angular/.NET Core Web API application that can be used as the starting point for building your applications.
1 Dec 2022 by DotNetLead.com
Deploy existing ASP.NET Core UI, API, and SQL Server to Docker containers
6 Dec 2009 by Duy H. Thai
Explore the essence of an 'LTS classes' file, the classes it generates, and how it connects the object model to the database model...
15 Jun 2015 by Eduardo Fonseca
Video Games Statistics Using Web API 2 and SQL Server Reporting Services
7 Jan 2013 by eric hexter
How to use SQL Compact for Integration Tests with Entity Framework
7 Sep 2011 by Eric Xue (brokensnow)
Missing Server side dependencies - Problems and Solutions
7 Sep 2011 by Eric Xue (brokensnow)
Extracting the entire UserProfile AD user details into a CSV file
7 Sep 2010 by Ernest Poletaev
How to change database schema, add or delete a field or table, be sure that new version of application will work correctly and existing users will not lose their data
3 Nov 2014 by essentialSQL
Database Third Normal Form explained in simple English
21 Oct 2014 by essentialSQL
Database Second Normal Form explained in simple English
21 Oct 2014 by essentialSQL
Database First Normal Form explained in simple English
22 Oct 2014 by essentialSQL
How to combine table rows using UNION in SQL Server
22 Oct 2014 by essentialSQL
Introduction to Outer Joins in SQL Server
22 Oct 2014 by essentialSQL
Introduction to Inner Joins in SQL Server
22 Oct 2014 by essentialSQL
Introduction to database joins in SQL
22 Oct 2014 by essentialSQL
Database normalization in SQL explained in simple English
23 Oct 2014 by essentialSQL
Simplified Data Modeling in SQL
23 Oct 2014 by essentialSQL
What is a Null Value? In databases a common issue is what value or placeholder do you use to represent a missing values.   In SQL, this is solved with null.  It is used to signify missing or unknown values.  The keyword NULL is used to indicate these values.
23 Oct 2014 by essentialSQL
How to Group and Summarize your Results in SQL
23 Oct 2014 by essentialSQL
Query Results Using Pattern Matching in SQL
24 Oct 2014 by essentialSQL
Learn more about filtering results returned from your queries using the WHERE clause
24 Oct 2014 by essentialSQL
In today’s lesson, you’re going to learn how to filter the results returned from your queries using the WHERE clause.