Skip to content
Advertisement

Writing a sub-query using a date clause

So basically I’m trying to write something that prints the customer’s name and area code if they have made a booking within the last 6 months of the current date.

My code looks like this (it has to be a subquery, not using join)

Yet it doesn’t work, but I can get it to work using a join function, but I can’t with subquery, how would I do it in a subquery without a join function?

Advertisement

Answer

You need to select customerid from bookings table

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement