Which One is Better? IN or BETWEEN?
I just had an interesting case of performance tuning: a query with multiple predicates on a very large table. Something...
2018-03-21 (first published: 2018-03-09)
4,121 reads
I just had an interesting case of performance tuning: a query with multiple predicates on a very large table. Something...
2018-03-21 (first published: 2018-03-09)
4,121 reads
Let’s say you have a very large table on a SQL Server 2012 Standard Edition instance. This means: old cardinality...
2018-03-02
374 reads
This wait type indicates that parallel plans execute on the server. This wait type doesn’t necessarily means there is a...
2018-03-02
822 reads
Usually, when I need to troubleshoot currently running requests, I use a combination of sys.dm_exec_requests and sys.dm_os_waiting_tasks. The former retrieves...
2018-02-01
490 reads
Houston, We Have a Problem
We are living in a crazy world. And it just gets more and more crazy all...
2018-01-28
837 reads
Let’s say you need to create a new SQL Server database, which is going to grow very fast, but you...
2018-01-18 (first published: 2018-01-08)
1,754 reads
There is a growing need for Graph Databases in the market. This is a type of database, which is capable...
2018-01-08
541 reads
SQL Server 2017 brings a new interesting feature, that might be a game changer in some environments. I’m talking about...
2017-12-25
564 reads
I had the honor to visit Nepal and participate in SQL Saturday Nepal 2017. You can visit the event website...
2017-12-23
475 reads
In show #84 of the SQL Server Radio Hebrew Edition, Matan and I talked about how to calculate running totals in SQL...
2017-12-01 (first published: 2017-11-19)
2,870 reads
Do you know if your SQL Server is really running at its best? To...
You can find the slides of my session on the €100 DWH in Azure...
By Steve Jones
This value is something that I still hear today: our best work is done...
Hi everyone I am writing an SP where there is logic inside the SP...
Comments posted to this topic are about the item Planning for tomorrow, today -...
We have a BI-application that connects to input tables on a SQL Server 2022...
I try to run this code on SQL Server 2022. All the objects exist in the database.
CREATE OR ALTER VIEW OrderShipping AS SELECT cl.CityNameID, cl.CityName, o.OrderID, o.Customer, o.OrderDate, o.CustomerID, o.cityId FROM dbo.CityList AS cl INNER JOIN dbo.[Order] AS o ON o.cityId = cl.CityNameID GO CREATE OR ALTER FUNCTION GetShipCityForOrder ( @OrderID INT ) RETURNS VARCHAR(50) WITH SCHEMABINDING AS BEGIN DECLARE @city VARCHAR(50); SELECT @city = os.CityName FROM dbo.OrderShipping AS os WHERE os.OrderID = @OrderID; RETURN @city; END; goWhat is the result? See possible answers