All Exams Test series for 1 year @ ₹349 only
Question

Which of the following command can be used to modify data in an SQL Table?

A. INSERT

B. DELETE

C. UPDATE

D. SELECT

Choose the correct answer from the options given below:

This question was previously asked in
UGC NET 2024 Computer Science and Applications Question Paper (23-Aug-2024) (Shift 1)
The correct answer is

A, B, C only

SQL commands that change the rows stored in a table belong to the Data Manipulation Language (DML) write operations. Modifying the data of a table means adding, removing or changing its rows.

A. INSERT adds new rows to a table, so it changes the data held in the table.

B. DELETE removes existing rows that satisfy a condition, so it also changes the table's data.

C. UPDATE changes the values of columns in existing rows, the most direct form of modification.

D. SELECT only retrieves rows and returns a result set; it never alters the stored table (it is a query, not a modification).

Hence INSERT, DELETE and UPDATE modify data, and every combination that includes SELECT (or leaves out INSERT or DELETE) is wrong.

A, B, C only option is correct.

Was this answer helpful?

Similar Questions

  1. Match the following :

    List - IList - II
    a. DDLi. LOCK TABLE
    b. DMLii. COMMIT
    c. TCLiii. Natural Difference
    d. BINARY Operationiv. REVOKE

    Codes :

  2. Suppose ORACLE relation R(A, B) currently has tuples {(1, 2), (1, 3), (3, 4)} and relation S(B, C) currently has {(2, 5), (4, 6), (7, 8)}. Consider the following two SQL queries SQ1 and SQ2 :

    SQ1 : Select *

        From R Full Join S

        On R.B = S.B;

    SQ2 : Select *

        From R Inner Join S

        On R.B = S.B;

    The numbers of tuples in the result of the SQL query SQ1 and the SQL query SQ2 are given by :

  3. Consider the following three SQL queries (Assume the data in the people table) :

    (a) Select Name from people where Age>21;

    (b) Select Name from people where Height>180;

    (c) Select Name from people where (Age>21) or (Height>180);

    If the SQL queries (a) and (b) above, return 10 rows and 7 rows in the result set respectively, then what is one possible number of rows returned by the SQL query (c) ?

  4. Consider the following relation :

    Works (emp_name, company_name, salary)

    Here, emp_name is primary key.

    Consider the following SQL query

        Select emp_name

        From works T

        where salary > (select avg (salary)

                        from works S

                        where T.company _ name =

                            S.company _ name)

    The above query is for following :

  5. Consider a “CUSTOMERS” database table having a column “CITY” filled with all the names of Indian cities (in capital letters). The SQL statement that finds all cities that have “GAR” somewhere in its name, is :

  6. The STUDENT information in a university stored in the relation STUDENT (Name, SEX, Marks, DEPT_Name)

    Consider the following SQL Query SELECT DEPT_Name from STUDENT where SEX = ‘M’ group by DEPT_Name having avg (Marks)>SELECT avg (Marks) from STUDENT. It Returns the Name of the Department for which :

  7. An Assertion is a predicate expressing a condition we wish database to always satisfy. The correct syntax for Assertion is :

  8. Consider the following ORACLE relations :

    R (A, B, C) = {<1, 2, 3>, <1, 2, 0>, <1, 3, 1>, <6, 2, 3>, <1, 4, 2>, <3, 1, 4> }

    S (B, C, D) = {<2, 3, 7>, <1, 4, 5>, <1, 2, 3>, <2, 3, 4>, <3, 1, 4>}.

    Consider the following two SQL queries SQ1 and SQ2 :

    SQ1 : SELECT R⋅B, AVG (S⋅B)

          FROM R, S

          WHERE R⋅A = S⋅C AND S⋅D < 7

          GROUP BY R⋅B;

    SQ2 : SELECT DISTINCT S⋅B, MIN (S⋅C)

          FROM S

          GROUP BY S⋅B

          HAVING COUNT (DISTINCT S⋅D) > 1;

    If M is the number of tuples returned by SQ1 and N is the number of tuples returned by SQ2 then

  9. Which of the following queries would retrieve the roll number and names of students who have enrolled for all the prerequisite courses of the course number 324?

  10. Given query: select s.rollno from students where s.sex = ALL (select f.sex from professor f where f.empid = s.advisor)

    Consider the following statements about the given query that retrieves the set of all students whose gender is same as the gender of their advisor:

    S1. It has a correlated subquery

    S2. It has an uncorrelated subquery

    S3. If we replace ALL by ANY in the above query, its result will be different

    S4. If we replace ALL by ANY in the above query, its result will be same.

    Identify all the statement that are TRUE:


Important Questions from SQL

  1. Let Account be a relation as shown. 

                                                                                                             Account

    AccNoBalance
    A15000
    A25000
    A310000
    A415000
    A518000

    Consider the given SQL query.

    SELECT AccNo FROM Account AS A 

    WHERE (SELECT COUNT(*) FROM Account AS B  

    WHERE A.Balance < B.Balance) >= (SELECT COUNT(*)  

    FROM Account AS C WHERE A.Balance > C.Balance)

    The number of rows returned by the SQL query is __________ . (Answer in integer)

  2. Consider the following two tables named Raider and Team in a relational database maintained by a Kabaddi league. The attribute ID in table Team references the primary key of the Raider table, ID.

    Raider
    IDNameRaidsRaidPoints
    1Arjun200250
    2Ankush190219
    3Sunil150200
    4Reza150190
    5Pratham175220
    6Gopal193215
    Team
    CityIDBidPoints
    Jaipur2200
    Patna3195
    Hyderabad5175
    Jaipur1250
    Patna4200
    Jaipur6200

    The SQL query described below is executed on this database: 

    SELECT * 

    FROM Raider, Team 

    WHERE Raider.ID=Team.ID AND City="Jaipur" AND 

    RaidPoints > 200; 

    The number of rows returned by this query is ________.

  3. On a relation named Loan of a bank:
     

                             LOAN
    loan_numberbranch_nameamount
    L11Banjara Hills90000
    L14Kondapur50000
    L15SR Nagar40000
    L22SR Nagar25000
    L23Balanagar80000
    L25Kondapur70000
    L19SR Nagar65000


    the following SQL query is executed.
    SELECT L1.loan_number
    FROM Loan L1
    WHERE L1.amount > (SELECT MAX (L2.amount)
                                       FROM Loan L2
                                       WHERE L2.branch_name = 'SR Nagar');
    The number of rows returned by the query is ____________ (Answer in integer)

  4. Consider the following two commands C1 and C2 on the relation R from an SQL database :
    C1 : drop table R;
    C2 : delete from R;
    Which of the following statements is TRUE ?
    I. Both C1 and C2 delete the schema for R.
    II. C2 retains relation R, but deletes all tuples in R.
    III. C1 deletes not only all tuples of R, but also the schema for R.
  5. Which of the following is NOT a Structured Query Language Data type?

Need Expert Advice?
Upcoming Exams
CTET
December 12, 2026
WB SET
December 13, 2026
CBSE UGC NET
December 14, 2026
CSIR UGC NET
December 19, 2026
Test Series
UGC NET img
Teaching
UGC NET (Paper 2) December 2026 Mock Test Series
799 Tests 2 Tests Free
300 Attempts
4.4(45)
English, Hindi
More Questions from UGC NET

Start Your Preparation with Prepp Mobile App

Download the app from Google Play & App Store
Download the app from Google Play & App Store
Prepp Mobile App