Faq Queries Ans
Faq Queries Ans
So the final value of count becomes 5condition not satisfied(becoz we want 2 or 2nd max). Now, s2.marks >= s1.marks ? Is 100>=550noso count=0 550>=550yes..so count=1 500>=550..noso count=1
150>=550no..so count=1 300>=550noso count=1 So the final value of count becomes 1condition not satisfied(becoz we want 2 or 2nd max). Again, s2.marks >= s1.marks ? Is 100>=500no so count=0
550>=500yes..so count=1 500>=500..yes..so count=2 150>=500..no ..so count=2 300>=500..no..so count=2 So the final value of count becomes 2condition satisfied(becoz we want 2 or 2nd max). So s1.marks is 500
4) Write a query to insert a record into a table 5) Write a query to display a row using index
SELECT * FROM student WHERE roll_no='9'