How to write a query against a table in sql code example Example: how select from db SELECT columname FROM tablename