37 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 12Identify the correct statement(s):Statement 1 (S1): Char data-type in MySQL stores fixed length strings.Statement 2 (S2): Char data-type...
Question 14The SQL statements always end with ............... .,:;"
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 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 10How would you calculate 13*15 in SQL?
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 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...