You are given 2 tables, One containing the available Books and the other containing the Books that have been bought by a customer. You have to find the Id’s of all the ‘Famous’ Books. A book is called ‘Famous’ if it is bought by at least 3 customers.
Table 1: Books (Id - primary key )
Table 2: BoughtBooks (Id-primary key, BooksId-foreign key to Books)
NOTE : The output should contain one column by the name ‘Id’ .
NOTE: You only need to implement the given function. Do not read input, instead use the arguments to the function. Do not print the output, instead return values as specified. Still have a question? Checkout Sample Codes for more details.