in Education by
In order to include an attribute Name to the teaches relation which of the following command is used? (a) Alter table teaches include Name; (b) Alter table teaches add Name; (c) Alter table teaches add Name varchar; (d) Alter table teaches add Name varchar(20); I had been asked this question in an international level competition. The question is from Querying database part-1 DDL in section Database Systems Design and Implementation of Database Management Select the correct answer from above options Interview Questions and Answers, Database Interview Questions and Answers for Freshers and Experience

1 Answer

0 votes
by
Right choice is (d) Alter table teaches add Name varchar(20); Easy explanation - The form of the alter table command is alter table r add AD; where r is the name of an existing relation, A is the name of the attribute to be added, and D is the type of the added attribute.

Related questions

0 votes
    To include integrity constraint in an existing relation use : (a) Create table (b) Modify table (c) ... , Database Interview Questions and Answers for Freshers and Experience...
asked Oct 11, 2021 in Education by JackTerrance
0 votes
    Department and store model. They are a one to one relationship. when I do the (Include) only some ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 7, 2022 in Education by JackTerrance
0 votes
    Which of the following command is used to display the departments of the instructor relation? (a) ... chapter Database Systems Design and Implementation of Database Management...
asked Oct 10, 2021 in Education by JackTerrance
0 votes
    A relation is in ____________ if an attribute of a composite key is dependent on an attribute of other ... for Decomposition topic in division Normalization of Database Management...
asked Oct 10, 2021 in Education by JackTerrance
0 votes
    Consider the following relation: Product (PID, name, price, description) Now create a trigger in Product relation ... product relation Select the correct answer from above options...
asked Dec 10, 2021 in Education by JackTerrance
0 votes
    Given the following relation: Student (Std_ID, name, dept, totalcredit) Now Create a view STDINFO (ID, name, ... the STDINFO view. Select the correct answer from above options...
asked Dec 10, 2021 in Education by JackTerrance
0 votes
    In the course relation, the title field should throw an error in case of any missing title. The command ... , Database Interview Questions and Answers for Freshers and Experience...
asked Oct 11, 2021 in Education by JackTerrance
0 votes
    The relation with the attribute which is the primary key is referenced in another relation. The relation ... Database Interview Questions and Answers for Freshers and Experience...
asked Oct 11, 2021 in Education by JackTerrance
0 votes
    If every non-key attribute is functionally dependent primary key, then the relation will be in (a) First ... , Database Interview Questions and Answers for Freshers and Experience...
asked Oct 11, 2021 in Education by JackTerrance
0 votes
    A _______ on the attribute A of relation r consists of one bitmap for each value that A can take. ... Answers, Database Interview Questions and Answers for Freshers and Experience...
asked Oct 11, 2021 in Education by JackTerrance
0 votes
    In the schema (dept name, size) we have relations total inst 2007, total inst 2008. Which ... from Database Design Process in section Normalization of Database Management...
asked Oct 10, 2021 in Education by JackTerrance
0 votes
    Relation dept year(dept name, total inst 2007, total inst 2008, total inst 2009). Here the only ... Answers, Database Interview Questions and Answers for Freshers and Experience...
asked Oct 11, 2021 in Education by JackTerrance
0 votes
    The relation EMPDT1 is defined with attributes empcode(unique), name, street, city, state, and pincode. ... topic in division Query Processing Techniques of Database Management...
asked Oct 10, 2021 in Education by JackTerrance
0 votes
    Is there any relation between the directory that hold sstables and the name of the (1)keyspace of the sstable (2)There is ... names can be different (5)Both name has to be same...
asked May 6, 2021 in Education by JackTerrance
...