Connection restored!
Notification Center
Loading notifications...
Loading announcements...
INCOMING 1v1 DUEL! 10:00
@friend challenged you!
Topic · Room #HQ-0000
Accept & Join
Mention Scholar ↑↓ Enter / Click
Last time you were studying on Page 2.
STUDY & LEARNING DECK

Computer PYQs

Showing 25 of 4040 total questions (Latest Added First).

Timed Quiz
Newest Classic 25 Qs
No Questions Match Your Filter

Try clearing filters or unchecking "Saved" / "Hide".

Question 1751 NEW
📜 PYQs MEDIUM
What is an "Equi-Join" in SQL?
SQL में "इक्वि-जॉइन" (Equi-Join) क्या होता है?
A
A join that uses ONLY the equality comparison operator (`=`) in its join condition
एक ऐसा जॉइन जिसकी शर्त में केवल समानता ऑपरेटर (`=`) का उपयोग किया जाता है
Correct
B
A join that uses `>` or `<` operators
ऐसा जॉइन जिसमें `>` या `<` ऑपरेटर उपयोग होते हैं
C
A join between two empty tables
दो खाली टेबल्स के बीच का जॉइन
D
A join that always returns 1 row
हमेशा 1 पंक्ति लौटाने वाला जॉइन
Solution Breakdown:
-> Most practical `INNER JOIN` queries (like `ON emp.dept_id = dept.id`) are Equi-Joins; joins using `<`, `>`, or `BETWEEN` are called Non-Equi Joins. -> Hence, Option (A) is the correct answer.
-> जब जॉइन की शर्त में केवल `=` ऑपरेटर का उपयोग हो, तो उसे इक्वि-जॉइन कहते हैं। -> इसलिए विकल्प (A) बिल्कुल सही है।
Question 1752 NEW
📜 PYQs MEDIUM
What is a `NATURAL JOIN` in SQL?
SQL में `NATURAL JOIN` क्या होता है?
A
A join that automatically matches rows based on ALL columns having the exact SAME name and compatible data types in both tables
एक ऐसा जॉइन जो दोनों टेबल्स में समान नाम और डेटा टाइप वाले सभी कॉलम के आधार पर पंक्तियों को स्वतः जोड़ देता है
Correct
B
A join that only works on numeric columns
केवल संख्यात्मक कॉलम पर काम करने वाला जॉइन
C
A join that requires no tables
बिना टेबल के काम करने वाला जॉइन
D
A join that deletes duplicate tables
डुप्लीकेट टेबल्स डिलीट करने वाला जॉइन
Solution Breakdown:
-> A `NATURAL JOIN` does not require an `ON` clause and automatically removes the duplicate join column from the final output. -> Hence, Option (A) is the correct answer.
-> `NATURAL JOIN` बिना `ON` क्लॉज़ के समान नाम वाले कॉलम को अपने आप मिलाता है और आउटपुट में उस कॉलम को केवल एक बार दिखाता है। -> इसलिए विकल्प (A) बिल्कुल सही है।
Question 1753 NEW
📜 PYQs MEDIUM
If table `Emp` has `10` records and table `Dept` has `5` records, how many rows will be returned by the query `SELECT * FROM Emp, Dept;`?
यदि `Emp` टेबल में `10` रिकॉर्ड्स और `Dept` टेबल में `5` रिकॉर्ड्स हैं, तो `SELECT * FROM Emp, Dept;` क्वेरी कितनी पंक्तियाँ लौटाएगी?
A
15
15
B
5
5
C
10
10
D
50
50
Correct
Solution Breakdown:
-> Writing `FROM Emp, Dept` without a `WHERE` join condition performs a Cartesian Product (`CROSS JOIN`), returning $10 \times 5 = 50$ rows. -> Hence, Option (D) is the correct answer.
-> बिना किसी `WHERE` शर्त के दो टेबल्स को कॉमा से लिखने पर कार्टेशियन प्रोडक्ट होता है, जिससे $10 \times 5 = 50$ पंक्तियाँ प्राप्त होती हैं। -> इसलिए विकल्प (D) बिल्कुल सही है।
Question 1754 NEW
📜 PYQs MEDIUM
What does a `CROSS JOIN` (or Cartesian Product) between two tables produce?
दो टेबल्स के बीच `CROSS JOIN` (या कार्टेशियन प्रोडक्ट) क्या परिणाम देता है?
A
Only matching rows
केवल मेल खाने वाली पंक्तियाँ
B
Every row of the first table paired with EVERY row of the second table
पहली टेबल की प्रत्येक पंक्ति का दूसरी टेबल की प्रत्येक पंक्ति के साथ जोड़ा
Correct
C
Only the first row of each table
प्रत्येक टेबल की केवल पहली पंक्ति
D
Zero rows
शून्य पंक्तियाँ
Solution Breakdown:
-> If Table A has $m$ rows and Table B has $n$ rows, `SELECT * FROM A CROSS JOIN B;` (or `SELECT * FROM A, B;`) produces $m \times n$ total rows. -> Hence, Option (B) is the correct answer.
-> यदि पहली टेबल में $m$ और दूसरी में $n$ पंक्तियाँ हैं, तो `CROSS JOIN` कुल $m \times n$ पंक्तियाँ उत्पन्न करता है। -> इसलिए विकल्प (B) बिल्कुल सही है।
Question 1755 NEW
📜 PYQs EASY
When a database table is joined with ITSELF (using two different table aliases), what is this join called?
जब किसी डेटाबेस टेबल को स्वयं उसी के साथ जोड़ा जाता है, तो इसे क्या कहा जाता है?
A
Self Join
सेल्फ जॉइन
Correct
B
Cross Join
क्रॉस जॉइन
C
Null Join
नल जॉइन
D
Redundant Join
रिडंडेंट जॉइन
Solution Breakdown:
-> A Self Join is commonly used for hierarchical data stored in a single table—such as an `Employee` table where each employee's `manager_id` refers to another employee's `emp_id` in the same table. -> Hence, Option (A) is the correct answer.
-> सेल्फ जॉइन का उपयोग एक ही टेबल के अंदर के पदानुक्रमित संबंधों (जैसे कर्मचारी और उसका मैनेजर) को जोड़ने के लिए किया जाता है। -> इसलिए विकल्प (A) बिल्कुल सही है।
Question 1756 NEW
📜 PYQs MEDIUM
Which type of SQL Join returns ALL rows when there is a match in EITHER the left table OR the right table (combining the results of both LEFT and RIGHT joins)?
किस प्रकार का SQL जॉइन बाईं या दाईं किसी भी टेबल में मिलान होने पर दोनों टेबल्स की सभी पंक्तियाँ लौटाता है?
A
INNER JOIN
इनर जॉइन
B
NATURAL JOIN
नेचुरल जॉइन
C
SELF JOIN
सेल्फ जॉइन
D
FULL OUTER JOIN
फुल आउटर जॉइन
Correct
Solution Breakdown:
-> `FULL OUTER JOIN` keeps all rows from both tables, placing `NULL` wherever a match is missing on either side. (Note: MySQL does not have a direct `FULL OUTER JOIN` keyword, so it is simulated using `LEFT JOIN UNION RIGHT JOIN`). -> Hence, Option (D) is the correct answer.
-> `FULL OUTER JOIN` दोनों टेबल्स की सभी पंक्तियाँ दिखाता है। MySQL में इसे `LEFT JOIN` और `RIGHT JOIN` के `UNION` से बनाया जाता है। -> इसलिए विकल्प (D) बिल्कुल सही है।
Question 1757 NEW
📜 PYQs EASY
Which type of SQL Join returns ALL rows from the right table and the matched rows from the left table (filling `NULL` for unmatched left-side columns)?
किस प्रकार का SQL जॉइन दाईं (Right) टेबल की सभी पंक्तियाँ और बाईं (Left) टेबल से मेल खाने वाली पंक्तियाँ लौटाता है?
A
INNER JOIN
इनर जॉइन
B
LEFT JOIN
लेफ्ट जॉइन
C
RIGHT OUTER JOIN (RIGHT JOIN)
राइट आउटर जॉइन
Correct
D
SELF JOIN
सेल्फ जॉइन
Solution Breakdown:
-> `RIGHT JOIN` is the exact mirror of `LEFT JOIN`: every row from the right table is preserved, and unmatched columns from the left table appear as `NULL`. -> Hence, Option (C) is the correct answer.
-> `RIGHT JOIN` दाईं टेबल की सभी पंक्तियों को सुरक्षित रखता है और बाईं टेबल में मिलान न मिलने पर `NULL` दिखाता है। -> इसलिए विकल्प (C) बिल्कुल सही है।
Question 1758 NEW
📜 PYQs EASY
Which type of SQL Join returns ALL rows from the left table and the matched rows from the right table (filling `NULL` for unmatched right-side columns)?
किस प्रकार का SQL जॉइन बाईं (Left) टेबल की सभी पंक्तियाँ और दाईं (Right) टेबल से केवल मेल खाने वाली पंक्तियाँ लौटाता है (बेमेल होने पर `NULL` भरकर)?
A
INNER JOIN
इनर जॉइन
B
LEFT OUTER JOIN (LEFT JOIN)
लेफ्ट आउटर जॉइन
Correct
C
RIGHT OUTER JOIN
राइट आउटर जॉइन
D
CROSS JOIN
क्रॉस जॉइन
Solution Breakdown:
-> A `LEFT JOIN` guarantees that every row from the left table appears in the output; if no matching record exists in the right table, its columns show `NULL`. -> Hence, Option (B) is the correct answer.
-> `LEFT JOIN` बाईं टेबल का हर रिकॉर्ड दिखाता है और दाईं टेबल में मिलान न होने पर उस स्थान पर `NULL` प्रदर्शित करता है। -> इसलिए विकल्प (B) बिल्कुल सही है।
Question 1759 NEW
📜 PYQs EASY
Which type of SQL Join returns ONLY those rows that have matching values in BOTH tables (excluding unmatched rows)?
किस प्रकार का SQL जॉइन केवल उन्हीं पंक्तियों को लौटाता है जिनके मान दोनों टेबल्स में मेल खाते हों (बेमेल पंक्तियों को छोड़कर)?
A
INNER JOIN
इनर जॉइन
Correct
B
LEFT JOIN
लेफ्ट जॉइन
C
RIGHT JOIN
राइट जॉइन
D
CROSS JOIN
क्रॉस जॉइन
Solution Breakdown:
-> An `INNER JOIN` (the default join when you simply write `JOIN`) returns the intersection of two tables—only records where the join condition matches in both tables. -> Hence, Option (A) is the correct answer.
-> `INNER JOIN` केवल उन्हीं रिकॉर्ड्स को दिखाता है जो दोनों टेबल्स में दी गई शर्त से मेल खाते हैं। -> इसलिए विकल्प (A) बिल्कुल सही है।
Question 1760 NEW
📜 PYQs EASY
What is the primary purpose of a "JOIN" clause in SQL?
SQL में "JOIN" क्लॉज़ का मुख्य उद्देश्य क्या होता है?
A
To delete duplicate tables
डुप्लीकेट टेबल्स को डिलीट करना
B
To combine rows from two or more tables based on a related column between them
दो या अधिक टेबल्स के बीच एक संबंधित कॉलम के आधार पर उनकी पंक्तियों को आपस में जोड़ना
Correct
C
To create a new database
नया डेटाबेस बनाना
D
To encrypt table data
टेबल डेटा को एन्क्रिप्ट करना
Solution Breakdown:
-> In relational databases, data is split across normalized tables to avoid redundancy. The `JOIN` clause links these tables back together (usually via Primary Key and Foreign Key) to produce unified query results. -> Hence, Option (B) is the correct answer.
-> रिलेशनल डेटाबेस में डेटा को अलग-अलग टेबल्स में रखा जाता है। `JOIN` क्लॉज़ संबंधित कॉलम (जैसे प्राइमरी की और फॉरेन की) के आधार पर इन टेबल्स की जानकारी को एक साथ जोड़कर दिखाता है। -> इसलिए विकल्प (B) बिल्कुल सही है।
Question 1761 NEW
📜 PYQs EASY
Which SQL clause is used to combine rows that have identical values in specified columns into summary rows (e.g., counting students per city)?
निर्दिष्ट कॉलम में समान मान वाली पंक्तियों को सारांश समूहों (जैसे प्रति शहर छात्रों की संख्या) में बांटने के लिए किस SQL क्लॉज़ का उपयोग किया जाता है?
A
`ORDER BY`
`ORDER BY`
B
`GROUP BY`
`GROUP BY`
Correct
C
`SORT BY`
`SORT BY`
D
`JOIN BY`
`JOIN BY`
Solution Breakdown:
-> `SELECT city, COUNT(*) FROM students GROUP BY city;` groups all students by their city and counts how many belong to each city. -> Hence, Option (B) is the correct answer.
-> `GROUP BY` क्लॉज़ एग्रीगेट फंक्शंस के साथ मिलकर समान मानों के समूह बनाता है। -> इसलिए विकल्प (B) बिल्कुल सही है।
Question 1762 NEW
📜 PYQs MEDIUM
Match the SQL Constraint with its Purpose: 1. `NOT NULL` — (a) Validates a condition like `marks >= 0` 2. `UNIQUE` — (b) Prevents empty/missing values in a column 3. `CHECK` — (c) Sets an automatic fallback value if none is given 4. `DEFAULT` — (d) Prevents duplicate values in a column
SQL कॉन्स्ट्रेंट को उसके उद्देश्य से सुमेलित करें: 1. `NOT NULL` — (a) `marks >= 0` जैसी शर्त की जांच करता है 2. `UNIQUE` — (b) कॉलम में खाली मान रोकता है 3. `CHECK` — (c) मान न देने पर स्वतः डिफ़ॉल्ट मान भरता है 4. `DEFAULT` — (d) कॉलम में डुप्लीकेट मान रोकता है
A
1-a, 2-b, 3-c, 4-d
1-a, 2-b, 3-c, 4-d
B
1-b, 2-d, 3-a, 4-c
1-b, 2-d, 3-a, 4-c
Correct
C
1-b, 2-a, 3-d, 4-c
1-b, 2-a, 3-d, 4-c
D
1-d, 2-b, 3-a, 4-c
1-d, 2-b, 3-a, 4-c
Solution Breakdown:
-> Correct matches: `NOT NULL` (No empty values), `UNIQUE` (No duplicates), `CHECK` (Condition validation), `DEFAULT` (Fallback value). -> Hence, Option (B) is the correct answer.
-> सही मिलान: 1-b, 2-d, 3-a, 4-c। -> इसलिए विकल्प (B) बिल्कुल सही है।
Question 1763 NEW
📜 PYQs MEDIUM
Match the SQL Command Category with its Commands: 1. DDL — (a) `GRANT`, `REVOKE` 2. DML — (b) `CREATE`, `ALTER`, `DROP` 3. DCL — (c) `COMMIT`, `ROLLBACK` 4. TCL — (d) `INSERT`, `UPDATE`, `DELETE`
SQL कमांड श्रेणी को उसके कमांड्स से सुमेलित करें: 1. DDL — (a) `GRANT`, `REVOKE` 2. DML — (b) `CREATE`, `ALTER`, `DROP` 3. DCL — (c) `COMMIT`, `ROLLBACK` 4. TCL — (d) `INSERT`, `UPDATE`, `DELETE`
A
1-b, 2-d, 3-a, 4-c
1-b, 2-d, 3-a, 4-c
Correct
B
1-a, 2-b, 3-c, 4-d
1-a, 2-b, 3-c, 4-d
C
1-b, 2-a, 3-d, 4-c
1-b, 2-a, 3-d, 4-c
D
1-d, 2-b, 3-a, 4-c
1-d, 2-b, 3-a, 4-c
Solution Breakdown:
-> Correct matches: DDL (`CREATE`/`ALTER`/`DROP`), DML (`INSERT`/`UPDATE`/`DELETE`), DCL (`GRANT`/`REVOKE`), TCL (`COMMIT`/`ROLLBACK`). -> Hence, Option (A) is the correct answer.
-> सही मिलान: 1-b, 2-d, 3-a, 4-c। -> इसलिए विकल्प (A) बिल्कुल सही है।
Question 1764 NEW
📜 PYQs EASY
Identify the ODD one out from the following SQL commands:
निम्नलिखित SQL कमांड्स में से विषम की पहचान करें:
A
`CREATE`
`CREATE`
B
`ALTER`
`ALTER`
C
`DROP`
`DROP`
D
`INSERT`
`INSERT`
Correct
Solution Breakdown:
-> `CREATE`, `ALTER`, and `DROP` are DDL (Data Definition Language) commands, whereas `INSERT` is a DML (Data Manipulation Language) command. -> Hence, Option (D) is the correct answer.
-> `INSERT` एक DML कमांड है, जबकि बाकी तीनों DDL कमांड्स हैं। -> इसलिए विकल्प (D) बिल्कुल सही है।
Question 1765 NEW
📜 PYQs MEDIUM
Evaluate the following statements: (I) `GRANT` and `REVOKE` belong to DCL (Data Control Language). (II) `COMMIT` and `ROLLBACK` belong to TCL (Transaction Control Language).
निम्नलिखित कथनों का मूल्यांकन करें: (I) `GRANT` और `REVOKE` डेटा कंट्रोल लैंग्वेज (DCL) से संबंधित हैं। (II) `COMMIT` और `ROLLBACK` ट्रांज़ैक्शन कंट्रोल लैंग्वेज (TCL) से संबंधित हैं।
A
Only (I) is true
केवल (I) सत्य है
B
Only (II) is true
केवल (II) सत्य है
C
Both (I) and (II) are true
(I) और (II) दोनों सत्य हैं
Correct
D
Neither (I) nor (II) is true
न तो (I) और न ही (II) सत्य है
Solution Breakdown:
-> Both statements correctly categorize SQL's DCL and TCL commands. -> Hence, Option (C) is the correct answer.
-> दोनों कथन बिल्कुल सही हैं। -> इसलिए विकल्प (C) बिल्कुल सही है।
Question 1766 NEW
📜 PYQs MEDIUM
Evaluate the following statements: (I) `DROP TABLE` is a DDL command that permanently deletes both data and table structure. (II) `UPDATE` is a DDL command used to add new columns to a table.
निम्नलिखित कथनों का मूल्यांकन करें: (I) `DROP TABLE` एक DDL कमांड है जो डेटा और टेबल संरचना दोनों को स्थायी रूप से हटा देता है। (II) `UPDATE` एक DDL कमांड है जिसका उपयोग टेबल में नए कॉलम जोड़ने के लिए किया जाता है।
A
Both (I) and (II) are true
(I) और (II) दोनों सत्य हैं
B
Only (I) is true
केवल (I) सत्य है
Correct
C
Only (II) is true
केवल (II) सत्य है
D
Neither (I) nor (II) is true
न तो (I) और न ही (II) सत्य है
Solution Breakdown:
-> Statement (I) is true. Statement (II) is false because `UPDATE` is a DML command that modifies row data (whereas `ALTER TABLE` adds new columns). -> Hence, Option (B) is the correct answer.
-> कथन (I) सत्य है, जबकि `UPDATE` एक DML कमांड है जो डेटा बदलता है। -> इसलिए विकल्प (B) बिल्कुल सही है।
Question 1767 NEW
📜 PYQs EASY
Which SQL statement is case-insensitive for keywords like `SELECT`, `FROM`, and `WHERE`?
क्या SQL में `SELECT`, `FROM` और `WHERE` जैसे कीवर्ड्स केस-सेंसिटिव होते हैं?
A
Yes, they must always be uppercase
हाँ, वे हमेशा बड़े अक्षरों में होने चाहिए
B
No, SQL keywords are case-insensitive (`select` and `SELECT` work identically)
नहीं, SQL कीवर्ड्स केस-इनसेंसिटिव होते हैं (`select` और `SELECT` एक समान काम करते हैं)
Correct
C
Yes, they must always be lowercase
हाँ, वे हमेशा छोटे अक्षरों में होने चाहिए
D
Only `WHERE` is case-sensitive
केवल `WHERE` केस-सेंसिटिव है
Solution Breakdown:
-> SQL keywords are case-insensitive, though writing them in UPPERCASE (`SELECT`, `FROM`, `WHERE`) is a widely followed best practice for readability. -> Hence, Option (B) is the correct answer.
-> SQL कीवर्ड्स केस-इनसेंसिटिव होते हैं, लेकिन पढ़ने में आसानी के लिए उन्हें बड़े अक्षरों में लिखना अच्छी आदत मानी जाती है। -> इसलिए विकल्प (B) बिल्कुल सही है।
Question 1768 NEW
📜 PYQs MEDIUM
What is a "Subquery" (Nested Query) in SQL?
SQL में "सबक्वेरी" (नेस्टेड क्वेरी) क्या होती है?
A
A query written inside another SQL query (typically enclosed in parentheses `()` inside a `WHERE`, `FROM`, or `SELECT` clause)
किसी दूसरी SQL क्वेरी के अंदर लिखी गई क्वेरी (आमतौर पर कोष्ठक `()` में बंद)
Correct
B
A query that deletes a database
डेटाबेस डिलीट करने वाली क्वेरी
C
A query with syntax errors
सिंटैक्स एरर वाली क्वेरी
D
A backup script
एक बैकअप स्क्रिप्ट
Solution Breakdown:
-> Example: `SELECT name FROM emp WHERE salary > (SELECT AVG(salary) FROM emp);` finds all employees earning above the company average. -> Hence, Option (A) is the correct answer.
-> सबक्वेरी एक क्वेरी के भीतर दूसरी क्वेरी होती है जो जटिल शर्तों को एक ही स्टेटमेंट में हल करने में मदद करती है। -> इसलिए विकल्प (A) बिल्कुल सही है।
Question 1769 NEW
📜 PYQs EASY
Which SQL command is used in MySQL to create a brand-new database named `school_db`?
MySQL में `school_db` नामक एक नया डेटाबेस बनाने के लिए किस SQL कमांड का उपयोग किया जाता है?
A
`NEW DATABASE school_db;`
`NEW DATABASE school_db;`
B
`MAKE DATABASE school_db;`
`MAKE DATABASE school_db;`
C
`CREATE DATABASE school_db;`
`CREATE DATABASE school_db;`
Correct
D
`INSERT DATABASE school_db;`
`INSERT DATABASE school_db;`
Solution Breakdown:
-> `CREATE DATABASE school_db;` creates the database, and `USE school_db;` switches into it so you can start creating tables. -> Hence, Option (C) is the correct answer.
-> नया डेटाबेस बनाने के लिए `CREATE DATABASE` और उसे चुनने के लिए `USE` कमांड का उपयोग होता है। -> इसलिए विकल्प (C) बिल्कुल सही है।
Question 1770 NEW
📜 PYQs MEDIUM
In SQL, which `ALTER TABLE` command correctly removes an existing column named `temp_col` from a table named `users`?
SQL में `users` नामक टेबल से `temp_col` नामक मौजूदा कॉलम को हटाने के लिए कौन सा `ALTER TABLE` कमांड सही है?
A
`ALTER TABLE users DELETE temp_col;`
`ALTER TABLE users DELETE temp_col;`
B
`ALTER TABLE users DROP COLUMN temp_col;`
`ALTER TABLE users DROP COLUMN temp_col;`
Correct
C
`DROP COLUMN temp_col FROM users;`
`DROP COLUMN temp_col FROM users;`
D
`REMOVE COLUMN temp_col FROM users;`
`REMOVE COLUMN temp_col FROM users;`
Solution Breakdown:
-> To delete a column from an existing table, SQL uses `ALTER TABLE table_name DROP COLUMN column_name;`. -> Hence, Option (B) is the correct answer.
-> किसी टेबल से कॉलम हटाने के लिए `ALTER TABLE ... DROP COLUMN ...` का उपयोग किया जाता है। -> इसलिए विकल्प (B) बिल्कुल सही है।
Question 1771 NEW
📜 PYQs MEDIUM
What is the difference between `UNION` and `UNION ALL` in SQL?
SQL में `UNION` और `UNION ALL` के बीच क्या अंतर है?
A
`UNION` combines results from two `SELECT` queries and removes duplicate rows, whereas `UNION ALL` keeps ALL rows including duplicates (and is faster)
`UNION` दो क्वेरी के परिणामों को जोड़कर डुप्लीकेट पंक्तियाँ हटा देता है, जबकि `UNION ALL` डुप्लीकेट सहित सभी पंक्तियों को रखता है और तेज़ होता है
Correct
B
`UNION ALL` deletes both tables
`UNION ALL` दोनों टेबल्स को डिलीट कर देता है
C
`UNION` requires different numbers of columns
`UNION` में अलग-अलग संख्या में कॉलम चाहिए
D
Both work identically
दोनों बिल्कुल एक समान काम करते हैं
Solution Breakdown:
-> Both `UNION` and `UNION ALL` require each `SELECT` statement to have the exact same number of columns with compatible data types. -> Hence, Option (A) is the correct answer.
-> `UNION` डुप्लीकेट हटाता है और `UNION ALL` सभी पंक्तियाँ (डुप्लीकेट सहित) दिखाता है। -> इसलिए विकल्प (A) बिल्कुल सही है।
Question 1772 NEW
📜 PYQs MEDIUM
What is the correct logical order in which SQL clauses are written in a standard `SELECT` statement?
एक मानक SQL `SELECT` स्टेटमेंट में क्लॉज़ लिखने का सही क्रम क्या है?
A
`SELECT -> FROM -> WHERE -> GROUP BY -> HAVING -> ORDER BY`
`SELECT -> FROM -> WHERE -> GROUP BY -> HAVING -> ORDER BY`
Correct
B
`SELECT -> WHERE -> FROM -> ORDER BY -> GROUP BY`
`SELECT -> WHERE -> FROM -> ORDER BY -> GROUP BY`
C
`FROM -> SELECT -> WHERE -> HAVING -> GROUP BY`
`FROM -> SELECT -> WHERE -> HAVING -> GROUP BY`
D
`SELECT -> FROM -> GROUP BY -> WHERE -> ORDER BY`
`SELECT -> FROM -> GROUP BY -> WHERE -> ORDER BY`
Solution Breakdown:
-> Always remember the standard SQL syntax order: `SELECT`, `FROM`, `WHERE`, `GROUP BY`, `HAVING`, `ORDER BY`, `LIMIT`. -> Hence, Option (A) is the correct answer.
-> SQL क्वेरी लिखने का मानक क्रम है: `SELECT -> FROM -> WHERE -> GROUP BY -> HAVING -> ORDER BY`। -> इसलिए विकल्प (A) बिल्कुल सही है।
Question 1773 NEW
📜 PYQs EASY
Which SQL command is used to create a virtual table based on the result of a saved `SELECT` query?
किसी सेव की गई `SELECT` क्वेरी के परिणाम पर आधारित एक वर्चुअल टेबल बनाने के लिए किस SQL कमांड का उपयोग किया जाता है?
A
`CREATE VIEW`
`CREATE VIEW`
Correct
B
`CREATE TABLE`
`CREATE TABLE`
C
`CREATE VIRTUAL`
`CREATE VIRTUAL`
D
`CREATE INDEX`
`CREATE INDEX`
Solution Breakdown:
-> A `VIEW` does not store data physically; it dynamically displays data from underlying base tables—useful for simplifying complex queries and hiding sensitive columns. -> Hence, Option (A) is the correct answer.
-> `VIEW` एक वर्चुअल टेबल है जो जटिल क्वेरी को सरल बनाने और संवेदनशील कॉलम छिपाकर सुरक्षा बढ़ाने में मदद करती है। -> इसलिए विकल्प (A) बिल्कुल सही है।
Question 1774 NEW
📜 PYQs MEDIUM
What is the output of the MySQL query `SELECT 6 MOD 20;`?
MySQL क्वेरी `SELECT 6 MOD 20;` का आउटपुट क्या होगा?
A
`3`
`3`
B
`6`
`6`
Correct
C
`20`
`20`
D
`0`
`0`
Solution Breakdown:
-> `MOD` returns the remainder of integer division. When `6` is divided by `20`, the quotient is `0` and the remainder is `6`. -> Hence, Option (B) is the correct answer.
-> `6` को `20` से भाग देने पर भागफल `0` और शेषफल `6` बचता है, इसलिए आउटपुट `6` होगा। -> इसलिए विकल्प (B) बिल्कुल सही है।
Question 1775 NEW
📜 PYQs EASY
In MySQL, which clause is used at the end of a `SELECT` query to restrict the maximum number of rows returned (e.g., showing only the Top 5 scores)?
MySQL में किसी `SELECT` क्वेरी द्वारा लौटाई जाने वाली पंक्तियों की अधिकतम संख्या को सीमित करने (जैसे केवल टॉप 5 स्कोर दिखाने) के लिए किस क्लॉज़ का उपयोग किया जाता है?
A
`TOP`
`TOP`
B
`LIMIT`
`LIMIT`
Correct
C
`MAXROWS`
`MAXROWS`
D
`STOP`
`STOP`
Solution Breakdown:
-> Example: `SELECT * FROM students ORDER BY marks DESC LIMIT 5;` returns only the top 5 highest-scoring students in MySQL. -> Hence, Option (B) is the correct answer.
-> MySQL में आउटपुट पंक्तियों की संख्या सीमित करने के लिए `LIMIT` क्लॉज़ का उपयोग किया जाता है। -> इसलिए विकल्प (B) बिल्कुल सही है।
Prev 69 70 71 72 73 Next
ESSENTIAL STUDY KIT

Master Computer PYQs Faster with Recommended Resources

Pair your daily MCQ practice with these educator-picked books, practice sets, and typing gear tailored for this syllabus.

Visit Exam Store
Dell KB216 Wired Multimedia USB Keyboard (Black)
Typing Keyboards Best for Mangal Typing Amazon
Dell KB216 Wired Multimedia USB Keyboard (Black)

Soft chiclet keys and zero lag — the best keyboard for UPP Computer Operator and DSSSB 40+ WPM Hindi/English typing tests.

₹299 ₹999 70% OFF
Affiliate Disclosure: HappyQuiz may earn a small commission on qualifying purchases at no extra cost to you.
Saved to your dashboard!