איך לכתוב שאילתת SQL

select *
from XXXX
where NNNNN

Please, mind that only logged in users can submit questions