Recent questions tagged query

0 0 votes
0 0 answers
752
752 views
The employee information in a company is stored in the relationEmployee (name, sex, salary, deptName)Consider the following $\text{SQL}$ querySelect deptName From Employe...
0 0 votes
1 1 answer
693
693 views
Which of the component module of $\text{DBMS}$ does rearrangement and possible ordering of operations, eliminate redundancy in query and use efficient algorithms and ind...
2 2 votes
3 3 answers
2.9k
2.9k views
Given two tablesEMPLOYEE (EID, ENAME, DEPTNO) DEPARTMENT (DEPTNO, DEPTNAME)Find the most appropriate statement of the given query:Select count (*) ‘total’ from EMPLOYEE w...
1 1 vote
2 2 answers
2.2k
2.2k views
Consider the query :SELECT student_name FROM students WHERE class_name=(SELECT class_name FROM students WHERE math_marks=100);what will be the output ?the list of names o...
1 1 vote
3 3 answers
2.6k
2.6k views
Class(name, meets_at, room, fid)Faculty(fid, fname, deptid)Find the names of faculty members who teach in every room in which some class is taught
0 0 votes
0 0 answers
1.1k
1.1k views
Product(maker, model, type)PC(model, speed, ram, hd, price)Laptop(model, speed, ram, hd, screen, price)Printer(model, color, type, price)Find the maker(s) of the PC(s) wi...
5 5 votes
1 answers 1 answer
3.5k
3.5k views
Is it ok to drop for 2nd time for GATE ? i.e. dropping for giving GATE 3rd time in a row ? Please give your opinions.
0 0 votes
0 0 answers
1.0k
1.0k views
Let Depositor and Lender be relational schemas such that Depositor = {a/c number, cname , balance, branch} and Lender ={loan_number ,cname, amount , branch}. Now consider...
0 0 votes
0 0 answers
648
648 views
Sir when u will make gate 2019 civil response sheet evaluator sir
1 1 vote
1 1 answer
1.0k
1.0k views
Hello people, Which are the questions you think were ambiguous in paper and should not be included in the final gate evaluation.Please mention your views.
0 0 votes
0 0 answers
854
854 views
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 0 votes
0 0 answers
1.2k
1.2k views
Consider the following ORACLE relations:One (x, y) = {<2, 5>, <1, 6>, <1, 6>, <1, 6>, <4, 8>, <4, 8>}Two (x, y) = {<2, 55>, <1, 1>, <4, 4>, <1, 6>, <4, 8>, <4, 8>, <9, 9>...
1 1 vote
0 0 answers
2.1k
2.1k views
Consider a database that has the relation schemas EMP(EmpId, EmpName, DeptId), and DEPT(DeptName, DeptId). Note that the DeptId can be permitted to be NULL in the relatio...
1 1 vote
1 1 answer
2.5k
2.5k views
According to me it should be – “Retrieve the names of all students with a lower rank, than all students with age < 18 ”
0 0 votes
0 0 answers
1.2k
1.2k views
Suppose there are two tuples in Animals relation with different IDs but of same type and in Adoption table there is a tuple with an ID that matches with the ID of first ...
0 0 votes
1 1 answer
1.7k
1.7k views
https://gateoverflow.in/13365/ugcnet-dec2014-iii-24i’ve a small doubt in the solution of this questionhow is (a+b)*ba(a+b)* complement of the given language?
0 0 votes
1 1 answer
1.3k
1.3k views
Consider the following relational schema : Employee ( Empid, Deptid, Salary ) Department ( Deptid, DeptName ) What does the following query return ?Query_1 :- S...
0 0 votes
0 0 answers
796
796 views
Given a Relation POSITION (Posting-No, Skill), then query to retrieve all distinct pairs of posting-nos requiring skill is1.Select p1.posting-No, p2.posting-No from posit...
1 1 vote
0 0 answers
648
648 views
Consider two relation schemas$R(A,B,C)$ and $S(D,E,F)$Give an expression in the tuple relational calculus that is equivalent to each of the following.(a)$\pi_A(r)$ ->$\{t...
1 1 vote
1 1 answer
893
893 views
0 0 votes
1 1 answer
842
842 views
In this question:-https://gateoverflow.in/8225/gate2015-1-27I am not understanding how the query is returning 2 .I think DISTINCT must be there to give the correct answer...
0 0 votes
1 1 answer
1.6k
1.6k views
i don't know the actual answer for the questionaccording to me answer should be A please confirm it
0 0 votes
1 1 answer
467
467 views
0 0 votes
0 0 answers
363
363 views
0 0 votes
0 0 answers
1.2k
1.2k views
a) 0 b) 1 c) 2 d) 3
0 0 votes
1 1 answer
2.1k
2.1k views
0 0 votes
2 2 answers
1.6k
1.6k views
1 1 vote
1 answers 1 answer
1.6k
1.6k views
$(e.Fname$|$ EMPLOYEE(e)\ AND\ ((\forall_{d})[ (DEPENDENT(d)\ AND\ d.ssn= e.ssn \ AND\ (d.sex='M'))\rightarrow (d.age>30))] )$ EMPLOYEE FnameSSnSexRam1MShyam2MRavi3MSita...
1 1 vote
1 answers 1 answer
1.2k
1.2k views
Consider relational schema $R(A,B,C)$ and $S(A,B,C)$$1)$ Select * from $R$ where $(A,B,C)$ in (Select * from $S$)$2)$ Select * from $R$ where exists ( Select * from $S$ w...
20 20 votes
2 answers 2 answers
6.5k
6.5k views
Consider the following relational database schema:EMP (eno name, age)PROJ (pno name)INVOLVED (eno, pno)EMP contains information about employees. PROJ about projects and i...