The people table contains the data as shown:
Which two statements return two rows each?
Which three database objects have non-case-sensitive names on all operating system?
Consider the table structure shown by this output:
Mysql> desc city:
5 rows in set (0.00 sec)
You execute this statement:
SELECT -,-, city. * FROM city LIMIT 1
What is returned?
Consider the table t1 created with this statement:
CREATE TABLE t1(
id INT NOT NULL AUTO_INCREMENT
PRIMARY KEY,
Name CHAR (20)
ENGINE=InnoDB;
After inserting three rows, the table contains:
These commands are executed:
DELETE FROM t1 WHERE id=200;
INSERT INTO t1 (name) VALUES (‘pluto’):
Which data set is inserted in the table?
Using the query:
SELECT Code FROM country WHERE Name = ‘united states’
Which statement executed in the mysql client would create a prepared statement?
You wish to create a trigger on the ‘city’ table that will check the value of the ‘District’ field before any INSERT. The trigger needs to change it to” Unknown” for an empty string or NULL.
CREATE TRIGGER City_bi
BEFORE INSERT ON CITY
FOR EACH ROW
BEGIN
IF OLD. District IS NULL OR OLD.District= . .
THEN
SET NEW.District=’Unknown’;
END IF :
END;
Does the CREATE TRIGGER statement accomplish this goal?
Examine this table that contains over two million rows of data:
CREATE TABLE ‘news_feed’ (
.id’bigint (20) NOT NULL AUTO _INCREMENT,
.news _sources_id’varchar (11) NOT NULL,
.dataline’ datetime NOT NULL,
.headline’ varchar (256) NOT NULL,
.story’ text NOT NULL,.tag varchar (32768) DEFAULT NULL,
PRIMARY KEY (‘id’)
KEY ‘dateline’ ( ‘dateline’)
)
Examine this query that returns 332 rows of date:
SELECT *
FROM news_feed
WHERE DATE(dateline)= ‘2013-01-01’
Which change would show the greatest improvement in the response time of the query?
Consider the structures of the country and countrylanguage tables.
mysql >DESCRIBE country;
mysql> DESCRIBE countrylanguage;
Which query will give you the list of all European countries where German is spoken?
Which two Functions can be used in a C program to retrieve information about warning?