Correct Answer:
50
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
V_CONTACT
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
COUNT()
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
JSON
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Create table size (name ENUM('Small','Medium','Large'));
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
CURDATE()
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
ROLLBACK
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Access control lists
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
CREATE VIEW v1 AS SELECT * FROM t1;
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Outer Join
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
--loose
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
To break down complex queries and allow reuse within a query.
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
USE
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
BIT
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
SELECT * FROM customers WHERE PhoneNumber IS NULL;
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Stored procedures are secure, because applications can be given access to stored procedures and not any underlying variables
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Mysqladmin flush-privileges
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
SHOW TRIGGERS;
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
16
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Public User() {}
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
The temporary table will be dropped as soon as your session disconnects.
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
IN OUT
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
A list of entities, their relationship, constraints, data types, and cardinalities
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
SHOW DATABASES;
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
ENGINE
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
SELECT city->>'$.name' city FROM json_data;
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Mysql
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Differential
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
NOT FOUND handler
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
It always first drops, then re-creates a new table.
It does not invoke the DELETE triggers associated with the table.
Note: This question has more than 1 correct answers
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
INSERT IGNORE
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
To reduce corruption in data
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
WITH cte as (SELECT id FROM users) SELECT ...
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Foreign key;
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Mysql.user;
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
CREATE TABLE;
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
SHOW TABLES;
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
SHOW COLUMNS FROM table;
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
To display storage error codes
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Updatable
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
WITH
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Drop temporary table customers;
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Run MySQL server as the unix root user.
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Show create table
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Insert into cars (make, model, year) values ('Ford', 'Mustang', 2002), ('Mercedes', 'C', 2003)
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Load data infile (correct if the file is already on the server)
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Cannot be indexed directly
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
System
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Show grants (displays the privileges and roles that are assigned to a MySQL user account or role)
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
It performs a table check and, if problems are found, attempts a table repair.
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
The subquery must return a single value.
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Master-slave
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
UNION
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Data directory
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Configuration files
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Primary key
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
SELECT * FROM inventory;
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
DROP deletes table completely, removing its definition as well. TRUNCATE clears the table but does not delete the definition.
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
DISTINCT
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
INSERT, UPDATE, DELETE
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
SELECT * FROM movies ORDER BY name
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
SQL is a standard language for retrieving and manipulating data from structured databases. MySQL is a relational database management system that is used to manage SQL databases.
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
A table
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
DELETE FROM
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Semicolon
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
A SQL query using a regular expression
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
UPDATE
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Access control lists
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
DESCRIBE table;
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Client and server
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
ANSI
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
SELECT column FROM tbl
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
ENUM
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
PATH
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
--help
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Column level
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Mysqldump
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
The subquery
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Full table
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Null
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Data warehouses
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Domain
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Fragments
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Growing numbers of remote locations
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
<=>, >=, >, <=, <
<=>
Note: This question has more than 1 correct answers
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
lNT
FLOAT
Note: This question has more than 1 correct answers
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
0
TRUE
FALSE
Note: This question has more than 1 correct answers
Note: This Question is unanswered, help us to find answer for this one
What will be the result of the following query?
SELECT ExtractValue()
Correct Answer:
AB
Note: This Question is unanswered, help us to find answer for this one
What will be the result of the following query?
SELECT STRCMP()
Correct Answer:
1
Note: This Question is unanswered, help us to find answer for this one
What will be the result of the following query?
Correct Answer:
This Is Four Lines
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
It is a synonym for the REGEXP Operator.
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Explicit collation
Note: This Question is unanswered, help us to find answer for this one
What will be the result of the following two queries?
1. SELECT POW(2.2):
2. SELECT POWER(2.3):
Correct Answer:
Query 1 will return 4. while query 2 will return 8.
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
+
-
()
u
Note: This question has more than 1 correct answers
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
0000
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
0 5 bytes + fractional seconds storage
Note: This Question is unanswered, help us to find answer for this one
What will be the result of the following query?
SELECT lNSERT()
Correct Answer:
EquWherer
Note: This Question is unanswered, help us to find answer for this one
Which of the following holds correct while optimizing the query?
1) Use ((a AND D) AND c OR (((a AND D) AND (c AND d)))) instead of
(a AND D AND c) on (3 AND b AND c AND d)
2)Use b>5 AND b=c AND 825 instead of (a
3}Use (8>=5 AND 8:5) OR (8:6 AND 5:5) 0R (8:7 AND 5:6) instead of B=5 OR 8=6
Correct Answer:
2 and 3
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Add or delete columns of a table.
Create or destroy indexes.
Change the type of existing columns.
Note: This question has more than 1 correct answers
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
All of the above.
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
All of the above.
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
All of the above.
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
SELECT CASE 1 WHEN 1>O THEN 'ONE‘ WHEN 2 THEN 'TWO' ELSE 'MORE' END:
SELECT CASE 1 WHEN 1 THEN 'ONE' WHEN 2 THEN 'TWO' ELSE 'MORE' END;
Note: This question has more than 1 correct answers
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
~
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
DIV
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
3 bytes
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
True
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
CHAR, VARCHAR, TEXT data types can include the CHARACTER SET and COLLATE attributes.
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
ON *.*
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
IF
CASE
LOOP
lTERATE
Note: This question has more than 1 correct answers
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
2012-12-3111:30:45
2012“12“3111+30+45
20070523091528
Note: This question has more than 1 correct answers
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
All of the above.
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
INSERT DELAYED is not supported for partitioned tables.
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
All of the above
Note: This Question is unanswered, help us to find answer for this one
What will be the result of the following query?
SELECT "hello hel lo he 0"
Correct Answer:
hel‘lo ‘'hello
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
ALTER SCHEMA
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
All of the above.
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
This statement can be used to change the characteristics of a stored procedure.
Note: This Question is unanswered, help us to find answer for this one
What will be the result of the following query?
SELECT 105/(1-1):
Correct Answer:
NULL
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
ALTER TABLE t1 ANALYZE PARTITION p1, ANALYZE PARTITION p2;
ALTER TABLE t1 ANALYZE PARTITION p1, CHECK PARTITION p2;
Note: This question has more than 1 correct answers
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
DEClMAL
NUMERIC
Note: This question has more than 1 correct answers
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
For indexes on CHAR and VARCHAR, a prefix length is required. 0.02
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
All of the above
Note: This Question is unanswered, help us to find answer for this one
What is the correct order in which the clauses of the DELETE statement are used?
1. DELETE
2. WHERE
3. ORDER BY
4. FROM
5. LIMIT
Correct Answer:
1, 4, 2, 3, 5
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
MAKE_SET()
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
FROM_BASE6()
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
ALTER USER
Note: This Question is unanswered, help us to find answer for this one
In the following example, what will be the return value in case str is not found?
FiELD(str.str1.str2.str3,...)
Correct Answer:
0
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
SELECT ‘ FROM myTable WHERE column1 IS NULL:
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
ACCESSIBLE
INNER
ONE_SHOT
Note: This question has more than 1 correct answers
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
MySQL never converts a date or time value to a number automatically.
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
All of the above.
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
INSERT INTO tbl_hname (coll.col2) VALUES[15,col1'2};
INSERT INTO tbl_name (a.b,c) VALUESI1.2,3).(4,5.6].(7.8.9}:
Note: This question has more than 1 correct answers
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
LOCALTIMESTAMP()
CURRENT_TIMESTAMP()
Note: This question has more than 1 correct answers
Note: This Question is unanswered, help us to find answer for this one
What will be the result of the following two queries?
1. SELECT 2+3
2. SELECT 2+(3'3)-5
Correct Answer:
Query 1 will return 6. while query 2 will return 6.
Note: This Question is unanswered, help us to find answer for this one
What is the correct order in which the clauses of the SELECT statement are used?
1. SELECT
2. LIMIT
3. WHERE
4. ORDER BY
5. HAVING
6. FROM
Correct Answer:
1.6.3.5.4.2
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
0
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
All of the above.
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
All of the above.
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
SELECT INTO DUMPFILE
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
in a DECIMAL column declaration. the precision and scale cannot be specified.
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
YEAR(2)
Note: This Question is unanswered, help us to find answer for this one
What will be the result of the following query?
SELECT CONCAT('MY', 'S', 'QL')
Correct Answer:
NULL MySQL
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
ALTER TABLE tbl_name CONVERT TO CHARACTER SET charset_name;
Note: This Question is unanswered, help us to find answer for this one
Consider the following table named TESTTABLE:
tbIName tbILname
FN LN
FN LN
What will be the result of the following query?
SELECT 1 FROM TESTTABLE WHERE tblName iN ()
Correct Answer:
1 1
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
DROP PARTITION
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
All Of the above
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
CEIL()
CEILING()
Note: This question has more than 1 correct answers
Note: This Question is unanswered, help us to find answer for this one
What will be the output of the following query?
SELECT ELT(5,'dev', 'developer', 'develop'. 'dev')
Correct Answer:
NULL
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Select1 /# this Is an In-iine comment #/ +2;
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
E] lS_lPV6(expr)
Il lS_lPV4_COMPATO() 1-4
Note: This question has more than 1 correct answers
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
All of the above.
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
\\
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
en_US
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
NULL
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
True
Note: This Question is unanswered, help us to find answer for this one
What will be the result of the following query?
SELECT 5 <=> 5, NULL <=> NULL, 5 <=> NULL
Correct Answer:
1 1 0
Note: This Question is unanswered, help us to find answer for this one
What will be the output of the following query?
SELECT DATE_FORMAT(‘2006-06-00'. '%d')
Correct Answer:
0
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
BIGINT
Note: This Question is unanswered, help us to find answer for this one
Which of the following are correct about HEAP tables? Check all that apply.
Correct Answer:
HEAP tables are in-memory.
Note: This Question is unanswered, help us to find answer for this one
How many Triggers are possible in MySQL?
Correct Answer:
6
Note: This Question is unanswered, help us to find answer for this one
What are the properties of transactions?
Correct Answer:
Atomicity, Consistency, Durability, Isolation
Note: This Question is unanswered, help us to find answer for this one
What is the full form of ACL?
Correct Answer:
Access Control List
Note: This Question is unanswered, help us to find answer for this one
Which of the following command is used to create a stored routine?
Correct Answer:
CREATE PROCEDURE
Note: This Question is unanswered, help us to find answer for this one
What is the correct command to check if MySql service is running or not in RedHat?
Correct Answer:
service mysqld status
Note: This Question is unanswered, help us to find answer for this one
What is the correct syntax to create a new user in MySQL?
Correct Answer:
CREATE USER 'newuser'@'localhost' IDENTIFIED BY 'password';
Note: This Question is unanswered, help us to find answer for this one
What happens to privileges for a table when you delete the table in MySQL?
Correct Answer:
As the table has been deleted, you cannot explicitly issue a REVOKE statement to revoke privileges for that table
Note: This Question is unanswered, help us to find answer for this one
What is the correct syntax to view the global event scheduler’s status in MySQL process list?
Correct Answer:
SHOW PROCESSLIST\G;
Note: This Question is unanswered, help us to find answer for this one
What is the syntax to backup a database from command line?
Correct Answer:
mysqldump [options] database_name > database_name.sql
Note: This Question is unanswered, help us to find answer for this one
What is the correct syntax to turn on the global event scheduler?
Correct Answer:
SET GLOBAL event_scheduler = ON;
Note: This Question is unanswered, help us to find answer for this one
What is the correct syntax to get the MySQL Version?
Correct Answer:
SELECT VERSION();
Note: This Question is unanswered, help us to find answer for this one
What is the correct syntax to create a view?
Correct Answer:
CREATE VIEW view_name AS SELECT column_name(s) FROM table_name WHERE condition
Note: This Question is unanswered, help us to find answer for this one
What is the default port for MySQL Server?
Correct Answer:
3306
Note: This Question is unanswered, help us to find answer for this one
Which of the following are valid Scalar Functions? Check all that apply.
Correct Answer:
UPPER()
Note: This Question is unanswered, help us to find answer for this one
How do you control the max size of a HEAP table?
Correct Answer:
MySQL config variable called max_heap_table_size.
Note: This Question is unanswered, help us to find answer for this one
What is the correct syntax for updating a table using LEFT OUTER JOIN?
Correct Answer:
UPDATE T1 LEFT JOIN T2 ON T2.ID = T1.ID SET T1.COL1 = NEWVALUE WHERE T2.ID IS NULL
Note: This Question is unanswered, help us to find answer for this one
Which of the statements are true for user-defined variables?
Correct Answer:
User variables are written as $var_name, where the variable name var_name consists of alphanumeric characters, “.”, “_”, and “@”.
Note: This Question is unanswered, help us to find answer for this one
What are the valid types of table present in MySQL? Check all that apply.
Correct Answer:
MyISAM
Note: This Question is unanswered, help us to find answer for this one
Which of the following are valid MySQL functions? Check all that apply.
Correct Answer:
FORMAT()
Note: This Question is unanswered, help us to find answer for this one
Which of the following will truncate all tables in a MySQL database?
Correct Answer:
SELECT Concat('TRUNCATE TABLE ', TABLE_NAME) FROM INFORMATION_SCHEMA.TABLES
Note: This Question is unanswered, help us to find answer for this one
What are the valid modes of parameters in stored routines? Check all that apply.
Correct Answer:
IN
Note: This Question is unanswered, help us to find answer for this one
Which SQL statement is used to return only different values?
Correct Answer:
SELECT DISTINCT
Note: This Question is unanswered, help us to find answer for this one
Which of the following is NOT a valid Aggregation Function?
Correct Answer:
LAST()
Note: This Question is unanswered, help us to find answer for this one
How do you return fifty events starting from 40th? Assume table name is events and you need to select only the column event_title.
Correct Answer:
SELECT event_title FROM events LIMIT 39, 50;
Note: This Question is unanswered, help us to find answer for this one
Which of the following statement is valid for % and _ in the LIKE clause in a mysql query?
Correct Answer:
% corresponds to 0 or more characters; _ is exactly one character
Note: This Question is unanswered, help us to find answer for this one
Which of the following is correct about CHAR_LENGTH and LENGTH?
Correct Answer:
CHAR_LENGTH is character count whereas the LENGTH is byte count.
Note: This Question is unanswered, help us to find answer for this one
What is the correct syntax to switch to a new database in MySQL?
Correct Answer:
use database_name;
Note: This Question is unanswered, help us to find answer for this one
How do you get the field names and associated type of a MySQL table?
Correct Answer:
describe table_name;
Note: This Question is unanswered, help us to find answer for this one
What is the syntax to list all databases in mysql?
Correct Answer:
show databases;
Note: This Question is unanswered, help us to find answer for this one
Which command converts Unix Timestamp to Mysql Timestamp and vice versa?
Correct Answer:
FROM_UNIXTIME; UNIX_TIMESTAMP
Note: This Question is unanswered, help us to find answer for this one
What is the correct syntax to grant all privileges on all databases to a user?
Correct Answer:
GRANT ALL PRIVILEGES ON * . * TO 'newuser'@'localhost';
Note: This Question is unanswered, help us to find answer for this one
The correct syntax to call a stored routine country_hos with a parameter of type VARCHAR is
Correct Answer:
CALL country_hos('Europe');
Note: This Question is unanswered, help us to find answer for this one
What is the correct syntax to restore a database from command line?
Correct Answer:
mysql -u username -p database_name<database_name.sql
Note: This Question is unanswered, help us to find answer for this one
Which of the following will restore a MySQL DB from a .dump file?
Correct Answer:
mysql -u<user> -p <db_backup.dump
Note: This Question is unanswered, help us to find answer for this one
Which of the following is correct syntax for selecting all rows from a table 'PERSONS', with strings in the column 'LASTNAME' starting with 'JOH'?
Correct Answer:
SELECT * from PERSONS where LASTNAME LIKE 'JOH%';
Note: This Question is unanswered, help us to find answer for this one
Which of the following is the best way to update multiple rows? Example: Name id Col1 Col2 name1 1 6 1 name2 2 2 3 name3 3 9 5 name4 4 16 8 Update Col1= 1 where id = 1 Update Col1= 2 where id = 2 Update Col2= 3 where id = 3 Update Col1= 10 and col2= 12 where id = 4
Correct Answer:
INSERT INTO table_name (id,Col1,Col2) VALUES (1,1,1),(2,2,3),(3,9,3),(4,10,12) ON DUPLICATE KEY UPDATE Col1=VALUES(Col1),Col2=VALUES(Col2);
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
SHOW DATABASES LIKE 'DBname';
Note: This Question is unanswered, help us to find answer for this one
Select examples with a valid comment syntax:
Correct Answer:
SELECT 1+1 /* Comment */;
Note: This Question is unanswered, help us to find answer for this one
InnoDB prevents which of the following operations when innodb_force_recovery is greater than 0?
Correct Answer:
INSERT
Note: This Question is unanswered, help us to find answer for this one
Which of the following are valid encryption functions?
Correct Answer:
MD5
Note: This Question is unanswered, help us to find answer for this one
With which of the following you can not associate a Trigger?
Correct Answer:
Permanent tabe
Note: This Question is unanswered, help us to find answer for this one
Consider the following Table EMP: --------------- empId empName empSalary empJoinDate Which SQL is incorrect for finding out the count of records on EMP table where empJoinDate is between 2012-10-01 and 2012-12-30?
Correct Answer:
Select count(*) from EMP where empJoinDate between '2012-10-01' and 2012-12-30' group by EXTRACT(YEAR_MONTH from empJoinDate );
Note: This Question is unanswered, help us to find answer for this one
Which of the following statements is correct in regards to the syntax of the code below? SELECT table1.this, table2.that, table2.somethingelse FROM table1 INNER JOIN table2 ON table1.foreignkey = table2.primarykey WHERE (some other conditions)
Correct Answer:
All of the Above
Note: This Question is unanswered, help us to find answer for this one
Which of the following is not a valid Bit operator?
Correct Answer:
&&
Note: This Question is unanswered, help us to find answer for this one
How can the following error be solved in MySQL? ERROR 1153: Got a packet bigger than 'max_allowed_packet' bytes
Correct Answer:
By specifying on the command line: mysql --max_allowed_packet=100M -u root
By specifying on the command line: mysql --max_allowed_packet=100M -u root -p database < dump.sql and updating the my.cnf or
my.ini files with the following lines: set global net_buffer_length=1000000; set global max_allowed_packet=1000000000;
Note: This question has more than 1 correct answers
Note: This Question is unanswered, help us to find answer for this one
Is there any function in MySQL that allows for replace through a regular expression?
Correct Answer:
None of the Above
Note: This Question is unanswered, help us to find answer for this one
What is the most common use of the mysql EXPLAIN statement?
Correct Answer:
To analyze the execution of a query.
Note: This Question is unanswered, help us to find answer for this one
Which of the following is the correct way to change the character set to UTF8?
Correct Answer:
Add the following lines in my.cnf: [mysqld] init_connect='SET collation_connection = utf8_unicode_ci' character-set-server = utf8 collation-server = utf8_unicode_ci [client] default-character-set = utf8
Note: This Question is unanswered, help us to find answer for this one
When running the following SELECT query: SELECT ID FROM ( SELECT ID, name FROM ( SELECT * FROM employee ) ); The error message 'Every derived table must have its own alias' appears. Which of the following is the best solution for this error?
Correct Answer:
SELECT ID FROM ( SELECT ID, name FROM ( SELECT * FROM employee ) AS T ) AS T;
Note: This Question is unanswered, help us to find answer for this one
Which function is used to get the higher of two values, a and b, in MySQL?
Correct Answer:
GREATEST(a,b)
Note: This Question is unanswered, help us to find answer for this one
Suppose a table has the following records:
+--------------+-------------+----------------+
| Item | Price | Brand |
+--------------+-------------+----------------+
| Watch | 100 | abc | | Watch | 200 | xyz |
| Glasses | 300 | bcd | | Watch | 500 | def |
| Glasses | 600 | fgh |
+--------------+-------------+----------------+
Which of the following will select the highest-priced record per item?
Correct Answer:
select item, brand, max(price) from items group by item
Note: This Question is unanswered, help us to find answer for this one
Examine the code given below: SELECT employee_id FROM employees WHERE commission_pct=.5 OR salary > 23000 Which of the following statements is correct with regard to this code?
Correct Answer:
It returns employees who have 50% commission rate or salary greater than $23,000
Note: This Question is unanswered, help us to find answer for this one
Which approach can be used to find all occurrences of text ‘’owner’’ in all fields of all tables in a MySQL, database?