ORCL - Mysql Explorer Exam

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 5

Which of the following queries returns countries that have no capital city?

SELECT * FROM country WHERE Capital IS NULL;


SELECT * FROM country WHERE Capital != NULL;
SELECT * FROM country WHERE Capital = NULL;
SELECT * FROM country WHERE Capital IS NOT NULL;

Which query returns the countries with a population greater than a million but less than two
million?

SELECT Name FROM country WHERE Population BETWEEN 1000000 AND 2000000;
SELECT Name FROM country WHERE Population > 1000000 AND Population < 2000000;
SELECT Name FROM country WHERE Population >= 1000000 AND Population <= 2000000;
SELECT Name FROM country WHERE Population > 1000000 AND < 2000000;

In mysql client, which character sequence is used to display the query results in vertical format?

\v
\G
\g
\t

Which query lists the languages that end with 'ish'?

SELECT DISTINCT Language FROM countrylanguage WHERE Language LIKE '%ish';


SELECT DISTINCT Language FROM countrylanguage WHERE Language LIKE '_ish';
SELECT DISTINCT Language FROM countrylanguage WHERE Language LIKE '*ish';
SELECT DISTINCT Language FROM countrylanguage WHERE Language LIKE 'ish';

The following query causes an error: " SELECT FROM country; " How could the error message be
displayed again? (Choose three)

It cannot be displayed again.


Re-executing the query
SHOW WARNINGS\G
SHOW ERRORS\G
SELECT * FROM mysql.errors;
Which are the different ways to start/stop MySQL server on Linux?

From the command line


Using MySQL Workbench
Automatically on boot/shutdown
From the command line or using MySQL Workbench or automatically on boot/shutdown

What is the default TCP/IP port for MySQL?

8888
1521
3306
3308

Which query lists the countries with constitutional monarchies in Europe and Oceania
continents? (Choose two)

SELECT Name FROM country WHERE GovernmentForm = 'Constitutional Monarchy' AND


( Continent = 'Europe' OR Continent = 'Oceania' );
SELECT Name FROM country WHERE GovernmentForm = 'Constitutional Monarchy' AND
Continent IN ( 'Europe', 'Oceania' );
SELECT Name FROM country WHERE ( GovernmentForm = 'Constitutional Monarchy' AND
Continent = 'Europe' ) OR Continent = 'Oceania';
SELECT Name FROM country WHERE GovernmentForm = 'Constitutional Monarchy' AND
Continent = 'Europe' AND Continent = 'Oceania';

Which are the MySQL Workbench capabilities? (Choose five)

SQL Development
Access to MySQL Utilities
Server Administration
Database Migration
MySQL Installation
Data Modeling
Which connection methods are supported on Windows? (Choose three)

Shared Pipe
UNIX Socket File
TCP/IP
Shared Memory

Which is the name of the binary for the MySQL server?

mysql.server
mysqld
mysql
mysqladmin
mysqld_multi

Which query can be used to evaluate the expression 5 / 7?

5 / 7;
SELECT 5 / 7 FROM mysql;
It's not possible.
SELECT 5 / 7;

What is the JDBC driver name for MySQL?

Connector/Java
Connector/J
Connector/ODBC
Connector/JDBC

Which of the following queries will list the top 10 countries with the largest population?

SELECT Name, Population FROM country ORDER BY Population LIMIT 10, 1


SELECT Name, Population FROM country LIMIT 10
SELECT Name, Population FROM country ORDER BY Population DESC LIMIT 10
SELECT Name, Population FROM country ORDER BY Population LIMIT 10;
Which character sequence is used to cancel a command being entered in mysql client?

\C
\c
\e
\q

What is the account available when installing MySQL server using RPM packages in Linux?

oracle
admin
root
user

Which command changes the prompt to "(user@host) [database]> " in mysql client?

prompt (\user@\host) [\db]>\_


prompt (\u@\h) [\d]>
prompt (\u@\h) [\d]>\_
prompt \u@\h \d>\_

The demo local account needs to change its password. Which commands are valid for that?
(Choose two)

ALTER USER 'demo'@'local' IDENTIFIED BY 'password';


ALTER USER USER() IDENTIFIED BY 'password';
ALTER USER 'demo'@'localhost' IDENTIFIED BY 'password';
ALTER USER demo IDENTIFIED BY 'password';
ALTER USER 'demo' IDENTIFIED BY 'password';
Which query will list the next 10 rows after the first 5 rows in the country table?

SELECT * FROM country LIMIT 10, 5;


SELECT * FROM country LIMIT 15, -5;
SELECT * FROM country LIMIT 5, 15;
SELECT * FROM country LIMIT 5, 10;

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy