Skip to content

Commit

Permalink
added Q65 and Q66 (Ebazhanov#985)
Browse files Browse the repository at this point in the history
  • Loading branch information
frexcuadillera authored Jan 16, 2021
1 parent 1a234a4 commit 5cce5bd
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions mysql/mysql-quiz.md
Original file line number Diff line number Diff line change
Expand Up @@ -578,3 +578,18 @@
- [ ] logical
- [ ] differential
- [ ] incremental

#### Q65. You need to restore a MySQL database from a backup file. Which command-line tool do you use for the actual data import, after re-creating the database?

- [ ] mysqld
- [x] mysql
- [ ] mysqladmin
- [ ] mysqldump

#### Q66. You are importing data as JSON into a new table. You run CREATE TABLE json_data ( city JSON ); and insert rows into this table. What is the correct syntax to see the list of cities?


- [ ] SELECT city FROM json_data;
- [x] SELECT city->>'$.name' city FROM json_data; <= best answer
- [ ] SELECT city.name city FROM json_data;
- [ ] SELECT city->'$.name' city FROM json_data; <= this is valid too but the results will be enclosed with quotation marks

0 comments on commit 5cce5bd

Please sign in to comment.