Top "Sql-function" questions

A function defined in a relational database system.

Function vs. Stored Procedure in SQL Server

I've been learning Functions and Stored Procedure for quite a while but I don't know why and when I should …

sql sql-server tsql stored-procedures sql-function
How to filter Pandas dataframe using 'in' and 'not in' like in SQL

How can I achieve the equivalents of SQL's IN and NOT IN? I have a list with the required values. …

python pandas dataframe sql-function
How to check date of last change in stored procedure or function in SQL server

I need to check when function was changed last time. I know how to check creation date (it is in …

sql-server-2008 stored-procedures sql-server-2008-r2 sql-function
How to Replace Multiple Characters in SQL?

This is based on a similar question How to Replace Multiple Characters in Access SQL? I wrote this since sql …

sql sql-server sql-server-2005 sql-function
SQL Query - Concatenating Results into One String

I have a sql function that includes this code: DECLARE @CodeNameString varchar(100) SELECT CodeName FROM AccountCodes ORDER BY Sort I …

sql sql-server tsql sql-function
How to check if a function exists on a SQL database

I need to find out if a function exists on a database, so that I can drop it and create …

sql sql-server sql-function
Select Rows with id having even number

I am passing a simple query where I am searching for specific rows where OrderID is an even number SELECT * …

sql sql-server sql-function
MySQL: Selecting multiple fields into multiple variables in a stored procedure

Can I SELECT multiple columns into multiple variables within the same select query in MySQL? For example: DECLARE iId INT(20); …

sql mysql stored-procedures sql-function
Calling Scalar-valued Functions in SQL

I have migrated a database from oracle, and now have a few Scalar-valued Functions. However, when I call them, I …

sql tsql sql-function
MySQL stored procedure vs function, which would I use when?

I'm looking at MySQL stored procedures and function. What is the real difference? They seem to be similar, but a …

mysql stored-procedures sql-function