Last answered:

26 Aug 2023

Posted on:

02 May 2023

0

emp_no < '110010'

use employees;

select e.*,d.*
from employees e
cross join 
departments d
where emp_no < '110010';


why is this not valid

4 answers ( 0 marked as helpful)
Instructor
Posted on:

03 May 2023

1

Hi Abdelrahman!
Thanks for reaching out.


It is because you used another emp_no in the WHERE clause.

Please, use the following code:

WHERE
    e.emp_no < 10011;


Hope this helps.
Best,
Tsvetelin

Posted on:

03 May 2023

0

Thank you for your concern

Instructor
Posted on:

10 May 2023

0

Hi Abdelrahman!
You are very welcome!
Best,
The 365 Team

Posted on:

26 Aug 2023

0

I've identified an anomaly in the database: certain employees are being assigned to multiple departments on the same hire date, which is not expected. This could indicate a data issue or error. I recommend investigating and rectifying this to maintain data accuracy.


when i follow this query 


use employees;

select e.*,d.*
from employees e
cross join 
departments d
WHERE
    e.emp_no < 10011; for task 2

Submit an answer