Login
Register
Dark Mode
Brightness
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Recent questions tagged sql
4
votes
0
answers
241
DBMS query
srestha
566
views
srestha
asked
Jan 29, 2018
Databases
databases
sql
+
–
3
votes
0
answers
242
SQL Query
Why this Query is illigal? i.e. Answer given is option C I tried this on W3school IDE it is giving result as option A.
Why this Query is illigal? i.e. Answer given is option CI tried this on W3school IDE it is giving result as option A.
Ashwin Kulkarni
414
views
Ashwin Kulkarni
asked
Jan 29, 2018
Databases
sql
query
self-doubt
+
–
2
votes
2
answers
243
SQL quary
srestha
434
views
srestha
asked
Jan 27, 2018
Databases
sql
databases
query
+
–
1
votes
1
answer
244
MadeEasy Test Series 2018: Databases - Sql
sumit chakraborty
408
views
sumit chakraborty
asked
Jan 26, 2018
Databases
databases
sql
made-easy-test-series
+
–
1
votes
0
answers
245
SQL....
Why Q1 not correct? Because it is fetching any red part and not every red part,right?? Why Q2 is not correct query? It takes 2 tables and comparing. Is it not fetching single red value?
Why Q1 not correct? Because it is fetching any red part and not every red part,right??Why Q2 is not correct query? It takes 2 tables and comparing. Is it not fetching si...
srestha
480
views
srestha
asked
Jan 25, 2018
Databases
sql
databases
query
+
–
1
votes
1
answer
246
Natural join
My answer is not matching with any of the option.so what is the correct answer
My answer is not matching with any of the option.so what is the correct answer
learner_geek
1.3k
views
learner_geek
asked
Jan 24, 2018
Databases
natural-join
databases
relational-algebra
sql
+
–
1
votes
0
answers
247
SQL Gateforum
A relation schema for a bus reservation is given below. Bus(BusNo, Bname, travel-agent) Passenger (Pid,pname,age) Reservation (Pid,class,travel-Agent)
A relation schema for a bus reservation is given below.Bus(BusNo, Bname, travel-agent)Passenger (Pid,pname,age)Reservation (Pid,class,travel-Agent)
Mk Utkarsh
775
views
Mk Utkarsh
asked
Jan 23, 2018
Databases
sql
databases
query
+
–
2
votes
1
answer
248
MadeEasy Test Series: Databases - Sql
nish kim
413
views
nish kim
asked
Jan 19, 2018
Databases
databases
sql
made-easy-test-series
+
–
3
votes
0
answers
249
safe query
Is the query below safe? {t | ∃u ∈ EMP(t[EmpName] = u[EmpName] ∧ ∀v ∈ DEPT(t[DeptId] == v[DeptId]))} Please explain why.
Is the query below safe? {t | ∃u ∈ EMP(t[EmpName] = u[EmpName] ∧ ∀v ∈ DEPT(t[DeptId] == v[DeptId]))}Please explain why.
Warlock lord
1.1k
views
Warlock lord
asked
Jan 19, 2018
Databases
databases
sql
safe-query
+
–
1
votes
2
answers
250
TEST SERIES ( ALL Keyword)
what will be the output(how many tupples)
what will be the output(how many tupples)
gari
1.3k
views
gari
asked
Jan 18, 2018
Databases
databases
sql
+
–
3
votes
0
answers
251
SQL QUERY NOT EXISTS
How to solve this?
How to solve this?
Shubham Kumar Gupta
636
views
Shubham Kumar Gupta
asked
Jan 18, 2018
Databases
sql
databases
query
+
–
2
votes
0
answers
252
SQL Query
Consider the following database table : $Emp(\underline{Eid}, Ename, age)$ $Project(\underline{Pid}, Pname,budget)$ $Works for(\underline{Eid Pid})$ Select $Eid$ from $Emp$ $E$ where $age > 30$ and not Exists $(select$ $Pid$ $\text{From project P}$ ... , what does the inner most query do? Would it run only for those eid with age>30 and pid="database" or for all of them?
Consider the following database table : $Emp(\underline{Eid}, Ename, age)$ $Project(\underline{Pid}, Pname,budget)$ $Works for(\underline{Eid Pid}...
Nymeria
416
views
Nymeria
asked
Jan 17, 2018
Databases
sql
databases
+
–
1
votes
0
answers
253
Sql database
Provide the answer
Provide the answer
Harikesh Kumar
359
views
Harikesh Kumar
asked
Jan 14, 2018
Databases
databases
sql
query
+
–
1
votes
1
answer
254
Sql query gate
Provide the correct answer
Provide the correct answer
Harikesh Kumar
406
views
Harikesh Kumar
asked
Jan 13, 2018
Databases
sql
databases
self-doubt
query
+
–
0
votes
0
answers
255
Sql,gate
my answer is :: selection with cross Please explain the current answer
my answer is :: selection with cross Please explain the current answer
Harikesh Kumar
176
views
Harikesh Kumar
asked
Jan 13, 2018
Databases
sql
databases
+
–
3
votes
0
answers
256
SQL QUERY
Consider the relation B and A given respectively P S a 10 b 11 c 12 P Q a 1 a 2 b 1 b 2 c 1 c 2 QUERY 1: Select Count from B where exists (select * from A where A.P=B.P) QUERY 2: Select Count from B where not exists (select * from A where A.P=B.P) QUERY 3 : Select P from B where P IN (select P from A) Please give the number of tuples printed in each case and what these tuples ?
Consider the relation B and A given respectively PSa10b11c12P Qa1a2b1b2c1c2QUERY 1:Select Count from B where exists (select * from A...
junaid ahmad
272
views
junaid ahmad
asked
Jan 11, 2018
Databases
databases
sql
+
–
1
votes
1
answer
257
Virtual Gate Test Series: Databases - Sql query
Consider the following instance R. A 1 2 3 4 B Null 1 2 2 The number of tuples returned by the following SQL query is _____________. > select * from R as R1 where not exists (select * from R) where B = R1.A
Consider the following instance R.A1234BNull122The number of tuples returned by the following SQL query is _____________. select * from R as R1 where not exists (select...
Naveen K Verma
719
views
Naveen K Verma
asked
Jan 10, 2018
Databases
databases
sql
virtual-gate-test-series
+
–
1
votes
1
answer
258
Joins
Consider two table R and S. Now suppose if we join the two tables using Natural Join (or any other Join for that matter), is it mandatory for the attributes (common attribute between R and S) must have the same range of values? (It's not mentioned that if it's dependent by a foreign key)
Consider two table R and S. Now suppose if we join the two tables using Natural Join (or any other Join for that matter), is it mandatory for the attributes (common attri...
Warlock lord
461
views
Warlock lord
asked
Jan 9, 2018
Databases
sql
databases
relational-algebra
+
–
1
votes
1
answer
259
SQL query
Found randomly somewhere: i think multiple answers possible?
Found randomly somewhere:i think multiple answers possible?
Anu007
764
views
Anu007
asked
Jan 2, 2018
Databases
databases
sql
+
–
2
votes
1
answer
260
Ace Test Series: Databases - Sql
$Emp$ $(eid: integer, ename: string, age: integer, salary :real)$ $Works$ $(eid: integer, did: integer, pct_time: integer)$ $Dept$ $(did: integer, budget: real, managerid: integer)$ $CREATE$ $VIEW$ ... The above view on Emp can be updated automatically by updating Emp. The above view cannot be created automatically. None of the above
$Emp$ $(eid: integer, ename: string, age: integer, salary :real)$$Works$ $(eid: integer, did: integer, pct_time: integer)$$Dept$ $(did: integer, budget: real, managerid: ...
Harsh Mehta
662
views
Harsh Mehta
asked
Dec 27, 2017
Databases
databases
sql
query
ace-test-series
+
–
7
votes
1
answer
261
SQL keyword ANY and ALL
Hi Guys, In SQL, <condition> ALL evaluates to TRUE if inner query returns no tuples. { X < ALL (empty) == TRUE } <condition> ANY evaluates to FALSE if inner query returns no tuples. { X < ANY (empty) == FALSE } But what is the logical reason behind this ? PS: ping @Krish__, @Anu007, @Ashwin Kulkarni @reena_kandari and @srestha ji.
Hi Guys,In SQL, <condition ALL evaluates to TRUE if inner query returns no tuples. { X < ALL (empty) == TRUE }<condition ANY evaluates to FALSE if inner query returns no...
Chhotu
1.5k
views
Chhotu
asked
Dec 24, 2017
Databases
sql
databases
query
+
–
0
votes
0
answers
262
SQL and trc
How to solve SQL problems related to subqueries quickly? Though I have concepts still I face some difficulties in solving this problems
How to solve SQL problems related to subqueries quickly?Though I have concepts still I face some difficulties in solving this problems
soumayan bandhu
294
views
soumayan bandhu
asked
Dec 22, 2017
Databases
sql
databases
query
+
–
0
votes
0
answers
263
MadeEasy Test Series: Databases - Sql
pranab ray
456
views
pranab ray
asked
Dec 20, 2017
Databases
made-easy-test-series
databases
sql
+
–
5
votes
1
answer
264
ISRO-DEC2017-11
Consider the schema $\text{Sailors(sid,sname,rating,age) with the following data}$ ... $6$ $5$ $4$ $3$
Consider the schema$\text{Sailors(sid,sname,rating,age) with the following data}$$\begin{array}{|l|l|l|l|} \hline \textbf{sid} & \textbf{sname} & \textbf{rating} & \textb...
gatecse
4.4k
views
gatecse
asked
Dec 17, 2017
Databases
isrodec2017
sql
+
–
0
votes
0
answers
265
Any open source mysql terminal for practising sql command for gate ?
hem chandra joshi
278
views
hem chandra joshi
asked
Dec 16, 2017
Databases
sql
+
–
0
votes
0
answers
266
DBMS sql query on null
Student table ROLLNO NAME MARKS1 MARKS2 1 T 50 30 2 S 70 99 3 D NULL 10 NULL NULL 78 NULL NULL NULL NULL NULL a) select count(MARKS1) from student; b) select count(*) from student;
Student tableROLLNONAMEMARKS1MARKS21T50302S70993DNULL10NULLNULL78NULLNULLNULLNULLNULLa) select count(MARKS1) from student;b) select count(*) from student;
Tuhin Dutta
413
views
Tuhin Dutta
asked
Dec 15, 2017
Databases
databases
query
sql
+
–
0
votes
0
answers
267
Update, Delete and Insert via View in SQL
Hi Guys, In what situation Update, Delete and Insert operation could be performed via view ? Please provide some kind of proof to support your answer. It will be really helpful. PS: http://www.geekinterview.com/question_details/4529 ... modify-data-through-a-view http://www.sqlservercentral.com/blogs/sqldbauk/2011/07/11/can-you-delete-from-a-view_3F00_/
Hi Guys,In what situation Update, Delete and Insert operation could be performed via view ? Please provide some kind of proof to support your answer. It will be really he...
Chhotu
241
views
Chhotu
asked
Dec 11, 2017
Databases
databases
sql
view
+
–
1
votes
0
answers
268
TEST SERIES - SQL
You executed the following SQL statements in the given order: CREATE TABLE orders (order_id NUMBER(3) PRIMARY KEY, order_date DATE, customer_idnumber(3)); INSERT INTO orders VALUES (100,'10-mar-2007',222); ALTER TABLE orders MODIFY order_date NOT ... All the statements up to the ALTER TABLE statement would be committed and the outcome of UPDATE statement would be rolled back.
You executed the following SQL statements in the given order:CREATE TABLE orders(order_id NUMBER(3) PRIMARY KEY,order_date DATE,customer_idnumber(3));INSERT INTO orders V...
shaurya vardhan
536
views
shaurya vardhan
asked
Dec 11, 2017
Databases
sql
databases
query
+
–
1
votes
0
answers
269
# FILE AND SQL
Abhijeet_Kumar
234
views
Abhijeet_Kumar
asked
Dec 8, 2017
Databases
databases
file-system
sql
self-doubt
+
–
0
votes
0
answers
270
Ace Test Series: Databases - Sql
saxena0612
571
views
saxena0612
asked
Dec 7, 2017
Databases
ace-test-series
sql
databases
+
–
Page:
« prev
1
...
4
5
6
7
8
9
10
11
12
13
14
...
17
next »
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register