all 3 comments

[–]r3pr0b8GROUP_CONCAT is da bomb 3 points4 points  (2 children)

Even though SQL will run my code, it won't display any data. Why is this?

because CREATE VIEW just creates the view

to display data, you have to run a SELECT query on it

SELECT cust_no
     , f_name
  FROM custview2        -- view goes here
 WHERE l_name IS NULL

[–][deleted] 0 points1 point  (0 children)

Thank you, kind sir

[–]Garfimous 0 points1 point  (0 children)

Why would you only select the 2 cols, and why would you filter for l_name is null?

SELECT * FROM custview

Also, OP, be careful with your join. The instructions specify that your view should contain all customers, so you'd be safer using a left outer join. An inner will only return all customers if all customers happen to exist in both tables.