Relational Algebra (Select Operation)

  Рет қаралды 151,970

Neso Academy

Neso Academy

Күн бұрын

Пікірлер: 71
@ismailfaridi
@ismailfaridi Жыл бұрын
Solution: 1. σ Salary > 60000 (INSTRUCTOR) 2. σ Salary ≥ 50000 ^ Salary ≤ 75000 (INSTRUCTOR) 3. σ 1=1 (INSTRUCTOR)
@HugeCraziness
@HugeCraziness 8 ай бұрын
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.
@nigelthornberry007
@nigelthornberry007 8 ай бұрын
@@HugeCraziness Thank you for the explanation!!
@VimuThe5ifer
@VimuThe5ifer 7 ай бұрын
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
@kharris274
@kharris274 7 ай бұрын
@@VimuThe5ifer then the "Salary = 50000" and "Salary = 75000" won't be included
@VimuThe5ifer
@VimuThe5ifer 7 ай бұрын
@@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
@HugeCraziness
@HugeCraziness 8 ай бұрын
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.
@vaaipuillaraja3131
@vaaipuillaraja3131 6 ай бұрын
σ 1=1 (INSTRUCTOR) how?
@YousefRazzouk-ve1bv
@YousefRazzouk-ve1bv 4 ай бұрын
@@vaaipuillaraja3131 we deal with the subscript as a boolean condition whether it was about attributes in the relation or any other thing
@vaaipuillaraja3131
@vaaipuillaraja3131 4 ай бұрын
@@YousefRazzouk-ve1bv Thank you
@VedangRaul
@VedangRaul 6 ай бұрын
1. sigma salary>60000(INSTRUCTOR) 2. sigma salary >=50000 AND salary 1(INSTRUCTOR)
@AosrtyAosrty
@AosrtyAosrty Жыл бұрын
select Salary > 60000 (Instructor) , select Salary >= 50000 ^ Salary = 1 (Instructor)
@hecticgamings
@hecticgamings 6 ай бұрын
Wrong 1st me gretaer than equL to nhi likha h then why u written here >=
@hecticgamings
@hecticgamings 6 ай бұрын
Greater than means use bada naki uske equL
@archanavr8974
@archanavr8974 6 ай бұрын
1:39 1:39 1:39
@NaveenSaiCremsiYadlapalli
@NaveenSaiCremsiYadlapalli 27 күн бұрын
1) σ Salary>60000(INSTRUCTOR) 2) σ Salary>=50000 ^ Salary
@reviver_z
@reviver_z Жыл бұрын
I was preparing all summer for these exams . I hope it goes well .
@sttaseen5106
@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
@kishanpayadi8168 Жыл бұрын
Noice.
@jonanderssunde
@jonanderssunde Жыл бұрын
Nice answer for Q3
@ayamwenzdayz3551
@ayamwenzdayz3551 7 ай бұрын
Oh nice
@iamsherk2605
@iamsherk2605 10 ай бұрын
youre a better instructor than my instructor
@reverbism
@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
@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
@Ena_aysha Жыл бұрын
can t we use - select true (instractor)
@clipstv6229
@clipstv6229 11 ай бұрын
15:51 Q3 σ ID=¬NULL (INSTRUCTOR) is this correct?
@aimanmehar9580
@aimanmehar9580 Жыл бұрын
Q3: select id≠0 (INSTRUCTOR)
@feelthemusic5677
@feelthemusic5677 9 ай бұрын
awesome 🤩
@jeevar5424
@jeevar5424 4 күн бұрын
1.Salary>60000(INSTRUCTOR) 2.50000
@AbhishekLamba-yd3dq
@AbhishekLamba-yd3dq Жыл бұрын
question 3 condition is id != null
@xMichi7
@xMichi7 5 ай бұрын
Thank you!
@rheniuspaul389
@rheniuspaul389 Жыл бұрын
Please cover dbms quicker so that it can be useful for exams
@jokishwieu1641
@jokishwieu1641 Жыл бұрын
Thanks a lot, this video has incredibly helped me a lot, you're legend man
@katharinast06
@katharinast06 9 ай бұрын
you are amazing. thank you so much!
@PraisySanthaMalarP
@PraisySanthaMalarP 7 күн бұрын
σ TRUE(INSTRUCTOR) is this correct for ques 3
@kumarakalvamanjunath8353
@kumarakalvamanjunath8353 Жыл бұрын
Superb class 👏👍
@diegoortega2374
@diegoortega2374 4 ай бұрын
My solution for the last one: σ name != null (INSTRUCTOR)
@shailendra_25
@shailendra_25 Жыл бұрын
Superb Explanation 👌
@patronerox
@patronerox Жыл бұрын
great work, butit would be awesome if you provided footprints of every course in pdf
@sophanithphon
@sophanithphon 9 ай бұрын
I don't understand question number 3.
@SHIVESHKUMAR-q7i
@SHIVESHKUMAR-q7i Ай бұрын
INSTRUCTOR OR Sigma ID > 0(INSTRUCTOR)
@olukayodepaul7070
@olukayodepaul7070 4 ай бұрын
σ salary>60000 (INSTRUCTOR) 2. σ salary >=50000 ^ salary 1 (INSTRUCTOR)
@vishalsisodiya28
@vishalsisodiya28 Жыл бұрын
Can I get fuel?
@ernestkeya-sq4sh
@ernestkeya-sq4sh 3 ай бұрын
What if someone talks about solving using sql is it tge same thing?
@custompixel3364
@custompixel3364 7 ай бұрын
select ID not equal to zero(Instructor) because ID never can be zero.
@theamazingtutorial.9019
@theamazingtutorial.9019 7 ай бұрын
ID is always in string. So we can not compare it with an integer value
@kamenpetkov8179
@kamenpetkov8179 7 ай бұрын
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
@jaganaanusha2001 Жыл бұрын
Super explanation 👍
@ENagamani-yl1ub
@ENagamani-yl1ub Ай бұрын
1.sigma salary>60000(INSTRUCTOR) 2.sigma salary=50000 or salary=75000(INSTRUCTOR) 3.sigma id>10000(INSTRUCTOR)
@v.balajisai424
@v.balajisai424 Жыл бұрын
Superb ✌️
@yabon87
@yabon87 4 ай бұрын
1. σ Salary >60000(INSTRUCTOR) 2. σ Salary>=50000 AND Salary
@rayyao9941
@rayyao9941 7 ай бұрын
you are my legend
@jilyanzmeigh9132
@jilyanzmeigh9132 6 ай бұрын
THANK U SM
@ummeed8821
@ummeed8821 Жыл бұрын
σ true (INSTRUCTOR)
@reviver_z
@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
@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.
@frederickteye
@frederickteye 5 ай бұрын
1. Select Salary > 60000 (INSTRUCTOR) 2. Select Salary > 50000 ^ Salary < 75000(INSTRUCTOR) 3. Select ID > 1 (INSTRUCTOR)
@sarveshkilje405
@sarveshkilje405 Жыл бұрын
Select = salary > 60000(INSTRUCTOR) Q2= Select = salary >50000 and salary
@tubakzgn1102
@tubakzgn1102 Жыл бұрын
I did the same thing.
@Patrick-hb9dbj
@Patrick-hb9dbj Жыл бұрын
how about Q3 dude?
@Patrick-hb9dbj
@Patrick-hb9dbj Жыл бұрын
what can we write in the condition if we need to select all entries in a relation..???
@pravindhotre6405
@pravindhotre6405 Жыл бұрын
Select= ID>0 ( INSTRUCTOR)……..3rd question ans😊
@Patrick-hb9dbj
@Patrick-hb9dbj Жыл бұрын
@@pravindhotre6405 many thanks pravin!
Relational Algebra (Project Operation)
8:32
Neso Academy
Рет қаралды 111 М.
Relational Algebra (Natural Join Operation)
26:11
Neso Academy
Рет қаралды 22 М.
规则,在门里生存,出来~死亡
00:33
落魄的王子
Рет қаралды 27 МЛН
Don't look down on anyone#devil  #lilith  #funny  #shorts
00:12
Devil Lilith
Рет қаралды 17 МЛН
Running With Bigger And Bigger Lunchlys
00:18
MrBeast
Рет қаралды 124 МЛН
09 : Modeling of Control system (Modeling of rotational mechanical system) part 1
19:29
Mechanical & Electrical Engineering Lectures ,
Рет қаралды 4,9 М.
5 Math Skills Every Programmer Needs
9:08
Sahil & Sarra
Рет қаралды 1,1 МЛН
Relational Algebra (Union Operation)
20:15
Neso Academy
Рет қаралды 108 М.
Ishita Kishore AIR 1 IAS Topper | UPSC Result 2022 | Mock Interview | Vajirao & Reddy Institute
23:44
Vector Databases simply explained! (Embeddings & Indexes)
4:23
AssemblyAI
Рет қаралды 334 М.
Keys in RDBMS
22:49
Neso Academy
Рет қаралды 342 М.
How Do Linux Kernel Drivers Work? - Learning Resource
17:02
LiveOverflow
Рет қаралды 552 М.
规则,在门里生存,出来~死亡
00:33
落魄的王子
Рет қаралды 27 МЛН