Quantcast
Channel: Questions in topic: "variables"
Viewing all articles
Browse latest Browse all 49

Using variables in a SQL Query (ALM) ?

$
0
0
I am trying to run a SQL Query in ALM12 like the following select count(*) from sample where name = 'sam' and date = '01/01/15' Is there any way i can assign the values (sam, 01/01/15) to variables and use them in the query ? After some searching i tried the following, but its not working; getting QC cannot run the query because it contains invalid arguments... DECLARE @name varchar(20) set @name = "sam" Kindly help.

Viewing all articles
Browse latest Browse all 49

Trending Articles