अभी पंजीकरण करें

लॉग इन करें

पासवर्ड खो गया

आपका पासवर्ड खो गया है? कृपया अपना पूरा ईमेल दर्ज करें. आपको एक लिंक प्राप्त होगा और आप ईमेल के माध्यम से एक नया पासवर्ड बनाएंगे.

पोस्ट जोड़ें

पोस्ट जोड़ने के लिए आपको लॉगिन करना होगा .

प्रश्न जोड़ें

प्रश्न पूछने के लिए आपको लॉगिन करना होगा.

लॉग इन करें

अभी पंजीकरण करें

स्कॉलरसार्क.कॉम में आपका स्वागत है! आपका पंजीकरण आपको इस प्लेटफॉर्म की अधिक सुविधाओं का उपयोग करने की अनुमति देगा. आप सवाल पूछ सकते हैं, योगदान दें या उत्तर दें, अन्य उपयोगकर्ताओं के प्रोफ़ाइल देखें और बहुत कुछ. अभी पंजीकरण करें!

लिंक्डइन कौशल मूल्यांकन उत्तर और प्रश्न - MySQL

माई एसक्यूएल is one of the most popular and widely used relational database management systems in the world, अनगिनत एप्लिकेशन और वेबसाइटों को सशक्त बनाना. इस व्यापक मार्गदर्शिका में, we’re excited to present a curated collection of skill assessment questions तथा जवाब के लिये माई एसक्यूएल.

Whether you’re a developer, a database administrator, or an aspiring professional, this resource is tailored to enhance your proficiency in माई एसक्यूएल and equip you with the skills needed to build robust and scalable databases. Join us as we delve into the world of database design, क्वेरी अनुकूलन, and data manipulation, and take the first step towards mastering माई एसक्यूएल.”

Q1. When you have a subquery inside of the main query, which query is executed first?

  • The subquery is never executed. Only the main query is executed.
  • They are executed at the same time
  • the main query
  • the subquery

Q2. You need to export the entire database, including the database objects, in addition to the data. Which command-line tool do you use?

  • mysqlexport
  • mysqladmin
  • mysqldump
  • mysqld

Q3. You must ensure the accuracy and reliability of the data in your database. You assign some constraints to limit the type of data that can go into a table. What type of constraints are you assigning?

  • row level
  • database level
  • column level
  • function level

Q4. Which option of most MySQL command-line programs can be used to get a description of the program’s different options?

  • –विकल्प
  • ?
  • –मदद
  • -एच

Q5. MySQL uses environment variables in some of the programs and command-line operations. Which variable is used by the shell to find MySQL programs?

  • DIR
  • HOME
  • PATH
  • MYSQL_HOME

Q6. How can you create a stored procedure in MySQL?

1 CREATE PROCEDURE P () AS
2 BEGIN
3 END;
  • बी
1 CREATE PROCEDURE P ()
2 BEGIN
3 END
  • सी
1 CREATE PROCP
2 BEGIN
3 END;
  • डी
1 CREATE PROC P AS O
2 BEGIN
3 END;

क्यू 7. If you were building a table schema to store student grades as a letter (ए, बी, सी, डी, or F) which column type would be the best choice?

  • ENUM
  • OTEXT
  • VARCHAR
  • LONGTEXT

क्यू 8. Management has requested that you build an employee database. You start with the employee table. What is the correct syntax?

    CREATE TABLE employee (
    employeeID char(10),
    firstName varchar(50),
    lastName varchar(50),
    phone varchar(20),
    address varchar(50),
    PRIMARY KEY ON employeeID
    );
  • बी
    CREATE TABLE employee (
    employeeID char(10),
    firstName varchar(50),
    lastName varchar(50),
    phone varchar(20),
    address varchar(50),
    PRIMARY KEY employeeID
    );
  • सी
    CREATE TABLE IF EXISTS employee (
    employeeID char(10),
    firstName varchar(50),
    lastName varchar(50),
    phone varchar(20),
    address varchar(50),
    PRIMARY KEY (employeeID)
    );
  • डी
    CREATE TABLE IF NOT EXISTS employee (
    employeeID char(10),
    firstName varchar(50),
    lastName varchar(50),
    phone varchar(20),
    address varchar(50),
    PRIMARY KEY (employeeID)
    );

प्रश्न 9. You are working with the tables as shown in this diagram. You need to generate the list of customers who purchased certain car models. Which SQL clause do you use?

mysql Q09

  • LIKE
  • IN
  • BETWEEN
  • HAVING

प्र10. Which query would NOT be used to administer a MySQL server?

  • USE db
  • SELECT column FROM tbl
  • SHOW COLUMNS FROM tbl
  • SHOW TABLES

प्रश्न 11. MySQL server can operate in different SQL modes, depending on the value of the sql_mode system variable. Which mode changes syntax and behavior to conform more closely to standard SQL?

  • TRADITIONAL
  • ANSI
  • MSSQL
  • STRICT

प्र12. MySQL programs are a set of command-line utilities that are provided with typical MySQL distributions. MySQL is designed to be a database.

  • database and programming
  • user and administrator
  • client and server
  • syntax and objects

प्रश्न 13. Which MySQL command shows the structure of a table?

  • INFO table;
  • SHOW table;
  • STRUCTURE table;
  • DESCRIBE table;

प्र14. MySQL uses security based on _ for all connections, queries, and other operations that users can attempt to perform. or How are permissions implemented in MySQL?

  • administrator schema
  • encrypted algorithms
  • user settings
  • access control lists

संदर्भ

प्रश्न 15. Which MySQL command modifies data records in a table?

  • अपडेट करें
  • MODIFY
  • CHANGE
  • ALTER

प्र16. What is the best type of query for validating the format of an email address in a MySQL table?

  • a SQL query using partitions
  • a SQL query using IS NULL
  • a SQL query using a regular expression
  • a SQL query using LTRIM Or RTRIM

प्रश्न 17. In MySQL, queries are always followed by what character?

  • line break
  • colon
  • semicolon
  • अवधि

प्रश्न 18. How can you remove a record using MySQL?

  • DELETE
  • DELETE FROM
  • REMOVE
  • REMOVE FROM

क्यू19. Which choice is NOT a statement you would use to filter data?

  • GROUP BY
  • WHERE
  • LIMIT
  • LIKE

प्र20. What does the following SQL statement return?

SELECT * FROM Employees WHERE EmployeeName LIKE 'a%'

  • It records in the Employees table where the value in the EmployeeName column doesn’t have an “ए”.
  • It records in the Employees table where the value in the EmployeeName column starts with “ए”.
  • It records in the Employees table where the value in the EmployeeName column has an “ए”.
  • It records in the Employees table where the value in the EmployeeName column ends with “ए”.

प्र21. में SELECT * FROM clients; what does clients represent?

  • a SQL query
  • a SQL statement
  • a database
  • a table

प्र22. How does MySQL differ from SQL?

  • SQL is a standard language for retrieving and manipulating data from structured databases. MySQL is a nonrelational database management system that is used to manage SQL databases.
  • 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.
  • They are not different. MySQL and SQL refer to the same thing.
  • My SQL is a language, and SQL is a software application.

प्र23. If you need to order a table of movies by name, which query will work?

  • SELECT * FROM movies GROUP BY name
  • SELECT * FROM movies ORDER BY name
  • SELECT * FROM movies ORDER TABLE by name
  • SELECT * FROM movies FILTER BY name

प्र24. A trigger is a database object that is associated with a table, and that activates when a particular event occurs for the table. Which three events are these?

  • INSERT, अपडेट करें, DELETE
  • CREATE, ALTER, DROP
  • OPEN, FETCH, CLOSE
  • DECLARE, SET, SELECT

संदर्भ

प्रश्न25. You are working with very large tables in your database. Which SQL clause do you use to prevent exceedingly large query results?

  • अद्वितीय
  • LIMIT
  • DISTINCT
  • CONSTRAINT

प्र26. What is the default port for MySQL Server?

  • 25
  • 990
  • 0
  • 3306

प्र27. How can you filter duplicate data while retrieving records from a table?

  • DISTINCT
  • WHERE
  • LIMIT
  • जैसा

प्रश्न 28. What is the difference between DROP and TRUNCATE?

  • They both refer to the same operation of deleting the table completely.
  • They both refer to the same operation of clearing the table, but keeping its definition intact.
  • TRUNCATE deletes table completely, removing its definition as well. DROP clears the table but does not delete the definition.
  • DROP deletes table completely, removing its definition as well. TRUNCATE clears the table but does not delete the definition.

प्र29. How do you select every row in a given table namedinventory”?

  • SELECT all FROM inventory;
  • FROM inventory SELECT all;
  • FROM inventory SELECT *;
  • SELECT * FROM inventory;

क्यू30. In an efficiently designed relational database, what does every table have?

  • set of triggers
  • sequential id field
  • minimum of three columns
  • primary key

प्रश्न31. MySQL option files provide a way to specify commonly used options so that they need not be entered on the command line each time you run a program. What is another name for the option files?

  • variable settings
  • configuration files
  • help files
  • default settings

संदर्भ

प्र32. After installing MySQL, it may be necessary to initialize the _ which may be done automatically with some MySQL installation methods.

  • storage engine
  • user accounts
  • grant tables
  • data directory

प्रश्न 33. You need to export the data in the customers table into a CSV file, with columns headers in the first row. Which clause do you add to your MySQL command?

  • JOIN
  • WITH HEADERS
  • UNION
  • WITH COLUMNS

Sample

प्रश्न34. One form of backup, प्रतिकृति, enables you to maintain identical data on multiple servers, as a _ configuration.

  • remote-local
  • parent-child
  • master-slave
  • logical-physical

क्यू35. What is the requirement for using a subquery in the SELECT clause?

  • the subquery must use an aggregate function.
  • the subquery must refer to the same table as the main query.
  • the subquery must return a single value.
  • the subquery must return at least one value.

प्र36. Each time MySQL is upgraded, it is best to execute mysql_upgrade, which looks for incompatibilities with the upgraded MySQL server. What does this command do, upon finding a table with a possible incompatibility?

  • it performs a table check and, if problems are found, attempts a table repair.
  • it stops and notifies the server administrator that the upgrade cannot complete until the incompatibility issue are resolved.
  • it provides a full report of the table specifications and the incompatibilities to the server administrator.
  • it performs a table check and, if problems are found, displays the information for the server administrator to take action.

प्रश्न37. What mysql statement is used to check which accounts have specific privileges?

  • show grants (displays the privileges and roles that are assigned to a MySQL user account or role)
  • show privileges (shows the list of system privileges that the MySQL server supports)
  • show access
  • show user permissions

प्रश्न 38. What cannot have a trigger associated with it?

  • temporary table
  • system table
  • large table
  • new table

संदर्भ

प्र39. later versions of mysql support the native json data type for storing json documents. What is a drawback of json columns?

  • inefficient for storing json documents
  • cannot be indexed directly
  • documents cannot be validated when stored in json columns
  • cannot be normalized

क्यू40. Which statement is true for the diagram below

mysql Q41

  • carid is the primary key for purchases
  • carid is the foreign key for cars.carid
  • customerid is the foreign key for customers.id
  • customerid is the primary key for purchases

प्र41. Which statement can you use to load data from a file into the table?

  • cat file | mysql
  • LOAD DATA INFILE
  • LOAD DATA LOCAL INFILE
  • extended INSERT statement

प्रश्न 43. Which is the correct syntax of an extended insert statement?

  • insert into cars (निर्देश सेट वास्तुकला, आदर्श, वर्ष) मूल्यों (‘Ford’, ‘Mustang’, 2002) (‘Mercedes’, ‘C’, 2003)

  • insert into cars (निर्देश सेट वास्तुकला, आदर्श, वर्ष) मूल्यों (‘Ford’, ‘Mustang’, 2002) मूल्यों (‘Mercedes’, ‘C’, 2003)

  • insert into cars (निर्देश सेट वास्तुकला, आदर्श, वर्ष) extended (‘Ford’, ‘Mustang’, 2002), (‘Mercedes’, ‘C’, 2003)

  • insert into cars (निर्देश सेट वास्तुकला, आदर्श, वर्ष) मूल्यों (‘Ford’, ‘Mustang’, 2002), (‘Mercedes’, ‘C’, 2003)

प्रश्न 44. You need to make an exact copy of a table, with all columns and indexes. How can you get all of the information needed to accomplish this?

  • create table
  • clone table
  • insert into
  • show create table

Note that the question is about getting the data and not about the duplicating operation itself. And actually there is no need to run SHOW CREATE TABLE at all. To duplicate the table structure you can CREATE TABLE new_table LIKE original_table;.

क्यू45. you need to make your mysql system secure against attackers. What are you नहीं supposed to do?

  • Run MySQL server as a normal user.
  • Grant PROCESS or SUPER privilege to other users.
  • Run MySQL server as the unix root user.
  • Use the compressed protocol.

प्र46. You are managing a database with a table called customers. You created a temporary table also called customers with which you are working for the duration of your session. You need to re-create the temporary table with different specifications. Which command do you need to run first?

  • CREATE TEMPORARY TABLE customers;
  • DROP TEMP TABLE customers;
  • DROP TABLE customers;
  • DROP TEMPORARY TABLE customers;
  1. संदर्भ
  2. संदर्भ

प्रश्न 47. You need to run a complex query with recursive subqueries, but without creating a stored procedure or a function. Which command or clause do you use?

  • COLLATE
  • UNION
  • FULL JOIN
  • WITH

This is exactly what WITH clause is designed for

प्रश्न 48. Which choice is not a processing algorithm for database views?

  • merge
  • updatable
  • temptable
  • undefined

संदर्भ

प्र49. What is the MySQL perror command-line utility used for?

  • to display your version of MySQL
  • to display operating system error codes
  • to display default settings that are in error
  • to display storage error codes

ध्यान दें: perror prints a description for a system error code or for a storage engine (table handler) error codeसंपर्क

क्यू50. How can you list all columns for a given table?

  • SHOW table COLUMNS;
  • SHOW COLUMNS FROM table;
  • LIST table COLUMNS;
  • SELECT COLUMNS FROM table;

ध्यान दें: DESCRIBE tablename is a shortcut for this command

प्रश्न51. How would you list the full set of tables in the currently selected database?

  • SELECT * FROM DATABASE;
  • SHOW TABLES;
  • LIST TABLES;
  • SELECT ALL TABLES;

प्रश्न52. Which choice is not one of the table maintenance statements?

  • CHECK TABLE;
  • CREATE TABLE;
  • ANALYZE TABLE;
  • OPTIMIZE TABLE;

प्रश्न53. In which table does MySQL store passwords for user accounts?

  • mysql.accounts;
  • mysql.passwords;
  • mysql.admin;
  • mysql.user;

प्रश्न54. Management has requested that you build an employee database. You need to include each employee’s current position and salary, as well as all prior positions and salaries with the company. You decide to use a one-to-many structure: an employee table with the main information such as name and address, and an employment table with position and salary history. You can use the employeeID field to connect them. What is employment.employeeID an example of?

  • primary key;
  • secondary key;
  • foreign key;
  • alternate key;

प्रश्न55. In recent versions of MySQL (8.0+), what’s the correct syntax to declare a CTE (Common Table Expression)?

  • WITH (SELECT id FROM users) as cte, SELECT
  • WITH (SELECT id FROM users) as cte SELECT
  • WITH cte as (SELECT id FROM users), SELECT
  • WITH cte as (SELECT id FROM users) SELECT

प्रश्न56. What is one reason to introduce data redundancy into a normalized database design?

  • to reduce corruption in data
  • to reduce storage space
  • to make the system faster
  • to prevent data anomalies

ध्यान दें: “to make the system fastercan also be correct. For example we can calculate some heavy query in advance and store its result in some column (use it as a cache). So if “नोट लेने के बाद आने वाले इस मेगा कोर्स के प्रत्येक पाठ्यक्रम/अनुभाग को इस फ्रेम में देखा जाना चाहिए” साधन “application which uses mysqlthen it’s correct too.

प्रश्न57. The code snippet below is used to read data from an XML file into a table. Which XML structure is _not_ supported by the statement?

LOAD XML LOCAL INFILE 'cars.xml'
INTO TABLE cars
ROWS IDENTIFIED BY `<car>`;
<car>
   <field name="make"> Lexus </field>
   <field name="model"> IS300 </field>
   <field name="make"> 2016 </field>
</car>
  • बी
<car name="make"> Dodge </car>
<car name="model"> Ram </car>
<car name="year"> 2000 </car>
  • सी
<car make="Ford" model="Mustang" year="2002"/>
  • डी
<car year="2010">
    <make>Mercedes</make> <model> C-Class</model>
</car>

प्र 58. You are loading data into a table. Which command can you use to make sure that all data is inserted and duplicates rows are discarded?

  • INSERT IGNORE
  • INSERT UNIQUE
  • INSERT INTO
  • INSERT DISTINCT

प्रश्न59. Which statement about the TRUNCATE TABLE statement is true?

  • It will stop and issue an error when it encounters a row that is referenced by a row in a child table.
  • It always first drops, then re-creates a new table.
  • It deletes rows one by one on tables with foreign key constraints.
  • It does not invoke the DELETE triggers associated with the table.

ध्यान दें: both answers are correct – देख TRUNCATE TABLE Statement in MySQL manual

क्यू 60. You are working with the tables as shown in this diagram. You need to get the number of cars sold per the home state of each customer’s residence. आप इसे कैसे पूरा कर सकते हैं?

mysql Q61

  • SELECT state, COUNT(*) FROM customers WHERE ID IN (SELECT customerID FROM purchases) GROUP BY state;
  • SELECT state, COUNT(*) FROM customers c LEFT JOIN purchases p ON c.ID = p.customerID GROUP BY state;
  • SELECT state, COUNT(*) FROM customers c, purchases p WHERE c.ID = p.customerID GROUP BY state;
  • SELECT state, COUNT(*) FROM customers GROUP BY state;

Explanation: THe difference between 2 तथा 3 is that LEFT JOIN will return 1 row per customer before grouping. If replaced with RIGHT JOIN it would return the correct info.

प्रश्न 61. In data migration, there is often a need to delete duplicate rows as part of data cleanup. Which statement works best?

  • DELETE DUPS
  • DELETE DISTINCT
  • DELETE JOIN
  • DELETE WITH

प्रश्न 62. When working with MySQL cursor, what must you also declare?

  • DEFAULT मूल्य
  • RETURN variable
  • SQLEXCEPTION routine
  • NOT FOUND handler

प्रश्न 63. Which type of backup includes all the changes made to the data since the last full backup was performed?

  • snapshot
  • तार्किक
  • differential
  • incremental

प्रश्न 64. 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
  • mysql
  • mysqladmin
  • mysqldump

प्रश्न 65. 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;
  • SELECT city->>'$.name' city FROM json_data;
  • SELECT city.name city FROM json_data;
  • SELECT city->'$.name' city FROM json_data;

ध्यान दें: the last option is valid too but the results will be enclosed with quotation marks

प्रश्न 66. If you want to use MyISAM instead of InnoDB, which option do you need to specify in the CREATE TABLE statement?

  • ENGINE
  • PARTITION
  • STORAGE
  • TABLESPACE

प्रश्न 67. You are working with the table in this diagram. You want to use full-text search to find the customers who live on a street or a drive. What is the command to do that?

Table name: ग्राहकों

पहचान lastname firstname फ़ोन पता चाहे आप प्रारंभिक कार्रवाई की समय सीमा या नियमित प्रवेश की समय सीमा के लिए आवेदन कर रहे हों राज्य zip
A001 Smith Bob 212-555-1212 1001 1st Street न्यूयॉर्क न्यूयॉर्क 10001
A002 Chang जॉन 213-555-5678 888 Rodeo Drive देवदूत सीए 90210
A003 Smith Mary 999-999-9999 123 Main Street Anytown वीए 12345
A004 जॉनसन जैक 312-312-3120 1111 Chicago Avenue शिकागो इल 60606
A005 Lopez Linda 737-777-3333 123 Main Street ऑस्टिन TX 73344
SELECT *
FROM customers
WHERE address MATCH 'Street' OR 'Drive';
  • बी
SELECT *
FROM customers
WHERE MATCH(address) IN ('street, drive');
  • सी
SELECT *
FROM customers
WHERE address MATCH 'Street' OR address MATCH 'Drive';
  • डी
SELECT *
FROM customers
WHERE MATCH(address) AGAINST ('street, drive');

प्रश्न 68. Which query lists the databases on the current server?

  • SHOW DATABASES;
  • LIST ALL DATABASES;
  • LIST DATABASES;
  • SHOW DB;

प्रश्न 69. What is the product of the database designing phase?

  • all tables, कॉलम, data types, indexes and their relationships
  • a list of entities, their relationship, and constraints
  • all tables and their names, which are needed to implement the logical model
  • a list of entities, their relationship, constraints, data types, and cardinalities

क्यू 70. Which choice is नहीं a valid model for a stored procedure parameter?

  • INOUT
  • IN
  • OUT
  • IN OUT

प्र71. What is the advantage of using a temporary table instead of a heap table?

  • The temporary table will be dropped when the database is restarted.
  • Temporary tables can be shared among clients, which makes them more usable in group development environments.
  • The temporary table will be dropped as soon as your session disconnects.
  • Creating a temporary table does not require any special privileges.

प्र72. What is the maximum number of columns that can be used by a single table index?

  • 2
  • 4
  • 8
  • 16

प्रश्न 73. Which command will return a list of triggers in the current database?

  • DISPLAY TRIGGERS;
  • SHOW TRIGGERS;
  • SELECT ALL TRIGGERS;
  • SELECT * FROM information_schema.triggers;

प्रश्न 74. Which statement is true about TIMESTAMP and DATETIME data types?

  • TIMESTAMP values require more bytes for storage than DATETIME values.
  • TIMESTAMP is stored without timezone, and DATETIME is stored in UTC values.
  • TIMESTAMP and DATETIME are both stored without time zone.
  • TIMESTAMP is stored in UTC values, and DATETIME is stored in without time zone.

प्रश्न 75. What is the equivalent of the mysqladmin reload command?

  • mysqladmin flush-threads
  • mysqladmin flush-tables
  • mysqladmin flush-privileges
  • mysqladmin flush-all

प्रश्न 76. Explain the security aspect of stored procedures

  • Stored procedures are not secure, because they can be executed from the command line as the root user
  • Stored procedures are secure, because the owner of the stored procedure can decide to whom access is granted
  • Stored procedures are secure, because applications can be given access to stored procedures and not any underlying tables
  • Stored procedures are not secure, because they can execute statements to drop tables or bulk delete data

प्र77. How would you retrieve data on all the customers where no phone number is stored?

  • SELECT * FROM customers WHERE PhoneNumber = NULL;
  • SELECT * FROM customers WHERE PhoneNumber IS NOT VALID;
  • SELECT * FROM customers WHERE PhoneNumber IS NULL;
  • SELECT * FROM customers WHERE PhoneNumber IS UNKNOWN;

प्रश्न 78. In the diagram below, the price field is declared as type DECIMAL. What would be a more efficient declaration for this field?

mysql picture

  • FLOAT
  • DECIMAL(10,2)
  • NUMERIC
  • DOUBLE

प्र79. Which choice is not an available string type for a column?

  • ENUM
  • SET
  • BIT
  • CHAR

Explnation: BIT is not a string type

क्यू 80. This diagram shows what type of relationship between customers and cars?

mysql picture

  • one-to-many
  • parent-child
  • many-to-many
  • many-to-one

क्यू81. A stored routine is a set of SQL statements stored on the server and takes form as either a procedure or a function. Which statement cannot be used inside stored routines?

  • SELECT
  • USE
  • SET
  • DECLARE

Explanation: Both SET तथा DECLARE are used to create variables. संदर्भ: MySQL STORED PROCEDURE Tutorial With Examples

प्रश्न 82. When a new student is added to a new database, you want new records to be created in the related tables such as Exam, Score and Attendance. How would you accomplish this?

  • trigger
  • regular expression
  • देखना
  • अनुक्रमणिका

क्यू 83. In the diagram below, the ID fields are declared as type CHAR instead of INT . Which is NOT one of the possible reasons behind that decision?

mysql picture

  • The ID field needs to include letters and not just numbers.
  • You can have a consistent format across all of the tables that require ID fields.
  • The ID field needs to have leading 0s, which the INT data type would truncate.
  • NS CHAR(10) data type is more efficient and space-saving.

प्रश्न 84. Why would you use a common table expression (CTE)?

  • To define queries for later reuse for the duration of the current session
  • To create temporary tables that can be used to pre-select often-used result sets.
  • To calculate a new single value from a result set and return it to the query parser.
  • To break down complex queries and allow reuse within a query.

Explanation: CTEs do not create temporary tables, they only work within a signle query. संदर्भ: 13.2.15 WITH (Common Table Expressions).

क्यू85. Which option modifier tells a program not to exit with an error if it does not recognize the option, but instead to issue a warning?

  • verbose
  • –छोड़ें
  • skip-error
  • loose

संदर्भ: 4.2.2.4 Program Option Modifiers

क्यू 86. What does this SQL statement return?

SELECT name FROM students WHERE name REGEXP '^to';
  • all names starting with “प्रति,” such as Tommy or Tony
  • all names with “प्रति,” such as Roberto and Tommy
  • all names without “प्रति,” such as Samantha or Kathryn
  • all names ending with “प्रति,” such as Roberto

क्यू87. You are working with the tables as shown in the diagram. You need to generate the list of price totals for each make and model of car, with subtotals for each make, and the grand total of all prices. Which SQL clause do you use?

mysql picture

  • UNION
  • SHOW TOTALS
  • UNION ALL
  • WITH ROLLUP

क्यू88. The left and right joins are also known as _.

  • Inner Join
  • Natural Join
  • Outer Join
  • Cartesian Join

क्यू 89. What is the valid way to create a database view in MySQL?

  • CREATE VIEW v1 SELECT * FROM t1 WHERE col1 > 10;
  • CREATE VIEW v1 AS BEGIN SELECT * FROM t1 END;
  • CREATE VIEW v1 BEGIN SELECT * FROM t1 END;
  • CREATE VIEW v1 AS SELECT * FROM t1;

Q90. Inside a transaction, several operations need to be performed. What would you do if an exception happens during that transaction?

  • UNDO
  • UNCOMMIT
  • ROLLBACK
  • REVERSE

प्रश्न91. What function finds the current time or date in MySQL?

  • तारीख()
  • GETDATE()
  • CURDATE()
  • CURRENT()

प्रश्न92. What is the correct usage of ENUM in MySQL?

  • Create table size (ENUM ('Small','Medium','Large'));
  • Create table ENUM (name ('Small','Medium','Large'));
  • Create table size (name: ENUM['Small','Medium','Large']);
  • Create table size (name ENUM('Small','Medium','Large'));

प्रश्न93. The mysqldump command cannot generate output in _.

  • JSON
  • CSV
  • एक्सएमएल
  • TXT

प्रश्न94. You are working with the tables shown below. You need to generate the list of all cars, whether or not they had been sold. Which statement accomplishes that?

mysql picture

SELECT cars.*, purchases.date
FROM cars RIGHT JOIN purchases
ON cars.ID = purchases.carID;
  • बी
SELECT cars.*, purchases.date
FROM cars INNER JOIN purchases
ON cars.ID = purchases.carID;
  • सी
SELECT cars.*, purchases.date
FROM cars JOIN purchases
ON cars.ID = purchases.carID;
  • डी
SELECT cars.*, purchases.date FROM cars LEFT JOIN purchases ON cars.ID = purchases.carID;

प्रश्न95. Which code snippet from a stored procedure should be rewritten as a CASE statement?

    IF var1 THEN SET varA = var1;
    ELSEIF var2 THEN SET varA = var2;
    ELSEIF var3 THEN SET varA = var3;
    ELSE SET varA = var4;
    END IF;
  • बी
    IF var1 = var2 THEN SET varA = var1;
    ELSEIF var2 = var3 THEN SET varA = var2;
    ELSEIF var3 = var4 THEN SET varA = var3;
    ELSE SET varA = var4;
    END IF;
  • सी
    IF var1 = 1 THEN SET varA = var1;
    ELSEIF var2 = 2 THEN SET varA = var2;
    ELSEIF var3 = 3 THEN SET varA = var3;
    ELSE SET varA = var4;
    END IF;
  • डी
    IF var1 = 1 THEN SET varA = var1;
    ELSEIF var1 = 2 THEN SET varA = var2;
    ELSEIF var1 = 3 THEN SET varA = var3;
    ELSE SET varA = var4;
    END IF;

प्रश्न96. Why would you use stored functions?

  • for formulas and business rules that you want to apply to columns in an SQL query
  • for formulas and business rules that should be applied on a specific trigger event like on inserts
  • to automatically modify the data of a table based on a query
  • for reusing recurring queries

प्रश्न97. What steps do you need to take to normalize the table from this diagram?

Table name: महानायक

नाम alias power1 power2 power3
Superman Clark Kent Flight X-Ray Vision Super Strength
Wonder Woman Diana Prince Force Fields Reflexes Telepathy
Spider-man Peter Parker Walcrawling Web-making Enhanced Senses
Aquaman Arthur Curry Underwater Breathing Enhanced Sight Stamina
Hulk Bruce Banner Super Strength Radiation Immunity Invulnerability
  • Create another table to serve as a lookup for powers with fields for code and description, as well as a junction table with superhero names and power codes.
  • Add a column to this table to serve as a record identifier, and make it the primary key.
  • Extend this table to have additional columnspower4,” “power5,” और इसी तरह, to allow additional powers for each superhero.
  • Convert this table to have column called “शक्ति,” and add one record for each superhero-power combination, कुल के लिए 15 records in this example.

प्रश्न98. A table Item has a Boolean field endOfLife and a field makeYear of type YEAR(4). How can you set the Boolean to true for all Items that have been made before 2019?

  • UPSERT Item SET endOfLife = true WHERE makeYear < 2019
  • CHANGE Item SET endOfLife = true WHERE makeYear < 2019
  • ALTER Item SET endOfLife = true WHERE makeYear < 2019
  • UPDATE Item SET endOfLife = true WHERE makeYear < 2019

प्रश्न99. Which choice is an example of an aggregate function?

  • NOW()
  • MID()
  • FORMAT()
  • गिनती करना()

संदर्भ

Q100. You are working on UPDATE trigger on the employee tablein this diagram. How can you access the new value for the address inside the trigger?

mysql picture

  • Use NEW.address
  • Use INSERTED.address
  • Use DELETED.address
  • USE OLD.address

संदर्भ

Q101. You are working with the tables as shown in this diagram. You need to generate the list of customers who purchased certain car models. Which SQL clause do you use?

क्यू104

  • UNION ALL
  • UNION
  • SHOW TOTALS
  • WITH ROLLUP

Q102. How would you make a case-insensitive query in MySQL?

  • SELECT * FROM customers WHERE UPPEERCASE(LastName) = 'POTTER';
  • SELECT * FROM customers WHERE LOWERCASE(LastName) = 'potter';
  • SELECT * FROM customers WHERE UPPER(LastName) = 'POTTER';
  • SELECT * FROM customers WHERE UPPER(LastName) = 'Potter';

Q103. “गिनती करना” keyword belongs to which categories in Mysql?

  • Aggregate functions
  • Operators
  • Clauses
  • All of the mentioned`

क्यू104. What is the meaning ofHAVINGclause in Mysql?

  • To filter out the column values
  • To filter out the row values
  • To filter out the row and column values
  • None of the mentioned

क्यू105. Which clause is similar toHAVINGclause in Mysql?

  • SELECT
  • FROM
  • WHERE
  • None of the mentioned

Q106. What will be the output of the following MySQL command?

  SELECT emp_id, fname, lname
  FROM employee
  WHERE title=’HEAD TELLER’ AND start_date&gt;2008-11-23;
  • All columns
  • Only those columns which are mention withSELECTclause
  • Columns mention withSELECTclause and only those rows which contain ‘HEAD TELLER’ के तौर पर “शीर्षक”
  • None of the mentioned

Q107. Is there any error in the following MySQL statement?

  SELECT e.emp_id, e.fname,e.lname,d.name
  FROM employee e INNER JOIN department d
  ON e.dept_id=e.dept_id;
  • नहीं
  • हाँ
  • DEPEND
  • None of the mentioned

Q108. With MySQL, how do you select all the records from a table namedPersonswhere theLastNameis alphabetically between (and including) “Hansen” तथा “Pettersen”?

  • SELECT LastName>'Hansen' AND LastName<'Pettersen' FROM Persons
  • SELECT * FROM Persons WHERE LastName BETWEEN 'Hansen' AND 'Pettersen'
  • SELECT * FROM Persons WHERE LastName>'Hansen' AND LastName<'Pettersen'
  • None of the above.

संदर्भ

Q109. Consider the set of relations given below and the SQL query that follows

    Students : (Roll number, Name, Date of birth)
    Courses: (Course number, Course name, instructor)
    Grades: (Roll number, Course number, Grade)
    SELECT DISTINCT Name
    FROM Students, Courses, Grades
    WHERE Students.Roll_number = Grades.Roll_number
    AND Courses.Instructor =Sriram
    AND Courses.Course_number = Grades.Course_number
    AND Grades.Grade = A

(Which of the following sets is computed by the above query?)

  • Names of Students who have got an A grade in all courses taught by Sriram
  • Names of Students who have got an A grade in all courses
  • Names of Students who have got an A grade in at least one of the courses taught by Sriram
  • इनमे से कोई भी नहीं

Q110. You are working with the tables shown below. You need to make sure that any record added to the purchases table consists of a customerlD, which already exists in the customers table, and a carlD, which already exists in the cars table. You decide to use a trigger to do the validation. Which one do you use?

mysql picture

  • IF EXISTS
  • CROSS JOIN
  • BEFORE INSERT
  • AFTER INSERT]

IF EXISTS तथा CROSS JOIN are not valid for a trigger.

प्रश्न111. Current versions of MySQL support the full-text search feature on some storage engines, as an alternative to using the LIKE operator and regular expressions. Which statement would you run to enable a full-text index for the column description in the table Car?

  • ALTER TABLE car ADD FULL TEXT(विवरण);
  • MERGE TABLE car ADD FULL TEXT(विवरण)
  • ENABLE FULL TEXT(विवरण) कार
  • SEARCH FULL TEXT(विवरण) कार

Q112. Which statement would you नहीं use to filter data?

छवि

  • GROUP_BY
  • मिलान
  • WHERE
  • LIKE

प्रश्न 113. In MySQL, which JOIN type returns all rows from the left table and the matching rows from the right table, and fills in with NULL values if there is no match on the right side?

  • INNER JOIN
  • LEFT JOIN (or LEFT OUTER JOIN)
  • RIGHT JOIN (or RIGHT OUTER JOIN)
  • FULL JOIN (or FULL OUTER JOIN)

प्रश्न114. What does SQL stand for in MySQL?

  • स्ट्रक्चर्ड क्वेरी लैंग्वेज
  • Simple Query Language
  • System Query Language
  • Structured Question Language

प्रश्न 115. Which MySQL statement is used to select data from a database?

  • Extract
  • चुनना
  • प्राप्त
  • खुला

प्रश्न116. का उद्देश्य क्या है PRIMARY KEY in a MySQL table?

  • To create a unique index on a table
  • To define a column as an integer
  • To define the data type of a column
  • To specify a foreign key reference

संदर्भ

प्रश्न117. Which of the following is a valid SQL query to insert a new row into the users table?

  • INSERT INTO users (name, email) VALUES ('John Doe', 'john.doe@example.com')
  • ADD users (name, email) VALUES ('John Doe', 'john.doe@example.com')
  • CREATE users (name, email) VALUES ('John Doe', 'john.doe@example.com')
  • UPDATE users (name, email) VALUES ('John Doe', 'john.doe@example.com')

प्रश्न118. Which of the following is a valid SQL query to delete the row with the id of 2 from the users table?

  • DELETE FROM users WHERE id = 2
  • REMOVE FROM users WHERE id = 2
  • DROP users WHERE id = 2
  • TRUNCATE users WHERE id = 2

प्रश्न119. MySQL programs are a set of command-line utilities that are provided with typical MySQL distributions. MySQL is designed to be a database.

  • database and programming
  • user and administrator
  • client and server
  • syntax and objects

Q120. Which MySQL command shows the structure of a table?

  • INFO table;
  • SHOW table;
  • STRUCTURE table;
  • DESCRIBE table;

प्रश्न121. The left and right joins are also known as _.

  • Inner Join
  • Natural Join
  • Outer Join
  • Cartesian Join

प्रश्न122. What is the valid way to create a database view in MySQL?

  • CREATE VIEW v1 SELECT * FROM t1 WHERE col1 > 10;
  • CREATE VIEW v1 AS BEGIN SELECT * FROM t1 END;
  • CREATE VIEW v1 BEGIN SELECT * FROM t1 END;
  • CREATE VIEW v1 AS SELECT * FROM t1;

प्रश्न123. In a database with a “छात्र” table containing information about students, which SQL statement is used to retrieve the names of all students who scored higher than 90 in their exams?

SELECT student_name FROM Students WHERE score > 90;
  • बी
SELECT name FROM Students WHERE score > 90;
  • सी
SELECT student_name FROM Students WHERE exam_score > 90;
  • डी
SELECT name FROM Students WHERE exam_score > 90;

Q124 Which SQL command is used to retrieve data from a database?

  • FETCH
  • SEARCH
  • SELECT
  • EXTRACT

लेखक

  • हेलेन बस्सी

    नमस्ते, I'm Helena, एक ब्लॉग लेखक जिसे शिक्षा क्षेत्र में ज्ञानवर्धक सामग्री पोस्ट करने का शौक है. मेरा मानना ​​है कि शिक्षा व्यक्तिगत और सामाजिक विकास की कुंजी है, और मैं अपने ज्ञान और अनुभव को सभी उम्र और पृष्ठभूमि के शिक्षार्थियों के साथ साझा करना चाहता हूं. मेरे ब्लॉग पर, आपको सीखने की रणनीतियों जैसे विषयों पर लेख मिलेंगे, ऑनलाइन शिक्षा, व्यवसायिक नीति, और अधिक. मैं अपने पाठकों की प्रतिक्रिया और सुझावों का भी स्वागत करता हूं, इसलिए बेझिझक एक टिप्पणी छोड़ें या किसी भी समय मुझसे संपर्क करें. मुझे आशा है कि आपको मेरा ब्लॉग पढ़ने में आनंद आएगा और यह उपयोगी और प्रेरणादायक लगेगा.

    सभी पोस्ट देखें

के बारे में हेलेन बस्सी

नमस्ते, I'm Helena, एक ब्लॉग लेखक जिसे शिक्षा क्षेत्र में ज्ञानवर्धक सामग्री पोस्ट करने का शौक है. मेरा मानना ​​है कि शिक्षा व्यक्तिगत और सामाजिक विकास की कुंजी है, और मैं अपने ज्ञान और अनुभव को सभी उम्र और पृष्ठभूमि के शिक्षार्थियों के साथ साझा करना चाहता हूं. मेरे ब्लॉग पर, आपको सीखने की रणनीतियों जैसे विषयों पर लेख मिलेंगे, ऑनलाइन शिक्षा, व्यवसायिक नीति, और अधिक. मैं अपने पाठकों की प्रतिक्रिया और सुझावों का भी स्वागत करता हूं, इसलिए बेझिझक एक टिप्पणी छोड़ें या किसी भी समय मुझसे संपर्क करें. मुझे आशा है कि आपको मेरा ब्लॉग पढ़ने में आनंद आएगा और यह उपयोगी और प्रेरणादायक लगेगा.

उत्तर छोड़ दें