Q5) Based on the table below, how many columns and records will be retrieved after executing the following SQL statement: Employee EID 001 002 003 004 005 006 Name Ahmad Ali Sameh Salem Huda Ali Department CS CIS CIS BIT SC BIT a) 2 columns and 4 records b) 2 columns and 1 record c) 2 columns and 3 records d) 2 columns and 2 records Select Name, count (distinct EID) as Total from employee where Name LIKE '%rn%' group by Name order by EID;

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
Q8) Which option represent the relations that will result from mapping the following ERD:
Instructor
Lec ID
name
Semester
Teaches
Lecture
Year
Course ID
Lec_Course
a) Instructor (ID, Name)
Teaches (ID, Course ID, Lec ID, Semester, Year)
Lecture (Course ID, Lec ID, Semester, Year)
Course (Course ID, Title, Credits)
b) Instructor (ID, Name)
Teaches (ID, Course ID, Lec ID, Semester, Year)
Lecture (Course ID, Lec ID, Semester, Year)
Course (Course ID, Title, Credits, Pre-Rea)
c) Instructor (ID, Name)
Teaches (ID, Course ID, Lec ID, Semester, Year)
Lecture (Course ID, Lec ID, Semester, Year)
Course (Course ID, Title, Credits)
Pre_Req (Course_ID, Prereq_ID)
d) Instructor (ID, Name)
Teaches (ID, Course ID, Lec ID, Semester, Year)
Lecture (Course ID, Lec ID, Semester, Year)
Course (Course ID, Title, Credits)
Pre_Req (Course ID, Prereq_ID)
Title
Course_ID
Credits
Course
Pre_Req
Prereq_ID
Transcribed Image Text:Q8) Which option represent the relations that will result from mapping the following ERD: Instructor Lec ID name Semester Teaches Lecture Year Course ID Lec_Course a) Instructor (ID, Name) Teaches (ID, Course ID, Lec ID, Semester, Year) Lecture (Course ID, Lec ID, Semester, Year) Course (Course ID, Title, Credits) b) Instructor (ID, Name) Teaches (ID, Course ID, Lec ID, Semester, Year) Lecture (Course ID, Lec ID, Semester, Year) Course (Course ID, Title, Credits, Pre-Rea) c) Instructor (ID, Name) Teaches (ID, Course ID, Lec ID, Semester, Year) Lecture (Course ID, Lec ID, Semester, Year) Course (Course ID, Title, Credits) Pre_Req (Course_ID, Prereq_ID) d) Instructor (ID, Name) Teaches (ID, Course ID, Lec ID, Semester, Year) Lecture (Course ID, Lec ID, Semester, Year) Course (Course ID, Title, Credits) Pre_Req (Course ID, Prereq_ID) Title Course_ID Credits Course Pre_Req Prereq_ID
Q5) Based on the table below, how many columns and records will be retrieved after executing the
following SQL statement:
Employee
EID
001
002
003
004
005
006
Name
Ahmad
Ali
Sameh
Salem
Huda
Ali
a) 2 columns and 4 records
b) 2 columns and 1 record
Department
c) 2 columns and 3 records
d) 2 columns and 2 records
P Name
CS
CIS
CIS
BIT
SC
BIT
Project
a)
2 Attributes
b) 5 Attributes
c) 3 Attributes
d) 4 Attributes
Q6) After mapping the following ERD, how many attributes the Employee entity will have?
Location
Select Name, count (distinct EID) as Total
from employee
where Name LIKE '%rn%'
Works
group by Name
order by EID;
ID
Employee
Supervise
Name
Transcribed Image Text:Q5) Based on the table below, how many columns and records will be retrieved after executing the following SQL statement: Employee EID 001 002 003 004 005 006 Name Ahmad Ali Sameh Salem Huda Ali a) 2 columns and 4 records b) 2 columns and 1 record Department c) 2 columns and 3 records d) 2 columns and 2 records P Name CS CIS CIS BIT SC BIT Project a) 2 Attributes b) 5 Attributes c) 3 Attributes d) 4 Attributes Q6) After mapping the following ERD, how many attributes the Employee entity will have? Location Select Name, count (distinct EID) as Total from employee where Name LIKE '%rn%' Works group by Name order by EID; ID Employee Supervise Name
Expert Solution
steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY