SQL Views working for table joins. Next: parameterize view