87 solutions available
Question 1Assertion (A): A database can have only one table in MySql.Reasoning (R): If a piece of data is stored in two places in the databases, then...
Question 2Assertion (A): A database constraint can be added or removed any time in/from the database tables.Reasoning (R): Alter table command is...
Question 3Assertion (A): SQL has efficient mechanisms to retrieve data stored in multiple tables in a MySQL database.Reasoning (R): The SQL statement...
Question 4Assertion (A): The SQL keyword Like is used with wildcards only.Reasoning (R): '_' underscore and "%" per cent are the two wildcard...
Question 5Assertion (A): DISTINCT clause must be used in an SQL statement to eliminate duplicate rows.Reasoning (R): DISTINCT works with numeric data...
Question 6Assertion (A): ORDER BY clause is used to sort the records of a table.Reasoning (R): SQL provides two keywords for sorting in ascending and...
Question 7Assertion (A): FLOAT and DOUBLE are data types.Reasoning (R): Both can hold any number up to 23 digits.Both A and R are true and R is the...
Question 1MySQL is a freely available open-source RDBMS that implements SQL.
Question 2MySQL provides a dummy table called dual.
Question 3The distinct keyword eliminates duplicate records from the results of a SELECT statement.
Question 4The Describe/DESC statement is used to view the structure of a table.
Question 5The Where clause is used to select specific rows.
Question 6Select is used to fetch data from one or more database tables.
Question 7Select * statement displays all Columns of a table.
Question 8The rows of the table (relation) are referred to as Tuples.
Question 9Insert into command is used to add a new record in a table.
Question 10The non-key attribute which helps to make relationship between two tables is known as Foreign key.
Question 11ALTER table command is used to change the data type of an existing column.
Question 12The statement SELECT * FROM Student ORDER BY Marks DESC; will display marks in Descending order.
Question 1The ............... allows you to perform tasks related to data definition.DDLDMLTCLNone of these
Question 2The ............... allows you to perform tasks related to data manipulation.DDLDMLTCLNone of these
Question 3A ............... is a text that is not executed.StatementQueryCommentClause
Question 4............... are words that have a special meaning in SQL.KeywordsLiteralVariableTable
Question 5............... command helps to open the database for use.UseOpenDistinctSelect
Question 6............... command helps to fetch data from a relation.UseShowFetchSelect
Question 7The ............... keyword eliminates duplicate rows from the results of a SELECT statement.OrDistinctAnyAll
Question 8............... command helps to see the structure of a table/relation.ShowSelectDescribeOrder by
Question 9Which of the following types of table constraints will prevent the entry of duplicate rows?Foreign KeyDistinctPrimary KeyNULL
Question 10Which command shows the list of database in MySQL?desc databases;show tables;show databases;describe databases;
Question 11Which of the following are DDL commands?(A) Delete(B) Create(C) Update(D) Alter(E) Drop(B), (D) and (E)(A), (B) and (D)(B), (C) and...
Question 12Identify the correct statement(s):Statement 1 (S1): Char data-type in MySQL stores fixed length strings.Statement 2 (S2): Char data-type...
Question 13Which of the following keywords is used to display non-repeated values in MySQL?UniqueAllOrder byDistinct
Question 14The SQL statements always end with ............... .,:;"
Question 15Shivam wants to see the table structure in MySQL. Select an appropriate command to help him.UseShowDescDisplay
Question 16Rajat wants to delete a primary key constraint from the table. Select an appropriate command to do so.CreateAlterDropDelete
Question 17Rajveer wants to rename column in display result for his query. Select the appropriate query for the same:Select Ename, Salary*12 Annual...
Question 18The symbol Asterisk (*) in a select query retrieves ............... .All data from the tableData of primary key onlyNULL dataNone of these
Question 19Consider the attributes ( RollINumber, SName, SDateofBirth, GUID ) of the table Student. According to you, which of the following options...
Question 20Consider a table Student having two fields—FName varchar(20) and LName char(20). If in a record, value stored in Fname is 'Anuj' and LName...
Question 1What is an Alternate Key?
Question 2(a)Define Relation.
Question 2(b)Define tuple.
Question 2(c)Define attribute.
Question 2(d)Define domain.
Question 3What do you understand by the terms candidate key and alternate key in relational database?
Question 4What is SQL? What are the different categories of commands available in SQL?
Question 5What is a database system? What is its need?
Question 6Differentiate between DDL and DML commands.
Question 7What is a data type? Name some data types available in MySQL.
Question 8Differentiate between char and varchar data types.
Question 9Which operator concatenates two strings in a query result?
Question 10How would you calculate 13*15 in SQL?
Question 11Which keyword eliminates the redundant data from a query?
Question 12Write SQL queries to perform the following based on the table Product having fields as (prod_id, prod_name, quantity, unit_rate, price,...
Question 13(a)Define Database.
Question 13(b)Define Data Inconsistency.
Question 13(c)Define Primary Key.
Question 13(d)Define Candidate Key.
Question 14Match the following clauses with their respective functions.ALTERInsert the values in the tableUPDATERestrictions on columnsDELETETable...
Question 15Differentiate between the following commands:(a) ALTER and UPDATE(b) DELETE and DROP
Question 16Consider the following tables STORE and SUPPLIERS. Write SQL commands for the statements (i) to (iii) and give the output for SQL query...
Question 17An organization ABC maintains a database EMP-DEPENDENT to record the following details about its employees and their...
Question 18Write SQL commands for (i) to (v) on the basis of relation given below:Table:...
Question 19Write SQL commands for (a) to (e) on the basis of PRODUCTS relation given below:Table:...
Question 20What are DDL and DML?
Question 21Differentiate between primary key and candidate key in a relation.
Question 22What do you understand by the terms Cardinality and Degree of a relation in relational database?
Question 23Differentiate between DDL and DML. Mention the two commands for each category.
Question 24Consider the given table and answer the questions.Table: SCHOOLBUSRtnoArea_CoveredCapacityNoofstudentsDistanceTransporterCharges1Vasant...
Question 25Write SQL commands for (a) to (d) and write the output for (e) on the basis of the following table:Table: FURNITURES...
Question 26Write SQL commands for (a) to (d) and write the output for (e) and (f) on the basis of given table GRADUATE:Table: GRADUATES...
Question 27(a)What is the difference between Candidate key and Alternate key?
Question 27(b)What is the degree and cardinality of a table having 10 rows and 5 columns?
Question 27(c)For the given table, do as directed:Table:STUDENTColumn nameDatatypeSizeConstraintROLLNOInteger4Primary KeySNAMEVarchar25Not...
Question 28Write SQL queries based on the following tables:Table: PRODUCTP_IDProductNameManufacturerPriceDiscountTP01Talcum PowderLAK40NullFW05Face...
Question 29Answer the questions based on the table given...
Question 1Duplication of data is known as Data Redundancy.
Question 2An attribute is a set of values of a dissimilar type of data.
Question 3MySQL supports different platforms like UNIX and Windows.
Question 4UPDATE TABLE command is used to create table in a database.
Question 5Null (Unavailable and unknown) values are entered by the following command:INSERT INTO TABLE NAME VALUES ("NULL") ;
Question 6ALTER TABLE command is used to modify the structure of the table.
Question 7Each SQL table must have at least one column and one row.
Question 8Foreign key column derives its value from the primary key of the parent table.
Question 9DISTINCT clause is used to remove redundant rows from the result of the SELECT statement.
Question 10It is not necessary to create primary key in a table.
Question 11All primary keys are candidate keys but all candidate keys are not primary keys.