How does one query a database? [closed]

How does one get the first name info from a Users table, which has a first name column?