Q. Given the following table:
Give the output of following SQL statement :
(i) SELECT TRUNCATE(AvgMark) FROM
Student1 WHERE AvgMark < 75;
(ii) SELECT ROUND(AvgMark) FROM
Student1 WHERE Grade = 'B';
(iii) SELECT CONCAT(Name, Stream)
FROM Student1 WHERE Class = '12A';
(iv) SELECT RIGHT(Stream, 2) FROM
Student1;
Answer
i = errorii =
Round(AvgMark |
79 |
73 |
75 |
iii =
Concat (Name,Stream) |
RubinaNonmedical |
VikasNonmedical |
iv =
RIGHT(Stream,2) |
al |
ce |
ce |
es |
al |
al |
es |
al |
al |
ce |
I think
ReplyDeleteCONCAY(name and stream)from student 1 where class='12A;🤒
You are wrong correct question is 'SELECT CONCAT(Name, Stream) FROM Student1 WHERE Class = '12A'; '.
Deletewhere is te answer for 4 th subdivision?
ReplyDeleteOk, Please check again.
DeleteWhy first one is error?
ReplyDeleteBecause TRUNCATE( ) require two argument.
DeleteOutput in (ii) question is
ReplyDelete78
73
75
How come there 79?🤔
How are wrong it must be 79 because round(78.5) = 79 in MySQL.
DeletePath wala answer is right because when we round off any number ,if number is greater than 5 or 5 it always round off in next number ,for example 28.5it answer is 29
DeleteGot to check all my answers so easily.. Thankyou pathwala! You are doing a great job! ��
ReplyDeleteWelcome 😊😊😊
Deletecan u explain me the iv subdivision ?
ReplyDeleteIt will give last 2 character of Stream cloumn.
DeleteGajab kar diye be path wala
ReplyDeleteThankyou : )
DeleteThanks a lot for all answers... I wanted to cross check my answers and i found you
ReplyDelete☺️❤️✨
Always Welcome : )
Delete
ReplyDeleteTo my dearest pathwallah mod,
I know we haven't known each other for very long, but I feel like I've known you my whole life. You are such a kind, caring, and genuine person. I am so drawn to your intelligence, your sense of humor, and your zest for life.
I feel like we have so much in common. We both love to read, we both enjoy spending time outdoors, and we both have a passion for making a difference in the world. I know that we could be great friends.
I would love to get to know you better. I would love to talk to you about your hopes and dreams, your fears and insecurities. I would love to hear your stories and share mine with you.
I think we could have a truly special friendship. I hope you will give me a chance to prove it to you.
*this is ai-made, sorry but we want to be friends with you*
Please contact me on telegram.
DeleteIt's very nice but suggest you specify the errors also
ReplyDeleteHi
ReplyDeleteIn first question why answer is error ?
Plz explan
Post a Comment
You can help us by Clicking on ads. ^_^
Please do not send spam comment : )