I am trying to extract two columns from table a and would like to join to table b to pull data where the abbrname (abbreviated name)is equal and the status field in table b is equal to A.
However, when I try this Postgres acts like it does not know how to reference the table data in the schema ( in the Postgres database). If I select everything with no criteria, the query runs fine. Below is the working query.
select *
from "Naturalisthrs".naturalist_members
full outer join "Naturalisthrs".naturalisttimesheet
on nmember = abbrname
Here is the query looking for the first two columns of table A, and the error received.
select Fname, Lname
from "Naturalisthrs".naturalist_members
full outer join "Naturalisthrs".naturalisttimesheet
on nmember = abbrname
ERROR: column "fname" does not exist
LINE 1: select Fname, Lname
^
HINT: Perhaps you meant to reference the column "naturalist_members.Fname" or the column "naturalist_members.Lname".
SQL state: 42703
Character: 8
Postgres is throwing me a curve as a new user to this database. Any guidance for a novice would be appreciated.
PgAdmin 3.6
Postgres 9.6
Mac OsX 10.11.6
However, when I try this Postgres acts like it does not know how to reference the table data in the schema ( in the Postgres database). If I select everything with no criteria, the query runs fine. Below is the working query.
select *
from "Naturalisthrs".naturalist_members
full outer join "Naturalisthrs".naturalisttimesheet
on nmember = abbrname
Here is the query looking for the first two columns of table A, and the error received.
select Fname, Lname
from "Naturalisthrs".naturalist_members
full outer join "Naturalisthrs".naturalisttimesheet
on nmember = abbrname
ERROR: column "fname" does not exist
LINE 1: select Fname, Lname
^
HINT: Perhaps you meant to reference the column "naturalist_members.Fname" or the column "naturalist_members.Lname".
SQL state: 42703
Character: 8
Postgres is throwing me a curve as a new user to this database. Any guidance for a novice would be appreciated.
PgAdmin 3.6
Postgres 9.6
Mac OsX 10.11.6