Beginner Q. Learning SQL and was doing some online training exercises and came across this solution to create a summary from two tables:
SELECT salesman.name AS "Salesman",
customer.cust_name, customer.city
FROM salesman,customer
WHERE salesman.city=customer.city;
I find this confusing because I would have expected to do a JOIN when pulling from two different tables. My Udemy training never gave examples of FROM statements for multiple tables at the same time : )
Is this an alternate way of doing a basic JOIN? Or is there some reason JOIN does something this can't?
Thanks