Excellent, The relational algebra expression σ 1=1 (INSTRUCTOR) is equivalent to σ True(INSTRUCTOR). Since the condition 1=1 is always true, the Selection operator returns all tuples in the INSTRUCTOR table 1.
@nigelthornberry0078 ай бұрын
@@HugeCraziness Thank you for the explanation!!
@VimuThe5ifer7 ай бұрын
in the second question, what if σ Salary > 50000 ^ Salary < 75000 (INSTRUCTOR) it's between 50000 and 75000, does it need to be "Salary ≥ 50000 ^ Salary ≤ 75000"🤔 Tell me if I'm wrong
@kharris2747 ай бұрын
@@VimuThe5ifer then the "Salary = 50000" and "Salary = 75000" won't be included
@VimuThe5ifer7 ай бұрын
@@kharris274 yeah I know, but in the question it doesn't mention that it should include 50000 and 75000. it says 'salary between 50K and 75K'. If you got this question for an exam or something, What should be the correct answer🤔🤔 these kind of questions confuses me
@HugeCraziness8 ай бұрын
The relational algebra expression σ 1=1 (INSTRUCTOR) is equivalent to σ True(INSTRUCTOR). Since the condition 1=1 is always true, the Selection operator returns all tuples in the INSTRUCTOR table 1.
@vaaipuillaraja31316 ай бұрын
σ 1=1 (INSTRUCTOR) how?
@YousefRazzouk-ve1bv4 ай бұрын
@@vaaipuillaraja3131 we deal with the subscript as a boolean condition whether it was about attributes in the relation or any other thing
@vaaipuillaraja31314 ай бұрын
@@YousefRazzouk-ve1bv Thank you
@VedangRaul6 ай бұрын
1. sigma salary>60000(INSTRUCTOR) 2. sigma salary >=50000 AND salary 1(INSTRUCTOR)
I was preparing all summer for these exams . I hope it goes well .
@sttaseen5106 Жыл бұрын
For q3, you can just use a tautology (a condition that is always true) instead of using id. It would look something like this: select 1=1 (INSTRUCTOR). Using id is a bit finicky because we don't know if it is a string, a number and if it is, can it be negative etc.
@kishanpayadi8168 Жыл бұрын
Noice.
@jonanderssunde Жыл бұрын
Nice answer for Q3
@ayamwenzdayz35517 ай бұрын
Oh nice
@iamsherk260510 ай бұрын
youre a better instructor than my instructor
@reverbism Жыл бұрын
1. SELECT Salary > 60,000 (Instructor) 2. SELECT Salary > 50,000 AND Salary < 75,000 (Instructor) 3. SELECT ID > 0 (Instructor) 3. SELECT (Instructor) //Not work coz no condition here
@hbfl3x50 Жыл бұрын
for no.3 we can also use this long way which i think is easy to understand but exhausting SELECT Dept_Name = "Biology" OR Dept_Name = "Computer Science" OR Dept_Name = "Electrical" OR Dept_Name = "Finance" OR Dept_Name = "Music" OR Dept_Name = "History".
@Ena_aysha Жыл бұрын
can t we use - select true (instractor)
@clipstv622911 ай бұрын
15:51 Q3 σ ID=¬NULL (INSTRUCTOR) is this correct?
@aimanmehar9580 Жыл бұрын
Q3: select id≠0 (INSTRUCTOR)
@feelthemusic56779 ай бұрын
awesome 🤩
@jeevar54244 күн бұрын
1.Salary>60000(INSTRUCTOR) 2.50000
@AbhishekLamba-yd3dq Жыл бұрын
question 3 condition is id != null
@xMichi75 ай бұрын
Thank you!
@rheniuspaul389 Жыл бұрын
Please cover dbms quicker so that it can be useful for exams
@jokishwieu1641 Жыл бұрын
Thanks a lot, this video has incredibly helped me a lot, you're legend man
@katharinast069 ай бұрын
you are amazing. thank you so much!
@PraisySanthaMalarP7 күн бұрын
σ TRUE(INSTRUCTOR) is this correct for ques 3
@kumarakalvamanjunath8353 Жыл бұрын
Superb class 👏👍
@diegoortega23744 ай бұрын
My solution for the last one: σ name != null (INSTRUCTOR)
@shailendra_25 Жыл бұрын
Superb Explanation 👌
@patronerox Жыл бұрын
great work, butit would be awesome if you provided footprints of every course in pdf
What if someone talks about solving using sql is it tge same thing?
@custompixel33647 ай бұрын
select ID not equal to zero(Instructor) because ID never can be zero.
@theamazingtutorial.90197 ай бұрын
ID is always in string. So we can not compare it with an integer value
@kamenpetkov81797 ай бұрын
I would argue that for question 3 you can simply write INSTRUCTOR (just the relation basically) which would output all of the rows and columns in the relation. I don't think it's necessary to use Selection for this one.
@jaganaanusha2001 Жыл бұрын
Super explanation 👍
@ENagamani-yl1ubАй бұрын
1.sigma salary>60000(INSTRUCTOR) 2.sigma salary=50000 or salary=75000(INSTRUCTOR) 3.sigma id>10000(INSTRUCTOR)
@v.balajisai424 Жыл бұрын
Superb ✌️
@yabon874 ай бұрын
1. σ Salary >60000(INSTRUCTOR) 2. σ Salary>=50000 AND Salary
@rayyao99417 ай бұрын
you are my legend
@jilyanzmeigh91326 ай бұрын
THANK U SM
@ummeed8821 Жыл бұрын
σ true (INSTRUCTOR)
@reviver_z Жыл бұрын
Because i'm confused.. How can we describe this SQL to Relational algebra? SELECT a.name,a.surname,b.LessonCode FROM student AS a LEFT JOIN StudentInLesson AS b ON a.ID=b.StudentID WHERE b.LessonCode=104;
@pibob7880 Жыл бұрын
I wish it explained what relations are as well. so far, I know tuples, and tables are related to relations. In database theory, a relation, as originally defined by E. F. Codd,[1] is a set of tuples (d1, d2, ..., dn), where each element dj is a member of Dj, a data domain a tuple is a set of attribute values in which no two distinct elements have the same name In SQL, a database language for relational databases, relations are represented by tables, where each row of a table represents a single tuple, and where the values of each attribute form a column.