SQL Interview Questions and Answers pdf
Hello aspirant in this article you can find your query related to SQL Interview Questions and Answers pdf, SQL Interview Questions in Hindi and English, SQL MCQ pdf, SQL MCQ Questions and Answers pdf, SQL MCQ Questions with Answers pdf, SQL MCQ Interview Questions
SQL MCQ Questions and Answers pdf
SQL mcq questions for interview, SQL objective type questions and answers, SQL multiple choice questions answers, SQL MCQ Questions and Answers pdf
1. Which keyword is used in SQL Server to implement the auto increment?
SQL सर्वर में ऑटो इंक्रीमेंट को लागू करने के लिए किस कीवर्ड का उपयोग किया जाता है?
- INCREMENT
- IDENTITY
- UNIQUE
- ADD
2. In SQL, Like is a __________operator.
SQL में, लाइक एक __________ऑपरेटर है।
- Additional
- Logical
- Relational
- Unique
3. SQL Like is NOT used with which of the following statement(s)?
निम्नलिखित में से किस कथन के साथ SQL लाइक का प्रयोग नहीं किया जाता है?
- UPDATE
- SELECT
- DELETE
- ALTER
4. The character(s) which are used independently or in conjunction with SQL Like Operator is _________.
स्वतंत्र रूप से या SQL लाइक ऑपरेटर के साथ संयोजन में उपयोग किए जाने वाले वर्ण _________ हैं।
- %
- _
- Both A. and B.
- None of these
5. Which of the following is/are transaction control commands in SQL?
निम्नलिखित में से कौन SQL में ट्रांजेक्शन कंट्रोल कमांड है/हैं?
- Rollback
- Commit
- Both A. and B.
- None of these
6. A single unit of work for all commands executed consecutively is known as ________.
लगातार निष्पादित सभी आदेशों के लिए कार्य की एक इकाई को ________ के रूप में जाना जाता है।
- Transaction
- Control
- Rollback
- Commit
7. To get the table’s previous permanent status, use the ____ command.
तालिका की पिछली स्थायी स्थिति प्राप्त करने के लिए, ____ कमांड का उपयोग करें।
- Rollback
- Transaction
- Commit
- None of these
8. In order to start the transaction, the command used is _________.
लेन-देन शुरू करने के लिए, प्रयुक्त कमांड _________ है।
- Mysql > START ROLLBACK;
- Mysql > START TRANSACTION;
- Mysql > START COMMIT;
- None of these
9. SQL CREATE DATABASE command is used to ___________.
SQL CREATE DATABASE कमांड का उपयोग ___________ के लिए किया जाता है।
- Create a column
- Create a database
- Create a table
- Create a row
10. A database does not need to be created in ______, a direct table creation option is provided in ____.
________ में एक डेटाबेस बनाने की आवश्यकता नहीं होती है, एक प्रत्यक्ष तालिका निर्माण विकल्प ____ में प्रदान किया जाता है।
- MySQL
- Oracle
- Both A and B
- None of these
SQL Interview Questions and Answers pdf
11. SQL ___ can be used to delete or drop existing databases in a SQL schema.
SQL ___ का उपयोग SQL स्कीमा में मौजूदा डेटाबेस को हटाने या छोड़ने के लिए किया जा सकता है।
- DROP DATABASE
- RENAME DATABASE
- CREATE DATABASE
- SELECT DATABASE
12. Using the ___ statement, a database can be renamed.
___कथन का प्रयोग कर डेटाबेस का नाम बदला जा सकता है।
- SQL DROP DATABASE
- SQL RENAME DATABASE
- SQL CREATE DATABASE
- SQL SELECT DATABASE
13. Which of the following statement is TRUE?
निम्नलिखित में से कौन सा कथन सत्य है?
- A TABLE name can be renamed.
- A DATABASE name can be renamed.
- Both A and B
- None of these
14. Which syntax is correct for Rename Database in MySQL?
MySQL में डेटाबेस का नाम बदलने के लिए कौन सा सिंटैक्स सही है?
- ALTER old_database_name MODIFY NAME = new_database_name;
- RENAME DATABASE old_database_name TO new_database_name;
- RENAME old_database_name TO new_database_name;
- ALTER DATABASE old_database_name MODIFY NAME = new_database_name;
15. Which syntax is correct for Rename Database in SQL?
SQL में डेटाबेस का नाम बदलने के लिए कौन सा सिंटैक्स सही है?
- ALTER old_database_name MODIFY NAME = new_database_name;
- RENAME DATABASE old_database_name TO new_database_name;
- RENAME old_database_name TO new_database_name;
- ALTER DATABASE old_database_name MODIFY NAME = new_database_name;
16. Which statement is used to select the database in SQL?
SQL में डेटाबेस का चयन करने के लिए किस कथन का उपयोग किया जाता है?
- ALTER
- USE
- SELECT
- CREATE
17. Which statement is used to select the database in Oracle?
Oracle में डेटाबेस का चयन करने के लिए किस कथन का उपयोग किया जाता है?
- RENAME
- SELECT
- USE
- None of these
18. Which syntax is used to show all the databases?
सभी डेटाबेस को दिखाने के लिए किस सिंटैक्स का उपयोग किया जाता है?
- SHOW DATABASES;
- SELECT DATABASES;
- USE DATABASES;
- None of these
19. In DBMS, table is known as _____ and row is known as _____.
DBMS में, टेबल को _____ के रूप में जाना जाता है और रो को _____ के रूप में जाना जाता है।
- Relation, Tuple
- Relation, Relation
- Tuple, Relation
- Tuple, Tuple
20. Select the statement which is TRUE?
उस कथन का चयन करें जो सत्य है?
- In a table, there could be any number of columns and specified number of rows.
- In a table, there could be any number of rows and specified number of columns.
- In a table, there could be any number of rows and any number of columns.
- In a table, there could be specified number of rows and specified number of columns.
SQL MCQ Questions and Answers pdf
21. Select the statement which is TRUE?
उस कथन का चयन करें जो सत्य है?
- In case a transaction is not rolled back, the data allied with table variable get rolled back.
- In case a transaction is rolled back, the data allied with table variable does not roll back.
- In case a transaction is rolled back, the data allied with table variable also get rolled back.
- None of the above.
22. Temporary variables use ____ resources than table variables.
अस्थायी चर तालिका चर की तुलना में ____ संसाधनों का उपयोग करते हैं।
- Equal
- Less
- More
- None of these
23. What is SQL CREATE Table used for?
SQL क्रिएट टेबल का उपयोग किसके लिए किया जाता है?
- To Delete table
- To Create table
- To Update table
- None of these
24. For integer value, which data type is supported in Oracle?
पूर्णांक मान के लिए, Oracle में कौन सा डेटा प्रकार समर्थित है?
- Digit
- Number
- INT
- None of these
25. To delete table definition and all data from the table, which statement is used?
टेबल डेफिनिशन और टेबल से सभी डेटा को डिलीट करने के लिए किस स्टेटमेंट का उपयोग किया जाता है?
- DROP
- DELETE
- ALTER
- None of these
26. What is the difference between DELETE and TRUNCATE statements?
DELETE और TRUNCATE स्टेटमेंट में क्या अंतर है?
- DELETE statement free up the space kept in check by the table whereas TRUNCATE statement does not free up the space kept in check by the table.
- DELETE statement only deletes columns from the table whereas TRUNCATE statement can only delete rows from the table.
- DELETE statement only deletes rows from the table whereas TRUNCATE statement can only delete columns from the table.
- DELETE statement does not free up the space kept in check by the table whereas TRUNCATE statement free up the space kept in check by the table.
27. When the table is dropped:
जब तालिका गिरा दी जाती है:
- Relationship is dropped
- Integrity constraints are dropped
- Table structure is dropped
- All of the above
28. When the table is truncated:
जब तालिका को छोटा कर दिया जाता है:
- Relationship is dropped
- Integrity constraints are dropped
- Table structure is dropped
- None of the above
29. In SQL, which statement can help in changing the name of the table?
SQL में कौन सा स्टेटमेंट टेबल का नाम बदलने में मदद कर सकता है?
- ALTER
- RENAME
- Both A) and B)
- None of these
30. TRUNCATE TABLE requires:
ट्रंकेट टेबल की आवश्यकता है:
- HAVING clause
- WHERE clause
- Both A) and B)
- None of these
SQL Interview Questions and Answers pdf
31. Select the correct statement.
सही कथन का चयन करें।
- TRUNCATE TABLE uses fewer resources than DELETE TABLE statement.
- TRUNCATE TABLE is faster than DELETE TABLE statement.
- Both A) and B)
- None of the above
32. SELECT INTO statement-
SELECT INTO कथन-
- Copy the content from one table into another existing table.
- Rename the content in a table.
- Select the content from a table.
- None of the above
33. Which of the following statement is TRUE?
निम्नलिखित में से कौन सा कथन सत्य है?
- Temporary table can do similar operations to normal table.
- At run time, temporary tables can be created.
- Both A) and B)
- None of the above
34. How many temp tables are there?
कितने अस्थायी टेबल हैं?
- 1
- 2
- 3
- 4
35. Which of the following are the types of the temp tables?
निम्नलिखित में से कौन सा टेम्प टेबल के प्रकार हैं?
- Global Temp
- Local Temp
- Both A) and B)
- None of these
36. Local Temp Variable is used with which sign?
लोकल टेम्प वेरिएबल का प्रयोग किस चिन्ह के साथ किया जाता है?
- ?
- @
- #
- &
37. Global Temp Variable is used with which sign?
Global Temp Variable का प्रयोग किस चिन्ह के साथ किया जाता है?
- ###
- ####
- #
- ##
38. Which one is not the OPTIONAL Clause in SELECT statement?
सेलेक्ट स्टेटमेंट में कौन सा ऑप्शनल क्लॉज नहीं है?
- WHERE
- HAVING
- HAVE
- ORDER BY
39. Which statement is TRUE about the WHERE Clause?
WHERE क्लॉज के बारे में कौन सा कथन सही है?
- In order to retrieve rows, WHERE Clause is used.
- In order to return the rows, WHERE Clause is used.
- In order to select the defined groups, WHERE Clause is used.
- In order to group the rows, WHERE Clause is used.
40. Which statement is TRUE about the GROUP BY Clause?
ग्रुप बाय क्लॉज के बारे में कौन सा कथन सही है?
- In order to select the defined groups, GROUP BY Clause is used.
- In order to group the rows that share the same property, GROUP BY Clause is used.
- In order to retrieve rows, GROUP BY Clause is used.
- In order to return the rows, GROUP BY Clause is used.
Also Read: SQL MCQ Questions and Answers pdf
41. Which statement is TRUE about the HAVING Clause?
HAVING क्लॉज के बारे में कौन सा कथन सत्य है?
- In order to select the defined groups by the GROUP BY Clause, HAVING Clause is used.
- In order to return the rows, HAVING Clause is used.
- In order to group the rows, HAVING Clause is used.
- None of the above
42. Which statement is TRUE about the ORDER BY Clause?
ऑर्डर बाय क्लॉज के बारे में कौन सा कथन सही है?
- In order to return the rows in a specific order, ORDER BY Clause is used.
- In order to select the defined groups, ORDER BY Clause is used.
- In order to group the rows, ORDER BY Clause is used.
- None of the above
43. Which of the following clause cannot be optional in SQL SELECT Statement?
SQL सेलेक्ट स्टेटमेंट में निम्नलिखित में से कौन सा क्लॉज वैकल्पिक नहीं हो सकता है?
- ORDER BY
- GROUP BY
- WHERE
- None of these
44. Which of the following clause is optional in SQL SELECT Statement?
SQL सेलेक्ट स्टेटमेंट में निम्नलिखित में से कौन सा क्लॉज वैकल्पिक है?
- HAVING
- FROM
- SELECT
- None of these
45. Which clause is used to retrieve a unique element from the table?
तालिका से एक अद्वितीय तत्व को पुनः प्राप्त करने के लिए किस खंड का उपयोग किया जाता है?
- SELECT UNIQUE
- SELECT DISTINCT
- Both A) and B)
- None of the above
46. What is the functionality of SQL COUNT?
SQL COUNT की कार्यक्षमता क्या है?
- It returns the no of record of table
- It returns the no of record of column
- It returns the no of record of row
- It returns the no of record of database
47. In SQL SELECT COUNT, one needs to specify the –
SQL SELECT COUNT में, किसी को निर्दिष्ट करने की आवश्यकता है –
- Table Name
- Row Name
- Column Name
- None of these
48. The SELECT TOP statement shows the limited number of:
SELECT TOP स्टेटमेंट सीमित संख्या को दर्शाता है:
- Tables
- Columns
- Rows
- None of these
49. Select the correct syntax of SELECT TOP clause?
सेलेक्ट टॉप क्लॉज का सही सिंटैक्स चुनें?
- SELECT TOP FROM
- SELECT TOP column
- SELECT TOP name
- SELECT TOP Number
50. Using the SQL first() function, one can return the ____ value of the selected column.
SQL फर्स्ट () फ़ंक्शन का उपयोग करके, कोई चयनित कॉलम का ____ मान वापस कर सकता है।
- First
- Second
- Third
- Last
SQL Interview Questions and Answers pdf
51. Using the SQL last() function, one can return the ______ value of the selected column.
SQL लास्ट () फ़ंक्शन का उपयोग करके, कोई चयनित कॉलम का ______ मान वापस कर सकता है।
- First
- Second
- Third
- Last
52. Using SQL SELECT RANDOM() function, one can return the random ______.
SQL SELECT RANDOM() फ़ंक्शन का उपयोग करके, कोई रैंडम ________ वापस कर सकता है।
- Table
- Column
- Row
- Database
53. In order to assign a random name to a column or table, which SQL SELECT Clause is used?
किसी कॉलम या टेबल को रैंडम नाम असाइन करने के लिए किस SQL सेलेक्ट क्लॉज का उपयोग किया जाता है?
- HAVING
- WHERE
- FROM
- AS
54. Which function combines the two different columns?
कौन सा फ़ंक्शन दो अलग-अलग स्तंभों को जोड़ता है?
- CONCAT
- MERGE
- ADD
- None of these
55. What is the difference between HAVING and WHERE clause?
HAVING और WHERE क्लॉज में क्या अंतर है?
- HAVING clause filters the groups whereas WHERE clauses filter the single record of the table.
- HAVING clause is post-filter whereas WHERE clause is pre-filter.
- HAVING clause is used in column operation whereas WHERE clause is used in row operation.
- All of the above
56. What is the difference between MIN and MAX function?
MIN और MAX फंक्शन में क्या अंतर है?
- MIN function is used to show the minimum data and MAX function is used to show the maximum data.
- MIN function is used to show the maximum data and MAX function is used to show the minimum data.
- Both of the above
- None of the above
57. In order to sort the records according to the columns, which clause is used?
कॉलम के अनुसार अभिलेखों को क्रमबद्ध करने के लिए किस खंड का प्रयोग किया जाता है?
- ORDER BY
- GROUP BY
- HAVING
- None of these
58. By default, sorting by ORDER BY clause is done in which order?
डिफ़ॉल्ट रूप से, ORDER BY क्लॉज द्वारा सॉर्टिंग किस क्रम में की जाती है?
- Ascending
- Descending
- Any of the above
- None of the above
59. What is the keyword of the Ascending and Descending?
आरोही और अवरोही का कीवर्ड क्या है?
- ASCE, DESC
- ASC, DES
- ASCE, DES
- ASC, DESC
60. SQL INSERT is used to insert a –
SQL INSERT का उपयोग _______ डालने के लिए किया जाता है।
- Single or Multiple table
- Single or Multiple database
- Single or Multiple record
- None of the above
SQL Interview Questions and Answers pdf
61. In order to insert a row directly in the table, which command is used?
टेबल में सीधे लाइन डालने के लिए किस कमांड का प्रयोग किया जाता है?
- INSERT IN
- INSERT INSIDE
- INSERT UNDER
- INSERT INTO
62. In order to update one table using another table and join condition, which statement is used.
एक टेबल को दूसरी टेबल का उपयोग करके अपडेट करने और कंडीशन में शामिल होने के लिए किस स्टेटमेंट का उपयोग किया जाता है।
- SQL UPDATE INTO
- SQL UPDATE JOIN
- SQL JOIN
- SQL JOIN UPDATE
63. SQL DELETE can be used to delete _________.
SQL DELETE का उपयोग _________ को हटाने के लिए किया जा सकता है।
- View
- Database
- Rows
- All of these
64. What is the clause to delete all rows from the table?
तालिका से सभी पंक्तियों को हटाने का खंड क्या है?
- SQL DELETE ALL ROWS Table_Name;
- DELETE FROM Table_Name;
- DELETE FROM ALL ROWS Table_Name;
- SQL DELETE ROWS Table_Name;
65. In order to delete duplicate rows from the table, which keyword is used?
तालिका से डुप्लिकेट पंक्तियों को हटाने के लिए किस कीवर्ड का उपयोग किया जाता है?
- DELETE
- WHERE
- FROM
- DISTINCT
66. In order to delete the database, which keyword is used?
डेटाबेस को हटाने के लिए किस कीवर्ड का उपयोग किया जाता है?
- ALTER
- DELETE
- DROP
- None of these
67. Which of the following keyword is used to delete the Join?
जॉइन को हटाने के लिए निम्न में से किस कीवर्ड का उपयोग किया जाता है?
- WHERE
- ON
- DELETE
- All of these
68. A Key which uniquely identifies each row in the table is known as?
एक कुंजी जो तालिका में प्रत्येक पंक्ति को विशिष्ट रूप से पहचानती है, कहलाती है?
- Primary Key
- Foreign Key
- Composite Key
- Unique Key
69. A Primary Key is basically a –
एक प्राथमिक कुंजी मूल रूप से एक है –
- Table
- Column
- Row
- Database
70. If multiple columns are used as Primary Key, it is known as –
यदि प्राथमिक कुंजी के रूप में एकाधिक स्तंभों का उपयोग किया जाता है, तो इसे कहा जाता है –
- Foreign
- Composite
- Unique
- None of these
SQL MCQ Questions and Answers pdf
71. Which of the following statement is TRUE about Primary Key?
प्राथमिक कुंजी के बारे में निम्नलिखित में से कौन सा कथन सत्य है?
- Table integrity is not enforced by the primary key.
- Null values are allowed in primary keys.
- 900 bytes is the maximum length of a primary key.
- The data in a primary key is always multiple.
72. Primary keys can be contained in a table only ____?
प्राथमिक कुंजियों को केवल _____ तालिका में समाहित किया जा सकता है?
- Once
- Twice
- Thrice
- None of these
73. To add a Primary Key constraint after table is created, which clause is used?
तालिका बनने के बाद एक प्राथमिक कुंजी बाधा जोड़ने के लिए किस खंड का उपयोग किया जाता है?
- UPDATE
- JOIN
- ALTER
- ADD
74. In order to remove a primary key constraint, which clause is used?
प्राथमिक कुंजी बाधा को दूर करने के लिए किस खंड का प्रयोग किया जाता है?
- DELETE
- REMOVE
- ALTER
- DROP
75. In order to build a link between two tables, which key is used?
दो टेबलों के बीच एक कड़ी बनाने के लिए किस कुंजी का प्रयोग किया जाता है?
- Composite
- Foreign
- Primary
- Unique
76. Which of the following statement is FALSE?
निम्नलिखित में से कौन सा कथन FALSE है?
- A Primary Key cannot be NULL
- A Foreign Key can be Duplicate
- A Primary Key cannot be Duplicate
- A Foreign Key cannot be NULL
77. Foreign key is a field in a table that is _______ key in another table?
विदेशी कुंजी तालिका में एक फ़ील्ड है जो किसी अन्य तालिका में _______ कुंजी है?
- Composite
- Unique
- Primary
- None of these
78. When two or more columns are combined to be used to uniquely identify each row in the table, it is known as –
जब दो या दो से अधिक स्तंभों को जोड़कर तालिका में प्रत्येक पंक्ति को विशिष्ट रूप से पहचानने के लिए उपयोग किया जाता है, तो इसे कहा जाता है –
- Composite Key
- Unique Key
- Primary Key
- Foreign Key
79. For one table, there can be ____unique key constraint(s).
एक टेबल के लिए, ____अद्वितीय कुंजी बाधा हो सकती है।
- 1
- Many
- NULL
- None of these
80. All other columns other than the column which is termed as Primary Key, are known as –
कॉलम के अलावा अन्य सभी कॉलम जिन्हें प्राथमिक कुंजी कहा जाता है, के रूप में जाना जाता है –
- Composite Keys
- Alternate Keys
- Unique Keys
- None of these
SQL Interview Questions and Answers pdf
81. GROUP BY clause is placed before which clause in SQL?
GROUP BY क्लॉज को SQL में किस क्लॉज से पहले रखा जाता है?
- ORDER BY
- WHERE
- HAVING
- FROM
82. Which one if these is used to put the same value in all the rows?
यदि इनका उपयोग सभी पंक्तियों में समान मान रखने के लिए किया जाता है तो कौन सा है?
- Group by one column
- Group by single column
- Group by unique column
- Group by same value
83. In order to convert the expression from one to another data type, which SQL Function is used?
एक्सप्रेशन को एक से दूसरे डेटा टाइप में बदलने के लिए कौन सा SQL फंक्शन प्रयोग किया जाता है?
- CONVERT
- TRANSIT
- CAST
- CHANGE
84. What is the syntax of SQL CAST Function?
SQL CAST फ़ंक्शन का सिंटैक्स क्या है?
- CAST (expression AS [data type])
- CAST (expression FOR [data type])
- CAST (expression TO [data type])
- CAST (expression IN [data type])
85. What is the default length of any data type in the CAST function?
CAST फ़ंक्शन में किसी भी डेटा प्रकार की डिफ़ॉल्ट लंबाई क्या है?
- 10
- 20
- 30
- 40
86. Select the correct type(s) of SQL Comments.
SQL टिप्पणियों के सही प्रकार (प्रकारों) का चयन करें।
- Multi-line Comments
- Single Line Comments
- Inline Comments
- All of the above
87. Select the syntax of Single Line Comment.
सिंगल लाइन कमेंट के सिंटैक्स का चयन करें।
- .
- !
- —
- #
88. Comments whose starting and ending lines are different are known as –
वे टिप्पणियाँ जिनकी आरंभ और समाप्ति रेखाएँ भिन्न-भिन्न होती हैं, कहलाती हैं –
- Single Line Comments
- Multi-line Comments
- Inline Comments
- Varied line Comments
So friend I hope you enjoy this article related to SQL MCQ Questions and Answers pdf, SQL Interview Questions and Answers pdf, SQL Interview Questions in Hindi English
SQL MCQ Questions and Answers pdf
File Name | SQL Interview Questions and Answers pdf |
File Size | 690 KB |
No. of Pages | 12 |
Language | Hindi and English |
Download | Click Here |
Related Searches: SQL Interview Questions in Hindi and English, SQL mcq questions for interview, SQL MCQ pdf, SQL MCQ Questions and Answers pdf, SQL objective type questions and answers, SQL MCQ Questions with Answers pdf, SQL MCQ Interview Questions, SQL Interview Questions and Answers, SQL multiple choice questions answers
Good post. I learn something totally new and challenging on sites I stumbleupon everyday. It will always be helpful to read content from other writers and practice a little something from other websites.