Recent questions tagged sql

39 votes
5 answers
157
A relational database contains two tables Student and Performance as shown below:$$\overset{\text{Table: student}}{\begin{array}{|l|l|} \hline \text{Roll_no} & \text{Stud...
0 votes
1 answer
158
What are the parameters or procedure to follow to find out minimum no. of tables for given ER Diagram type of questions?
0 votes
1 answer
161
1 votes
1 answer
162
3 votes
2 answers
163
Consider the following Relation $\text{employee}$:$$\begin{array}{|l|l|l|} \hline \text{eno} & \text{ename} & \text{manager} \\ \hline 1 & \text{satish} & \text{rajeev} \...
0 votes
0 answers
164
I got why query 2 is wrong. How do I approach to understand Query 1, is there a generic approach for solving questions like these which have no tables given?
0 votes
1 answer
166
i don’t know how to solve co-related sub query...i practice lots of problems but still i cant solvecan anyone tell the method or approach to solve co-related sub query ...
0 votes
0 answers
168
rajABc434272685SELECT * FROM raj T1 WHERE EXISTS ( SELECT * FROM raj T2 WHERE T1.A T2.A); Explain the output of this query. (written in oracel sql).output : Row 3 th...
1 votes
1 answer
169
According to me it should be – “Retrieve the names of all students with a lower rank, than all students with age < 18 ”
1 votes
1 answer
171
the table “Sales89” contains information about the address,zip,sale-date,price and inflamation-adjusted “real-price” of 222 sales of single family homes in calcut...
0 votes
0 answers
173
Can primary keys be updated using sql update query?Is such a query accepted/rejected?
0 votes
1 answer
176
please give an example to differentiate between self join , natural join and join operation.
0 votes
2 answers
178
Select Rating From professor P2 Where 5>=(Select count (*) From professor P3 Where P2.Rating <= P3.Rating);Can someone please explain the query?
0 votes
1 answer
179
what is assertions in SQL?
0 votes
0 answers
180
Is the given explanation and answer correct, how can a.street =b.street will ensure both employee and manager lives in same street?