Created
February 25, 2018 17:02
-
-
Save vithalsamp/713a5f84a1323653e07892e31c62eb42 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Query: create VIEW action_movies AS | |
SELECT * | |
FROM films | |
WHERE kind = 'Action' | |
Fetched 0 row(s) in 0.17s | |
-- now check the output | |
[quickstart.cloudera:21000] > select * from action_movies; | |
Query: select * from action_movies | |
+-------+-----------+--------+----------+ | |
| code | title | kind | len | | |
+-------+-----------+--------+----------+ | |
| C_103 | Globe2 | Action | 01:30:00 | | |
| C_105 | Globe4 | Action | 01:37:00 | | |
| C_102 | Globe1 | Action | 01:40:00 | | |
| C_104 | Globe3 | Action | 01:36:00 | | |
| C_101 | Globe | Action | 01:30:00 | | |
| C_701 | GoldenEye | Action | 01:36:00 | | |
+-------+-----------+--------+----------+ | |
Fetched 6 row(s) in 2.03s |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment