Database  Q1: Which one of the following INSERT statements will successfully insert a single row? The following table has been created: CREATE TABLE student_table ( stud_id NUMBER (6), last_name VARCHAR2 (20), first_name VARCHAR2 (20), lunch_num NUMBER (4) ; a) INSERT VALUES INTO student_table (143354, ‘Roberts’, ‘Cameron’, 6543); b) INSERT INTO student_table COLMUNS (stud_id, last_name, lunch_num) VALUES (143352, ‘Roberts’, 5543, ‘Cameron’); c) INSERT TO student_table (stud_id, lunch_num, first_name, last_name) VALUES (143352, 6543, ‘Cameron’, ‘Roberts’); d) INSERT INTO student_table VALUES

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

Database 

Q1:

Which one of the following INSERT statements will successfully insert a single row?

The following table has been created:

CREATE TABLE student_table (

stud_id NUMBER (6),

last_name VARCHAR2 (20),

first_name VARCHAR2 (20),

lunch_num NUMBER (4) ;

a) INSERT VALUES INTO student_table (143354, ‘Roberts’, ‘Cameron’, 6543);

b) INSERT INTO student_table COLMUNS (stud_id, last_name, lunch_num) VALUES (143352,

‘Roberts’, 5543, ‘Cameron’);

c) INSERT TO student_table (stud_id, lunch_num, first_name, last_name) VALUES (143352, 6543,

‘Cameron’, ‘Roberts’);

d) INSERT INTO student_table VALUES (143354, ‘Roberts’, ‘Cameron’, 6543);

Q2:

What does the following SQL statement display:

SELECT EMP_ID, LAST_NAME, SALARY

FROM EMPLOYEES WHERE

SALARY > (SELECT MIN (E. SALARY)

FROM EMPLOYEES E)

ORDER BY SALARY DESC;

a) Employees information who earn less money than the maximum salary

b) Employees information who earn more money than the highest employee salary

c) Employees information who earn more money than the average salary

d) Employees information who earn less money than the minimum employee

e) Employees information who earn more money than the least employee salary

Q3:

In SQL, we can write DDL and DML statements inside stored procedures:

Select one:

a) True

b) False

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
SQL Functions
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education