You can declare variables using the DECLARE statement in the Kuika SQL Editor.
DECLARE @variable_name data_type;Here:
1. Defining a Variable and Assigning Data
DECLARE @top1Product nvarchar(256);SELECT TOP 1 @top1Product = productName FROM table_name;2. Calculating the Number of Rows
DECLARE @rowCount int;SET @rowCount = (SELECT COUNT(Id) FROM table_name);Example command: “Create a DECLARE command that lists only active departments.”