I am new to Spatialite. I have following query:
select A.*
from linka as A, pointa as B
where Contains(Buffer(B.Geometry, 100), A.Geometry)
If You are using SQL server 2008 or later, You should be able to use spatial types
try this
DECLARE @buffer geography = geography::Point( 1.234, 5.678, 4326 ); DECLARE @distance float = 100.0;
SELECT * from linka WHERE linka.geo.STDistance(@buffer) < @distance