Hi
Based on your sql('datastore','delete data from table where field1 > $G_V2');
you have to pass value in $G_V2,
For Ex:
$G_V2=1234
then sql('datastore','delete data from table where field1> $G_V2');
why do you want pass value in $G_V1 and assing to $G_V2?
Assign value directly to $G_V2.
Thanks
Murali.