Login
Register
Dark Mode
Brightness
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Recent questions tagged sql
2
votes
1
answer
61
Write SQL query
Write SQL query to show all employees hired on June 4,1984 (non-default format) emp(empno,ename,job,mgr,hiredate,sal,comm,deptno)
Write SQL query to show all employees hired on June 4,1984 (non-default format)emp(empno,ename,job,mgr,hiredate,sal,comm,deptno)
Subhrangsu
450
views
Subhrangsu
asked
Jun 18, 2022
Databases
sql
databases
query
+
–
0
votes
1
answer
62
SQL Query Question
Consider the relational database given below. Give an expression in SQL for each of the following queries. employee (person-name, street, city) works (person-name, company-name, salary) company (company-name, city) manages (person-name, manager-name) a. ... such cases, give only a 3 percent raise e. Delete all tuples in the works relation for employees of Small Bank Corporation.
Consider the relational database given below. Give an expression in SQL for each of the following queries.employee (person-name, street, city)works (person-name, company...
varun29
4.6k
views
varun29
asked
Apr 28, 2022
Databases
databases
sql
+
–
1
votes
1
answer
63
Self Doubt
I want to join the two tables of movies and actors and then output only those results that have gender =”F”, can you tell me where I am going wrong?
I want to join the two tables of movies and actors and then output only those results that have gender =”F”, can you tell me where I am going wrong?
tusharb
696
views
tusharb
asked
Mar 27, 2022
Databases
sql
databases
joins
+
–
25
votes
5
answers
64
GATE CSE 2022 | Question: 46
Consider the relational database with the following four schemas and their respective instances. Student(sNo, sName, dNo) Dept(dNo, dName) Course(cNo, cName, dNo) Register(sNo, cNo) ... SELECT cNo FROM Register WHERE sNo = S.sNo) The number of rows returned by the above $\text{SQL}$ query is ____________.
Consider the relational database with the following four schemas and their respective instances.Student(sNo, sName, dNo) Dept(dNo, dName)Course(cNo, cName, dNo) Register(...
Arjun
12.8k
views
Arjun
asked
Feb 15, 2022
Databases
gatecse-2022
numerical-answers
databases
sql
2-marks
+
–
0
votes
2
answers
65
What would be the result of this query
Source Made Easy Test Serires Can anyone please tell me the answer for this, with explaination. According to me it will give the customer who buy from atleast one store, but the answer given is customer who buy from all stores.
Source Made Easy Test SeriresCan anyone please tell me the answer for this, with explaination. According to me it will give the customer who buy from atleast one store, b...
print
490
views
print
asked
Jan 21, 2022
Databases
databases
sql
+
–
0
votes
2
answers
66
SQL - databases
Consider the following relations: How many number of records will be returned by the following query?
Consider the following relations:How many number of records will be returned by the following query?
atulcse
830
views
atulcse
asked
Jan 16, 2022
Databases
databases
sql
made-easy-test-series
+
–
0
votes
2
answers
67
MADE EASY TEST SERIES
Consider the following relations and query given below: Emp( Id, Name, Sex, Salary) Proj(No, Name, Dno) and Works_on(No, IDs) contains atleast one tuples. Consider the following query: Select Name From Emp Where NOT Exists ((Select No From Proj where Dno = 106) EXCEPT (select No from works_on where Id = IDs)); What does this query return?
Consider the following relations and query given below:Emp( Id, Name, Sex, Salary)Proj(No, Name, Dno) andWorks_on(No, IDs) contains atleast one tuples.Consider the follow...
learner 2102
529
views
learner 2102
asked
Jan 5, 2022
Databases
databases
made-easy-test-series
sql
+
–
3
votes
2
answers
68
Applied Test Series
Consider the following schema: Create table A(a1 int not null primary key, a2 int); Create table B(b1 int not null primary key, b2 int references A(a1) on delete cascade on update no action); Create table C(c1 int not null primary key, c2 int references ... number of tuples present in the relation B, and C after running the query Delete from A where a1 = 1; will be __________
Consider the following schema: Create table A(a1 int not null primary key, a2 int); Create table B(b1 int not null primary key, b2 int references A(a1) on delete cascade ...
LRU
743
views
LRU
asked
Nov 5, 2021
Databases
test-series
databases
referential-integrity
sql
+
–
1
votes
1
answer
69
SQL - outer join - ACE workbook
An outer join can be done between: a. only two tables b. only three tables c. any number of tables
An outer join can be done between:a. only two tables b. only three tables c. any number of tables
atulcse
435
views
atulcse
asked
Oct 31, 2021
Databases
sql
databases
+
–
1
votes
3
answers
70
UGC NET CSE | December 2019 | Part 2 | Question: 22
Given two tables EMPLOYEE (EID, ENAME, DEPTNO) DEPARTMENT (DEPTNO, DEPTNAME) Find the most appropriate statement of the given query: Select count (*) total' from EMPLOYEE where DEPTNO IN (D1,D2) group by DEPTNO having count (*) > ... total number of employees in both departments $D1$ and $D2$ The output of the query must have at least two rows
Given two tablesEMPLOYEE (EID, ENAME, DEPTNO) DEPARTMENT (DEPTNO, DEPTNAME)Find the most appropriate statement of the given query:Select count (*) ‘total’ from EMPLOY...
soujanyareddy13
1.5k
views
soujanyareddy13
asked
May 12, 2021
Databases
ugcnetcse-dec2019-paper2
sql
+
–
16
votes
2
answers
71
GATE CSE 2021 Set 2 | Question: 31
The relation scheme given below is used to store information about the employees of a company, where $\textsf{empId}$ is the key and $\textsf{deptId}$ indicates the department to which the employee is assigned. Each employee ... average salary of employees in the department employees in the company female employees in the department female employees in the company
The relation scheme given below is used to store information about the employees of a company, where $\textsf{empId}$ is the key and $\textsf{deptId}$ indicates the depar...
Arjun
6.2k
views
Arjun
asked
Feb 18, 2021
Databases
gatecse-2021-set2
databases
sql
easy
2-marks
+
–
33
votes
2
answers
72
GATE CSE 2021 Set 1 | Question: 23
A relation $r(A, B)$ in a relational database has $1200$ tuples. The attribute $A$ has integer values ranging from $6$ to $20$, and the attribute $B$ has integer values ranging from $1$ to $20$. Assume that the attributes $A$ and $B$ are independently distributed. The estimated number of tuples in the output of $\sigma _{(A>10)\vee(B=18)}(r)$ is ____________.
A relation $r(A, B)$ in a relational database has $1200$ tuples. The attribute $A$ has integer values ranging from $6$ to $20$, and the attribute $B$ has integer values r...
Arjun
13.0k
views
Arjun
asked
Feb 18, 2021
Databases
gatecse-2021-set1
databases
sql
numerical-answers
1-mark
+
–
1
votes
1
answer
73
NIELIT Scientific Assistant A 2020 November: 45
$(<\text{ALL})$ comparison operator means: more than the maximum value in the subquery less than the minimum value in the subquery is equivalent to $\text{IN}$ none of the options
$(<\text{ALL})$ comparison operator means:more than the maximum value in the subqueryless than the minimum value in the subqueryis equivalent to $\text{IN}$none of the op...
gatecse
542
views
gatecse
asked
Dec 9, 2020
Databases
nielit-sta-2020
databases
sql
+
–
1
votes
1
answer
74
NIELIT Scientific Assistant A 2020 November: 91
With the following syntax INSERT INTO table[(column[,column...])] VALUES (value[, value...]); you can: Insert one row at a time Insert multiple rows at a time Insert one column at a time Insert multiple columns at a time
With the following syntaxINSERT INTO table[(column[,column...])] VALUES (value[, value...]);you can:Insert one row at a timeInsert multiple rows at a timeInsert one colum...
gatecse
523
views
gatecse
asked
Dec 9, 2020
Databases
nielit-sta-2020
databases
sql
+
–
1
votes
1
answer
75
NIELIT Scientific Assistant A 2020 November: 98
When retrieving data in particular table in PostgreSQL, we use the ______ statement. \dt ORDER BY SELECT FROM \i
When retrieving data in particular table in PostgreSQL, we use the ______ statement.\dtORDER BYSELECT FROM\i
gatecse
431
views
gatecse
asked
Dec 9, 2020
Databases
nielit-sta-2020
databases
sql
+
–
1
votes
1
answer
76
UGC NET CSE | October 2020 | Part 2 | Question: 96
Consider the following table structures related to a university for the below question. EMPLOYEE NAME VARCHAR (30) NOT NULL, EID VARCHAR (10) NOT NULL, DEPTNO INT (5) NOT NULL, HODEID VARCHAR (10), SALARY INT (10), PRIMARY ... DISTINCT EMPID FROM PROJECTWORK WHERE PROJNO IN(20,30,40); SELECT DISTINCT EMPID FROM PROJECTWORK WHERE PROJNO=20,30,40;
Consider the following table structures related to a university for the below question.EMPLOYEENAME VARCHAR (30) NOT NULL, EID VARCHAR (10) NOT NULL, DEPTNO INT (5) NOT N...
go_editor
1.1k
views
go_editor
asked
Nov 20, 2020
Databases
ugcnetcse-oct2020-paper2
databases
sql
+
–
1
votes
1
answer
77
UGC NET CSE | October 2020 | Part 2 | Question: 97
Consider the following table structures related to a university for the below question. EMPLOYEE NAME VARCHAR (30) NOT NULL, EID VARCHAR (10) NOT NULL, DEPTNO INT (5) NOT NULL, HODEID VARCHAR (10), SALARY INT (10), PRIMARY KEY (EID) ... false Statement $I$ is correct but Statement $II$ is false Statement $I$ is incorrect but Statement $II$ is true
Consider the following table structures related to a university for the below question.EMPLOYEENAME VARCHAR (30) NOT NULL, EID VARCHAR (10) NOT NULL, DEPTNO INT (5) NOT N...
go_editor
1.3k
views
go_editor
asked
Nov 20, 2020
Databases
ugcnetcse-oct2020-paper2
databases
sql
+
–
2
votes
2
answers
78
UGC NET CSE | October 2020 | Part 2 | Question: 98
Consider the following table structures related to a university for the below question. EMPLOYEE NAME VARCHAR (30) NOT NULL, EID VARCHAR (10) NOT NULL, DEPTNO INT (5) NOT NULL, HODEID VARCHAR (10), SALARY INT (10), PRIMARY KEY (EID), FOREIGN KEY ... answer from the options given below: $i$ and $ii$ only $i$ and $iii$ only $ii$ only $iii$ only
Consider the following table structures related to a university for the below question.EMPLOYEENAME VARCHAR (30) NOT NULL, EID VARCHAR (10) NOT NULL, DEPTNO INT (5) NOT N...
go_editor
1.4k
views
go_editor
asked
Nov 20, 2020
Databases
ugcnetcse-oct2020-paper2
databases
sql
+
–
1
votes
1
answer
79
UGC NET CSE | October 2020 | Part 2 | Question: 99
Consider the following table structures related to a university for the below question. EMPLOYEE NAME VARCHAR (30) NOT NULL, EID VARCHAR (10) NOT NULL, DEPTNO INT (5) NOT NULL, HODEID VARCHAR (10), SALARY INT (10), PRIMARY KEY (EID), FOREIGN KEY (HODEID) ... from the options given below: $a$ and $b$ only $a$ and $c$ only $b$ and $c$ only $a$ only
Consider the following table structures related to a university for the below question.EMPLOYEENAME VARCHAR (30) NOT NULL, EID VARCHAR (10) NOT NULL, DEPTNO INT (5) NOT N...
go_editor
1.3k
views
go_editor
asked
Nov 20, 2020
Databases
ugcnetcse-oct2020-paper2
databases
sql
+
–
1
votes
1
answer
80
UGC NET CSE | October 2020 | Part 2 | Question: 100
Consider the following table structures related to a university for the below question. EMPLOYEE NAME VARCHAR (30) NOT NULL, EID VARCHAR (10) NOT NULL, DEPTNO INT (5) NOT NULL, HODEID VARCHAR (10), SALARY INT (10), PRIMARY KEY (EID), FOREIGN KEY ( ... correct answer from the options given below: $a$ and $b$ only $a$ only $b$ and $c$ only $c$ only
Consider the following table structures related to a university for the below question.EMPLOYEENAME VARCHAR (30) NOT NULL, EID VARCHAR (10) NOT NULL, DEPTNO INT (5) NOT N...
go_editor
1.1k
views
go_editor
asked
Nov 20, 2020
Databases
ugcnetcse-oct2020-paper2
databases
sql
+
–
Page:
« prev
1
2
3
4
5
6
7
8
...
17
next »
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register