Click here to Skip to main content
15,891,708 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 

30 Mar 2024 by GabrieleTronchin
A simple stored procedure to add at your database to keep it reactive
30 Mar 2024 by GabrieleTronchin
Automatic creation of non clustered indexes using system SQL entities
23 Feb 2024 by Mohammad Elsheimy
One of the major issues encountered when connecting to databases after porting ASP.NET app to Docker Linux containers.
24 Oct 2023 by Federico Di Marco
Query Excel or CSV files with T-SQL without importing them in a table first
28 Jul 2023 by AmrDeveloper
Introduce GQL (A Git Query Language) to perform SQL like queries on .git files
1 Jul 2023 by DiponRoy
Split date time ranges into days or possibly other ranges using CTE in SQL Server
20 May 2023 by Mirzakhmet Syzdykov
Development process in few steps with the help of scripting software
8 May 2023 by Dathuraj Pasarge
Extract SQL Server DB inventory\baseline using TSQL and PowerShell scripts
31 Mar 2023 by Member 4206974
A PHP class that uses PDO for creating a table from JSON Objects
6 Feb 2023 by Venkat Chaitanya Kanumukula
Tableau is one of the powerful reporting tool which is on the market for over a decade. Here's a quick tour in designing BI reports with Tableau using Microsoft Dynamics AX 2012 R3/ Microsoft Dynamics 365 Finance and Operations.
1 Nov 2022 by Tomas@PawSQL
How to cope with all scenarios regarding NULL value handling in your daily work
4 Jul 2022 by DiponRoy
How to auto increment column options in databases
5 Jun 2022 by Ramesh Bevara
An overview of a helper class to build dynamic order by clause in LINQ query in C#
22 Apr 2022 by CMYork01
How to schedule generation of all object creation scripts
11 Jan 2022 by Member 4206974
A tip to get a data list on 2 (or more) columns.
28 Dec 2021 by DiponRoy
Delete all the records from the table using EF
1 Dec 2021 by Uladzislau Baryshchyk
Application that can be used to work with subd and connecting Amazon RDS to the project
14 Sep 2021 by OriginalGriff
How do you get last weeks data only? It's a little more complex than you might have thought
2 Sep 2021 by Member 14691410
Providing admin with an alert mechanism via an SP
4 Aug 2021 by Ondra Spilka
Let's explain the basics so developers understand weak spots of date and time handling
28 Jul 2021 by Oleksandr Viktor (UkrGuru)
Minimally simple UkrGuru.SqlJson package for your ASP.NET Core Web Application
20 Jul 2021 by Uladzislau Baryshchyk
In this article, I'll show you how easy it is to move your MS SQL database to Amazon RDS cloud
6 Jul 2021 by Toma Tsyhan
This article is about understanding the Cartesian Product in SQL followed by some examples.
2 Jul 2021 by datarockets
Finding a vulnerability, using it for data extracting from the database, and fixing it with just one line of code
20 Jun 2021 by Elisha Cornelius
Recover SQL Script files that are lost due to SSMS Crash or whatever the other reasons
1 Jun 2021 by Wendelius
How to prevent insert for record when maximum number of rows has been reached
15 May 2021 by be05x5
SQL script that will generate XML code that you can copy paste into your RDL file and just do it that way
6 Apr 2021 by Satya Karki
How to import or restore BACPAC file using SSMS
5 Apr 2021 by Rijwan Ansari
How to compare two databases using SQL Server Database Project (Template) available in VS.
4 Apr 2021 by Rijwan Ansari
Learn about SQL Server Database Project (Template) available in VS
16 Mar 2021 by Yuri Danilov
An overview of Top 8 new SQL features of MySQL 8
15 Mar 2021 by Pablo A Martinez
How to use Google map and Spatial search to do freehand drawing
19 Nov 2020 by cattman1970
Function that consumes a Columbia Gas account number of 11+ digits and returns the check digit
15 Oct 2020 by RickZeeland
PostgreSQL notifications Windows Forms application
12 Aug 2020 by Juan F. Paleo
Encrypt data with RSA Public Key
9 May 2020 by Carlos Luis Rojas Aragonés
Snippet to get started with foreign tables
9 Apr 2020 by Jesus Carroll
In Data Engineering, supporting Data Science, Data Mining and Reporting tasks, it is useful to get only fields that have data. We don't mind nulls values and we are grateful if this field's structure is dynamic. These ones might be a stat in the set of empty's kingdom.
24 Mar 2020 by OriginalGriff
A basic user defined function to remove minute and second from a DATETIME
1 Mar 2020 by Sanwar ranwa
How to create a cascading dropdown using ReactJS and Web API
17 Feb 2020 by Thava Rajan
Prepare script for specific objects
8 Jan 2020 by Homero Ibarra Ramírez
Tool on T-SQL to code basic generator for SQL Server
8 Jan 2020 by E. Scott McFadden
This article explains how to create and use a self referencing key in a SQL Server Table.
28 Dec 2019 by Wendelius
How to overcome the error message "Types don't match between the anchor and the recursive part in column..." for varchar columns in a recursive CTE query
26 Dec 2019 by OriginalGriff
Select users with a birthday in the next "n" days is pretty easy, if you use the day of year. The only slight complication is the need to "wrap" round the year end.
30 Oct 2019 by Charles T. Blankenship
Backup and Restore SQL Server utility (where there is no SMSS onsite)
21 Jul 2019 by DiponRoy
Select a default row for a query that returns no rows
10 Jul 2019 by DiponRoy
Finding week start and end date time from a given date time
9 Jun 2019 by Prasannakumaran Sarasijanayanan
Load data to temporary table, make any additional update if required, create necessary indices, finally DROP live table and RENAME temporary table to production table.
29 May 2019 by DiponRoy
A utility query to find table generations in SQL Server relational database
21 May 2019 by Herman<T>.Instance
When using SqlDependency, is it possible that a detected change leads to 0 rows in the SqlDependency results?
18 Mar 2019 by Martin Vorbrodt
SQL database access
19 Feb 2019 by DiponRoy
How to do string split and join in SQL Server
18 Feb 2019 by DiponRoy
Selecting single row from a group of rows
14 Feb 2019 by DiponRoy
A utility class to send parameters for IN() operator in SQL using parameterized queries
3 Feb 2019 by Thinira
Continuous Integration and Delivery with VSTS (Visual Studio Team Services)
4 Dec 2018 by Renz Ladroma
A guide to transfer your MySQL databases between two servers using the SCP method
1 Oct 2018 by Satnam Singh CapGemini
Improving backup performance
10 Sep 2018 by Manjuke Fernando
How to give db_datareader access to a specific user across all the databases on a particular SQL Server
19 Aug 2018 by Islam Refaei
How to create contained DB users to be used among your application
23 Jul 2018 by senthill
This tip will help you to resolve issue when exporting large data from SSRS report to Excel, getting error message "Request timeout" in SharePoint 2013.
11 Jul 2018 by Satnam Singh CapGemini
Cannot Bulk Load Data Into the Table with Primary Key Constraint on it
25 Jun 2018 by connect ashish yadav
Auto increment column value is not part of transaction
7 May 2018 by Harshit Gindra
Understanding the use of multiple schedulers to work with one Quartz Scheduler application
26 Apr 2018 by Mason Kuck
I walk you through how to make use Table-valued parameters with one value
6 Apr 2018 by CyberMakarov007
SQL table dependency with entity framework in WPF
22 Feb 2018 by Database Star
This article explains how to tell if a relationship in a database should be many-to-one or one-to-many.
2 Feb 2018 by Luca Astolfi
User defined procedure for make an HTML table from T-SQL Select statment
11 Dec 2017 by Chetan Naithani
Stored Procedure to Generate Insert Scripts
19 Nov 2017 by PIEBALDconsult
This is an alternative for "SQL Convert Sentence to Proper Case"
16 Nov 2017 by Suvendu Shekhar Giri
Difference between MySQL DATETIME and TIMESTAMP datatypes
29 Oct 2017 by vinothharshad
Use the ON DELETE CASCADE option if you want rows deleted in the child table when corresponding rows are deleted in the parent table.
28 Oct 2017 by OriginalGriff
How do you call a Stored Procedure inside a query and use the SELECT results? Tricky...or is it?
27 Sep 2017 by Haroon Ashraf
Things worth considering when using SQL Date and Time data types
26 Sep 2017 by Haroon Ashraf
A quick way to calculate first and last day of curent month and previous month
5 Sep 2017 by Member 10262330
I developed this DLL to have a more powerful utility and to simplify SP and query.
31 Aug 2017 by Member 10262330
Dynamic restore SQL Server
14 Aug 2017 by Ehtesam Ahmed
This article gives you quick tip about how you can remove duplicate rows easily using common table expression in SQL
17 Jul 2017 by Arif H Shigri
This tip will discuss the difference between ROW_NUMBER(), RANK() and DENSE_RANK().
13 Jul 2017 by Wendelius
This is an alternative for "What’s the Difference between a Full Index Scan and a Fast Full Index Scan in Oracle?"
7 Jun 2017 by Niemand25
Be careful with CASE WHEN when dealing with numeric columns and using zero literal
31 May 2017 by Member 13040242
We are going to talk about the problem faced because of asynchronous nature of SQL query execution in node js and the solution for it.
13 May 2017 by Evgeniy Sukhikh
Issues and solutions taken while moving R from cmd to sp_execute_external_script
8 May 2017 by Nirav Prabtani
How to calculate distance between two geolocations or find out distance within a specific radius by SQL Server
31 Mar 2017 by ergohack
Do you need to update everyone's TFS picture? Or set the notification email address for that calcitrant employee?
15 Mar 2017 by Ricardo_Torres_Torres
Read text file and insert mutiples records in just one SQL Sentence
7 Mar 2017 by Shikur Yennus
Linear congruential is one of methods used to generate random numbers.
31 Jan 2017 by #realJSOP
Using common table expressions to build data from thin air.
31 Jan 2017 by #realJSOP
A scalar function to determine if a given DateTime is one of the ten US federal holidays, using SQL Server.
31 Jan 2017 by saddam_msp
Shortcuts to execute your query faster while working or debugging T-SQL statement
27 Jan 2017 by Rajesh_K_Sharma
How to create CSV file in SQL
24 Jan 2017 by Database Star
This article explains the difference between the NVL and NVL2 functions in Oracle SQL.
24 Jan 2017 by VINEET MISHRA 086
Convert column into rows without using pivot function in SQL
27 Dec 2016 by Database Star
How to use these three functions and what the differences are between them
20 Dec 2016 by BharatRamV
Finds the Best Table for a given set of columns
18 Dec 2016 by NightWizzard
Convert amounts to their spoken equivalents
7 Dec 2016 by Wendelius
This tip demonstrates how to select valid records from a table that contains validity date limits.
5 Dec 2016 by Database Star
Oracle 12c has many new features, and these are the five most useful (in my opinion).
23 Nov 2016 by jamuro77
This SQL mini-article is about generating random int values between upper and lower limits, in particular, to load data into demo database.
7 Nov 2016 by Database Star
Use the COALESCE function with different data types correctly
4 Nov 2016 by Database Star
Explanation and demonstration of some Oracle SQL functions to convert text to dates