An attribute A of datatype varchar(20) has the value 'xyz', and the attribute B of datatype char(20) has the value 'lmnop'. Then attribute A has ___ spaces and attribute B has ___ spaces.
Pick an option to check yourself, or open the answer below.
Show answer & explanation
Correct answer: C. 3,20
Explanation
VARCHAR stores only the 3 characters used; CHAR(20) is padded to the full 20 characters.
More Database Management Systems questions
- Data warehouse contains _____ data that is never found in the operational environment.
- _____command is used to remove a relation from an SQL database.
- Which of the following statements is/are true? (i) Facebook has the world's largest Hadoop cluster. (ii) Hadoop 2.0 allows live stream proc…
- Data scrubbing is
- Consider a relation schema R = (A, B, C, D, E, F) on which the following functional dependencies hold : A → B B, C → D E → C D → A What are…
- Consider two transactions on account A (initial balance 20,000): T1 transfers 5,000 to account B, then T2 applies 10% interest to A. The lo…