91 solutions available
Question 1Assertion (A): In hierarchical model, searching for a record is a time-consuming task.Reasoning (R): Hierarchical model owns to the...
Question 2Assertion (A): RDBMS stands for Relational Database Management System.Reasoning (R): RDBMS does not allow relating or associating two...
Question 3Assertion (A): A database is the largest component for holding and storing data and may contain several tables.Reasoning (R): Each table...
Question 4Assertion (A): Referential integrity is a constraint that defines rules of holding data in parent and child table.Reasoning (R):...
Question 5Assertion (A): The number of attributes or columns in a relation is called the degree of the relation.Reasoning (R): The number of tuples...
Question 6Assertion (A): A foreign key is an attribute whose value is derived from the primary key of another relation.Reasoning (R): A foreign key...
Question 7Assertion (A): Order by clause is used to sort the records of a table in ascending or descending order.Reasoning (R): For sorting in...
Question 8Assertion (A): COUNT() function ignores distinct values.Reasoning (R): Distinct clause ignores duplicate values.Both A and R are true and R...
Question 9Assertion (A): The HAVING clause is used with GROUP BY clause and aggregate functions.Reasoning (R): WHERE clause specifies the condition...
Question 10Assertion (A): SQL queries are performed on a table created under a database.Reasoning (R): The database is a folder created by the user...
Question 11Assertion (A): Cartesian product of two sets (A and B) is defined as the set of all possible ordered pairs denoted by (A + B).Reasoning...
Question 12Assertion (A): Aggregate functions in SQL operate on multiple set of values and return a single value as the output.Reasoning (R): The...
Question 1MySQL is a freely-available open-source RDBMS that implements SQL.
Question 2MySQL provides a dummy table named Dual.
Question 3The Distinct keyword eliminates duplicate records from the results of a SELECT statement.
Question 4Patterns in MySQL are described using two special wild card characters such as % (percent) and _ (underscore).
Question 5The keyword NOT LIKE is used to select rows that do not match the specified pattern of characters.
Question 6The default order of ORDER BY clause is Ascending.
Question 7The COUNT() function is used to count the number of records in a column.
Question 8The rows of the table (relation) are referred to as tuples.
Question 9The non-key attribute which helps to make relationship between two tables is known as Foreign key.
Question 10To specify filtering condition for groups, the HAVING clause is used in MySQL.
Question 1The ............... allows us to perform tasks related to data definition.DDLDMLTCLNone of these
Question 2The ............... allows us 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.KeywordLiteralVariableTable
Question 5Which command helps to open the database for use?UseOpenDistinctSelect
Question 6Which of these commands helps to fetch data from 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 9............... is known as range operator in MySQL.INDISTINCTISBETWEEN
Question 10The ............... clause allows sorting of query results by one or more columns.ALLDISTINCTGROUP BYORDER BY
Question 11Which clause is used in query to place the condition on groups in MySQL?WHEREHAVINGGROUP BYBoth (i) & (ii)
Question 12Which of the following is a DDL command?SELECTALTERINSERTUPDATE
Question 13Which of the following types of table constraints will prevent the entry of duplicate rows?UniqueDistinctPrimary KeyNULL
Question 14............... command is used to remove primary key from a table in SQL.UpdateRemoveAlterDrop
Question 15Which of the following commands will delete the table from MYSQL database?DELETE TABLEDROP TABLEREMOVE TABLEALTER TABLE
Question 16Which function is used to display the total number of records from a table in a database?Sum(*)Total(*)Count(*)Return(*)
Question 17With SQL, how do you select all the records from a table named "Persons", where the value of the column "FirstName" ends with an...
Question 1What is an Alternate Key?
Question 2Write some characteristics of RDBMS.
Question 3(a)Define relation.
Question 3(b)Define tuple.
Question 3(c)Define attribute.
Question 3(d)Define domain.
Question 4What do you understand by the terms candidate key and alternate key in a relational database?
Question 5What is SQL? What are different categories of commands available in SQL?
Question 6What is a database system? What is its need?
Question 7Differentiate between DDL and DML commands.
Question 8Give the terms for each of the following:(a) Collection of logically related records.(b) The fundamental data storage unit in a relational...
Question 9An organization wants to create two tables EMP & DEPENDENT to maintain the following details about its employees and their...
Question 10What is a data type? Name some data types available in MySQL.
Question 11Differentiate between char and varchar data types.
Question 12Which operator concatenates two strings in a query result?
Question 13How would you calculate 13*15 in SQL?
Question 14Which keywords eliminate redundant data from a query?
Question 15What is the significance of GROUP BY clause in an SQL query?
Question 16What is the difference between WHERE and HAVING clause in SQL select command?
Question 17Write SQL queries to perform the following based on the table PRODUCT having fields as (prod_id, prod_name, quantity, unit_rate, price,...
Question 18(i)Define database.
Question 18(ii)Define data inconsistency.
Question 18(iii)Define primary key.
Question 18(iv)Define candidate key.
Question 18(v)Define foreign key.
Question 19Differentiate between Primary key and Unique constraints.
Question 20Consider the following EMP and DEPT tables:Table:...
Question 21Write SQL commands for (i) to (vi) and write output for (vii) on the basis of PRODUCTS relation given below:Table:...
Question 22Write SQL commands for (i) to (vi) on the basis of relations given below:Table:...
Question 23What are DDL and DML?
Question 24Differentiate between primary key and candidate key in a relation.
Question 25What do you understand by the terms Cardinality and Degree of a relation in relational database?
Question 26Differentiate between DDL and DML. Mention the two commands for each category.
Question 27Write SQL Commands for (i) to (v) and write the outputs for (vi) to (viii) on the basis of the following table:Table:...
Question 28Write SQL Commands/output for the following on the basis of the given table GRADUATE:Table:...
Question 29(a)What is the difference between Candidate key and Alternate key?
Question 29(b)What is the degree and cardinality of a table having 10 rows and 5 columns?
Question 29(c)For the given table, do as directed:Table: STUDENTColumnNameData typesizeConstraintROLLNOInteger4Primary KeySNAMEVarchar25Not...
Question 30Write SQL queries based on the following tables:Table: PRODUCTP_IDProductNameManufacturerPriceDiscountTP01Talcum PowderLAK40NULLFW05Face...
Question 31Answer the questions based on the table given below:Table:...
Question 32A department store MyStore is considering to maintain their inventory using SQL to store the data. As a database administrator, Abhay has...
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 10SELECT MIN (Salary) FROM Employee will return the highest salary from the table.
Question 11Group functions can be applied to any numeric values, some text types and DATE values.