Recent questions tagged databases

0 0 votes
0 0 answers
490
490 views
I am currently studying database . In the Raghu Rmakhrishnan it has been written that "the DDL languages is used in both external level and Conceptual level ". Please el...
3 3 votes
1 1 answer
1.7k
1.7k views
BOOK(ACC_NO, TITLE, YR_PUB)USER(CARD_NO, B_NAME, B_ADD)B_BY(ACC_NO , CARD_NO , DOI)SUPPLIER(S_NAME,S_ADD)S_BY(S_NAME,S_NAME,PRICE,,DOS)Query :- find the names of those su...
0 0 votes
0 0 answers
1.1k
1.1k views
for attribute set D the functional dependency D->D is considerd as trival i.e. D functionally determines itself.but how for D={a,b,c,d,e}i can have relation R which i...
0 0 votes
1 1 answer
1.9k
1.9k views
Specify the following queries in SQL on the database schema of Figure 1.2.Figure 1.2:A database that storesstudent and courseinformation.CaptionRetrieve the names of all ...
11 11 votes
5 answers 5 answers
22.8k
22.8k views
a relation R(A,B,C,D,E,F,G,H)and set of functional dependencies are {CH->G,A->BC,B->CFH,E->A,F->EG }then how many possible super keys are present ?
0 0 votes
0 0 answers
4.1k
4.1k views
Specify the following queries in SQL on the COMPANY relational database schema shown in figure 3.5 .Show the result of each query if it is applied to the COMPANY databas...
1 1 vote
0 0 answers
1.2k
1.2k views
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...
0 0 votes
0 0 answers
737
737 views
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 ...
3 3 votes
0 0 answers
1.4k
1.4k views
Write appropriate SQL DDL statements for declaring the LIBRARY relational database schema of figure below. Specify the keys and referential triggered actions.
0 0 votes
1 1 answer
686
686 views
List the data types that are allowed for SQL attributes.
0 0 votes
0 0 answers
1.3k
1.3k views
Consider the LIBRARY relational database schema shown in the figure below .Choose the appropriate action (reject, cascade, set to NULL, set to default) for each referenti...
0 0 votes
0 0 answers
768
768 views
Consider the database shown below ,Whose schema is also shown below .What are the referential integrity constraints that should hold on the schema ? Write appropriate $SQ...
0 0 votes
4 4 answers
3.0k
3.0k views
What will COUNT(*) returns if all the collection has only null values???
3 3 votes
2 2 answers
3.1k
3.1k views
Consider the relation R1( P, Q, R, S ) and R2 ( R, G, T, U )The relation R1 has 20 tuples and R2 has 10 tuples then maximum number of tuples in R1 ⟕ R2 is ...........
8 8 votes
1 1 answer
1.9k
1.9k views
Consider the following relation:R (A B C) A primary key with 100 tuples.S (E F G) E primary key with 50 tuples.T (AE D) AE primary key with 80 tuples.U (D G H) H primary ...
99 99 votes
11 answers 11 answers
37.3k
37.3k views
Consider the following two phase locking protocol. Suppose a transaction $T$ accesses (for read or write operations), a certain set of objects $\{O_1,\ldots,O_k \}$. This...
105 105 votes
8 answers 8 answers
30.0k
30.0k views
A database of research articles in a journal uses the following schema.$\text{(VOLUME, NUMBER, STARTPAGE, ENDPAGE, TITLE, YEAR, PRICE)}$The primary key is '$\text{(VOLUME...
32 32 votes
3 answers 3 answers
12.4k
12.4k views
Which one of the following is NOT a part of the ACID properties of database transactions?AtomicityConsistencyIsolationDeadlock-freedom
52 52 votes
3 answers 3 answers
12.6k
12.6k views
Which of the following is NOT a superkey in a relational schema with attributes $V,W,X,Y,Z$ and primary key $V\;Y$?$VXYZ$$VWXZ$$VWXY$$VWXYZ$
82 82 votes
3 answers 3 answers
18.6k
18.6k views
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...
106 106 votes
12 answers 12 answers
37.1k
37.1k views
Consider the following database schedule with two transactions $T_{1}$ and $T_{2}$.$S= r_{2}\left(X\right); r_{1}\left(X\right); r_{2} \left(Y\right); w_{1} \left(X\right...
63 63 votes
5 answers 5 answers
19.8k
19.8k views
B+ Trees are considered BALANCED because.The lengths of the paths from the root to all leaf nodes are all equal.The lengths of the paths from the root to all leaf nodes d...
54 54 votes
8 answers 8 answers
26.2k
26.2k views
Suppose a database schedule $S$ involves transactions $T_1,\ldots,T_n$ . Construct the precedence graph of $S$ with vertices representing the transactions and edges repr...
1 1 vote
2 2 answers
3.5k
3.5k views
Consider the relation $R(X Y Z)$ has the following tuples XYZ123124321_________ tuples in the result of following relational algebra expression$(\underset{X,Y}...
6 6 votes
1 answers 1 answer
5.2k
5.2k views
What is the minimum levels of B+ tree index required for 5000 keys and order of B+ tree node (P) is 10. (Assume P is the max pointer possible to store in B+ tree node) My...
0 0 votes
1 1 answer
799
799 views
what is the advantage of keeping the Foreign Key null as we know if we make the Foreign Key null we cant reference it again so thats a disadvantage ......so there must be...
0 0 votes
2 2 answers
1.3k
1.3k views
S: T1(A)R2(B)W2(B)R2(A)W2(B)W1(A)R3(B)W3(B) Given schedule is view serializable ?
0 0 votes
1 answers 1 answer
768
768 views
2 2 votes
1 answers 1 answer
998
998 views
scheduleR(A) R(B) R(B) W(A) COMMIT R(C) R(B) W(C) W(B) R(A) R(C) COMMIT COMMITThe above scedule is -:a)conflict serializableb)recoverablec)cascadelessd)all ...
0 0 votes
1 1 answer
637
637 views
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...