0

I am asked to do the following:

Create a new table, named sec0902_employees, that adds two new columns to the l_employees table.

Create the new columns by using the following row functions:

Column Name: full_name

Access: first_name & ' ' & last_name

Column Name: new_credit_limit

Access: credit_limit + 10.00

Here is my code:

select l_employees.*, 
first_name & ‘ ‘ & last_name as full_name,
credit_limit as new_credit_limit + 10.00
into sec0902_employees
from l_employees;

This is the error:

Syntax error (missing operator) in query expression ‘first_name & ‘ ‘ & last_name as full_name’

enter image description here

Here is a screen shot of the original l_employees table:

enter image description here

Thank you for any assistance you can provide :-)

2
  • Your are missing a comma. This is simply a typographical error. Commented Nov 22, 2018 at 15:18
  • is a valid quote in access ? Try using a normal quote, ' Commented Nov 22, 2018 at 15:20

2 Answers 2

2

Did you mean:

(credit_limit + 10.00) as new_credit_limit

the alias of the new column is new_credit_limit
and it consists of the value of credit_limit + 10.00 isn't it?

Sign up to request clarification or add additional context in comments.

Comments

0

Thanks!! :-) This is the code that worked:

select l_employees.*, first_name & ' ' & last_name as full_name, (credit_limit + 10.00) as new_credit_limit into sec0902_employees from l_employees;

enter image description here

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.