Initial commit

This commit is contained in:
user
2026-07-12 13:56:05 +04:00
commit 04bf3a4b58
850 changed files with 9057 additions and 0 deletions
@@ -0,0 +1,19 @@
USE [Database]
IF OBJECT_ID('[Functions].[does_barcode_exist]') IS NOT NULL
DROP FUNCTION [Functions].[does_barcode_exist];
GO
CREATE FUNCTION [Functions].[does_barcode_exist](
@barcode AS BIGINT
)
RETURNS BIT
AS
BEGIN
IF EXISTS(
SELECT *
FROM [Tables].[products]
WHERE [barcode] = @barcode
)
RETURN CAST(1 AS BIT);
RETURN CAST(0 AS BIT);
END