An index in a DBMS is said to be dense if an index entry appears for everysearch-key value in the indexed file. Otherwise it is called a sparse index. Considerthe following two statements.S1: A hash index must be a dense indexS2: A 𝐵+ tree index can be a sparse indexWhich one of the following options is correct?
Consider concurrent execution of two transactions 𝑇1 and 𝑇2 in a DBMS, both ofwhich access a data object 𝐴. For these two transactions to not conflict on 𝐴, whichone of the following statements must be true?
In the context of DBMS, consider the two sets T and S given below.TSI: Logical schemaL: ViewsII: Physical schemaM: File organization and indexesIII: External schema N: RelationsWhich one of the following is the correct match from T to S ?
Consider the following database tables of a sports league. player (\( pid \), \( pname \), \( age \)) coach (\( cid \), \( cname \)) team (\( tid \), \( tname \), \( city \), \( cid \)) members (\( pid \), \( tid \)) An instance of the table and an SQL query are given. Player tablecoach table:team table:members table:SQL query: \[ {SELECT MIN(P.age)} \] \[ {FROM player P} \] \[ {WHERE P.pid IN (} \] \[ { SELECT M.pid} \] \[ { FROM team T, coach C, members M} \] \[ { WHERE C.cname = 'Mark'} \] \[ { AND T.cid = C.cid} \] \[ { AND M.tid = T.tid)} \] The value returned by the given SQL query is __________. (Answer in integer)
SELECT * FROM Student WHERE gender = 'F' AND marks > 65;
A database has 25,000 fixed-length records of 100 bytes (primary key 15 bytes). The data file is block-aligned so each record is fully contained within a block. The file is indexed by a primary index file, also block-aligned and ordered. Block size is 1024 bytes and a block pointer is 5 bytes. Each index entry stores the block’s anchor key (15 bytes) and a pointer (5 bytes). Binary search on an index file of \(b\) blocks needs \(\lceil \log_2 b \rceil\) block accesses in the worst case. Given a key, the number of block accesses required to identify the data file block that may contain the record, in the worst case, is ____________.