If v is a scalar and R is a relation, which statement holds? Select one:

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
If v is a scalar and R is a relation, which
statement holds?
Select one:
a. All of the above are true
O b. v < ALL R means V is the minimum
value in R
С.
v != ALL R means V not in R
O d.
V = ALL R means V in R
Students
Roster
name
lastname
age
ID
ID
major absence
rim
ismail
19
123
123 EE
4.
sara
kamel
18
134
134 EE
7
milad
ghantous
21
1345
1345 CCE
2
tarek
dib
18 12345
12345 ME
4
Complete the query that finds all student
names and last names for those who are 18
years old and they're registered in EE major.
Select one:
SELECT name,lastname FROM students
WHERE age=18 AND ID IN (SELECT ID
FROM roster WHERE major='EE')
SELECT ID FROM students WHERE ID IN
(SELECT ID FROM roster WHERE major
='EE')
SELECT name, lastname FROM students
WHERE age=D18 and ID= SELECT ID from
roster WHERE major='EE')
Transcribed Image Text:If v is a scalar and R is a relation, which statement holds? Select one: a. All of the above are true O b. v < ALL R means V is the minimum value in R С. v != ALL R means V not in R O d. V = ALL R means V in R Students Roster name lastname age ID ID major absence rim ismail 19 123 123 EE 4. sara kamel 18 134 134 EE 7 milad ghantous 21 1345 1345 CCE 2 tarek dib 18 12345 12345 ME 4 Complete the query that finds all student names and last names for those who are 18 years old and they're registered in EE major. Select one: SELECT name,lastname FROM students WHERE age=18 AND ID IN (SELECT ID FROM roster WHERE major='EE') SELECT ID FROM students WHERE ID IN (SELECT ID FROM roster WHERE major ='EE') SELECT name, lastname FROM students WHERE age=D18 and ID= SELECT ID from roster WHERE major='EE')
What is the output of the following query?
SELECT Eid FROM Employee WHERE Eid
NOT EXIST (SELECT Eid FROM Employee
WHERE Did = 15);
%3D
Employee
Salarycode
Ename
Did
Eid
Ephone
Samer
15
23
2345
70092485
Sarah
13
12
5088
71092246
Ahmad
4
26
7712
03099348
Jalal
15
22
9664
76093148
Elie
8
23
3054
70092729
Fadi
24
2976
03091945
Layal
21
4490
71099380
Select one:
a. (5088, 7712, 3054, 2976, 4490)
O b. Empty Table
O c. (2345,9664)
O d. Wrong SQL Syntax
Write a corresponding query to increase the
prices of Coke Zero to 1250 at Spinneys
Supermarket
Drink
Price
Spinneys
Coke Zero
750
TSC
Coke Zero
1000
Spinneys
Pepsi Max
750
TSC
Mr. Juicy
500
Fahd
Coke Zero
1000
Spinneys
Mr. Juicy
750
Select one:
O a. Insert into supermarket (Supermarket,
Drink, Price) values (Spinneys, Coke Zero,
1250)
O b. Insert into supermarket values
(Spinneys, Coke Zero, 1250)
O c. Update supermarket (Supermarket,
Drink, Price) set Price=1250 where
Supermarket="Spinneys"
O d. Update supermarket set Price=1250
where Supermarket="Spinneys"
Transcribed Image Text:What is the output of the following query? SELECT Eid FROM Employee WHERE Eid NOT EXIST (SELECT Eid FROM Employee WHERE Did = 15); %3D Employee Salarycode Ename Did Eid Ephone Samer 15 23 2345 70092485 Sarah 13 12 5088 71092246 Ahmad 4 26 7712 03099348 Jalal 15 22 9664 76093148 Elie 8 23 3054 70092729 Fadi 24 2976 03091945 Layal 21 4490 71099380 Select one: a. (5088, 7712, 3054, 2976, 4490) O b. Empty Table O c. (2345,9664) O d. Wrong SQL Syntax Write a corresponding query to increase the prices of Coke Zero to 1250 at Spinneys Supermarket Drink Price Spinneys Coke Zero 750 TSC Coke Zero 1000 Spinneys Pepsi Max 750 TSC Mr. Juicy 500 Fahd Coke Zero 1000 Spinneys Mr. Juicy 750 Select one: O a. Insert into supermarket (Supermarket, Drink, Price) values (Spinneys, Coke Zero, 1250) O b. Insert into supermarket values (Spinneys, Coke Zero, 1250) O c. Update supermarket (Supermarket, Drink, Price) set Price=1250 where Supermarket="Spinneys" O d. Update supermarket set Price=1250 where Supermarket="Spinneys"
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
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