Hi
I'm migrating from Oracle Sql to MS Sql. I'm trying to write an mssql query that will pull all rows from a tableA but only if row in tableB = apple. In other words the table might look like this:
tableA tableB
Joe apple
Joe orange
Joe peach
Fred potatoe
Fred carrot
Fred apple
Mike carrot
Mike orange
I'm looking for the following result:
tableA tableB
Joe apple
Joe orange
Joe peach
Fred potatoe
Fred carrot
Fred apple
I had no problem in Oracle but for some reason I can't get this right in mssql. Any assistance would be most appreciated.