Login
Register
Dark Mode
Brightness
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Webpage for Databases:
Recent questions tagged databases
5
votes
4
answers
2671
Why is the maximum number of tuples in full outer join equal to m*n ?
Why is the maximum number of tuples in full outer join equal to m*n, where m is the number of attributes in one relation and n is the attribute count in other ? Can someone give an example to illustrate this ?
Why is the maximum number of tuples in full outer join equal to m*n, where m is the number of attributes in one relation and n is the attribute count in other ?Can someon...
learncp
3.4k
views
learncp
asked
Sep 5, 2015
Databases
databases
relational-algebra
+
–
2
votes
2
answers
2672
Why is it so that from a given relation instance we can't derive the set of fds ?
why can't we say that A functionally determines B from the given relation instance when it satisfies the constraints since for unique value of A we have unique value of B this implies that A functionally determines B , so then why can't we conclude whether A -->B holds or not ?
why can't we say that A functionally determines B from the given relation instance when it satisfies the constraints since for unique value of A we have unique value of B...
radha gogia
382
views
radha gogia
asked
Sep 3, 2015
Databases
databases
database-normalization
+
–
5
votes
2
answers
2673
Is the following type of dependencies allowed in 3NF- ?
Is the following type of dependencies allowed in 3NF- ? A-->B where A is a proper subset of CK and B is proper subset of another CK.
Is the following type of dependencies allowed in 3NF- ?A >Bwhere A is a proper subset of CKand B is proper subset of another CK.
learncp
1.1k
views
learncp
asked
Aug 31, 2015
Databases
databases
database-normalization
+
–
6
votes
4
answers
2674
3NF is inadequate in situations where the relation:
3NF is inadequate in situations where the relation: A. has multiple candidates key B. has candidate key that are composite C. has overlapped candidate keys D. all the above
3NF is inadequate in situations where the relation:A. has multiple candidates keyB. has candidate key that are compositeC. has overlapped candidate keysD. all the above
learncp
19.8k
views
learncp
asked
Aug 31, 2015
Databases
databases
database-normalization
+
–
0
votes
2
answers
2675
what is the meaning of the data item actually when we write the statement READ(A) ?
I am having some confusion in understanding the meaning of the term data item . when we write READ(A) A=A-10 WRITE(A) Now I am unable to get one point here that when we have a file consisting of various blocks ... disk , but we write only this statement like : READ(A) , is this block or only a single attribute ?
I am having some confusion in understanding the meaning of the term data item .when we writeREAD(A) A=A-10WRITE(A)Now I am unable to get one point here that when we hav...
radha gogia
446
views
radha gogia
asked
Aug 28, 2015
Databases
databases
+
–
0
votes
2
answers
2676
what is the actual meaning of rollback in a transaction ?
we say that when any transaction is rolled-back that means it would be re-started again , so lets say if T2 reads a data item from T1 , perform some computation on it and then writes it back onto disk and after some T1 fails , ... set to its initial value or since T1 is restarted again it would be set to the value as computed by T1 again ?
we say that when any transaction is rolled-back that means it would be re-started again , so lets say if T2 reads a data item from T1 , perform some computation on it and...
radha gogia
407
views
radha gogia
asked
Aug 25, 2015
Databases
databases
+
–
1
votes
1
answer
2677
Why does Read operation conflicts with write operation ?
I am having one confusion in this concept , say T1 reads a data item A and then T1 writes on it , so we say that while converting into a serial schedule we can't swap these two , but what's the reason behind this ... T1 would write would be written back into the disk so then why do we not allow read to swap with write operation .
I am having one confusion in this concept , say T1 reads a data item A and then T1 writes on it , so we say that while converting into a serial schedule we can't swap the...
radha gogia
459
views
radha gogia
asked
Aug 23, 2015
Databases
databases
+
–
0
votes
0
answers
2678
why are both SIX and SIX not compatible to each other ?
If a node is already in SIX mode then why can't another transaction lock it again in SIX mode ?since this implies that some another transaction is trying to apply exclusive lock on some node below this current node , so then what 's the issue ?
If a node is already in SIX mode then why can't another transaction lock it again in SIX mode ?since this implies that some another transaction is trying to apply exclusi...
radha gogia
175
views
radha gogia
asked
Aug 23, 2015
Databases
databases
+
–
0
votes
0
answers
2679
why are IS and S locks compatible ?
if a node R1 is in IS mode then it may be a possibility that some node below it is in exclusive lock then how can we lock R1 in S mode since if I apply S on it that means I am trying to lock every node below R1 in S mode but since some node ... R1 is in IS mode so than how can a transaction come and lock R1 in shared mode i.e. why are IS and S locks compatible ?
if a node R1 is in IS mode then it may be a possibility that some node below it is in exclusivelock then how can we lock R1 in S mode since if I apply S on it that means ...
radha gogia
163
views
radha gogia
asked
Aug 23, 2015
Databases
databases
+
–
0
votes
2
answers
2680
how to approach this type of question
i know how to find whether the decomposition is lossless or lossy . but in this type of question they are actually not defining how they decompose . they are only giving a set of functional depenencies . how to solve this type of question
i know how to find whether the decomposition is lossless or lossy . but in this type of question they are actually not defining how they decompose . they are only giving ...
Tendua
413
views
Tendua
asked
Aug 22, 2015
Databases
databases
decomposition
+
–
0
votes
2
answers
2681
How is the below schedule conflict serializable ?
I am not getting that due to Write(A) in T1 and Read(A) in T2 , I will have an edge from T1 to T2 , and then due to Write(B) in T1 and then Read(B) in T1 , we will have an arrow from T2 to T1 , hence a cycle is formed so it should be non-conflict serializable , so why is it conflict serializable , plz correct me where am I wrong ?
I am not getting that due to Write(A) in T1 and Read(A) in T2 , I will have an edge from T1 to T2 , and then due to Write(B) in T1 and then Read(B) in T1 , we will have...
radha gogia
524
views
radha gogia
asked
Aug 19, 2015
Databases
databases
+
–
0
votes
0
answers
2682
How can in the below schedule write write operation can be swapped ?
I am nt getting how this write operation in the first case can be converted into a serial schedule in both the two cases , i.e we are given the first set as the complete schedule now how can we convert it into ... , hence it must be not be conflict serializable so then how can we convert that schedule into a serial schedule ?
I am nt getting how this write operation in the first case can be converted into a serial schedule in both the two cases , i.e we are given the first set as the complete ...
radha gogia
299
views
radha gogia
asked
Aug 18, 2015
Databases
databases
+
–
0
votes
2
answers
2683
Advantage of B+ tree over B tree
I am unable to get that what advantage do we get when we store only records consisting of primary attributes in case of B+ tree i.e. we do not store record pointers corresponding to those key attributes , we do it only at the leaf ... record pointer associated so I guess that's more advantageous , so then why database designers prefer B+ trees over B trees ?
I am unable to get that what advantage do we get when we store only records consisting of primary attributes in case of B+ tree i.e. we do not store record pointers corre...
radha gogia
4.0k
views
radha gogia
asked
Aug 16, 2015
Databases
databases
+
–
0
votes
1
answer
2684
Consider the relation R(A,B,C,D) with dependencies AB -> C, ABC -> D and AC ->>- B.
R is not in 3NF R is in 3NF but not in BCNF R is in BCNF but not in 4NF R is in 4NF How to approach this ques ?
R is not in 3NF R is in 3NF but not in BCNF R is in BCNF but not in 4NF R is in 4NF How to approach this ques ?
radha gogia
13.7k
views
radha gogia
asked
Aug 16, 2015
Operating System
databases
+
–
1
votes
1
answer
2685
Canonical cover is in which normal form ?
I am just having one confusion that if we have a canonical cover so it doesn't have any extraneous attributes or redundancy , so is it always in normal form, or not always true ,i.e it may depend on whether it satisfies all the conditions for being in normal form .
I am just having one confusion that if we have a canonical cover so it doesn't have any extraneous attributes or redundancy , so is it always in normal form, or not alway...
radha gogia
457
views
radha gogia
asked
Aug 15, 2015
Databases
databases
+
–
0
votes
1
answer
2686
Consider a relational table r with sufficient number of records, having attributes A1, A2,…, An and let 1 <= p <= n.
The database can be configured to do ordered indexing on Ap or hashing on Ap. Which of the following statements is TRUE?(A) Ordered indexing will always outperform hashin...
radha gogia
702
views
radha gogia
asked
Aug 15, 2015
Databases
databases
+
–
0
votes
1
answer
2687
Find out all the books which are either issued, or have been supplied by a supplier.
BOOK (acc_no, year, title) USER (card_no, name, address) SUPPLIER (s_name, address) BORROWED_BY (acc_no, card_no, date of issue) SUPPLIED_BY (acc_no, date of supply, price, s_name) In the above relation, find ... supplier. Give your answer in the following forms: (a) Relational Algebra (b) SQL (c) Tuple Calculus
BOOK (acc_no, year, title)USER (card_no, name, address)SUPPLIER (s_name, address)BORROWED_BY (acc_no, card_no, date of issue)SUPPLIED_BY (acc_no, date of supply, price,...
saket nandan
1.1k
views
saket nandan
asked
Aug 9, 2015
Databases
databases
relational-calculus
+
–
0
votes
2
answers
2688
give answer for relational algebra , tuple calculas , and SQL
BOOK(acc_no.,year,title) USER(card_no.,names,address) SUPPLIER(s_name,address) BORROWED BY (acc_no.card_no,date of issue) SUPPLIED BY(acc_no,date of supply,price ,s_name) in above given relation find out the acc_no of all the book which are present in the library in (a)relational algebra form (b) in sql form (c)in tuple calculas form
BOOK(acc_no.,year,title)USER(card_no.,names,address)SUPPLIER(s_name,address)BORROWED BY (acc_no.card_no,date of issue)SUPPLIED BY(acc_no,date of supply,price ,s_name)in a...
saket nandan
1.4k
views
saket nandan
asked
Aug 9, 2015
Databases
databases
relational-calculus
+
–
1
votes
1
answer
2689
why is the below statement regrading weak entity correct ?
Weak entity set avoids the data duplication and consequent possible inconsistencies caused by duplicating the key of the strong entity.. plz clarify this........
Weak entity set avoids the data duplication and consequent possible inconsistencies caused by duplicating the key of the strong entity..plz clarify this........
radha gogia
599
views
radha gogia
asked
Aug 5, 2015
Databases
databases
+
–
1
votes
1
answer
2690
How to draw E-R model for the below scenario ?
Each employee is assigned to a project work at only one location for that project, but can be at a different location for a different project. At a given location, an employee works on only one project. At a particular location, there can be many employees assigned to a given project.
Each employee is assigned to a project work at only one location for that project, but can be at a different location for a different project. At a given location, an emp...
radha gogia
632
views
radha gogia
asked
Aug 1, 2015
Databases
databases
+
–
0
votes
1
answer
2691
If there are mapping constraints in the E-R diagram , can we reduce the size of the table ?
I am not getting that how many attributes must be there in the Borrowed by table which actually represents a table since we have the constraint that one user can borrow only one book .
I am not getting that how many attributes must be there in the Borrowed by table which actually represents a table since we have the constraint that one user can borrow o...
radha gogia
514
views
radha gogia
asked
Jul 31, 2015
Databases
databases
+
–
6
votes
3
answers
2692
Find canonical cover for the given set of functional dependencies.
Consider the following set of functional dependency on the scheme (A, B,C) A→BC, B→C, A→B, AB→C The canonical cover for this set is: A. A→BC and B→C B. A→BC and AB→C C. A→BC and A→B D. A→B and B→C
Consider the following set of functional dependency on the scheme (A, B,C)A→BC, B→C, A→B, AB→CThe canonical cover for this set is:A. A→BC and B&r...
amarVashishth
10.9k
views
amarVashishth
asked
Jul 25, 2015
Databases
databases
canonical-cover
database-normalization
+
–
1
votes
2
answers
2693
database
decompose relation into 2NF ,3NF,BCNF R(ABCDE) {AB--->C, DE----->C , B------->D} R(ABCD) {AB----->C,C-------->D,D-------->A}
decompose relation into 2NF ,3NF,BCNFR(ABCDE) {AB ->C, DE ->C , B ->D}R(ABCD) {AB ->C,C >D,D >A}
focus _GATE
1.1k
views
focus _GATE
asked
Jul 25, 2015
Databases
databases
+
–
1
votes
1
answer
2694
A relation R(ABCDE) with FD set f = {A -> BC, C -> DE, D -> E} and the decomposition d = { R1(ABCD), R2(DE)}. Is this decomposition dependency preserving?
The answer given is YES. But how is the dependency C - DE preserved in this decomposition?
Shefali
4.8k
views
Shefali
asked
Jul 23, 2015
Databases
databases
database-normalization
+
–
3
votes
3
answers
2695
F = {X -> YZ, Y -> XZ, Z -> X} How many no. of minimal and canonical covers are possible?
Answer is 2 minimal and 2 canonical covers. Please give full explanation of how to solve.
Answer is 2 minimal and 2 canonical covers.Please give full explanation of how to solve.
Shefali
2.0k
views
Shefali
asked
Jul 22, 2015
Databases
database-normalization
databases
canonical-normal-form
+
–
14
votes
4
answers
2696
solve
How many view equal serial schedules possible for the following schedule? S : w1(A) r2(A) w3(A) r4(A) w5(A) r6(A) w7(A) r8(A
How many view equal serial schedules possible for the followingschedule?S : w1(A) r2(A) w3(A) r4(A) w5(A) r6(A) w7(A) r8(A
focus _GATE
4.1k
views
focus _GATE
asked
Jul 17, 2015
Databases
databases
+
–
0
votes
1
answer
2697
explain!
Suppose a phone book contain 500 pages and each page can contain upto 500 records. Suppose we want to search for a particular name in a phone book. Give a worst case bound on number of pages that must be looked to perform a search using an index for the name of the first entry of each page??
Suppose a phone book contain 500 pages and each page can containupto 500 records. Suppose we want to search for a particular name in aphone book. Give a worst case bound ...
focus _GATE
426
views
focus _GATE
asked
Jul 17, 2015
Databases
databases
+
–
1
votes
1
answer
2698
database explain
focus _GATE
366
views
focus _GATE
asked
Jul 17, 2015
Databases
databases
bad-question
+
–
0
votes
2
answers
2699
explain
If R and S are two relation in BCNF the natural join of R and S is also in BCNF. above statement true or false.??
If R and S are two relation in BCNF the natural join of R and S is alsoin BCNF.above statement true or false.??
focus _GATE
1.2k
views
focus _GATE
asked
Jul 16, 2015
Databases
databases
+
–
0
votes
1
answer
2700
give statement in english for SQL
focus _GATE
419
views
focus _GATE
asked
Jul 16, 2015
Databases
databases
sql
+
–
Page:
« prev
1
...
85
86
87
88
89
90
91
92
93
94
95
...
97
next »
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register