Hi,
From your above info only i can write below query. Try this...
SELECT customerid, name from customer c, order o
where c.customerid = o.customerid
and c.customerid not in (select distinct customerid from order where orderdate between getdate() and getdate() - 365)
Hope this will give you required output.
Cheers