近年ではRedashやMetabaseのようなBIツールを簡単に導入でき、さらにはMySQLはバージョン8. 0からwindow関数が利用できるようになり、より分析的なSQLを記述する機会が増えた読者もいるかも知れません。このような分析に利用するSQLを記述をすると、どうしても ...
SQL Server 2008 introduces the ability to pass a table data type into stored procedures and functions. The table parameter feature can greatly ease the development process because you no longer need ...
Oracle SQL*Plus has a very useful subparameter to the column parameter called NEW_VALUE. The NEW_VALUE directive allows you to store data retrieved from an Oracle table as a variable inside the ...
CREATE OR ALTER FUNCTION fn_get_city_name ( @address AS VARCHAR(100) ) RETURNS VARCHAR(100) AS BEGIN DECLARE @city_name AS VARCHAR(100) SELECT @city_name = TRIM(LEFT(@address,CHARINDEX(',', @address)) ...
I have a stored procedure that needs to select some data into a table variable, but I am having trouble because I need a dynamic where clause and SQL Server 2000 does ...
Well, if you happen to be using Sql Server you can do that sort of thing in T-Sql. In Oracle, you can also accomplish the same thing using pl/sql. Either way i'd do it in a stored ...
Estimate and monitor In-Memory OLTP storage usage and capacity in Azure SQL Database; resolve capacity error 41823. With In-Memory OLTP, data in memory-optimized ...