Login
Register
Dark Mode
Brightness
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Recent questions tagged sql
1
votes
0
answers
421
Navathe-Fundamentals of Database systems-basic SQL-sixth edition-4.11
Specify the updates of Exercise 3.11 using the SQL update commands. EXERCISE 3.11 : Suppose that each of the following Update operations is applied directly to the database state shown in Figure 3.6. Discuss all integrity ... Michael M 1988-01-04 Son 123456789 Alice F 1988-12-30 Daughter 123456789 Elizabeth F 1967-05-05 Spouse
Specify the updates of Exercise 3.11 using the SQL update commands.EXERCISE 3.11 : Suppose that each of the following Update operations is applied directly to the databa...
ibia
790
views
ibia
asked
Apr 5, 2016
Databases
databases
descriptive
sql
navathe
+
–
0
votes
0
answers
422
Navathe-Fundamentals of Database systems-basic SQL-sixth edition-4.14
Design a relational database schema for a database application of your choice. Declare your relations,using the SQL DDL. Specify a number of queries in SQL that are needed by your database application. Based on your ... that should have indexes specified on them Implement your database , if you have a DBMS that supports SQL.
Design a relational database schema for a database application of your choice.Declare your relations,using the SQL DDL.Specify a number of queries in SQL that are needed ...
ibia
493
views
ibia
asked
Apr 5, 2016
Databases
databases
descriptive
sql
navathe
+
–
3
votes
0
answers
423
Navathe-Fundamentals of Database systems-basic SQL-sixth edition-4.8
Write appropriate SQL DDL statements for declaring the LIBRARY relational database schema of figure below. Specify the keys and referential triggered actions.
Write appropriate SQL DDL statements for declaring the LIBRARY relational database schema of figure below. Specify the keys and referential triggered actions.
ibia
1.2k
views
ibia
asked
Apr 4, 2016
Databases
databases
sql
+
–
0
votes
1
answer
424
Navathe-Fundamentals of Database systems-basic SQL-sixth edition-4.2
List the data types that are allowed for SQL attributes.
List the data types that are allowed for SQL attributes.
ibia
420
views
ibia
asked
Apr 2, 2016
Databases
databases
sql
descriptive
+
–
0
votes
4
answers
425
What will COUNT(*) returns if all the collection has only null values?
What will COUNT(*) returns if all the collection has only null values???
What will COUNT(*) returns if all the collection has only null values???
ShiveshRoy
2.2k
views
ShiveshRoy
asked
Apr 1, 2016
Databases
databases
sql
+
–
56
votes
1
answer
426
GATE CSE 2016 Set 2 | Question: 52
Consider the following database table named water_schemes: ... total_avg (capacity) as select avg (capacity) from total select name from total, total_avg where total.capacity ≥ total_avg.capacity
Consider the following database table named water_schemes:$$\overset{\text{Water_schemes}}{\begin{array}{|c|c|c|}\hline\textbf{scheme_no}& \textbf{district_name}& \te...
Akash Kanase
11.2k
views
Akash Kanase
asked
Feb 12, 2016
Databases
gatecse-2016-set2
databases
sql
normal
numerical-answers
+
–
0
votes
1
answer
427
Virtual Gate Test Series: Databases - Query Interpretation
The inner query in Q1 will select the employee having max salary from all other employees in all departments(this will return the max salaried employee in the entire company which belongs to dept 5), and outer query will select all ... from entire company who have salary greater than anyone in dept 5. Why is the answer Q1 and not Q2?
The inner query in Q1 will select the employee having max salary from all other employees in all departments(this will return the max salaried employee in the entire comp...
Purple
393
views
Purple
asked
Jan 30, 2016
Databases
databases
sql
virtual-gate-test-series
+
–
1
votes
1
answer
428
SQL
Can Foreign key value can be null??
Can Foreign key value can be null??
tamil93
314
views
tamil93
asked
Jan 26, 2016
Databases
sql
databases
+
–
1
votes
2
answers
429
MadeEasy Test Series: Databases - Sql
Can you please provide an elaborate explanation?
Can you please provide an elaborate explanation?
Nikita Moghe
629
views
Nikita Moghe
asked
Jan 21, 2016
Databases
made-easy-test-series
databases
sql
+
–
1
votes
2
answers
430
General Topic Revision Databases: Sql
Name the SQL aggregation operator which does not ignore NULL. COUNT MAX AVG SUM
Name the SQL aggregation operator which does not ignore NULL. COUNTMAXAVGSUM
Arjun
578
views
Arjun
asked
Jan 20, 2016
Databases
sql
databases
revision
+
–
1
votes
1
answer
431
Sql and relational algebra
Can anyone suggest me how to learn about sql and relational algebra and calculus for gate? as i feel this is an important topic and one 2 marks ques will be asked. I can understand easy problems and problems with solutions. Anything worth regarding this topic?
Can anyone suggest me how to learn about sql and relational algebra and calculus for gate?as i feel this is an important topic and one 2 marks ques will be asked. I can u...
khushtak
851
views
khushtak
asked
Jan 20, 2016
Databases
databases
relational-calculus
relational-algebra
sql
+
–
2
votes
2
answers
432
sql query
shreshtha5
371
views
shreshtha5
asked
Jan 20, 2016
Databases
sql
+
–
0
votes
1
answer
433
Sql query 1 kt
Table stud(sid, marks, branch, gender) Query -retrieve branches for which male student's avg marks of each branch greater than avg marks of female students of the same branch. I think its query should be like- Select distinct branch From stud s1 Where ... )>(select avg(marks) from stud s2 Where gender=female and s1.branch=s2.branch Group by branch) Is this query correct?
Table stud(sid, marks, branch, gender)Query -retrieve branches for which male student's avg marks of each branch greater than avg marks of female students of the same bra...
khushtak
471
views
khushtak
asked
Jan 20, 2016
Databases
databases
sql
+
–
0
votes
0
answers
434
SQL-DBMS
Hello, What is the result for the given scenario: Select * from table1 where (cond) ANY/IN/ALL/EXISTS/etc (sub query result empty) If this is the question given and asked how many rows does it return then the answer would be ?? I know when we use > ALL for the above scenario it gives all the rows of table1. Please add your points.
Hello,What is the result for the given scenario:Select * from table1 where (cond) ANY/IN/ALL/EXISTS/etc (sub query result empty)If this is the question given and asked ho...
Bishnu Agrawal
325
views
Bishnu Agrawal
asked
Jan 16, 2016
Databases
databases
sql
+
–
1
votes
1
answer
435
TestBook Test Series: Databases - Sql
Consider $\rm STUDENT$ table with following tuples: SName CPI Deepak 8.7 Dilip 9.7 Kaustav 8.5 Pallab 9.8 Sourav 8.7 Swapnil 8.5 (SELECT * FROM STUDENT S1 WHERE 3 >= (SELECT COUNT(*) FROM STUDENT S2 WHERE S1.CPI <= S2.CPI) ) UNION ( ... ) How many number of tuples are there in the output ? I'm getting $2$ as the answer, while the given answer is $4$.
Consider $\rm STUDENT$ table with following tuples:SName CPI Deepak 8.7 Dilip 9.7 Kaustav 8.5 Pallab 9.8 Sourav 8.7 Swapnil 8.5(SELECT * FROM STUDENT S1 WHERE 3 >= (SELEC...
Akash Kanase
458
views
Akash Kanase
asked
Jan 15, 2016
Databases
testbook-test-series
databases
sql
+
–
0
votes
0
answers
436
Can you please explain the second query
worst_engineer
561
views
worst_engineer
asked
Jan 7, 2016
Databases
sql
databases
+
–
5
votes
1
answer
437
Sql query
Q). Consider STUDENT table with the following tuples. SNAME CPI Deepak 8.7 Dilip 9.7 Kaustav 8.5 Pallab 9.8 Sourav 8.7 Swapnil 8.5 (select * FROM STUDENT S1 WHERE 3> (SELECT COUNT(*) FROM STUDENT S2 WHERE S1.CPI<=S2.CPI)) UNION (SELECT * FROM STUDENT S1 ... COUNT(*) FROM STUDENT S3 WHERE S2.CPI <= S3.CPI))) How many numbers of tuples are there in the output of the above query?
Q). Consider STUDENT table with the following tuples.SNAMECPIDeepak8.7Dilip9.7Kaustav8.5Pallab9.8Sourav8.7Swapnil8.5(select * FROM STUDENT S1 WHERE 3 (SELECT COUNT(*) FRO...
Himanshu1
716
views
Himanshu1
asked
Jan 5, 2016
Databases
databases
sql
+
–
0
votes
0
answers
438
Question on calculating the number of tuples in result of a database query
I couldn't understand its solution. Please explain
I couldn't understand its solution. Please explain
shikharV
395
views
shikharV
asked
Jan 4, 2016
Databases
databases
sql
+
–
0
votes
1
answer
439
Null values while aggrigate function in query
How aggrigate functions in query will behave in data contains NULL values. I think answer should be D as all aggrigatre functions EXCEPT count will ignore NULL values. so, AVG will be 300 and count will be 4
How aggrigate functions in query will behave in data contains NULL values.I think answer should be D as all aggrigatre functions EXCEPT count will ignore NULL values. so,...
CKgurav
1.3k
views
CKgurav
asked
Jan 1, 2016
Databases
databases
sql
+
–
0
votes
2
answers
440
Having clause
sourabh
590
views
sourabh
asked
Dec 31, 2015
Databases
sql
+
–
2
votes
1
answer
441
UGC NET CSE | December 2015 | Part 3 | Question: 59
Consider the following database table: Create table test( one integer, two integer, primary key(one), unique(two), check(one>=1 and <=10), check (two>=1 and <=5) ); How many data records/tuples atmost can this table contain? $5$ $10$ $15$ $50$
Consider the following database table:Create table test( one integer, two integer, primary key(one), unique(two), check(one>=1 and <=10), check (two>=1 and <=5) );How man...
Sanjay Sharma
4.0k
views
Sanjay Sharma
asked
Dec 30, 2015
Databases
ugcnetcse-dec2015-paper3
databases
sql
+
–
0
votes
0
answers
442
Sql
In sql, these all are right or wrong Exist{}=true Not exist{}=true All{}=true Not all{}=true Any{}=false Not any{}=false In{}=false Not in{}=false
In sql, these all are right or wrongExist{}=trueNot exist{}=trueAll{}=trueNot all{}=trueAny{}=falseNot any{}=falseIn{}=falseNot in{}=false
sourabh
459
views
sourabh
asked
Dec 21, 2015
Databases
sql
+
–
3
votes
2
answers
443
Output of given sql query
Use the following tables for the below queries wherever table $1$ and table $2$ are used: Select * From Table 1 Where not exists (Select $T_{2}B$ From Table 2 where $T_{2}B < > T_{1}B$) How many number of rows will be there in the output ? $1$ $2$ $3$ $0$
Use the following tables for the below queries wherever table $1$ and table $2$ are used:Select *From Table 1Where not exists (Select $T_{2}B$ From Table 2 where $T_{2}B ...
shikharV
1.2k
views
shikharV
asked
Dec 8, 2015
Databases
sql
databases
+
–
0
votes
2
answers
444
Question on SQL like operator
Given answer: D Please explain
Given answer: DPlease explain
shikharV
804
views
shikharV
asked
Dec 8, 2015
Databases
databases
sql
+
–
0
votes
2
answers
445
Output of sql query with group by clause
A B C 5 2 1 10 NULL 2 15 2 3 In the above relation T the output of query: select * from T group by B; A B C 10 NULL 2 5 2 1 Can anyone explain why this is the output?
ABC52110NULL21523In the above relation T the output of query:select * from T group by B;ABC10NULL2521Can anyone explain why this is the output?
shikharV
574
views
shikharV
asked
Dec 8, 2015
Databases
databases
sql
+
–
0
votes
1
answer
446
Finding output of given SQL query
Given answer: B I don't know how to deal with NULL in such query operations. Please explain.
Given answer: BI don't know how to deal with NULL in such query operations. Please explain.
shikharV
413
views
shikharV
asked
Dec 8, 2015
Databases
sql
databases
+
–
0
votes
1
answer
447
Finding output of given SQL query
Given answer: B I don't know how to deal with NULL in such query operations. Please explain.
Given answer: BI don't know how to deal with NULL in such query operations. Please explain.
shikharV
1.1k
views
shikharV
asked
Dec 8, 2015
Databases
sql
databases
+
–
1
votes
3
answers
448
MOCK_GATEFORUM_SAT6 SQL
bahirNaik
473
views
bahirNaik
asked
Dec 6, 2015
Databases
sql
+
–
2
votes
2
answers
449
Sql group by clause?
How does group by works. ya it make groups of the data . and what i know it will group the data. what what i found on running on the online tutorials is that , the group by only shows me one entry for every distinct entry, can someone plz explain the way this group by works??
How does group by works. ya it make groups of the data . and what i know it will group the data. what what i found on running on the online tutorials is that , the group ...
Tendua
856
views
Tendua
asked
Dec 4, 2015
Databases
sql
+
–
6
votes
4
answers
450
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 * from $R$...
resuscitate
1.1k
views
resuscitate
asked
Nov 3, 2015
Databases
databases
sql
relational-calculus
+
–
Page:
« prev
1
...
10
11
12
13
14
15
16
17
next »
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register