When querying INFORMATION_SCHEMA or SHOW FUNCTION we could find a column IS_MEMOIZABLE. None of built-in function is memoizable: Memoization ...
When querying INFORMATION_SCHEMA or SHOW FUNCTION we could find a column IS_MEMOIZABLE. None of built-in function is memoizable: Memoization ...
I have an orders table and an order_products_items table. The order_products_items has these fields: order_id product_id quantity price I ...
I have 2 tables: drivers and drivers_locations. I want to create a computed field in the drivers table that returns the last inserted location of a dr ...
I am working on a multitenant application. Most of the tables contain a column tenant_id. I want the number of rows in all tables for a particular ten ...
I have a folder in a directory in my PC which contains multiple SQL files. Each of the file is a Postgres function. I want to execute every SQL file s ...
However this will return error. I have run successfully when I do execute prepare statement in the command line but when I do it in a function it w ...
I have a set of patents that I have titles and abstracts on and would like to search in such a way that their final search algorithm requires the keyw ...
i am getting error while calling below procedure and when calling the procedure Getting below error: I already checked that this select state ...
I am trying to find the fastest growing countries based on the number of downloads between 2018 - 2020. I tried to use the lag function to find the h ...
I wrote a series of functions updating a progress column in my project, I wonder if this can be combined into a single function. I tried it, using SEL ...
I have a function in SQL Server with a select statement and I want to return one row calculated inside the select statement - ORDER_VALUE_ADJUSTED. ...
In PgSQL I make huge select, and then I want count it's size and apply some extra filters. execute it twice sound dumm, so I wrapped it in function an ...
I use a function as BLOCK and FILTER PREDICATE in order to implement row-level security. I now need to modify the session context variable to hold ...
I am trying to insert all the matching data from table to table which are same but on different db servers. It works since This sp is called when a ...
I'm trying to create a function that will do currency conversion based on a table. The table is called ds_exchange_rate and looks like this: As you ...
I have a Stored Procedure/SQL function that makes calculations on a specific record returning 0.00 or another DEC value. It takes the record's primary ...
I migrated from sql server to Azure db. While migrating I found a job named syspolicy_purge_history, do I also need to implement it on Azure db? As ...
I work on sql server 2017 I have table #partsfeature already exist as below my issue Done For Part id 3900 it take wrong Technology Id 7 and Corre ...
I am using EF Core Power Tools in my asp.net web application. After using it for a long time for my models and procedures, I wanted to use it for my e ...
I am trying to write some postgresql functions to help me parse a string value like "30Gi" or "25Ti". I tried this, but can't get the syntax right, an ...