...
ER-Model
August 29, 2024
Database-Management-System
August 29, 2024
ER-Model
August 29, 2024
Database-Management-System
August 29, 2024

Database-Management-System

Question 565
Given a Relation POSITION (Posting- No, Skill), then query to retrieve all distinct pairs of posting-nos. requiring skill is
A
Select p.posting-No, p.posting No from position p where p.skill = p.skilland p.posting-No < p.posting-No
B
Select p1.posting-No, p2.posting- No from position p1, position p2 where p1.skill = p2.skill
C
Select p1.posting-No, p2posting-No from position p1, position p2 where p1.skill = p2.skill
and p1.posting-No < p2.posting-No
D
Select p1.posting-No, p2.posting- No from position p1, position p2 where p1.skill = p2.skill
and p1.posting-No = p2.posting-No
Question 565 Explanation: 
Option (A) is incorrect because No self join is not possible without aliasing. Without aliasing it will through an error.
Option(B) is not correct because it is not resulting into distinct pairs of posting-nos.


Correct Answer: C
Question 565 Explanation: 
Option (A) is incorrect because No self join is not possible without aliasing. Without aliasing it will through an error.
Option(B) is not correct because it is not resulting into distinct pairs of posting-nos.


0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x
error: Alert: Content selection is disabled!!