skip to Main Content

Mysql – Creating User-defined Function

I'm working with the following table: Employees_2 ( EmpID INT PRIMARY KEY, FirstName VARCHAR(50), LastName VARCHAR(50), Department VARCHAR(50), Salary DECIMAL(8,2), DateOfJoining DATE ); I need to create a user-defined function to determine if an employee is a 'Senior' (more than…

VIEW QUESTION

Javascript – Error: Unknown user-defined function L2."xx_proc_getDqtReport" in Snowflake UDF

Hi I am using the below code to create a function (UDF) in Snowflake: create or replace function l2."xx_proc_getDqtReport"(schemaname text,tablename text) returns table(tablename text,colname text,fillrate float,distvalues variant,dqtupdatetime timestamp) language javascript as $$ var sql1 = `create or replace table app.dqt_report_${tablename}…

VIEW QUESTION
Back To Top
Search