Final answer:
To query custid from Customers and empid from Employees using ANSI SQL-89, a SELECT statement listing the desired columns from the two tables needs to be written, along with a WHERE clause containing the join condition if the tables are to be joined.
Step-by-step explanation:
To retrieve custid from the Customers table and empid from the Employees table following the ANSI SQL-89 standard, you would typically write a query that involves specifying the tables and columns you're interested in, along with any join conditions if these tables are to be joined. Here's an example:
SELECT Customers.custid, Employees.empid
FROM Customers, Employees
WHERE [join condition];
In this query, [join condition] should be replaced with the appropriate condition that links the two tables, such as a foreign key relationship. If there is no common field or you do not wish to join the tables, you would have to run separate queries for each table or re-evaluate the requirement.