Unlock this premium interview question.
Sign in or upgrade to practice this question with full datasets, official solutions, and guided walkthroughs.
- 230+ interview questions
- Official solutions
- SQL, Python, and R tracks
***********
- ***** * ***** ** ****** ********* *** *** ********* ****** ** ****** ** ******* ***** *** ******.
****_** ** (1,10,11,20,21,30).
- ***
*****(4) ** ****** ******** *******.
- *** ***** ** **** ******* *****'* ******.
- ****** *** ********* *******:
****_**, ****** ** *******, ********.
- *** **********: **** ******* ***** **** >0 ******* (*.*., ******* ***** **** *** *** ****** *********, ** ***** **** 0 *******)
Table 1:
film
***_**** | ***_****
----------------------+--------------------------
****_** | *******
***** | ****
*********** | ****
*******_**** | *******
********_** | ********
********_********_** | ********
******_******** | ********
******_**** | *******
****** | ********
***********_**** | *******
****** | ****
Table 2:
inventory
**** *** ** ******, ********_** ** *** ******* *** ** **** *****.
***_**** | ***_****
--------------+--------------------------
*********_** | *******
****_** | ********
*****_** | ********
Table 3:
rental
***_**** | ***_****
--------------+--------------------------
******_** | *******
******_** | ********* **** **** ****
*********_** | *******
********_** | ********
******_** | ********* **** **** ****
*****_** | ********