多选题Which are DML statements?()ACOMMITBMERGECUPDATEDDELETEECREATEFDROP...

题目
多选题
Which are DML statements?()
A

COMMIT

B

MERGE

C

UPDATE

D

DELETE

E

CREATE

F

DROP...


相似考题
更多“Which are DML statements?()”相关问题
  • 第1题:

    多选题
    From SQL*Plus, you issue this SELECT statement: SELECT* FROM order; You use this statement to retrieve data from a data table for ().
    A

    Updating

    B

    Viewing

    C

    Deleting

    D

    Inserting

    E

    Truncating


    正确答案: E,B
    解析: 暂无解析

  • 第2题:

    单选题
    Evaluate this SQL statement: SELECT ename, sal, 12* sal+100 FROM emp; The SAL column stores the monthly salary of the employee. Which change must be made to the above syntax to calculate the annual compensation as "monthly salary plus a monthly bonus of $100, multiplied by 12"?()
    A

    No change is required to achieve the desired results.

    B

    SELECT ename, sal, 12* (sal+100) FROM emp;

    C

    SELECT ename, sal, (12* sal)+100 FROM emp;

    D

    SELECT ename, sal +100,*12 FROM emp;


    正确答案: B
    解析: 暂无解析

  • 第3题:

    多选题
    The CUSTOMERS table has these columns: CUSTOMER_ID NUMBER(4) NOT NULL CUSTOMER_NAME VARCHAR2(100) NOT NULL STREET_ADDRESS VARCHAR2(150) CITY_ADDRESS VARCHAR2(50) STATE_ADDRESS VARCHAR2(50) PROVINCE_ADDRESS VARCHAR2(50) COUNTRY_ADDRESS VARCHAR2(50) POSTAL_CODE VARCHAR2(12) CUSTOMER_PHONE VARCHAR2(20) The CUSTOMER_ID column is the primary key for the table. Which two statements find the number of customers?()
    A

    SELECT TOTAL(*) FROM customer;

    B

    SELECT COUNT(*) FROM customer;

    C

    SELECT TOTAL(customer_id) FROM customer;

    D

    SELECT COUNT(customer_id) FROM customer;

    E

    SELECT COUNT(customers) FROM customer;

    F

    SELECT TOTAL(customer_name) FROM customer;


    正确答案: A,F
    解析: 暂无解析

  • 第4题:

    单选题
    The EMP table has these columns: ENAME VARCHAR2(35) SALARY NUMBER(8,2) HIRE_DATE DATE Management wants a list of names of employees who have been with the company for more than five years. Which SQL statement displays the required results?()
    A

    SELECT ENAME FROM EMP WHERE SYSDATE-HIRE_DATE >5;

    B

    SELECT ENAME FROM EMP WHERE HIRE_DATE-SYSDATE >5;

    C

    SELECT ENAME FROM EMP WHERE (SYSDATE_HIRE_DATE)/365 >5;

    D

    SELECT ENAME FROM EMP WHERE (SYSDATE_HIRE_DATE)*/365 >5;


    正确答案: C
    解析: 暂无解析

  • 第5题:

    单选题
    Examine the structure of the EMPLOYEES table: EMPLOYEE_ID NUMBER NOT NULL EMP_NAME VARCHAR2(30) JOB_ID VARCHAR2(20) SAL NUMBER MGR_ID NUMBER DEPARTMENT_ID NUMBER You want to create a SQL script file that contains an INSERT statement. When the script is run, the INSERT statement should insert a row with the specified values into the EMPLOYEES table. The INSERT statement should pass values to the table columns as specified below: EMPLOYEE_ID: Next value from the sequence EMP_ID_SEQ EMP_NAME and JOB_ID: As specified by the user during run time, through substitution variables SAL: 2000 MGR_ID: No value DEPARTMENT_ID: Supplied by the user during run time through substitution variable. The INSERT statement should fail if the user supplies a value other than 20 or 50. Which INSERT statement meets the above requirements?()
    A

    INSERT INTO employees VALUES (emp_id_seq.NEXTVAL, '&ename', '&jobid', 2000, NULL, &did);

    B

    INSERT INTO employees VALUES (emp_id_seq.NEXTVAL, '&ename', '&jobid', 2000, NULL, &did IN (20,50));

    C

    INSERT INTO (SELECT * FROM employees WHERE department_id IN (20,50)) VALUES  (emp_id_seq.NEXTVAL, '&ename', '&jobid', 2000, NULL, &did);

    D

    INSERT INTO (SELECT * FROM employees WHERE department_id IN (20,50) WITH CHECK OPTION) VALUES (emp_id_seq.NEXTVAL, '&ename', '&jobid', 2000, NULL, &did);

    E

    INSERT INTO (SELECT * FROM employees WHERE (department_id = 20 AND department_id = 50) WITH CHECK OPTION ) VALUES (emp_id_seq.NEXTVAL, '&ename', '&jobid', 2000, NULL, &did);


    正确答案: A
    解析: 暂无解析

  • 第6题:

    多选题
    Examine the data from the EMP table: EMP_ID DEPT_ID COMMISSION 1 10 500 2 20 1000 3 10 4 10 600 5 30 800 6 30 200 7 10 8 20 300 The COMMISSION column shows the monthly commission earned by the employee. Which three tasks would require subqueries or joins in order to perform in a single step? ()
    A

    Deleting the records of employees who do not earn commission.

    B

    Increasing the commission of employee 3 by the average commission earned in department 20.

    C

    Finding the number of employees who do NOT earn commission and are working for department 20.

    D

    Inserting into the table a new employee 10 who works for department 20 and earns a commission that is equal to the commission earned by employee 3.

    E

    Creating a table called COMMISSION that has the same structure and data as the columns EMP_ID and COMMISSIONS of the EMP table.

    F

    Decreasing the commission by 150 for the employees who are working in department 30 and earning a commission of more then 800.


    正确答案: E,C
    解析: 暂无解析

  • 第7题:

    多选题
    Which two are character manipulation functions? ()
    A

    TRIM

    B

    REPLACE

    C

    TRUNC

    D

    TO_DATE

    E

    MOD

    F

    CASE


    正确答案: E,B
    解析: 暂无解析

  • 第8题:

    单选题
    In which scenario would an index be most useful?()
    A

    The indexed column is declared as NOT NULL.

    B

    The indexed columns are used in the FROM clause.

    C

    The indexed columns are part of an expression.

    D

    The indexed column contains a wide range of values.


    正确答案: A
    解析: 暂无解析

  • 第9题:

    多选题
    Evaluate the SQL statement DROP TABLE DEPT: Which four statements are true of the SQL statement? ()
    A

    You cannot roll back this statement.

    B

    All pending transactions are committed.

    C

    All views based on the DEPT table are deleted.

    D

    All indexes based on the DEPT table are dropped.

    E

    All data in the table is deleted, and the table structure is also deleted.

    F

    All data in the table is deleted, but the structure of the table is retained.

    G

    All synonyms based on the DEPT table are deleted.


    正确答案: C,E
    解析: 暂无解析

  • 第10题:

    单选题
    What does the FORCE option for creating a view do?()
    A

    creates a view with constraints

    B

    creates a view even if the underlying parent table has constraints

    C

    creates a view in another schema even if you don't have privileges

    D

    creates a view regardless of whether or not the base tables exist


    正确答案: C
    解析: 暂无解析

  • 第11题:

    单选题
    In which scenario would TOP N analysis be the best solution?()
    A

    You want to identify the most senior employee in the company.

    B

    You want to find the manager supervising the largest number of employees.

    C

    You want to identify the person who makes the highest salary for all employees.

    D

    You want to rank the top three sales representatives who have sold the maximum number of products.


    正确答案: B
    解析: 暂无解析

  • 第12题:

    单选题
    Which operator can be used with a multiple-row subquery? ()
    A

    =

    B

    LIKE

    C

    BETWEEN

    D

    NOT IN

    E

    IS

    F

    <>


    正确答案: D
    解析: 暂无解析

  • 第13题:

    单选题
    In a SELECT statement that includes a WHERE clause, where is the GROUP BY clause placed in the SELECT statement?()
    A

    Immediately after the SELECT clause

    B

    Before the WHERE clause

    C

    Before the FROM clause

    D

    After the ORDER BY clause

    E

    After the WHERE clause


    正确答案: E
    解析: 暂无解析

  • 第14题:

    单选题
    In which case would you use a FULL OUTER JOIN?()
    A

    Both tables have NULL values.

    B

    You want all unmatched data from one table.

    C

    You want all matched data from both tables.

    D

    You want all unmatched data from both tables.

    E

    One of the tables has more data than the other.

    F

    You want all matched and unmatched data from only one table.


    正确答案: D
    解析: 暂无解析

  • 第15题:

    单选题
    A subquery can be used to ().
    A

    Create groups of data

    B

    Sort data in a specific order

    C

    Convert data to a different format

    D

    Retrieve data based on an unknown condition


    正确答案: C
    解析: 暂无解析

  • 第16题:

    多选题
    In which three cases would you use the USING clause?()
    A

    You want to create a nonequijoin.

    B

    The tables to be joined have multiple NULL columns.

    C

    The tables to be joined have columns of the same name and different data types.

    D

    The tables to be joined have columns with the same name and compatible data types.

    E

    You want to use a NATURAL join, but you want to restrict the number of columns in the join condition.


    正确答案: C,B
    解析: 暂无解析

  • 第17题:

    单选题
    Examine the structure of the EMPLOYEES table: Column name Data type Remarks EMPLOYEE_ID NUMBER NOT NULL, Primary Key LAST_NAME VARCNAR2(30) FIRST_NAME VARCNAR2(30) JOB_ID NUMBER SAL NUMBER MGR_ID NUMBER References EMPLOYEE_ID column DEPARTMENT_ID NUMBER You need to create an index called NAME_IDX on the first name and last name fields of the EMPLOYEES table. Which SQL statement would you use to perform this task?()
    A

    CREATE INDEX NAME _IDX (first_name, last_name);

    B

    CREATE INDEX NAME _IDX (first_name, AND last_name)

    C

    CREATE INDEX NAME_IDX ON (First_name, last_name);

    D

    CREATE INDEX NAME_IDX ON employees (First_name, AND last_name);

    E

    CREATE INDEX NAME_IDX ON employees (First_name, last_name);

    F

    CREATE INDEX NAME_IDX FOR employees (First_name, last_name);


    正确答案: C
    解析: 暂无解析

  • 第18题:

    多选题
    When should you create a role? ()
    A

    To simplify the process of creating new users using the CREATE USER xxx IDENTIFIED by yyy statement.

    B

    To grant a group of related privileges to a user.

    C

    When the number of people using the database is very high.

    D

    To simplify the process of granting and revoking privileges.

    E

    To simplify profile maintenance for a user who is constantly traveling.


    正确答案: E,A
    解析: 暂无解析

  • 第19题:

    单选题
    User Mary has a view called EMP_DEPT_LOC_VU that was created based on the EMPLOYEES, DEPARTMENTS, and LOCATIONS tables. She has the privilege to create a public synonym, and would like to create a synonym for this view that can be used by all users of the database. Which SQL statement can Mary use to accomplish that task?()
    A

    CREATE PUBLIC SYNONYM EDL_VU ON emp_dept_loc_vu

    B

    CREATE PUBLIC SYNONYM EDL:VU FOR mary (emp_dept_loc_vu);

    C

    CREATE PUBLIC SYNONYM EDL_VU FOR emp _dept_loc_vu;

    D

    CREATE SYNONYM EDL_VU ON emp_dept_loc_vu FOR EACH USER;

    E

    CREATE SYNONYM EDL_VU FOR EACH USER ON emp_dept_loc_vu

    F

    CREATE PUBLIC SYNONYM EDL_VU ON emp_dept_loc_vu FOR ALL USERS;


    正确答案: A
    解析: 暂无解析

  • 第20题:

    单选题
    Which SQL statement generates the alias Annual Salary for the calculated column SALARY*12?()
    A

    SELECT ename, salary*12 'Annual Salary' FROM employees;

    B

    SELECT ename, salary*12 Annual Salary FROM employees;

    C

    SELECT ename, salary*12 AS Annual Salary FROM employees;

    D

    SELECT ename, salary*12 AS INITCAP(ANNUAL SALARY) FROM employees


    正确答案: A
    解析: 暂无解析

  • 第21题:

    单选题
    Which statement correctly describes SQL and /SQL*Plus? ()
    A

    Both SQL and /SQL*plus allow manipulation of values in the database.

    B

    /SQL* Plus recognizes SQL satement and sends them to the server; SQL is the Oracle proprietary interface for executing SQL statements.

    C

    /SQL* Plus language for communicating with the Oracle server to access data; SQL recognizes SQL statements and sends them to the server.

    D

    /SQL manipulates data and table definition in the database; /SQL* Plus does not allow manipulation of values in the database.


    正确答案: C
    解析: 暂无解析

  • 第22题:

    单选题
    Which statement describes the ROWID data type? ()
    A

    Binary data up to 4 gigabytes.

    B

    Character data up to 4 gigabytes.

    C

    Raw binary data of variable length up to 2 gigabytes.

    D

    Binary data stored in an external file, up to 4 gigabytes.

    E

    A hexadecimal string representing the unique address of a row in its table.


    正确答案: A
    解析: 暂无解析

  • 第23题:

    单选题
    Examine the structure of the EMPLOYEES and DEPARTMENTS tables: EMPLOYEES EMPLOYEE_ID NUMBER DEPARTMENT_ID NUMBER MANAGER_ID NUMBER LAST_NAME VARCHAR2(25) DEPARTMENTS DEPARTMENT_ID NUMBER MANAGER_ID NUMBER DEPARTMENT_NAME VARCHAR2(35) LOCATION_ID NUMBER You want to create a report displaying employee last names, department names, and locations. Which query should you use?()
    A

    SELECT e.last_name, d. department_name, d.location_id FROM employees e NATURAL JOIN departments D USING department_id ;

    B

    SELECT last_name, department_name, location_id FROM employees NATURAL JOIN departments WHERE e.department_id =d.department_id;

    C

    SELECT e.last_name, d.department_name, d.location_id FROM employees e NATURAL JOIN departments d;

    D

    SELECT e.last_name, d.department_name, d.location_id FROM employees e JOIN departments d USING (department_id );


    正确答案: B
    解析: 暂无解析

  • 第24题:

    单选题
    The STUDENT_GRADES table has these columns: STUDENT_ID NUMBER(12) SEMESTER_END DATE GPA NUMBER(4,3) Which statement finds the highest grade point average (GPA) per semester?()
    A

    SELECT MAX (gpa) FROM student _ grades WHERE gpa IS NOT NULL;

    B

    SELECT (gpa) FROM student _ grades GROUP BY semester_end WHERE gpa IS NOT NULL;

    C

    SELECT MAX (gpa) FROM student _ grades WHERE gpa IS NOT NULL GROUP BY semester_end;

    D

    SELECT MAX (gpa) GROUP BY semester_end WHERE gpa IS NOT NULL FROM student _ grades;

    E

    SELECT MAX (gpa) FROM student _ grades GROUP BY semester_end WHERE gpa IS NOT NULL;


    正确答案: A
    解析: 暂无解析