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,2,3,4,5).
- *** **********, ** ****** ***** ****** **** 0 *******
****
- ***
*****(100) ** ****** ***********.
- ** **** *** **** ****, **** ** *** *** ** ****** * *****'* ******* ** ********.
**** *****_***_**_*** ** (
******
*.****_**,
***(**.********_**) ** ********_**,
***(*.******) ** *******
**** **** *
***** **** ********* *
** *.****_** = *.****_**
***** **** ****** *
** *.*********_** = *.*********_**
***** **** ******* *
** *.******_** = *.******_**
***** **** ****_******** **
** **.****_** = *.****_**
***** ** *.****_**
)
Table 1:
film
***_**** | ***_****
----------------------+--------------------------
****_** | *******
***** | ****
*********** | ****
*******_**** | *******
********_** | ********
********_********_** | ********
******_******** | ********
******_**** | *******
****** | ********
***********_**** | *******
****** | ****
Table 2:
film_category
* **** *** **** ****** ** *** ********
***_**** | ***_****
-------------+--------------------------
****_** | ********
********_** | ********
Table 3:
inventory
**** *** ** ******, ********_** ** *** ******* *** ** **** *****.
***_**** | ***_****
--------------+--------------------------
*********_** | *******
****_** | ********
*****_** | ********
Table 4:
payment
***** ****** ******* ************ *****
***_**** | ***_****
--------------+--------------------------
*******_** | *******
********_** | ********
*****_** | ********
******_** | *******
****** | *******
*******_** | ********* **** **** ****
Table 5:
rental
***_**** | ***_****
--------------+--------------------------
******_** | *******
******_** | ********* **** **** ****
*********_** | *******
********_** | ********
******_** | ********* **** **** ****
*****_** | ********