78 solutions available
Question 1Assertion. There is a difference between a field being empty or storing NULL value in a field.Reason. The NULL value is a legal way of...
Question 2Assertion. The ALL and DISTINCT clauses of a SELECT query are related.Reason. The ALL clause is the opposite of the DISTINCT clause of a...
Question 3Assertion. The WHERE and HAVING clauses are used for the same thing in a SELECT query.Reason. Both WHERE and HAVING clauses are used to...
Question 4Assertion. Both WHERE and HAVING clauses are used to specify conditions.Reason. The WHERE and HAVING clauses are interchangeable.
Question 5Assertion. DDL and DML are not the same.Reason. DDL and DML are two subcategories of SQL where DDL creates the objects and DML manipulates...
Question 6Assertion. DDL and DML both are part of SQL.Reason. Both DDL and DML are interchangeable.
Question 7Assertion. Both BETWEEN and IN operators can choose from a list of values.Reason. The value ranges and a list of values are interpreted in...
Question 1Write a query to display EName and Sal of employees whose salary is greater than or equal to 2200 from table Empl.
Question 2Write a query to display details of employees who are not getting commission from table Empl.
Question 3Write a query to display employee name and salary of those employee who don't have their salary in the range of 2500 to 4000.
Question 4Write a query to display the name, job title and salary of employee who do not have manager.
Question 5Write a query to display the name of employee whose name contains 'A' as third alphabet.
Question 6Write a query to display the name of employee whose name contains 'T' as the last alphabet.
Question 7Write a query to display the name of employee whose name contains 'M' as first alphabet 'L' as third alphabet.
Question 8Write a query on the customers table whose output will exclude all customers with a rating <= 100, unless they are located in Shimla.
Question 9Write a query that selects all orders (Order table) except those with zeros or NULLs in the amt field.
Question 10Write SQL commands for the following on the basis of given table STUDENT :Table :...
Question 11Write SQL commands for the following on the basis of given table SPORTS :Table :...
Question 12Write SQL commands for the following on the basis of given table CLUB :Table :...
Question 13Write SQL commands for the following on the basis of given table STUDENT1 :Table :...
Question 14Consider the table Student1 of Q. 13. Give the output of following SQL statement :SELECT TRUNCATE(AvgMark) FROM Student1 WHERE AvgMark...
Question 15Given the following table :Table :...
Question 16Write SQL commands for the following on the basis of given table MOV :Table : MOVNoTitleTypeRatingStarsQtyPrice1Gone with the...
Question 17Write SQL commands for the following on the basis of given table Teacher :Table :...
Question 1Maximum how many characters can be stored in atext literalnumeric literal ?
Question 2What is a datatype ? Name some data types available in MySQL.
Question 3What are fixed length fields ? What are variable length fields ?
Question 4Compare Char and Varchar datatypes.
Question 5What is null value in MySQL database ? Can you use nulls in arithmetic expressions ?
Question 6Which keyword eliminates the redundant data from a query result ?
Question 7Which keyword retains duplicate output rows in a query result ?
Question 8How would you display system date as the result of a query ?
Question 9How would you calculate 13 * 15 in SQL ?
Question 10Which function is used to substitute NULL values in a query result ?
Question 11Which operator concatenates two strings in a query result ?
Question 12Which comparison operator is used for comparing ?patternscharacter valuesnull valuesrangeslist of values.
Question 1SQL stands for Structured Query Language.
Question 2The SQL keyword FROM is used to specify the table(s) that contains the data to be retrieved.
Question 3To remove duplicate rows from the result of a query, specify the SQL qualifier DISTINCT in select list.
Question 4To obtain all columns, use a(n) asterisk(*) instead of listing all the column names in the select list.
Question 5The SQL WHERE clause contains the condition that specifies which rows are to be selected.
Question 6To sort the rows of the result table, the ORDER BY clause is specified.
Question 7Columns can be sorted in descending sequence by using the SQL keyword DESC/descending.
Question 8When two conditions must both be true for the rows to be selected, the conditions are separated by the SQL keyword AND.
Question 9The SQL keyword LIKE is used in SQL expressions to select based on patterns.
Question 10By default, ORDER BY clause lists the records in ascending order.
Question 1Which of the following attributes can be considered as a choice for primary key ?NameStreetRoll NoSubject
Question 2What is the full form of SQL ?Structured Query LanguageStructured Query ListSimple Query LanguageNone of these
Question 3What is the full form of DDL ?Dynamic Data LanguageDetailed Data LanguageData Definition LanguageData Derivation Language
Question 4What does DML stand for ?Different Mode LevelData Model LanguageData Mode LaneData Manipulation language
Question 5Which is the subset of SQL commands used to manipulate database structures, including tables ?Data Definition Language (DDL)Data...
Question 6Which of the following sublanguages of SQL is used to define the structure of the relation, deleting relations and relating schemas?DML...
Question 7Which of the following sublanguages of SQL is used to query information from the database and to insert tuples into, delete tuples from,...
Question 8Consider following SQL statement. What type of statement is this?SELECT * FROM employeeDMLDDLDCLIntegrity constraint
Question 9Which of the following keywords will you use in the following query to display the unique values of the column dept_name ?SELECT...
Question 10Which of the following keywords will you use in the following query to display all the values of the column dept_name ?SELECT...
Question 11The ............... clause of SELECT query allows us to select only those rows in the result that satisfy a specified...
Question 12............... clause of the following query must be added with keyword ............... to display the fields given in the select list as...
Question 13Which of the following queries contains an error?Select * from emp where empid = 10003;Select empid from emp where empid = 10006;Select...
Question 14Consider the following table namely Employee :Employee_idNameSalary1001Misha60001009Khushi45001018Japneet7000Which of the names will not...
Question 15Which operator performs pattern matching ?BETWEEN operatorLIKE operatorEXISTS operatorNone of these
Question 16Consider the following querySELECT name FROM class WHERE subject LIKE ' ............... Computer Science' ;Which one of the following has...
Question 17Which operator tests a column for the absence of data (i.e., NULL value) ?EXISTS operatorNOT operatorIS operatorNone of these
Question 18The pattern '_ _ _' matches any string of ............... three characters. '_ _ _%' matches any string of ............... three...
Question 19By default, ORDER BY clause lists the results in ............... order.DescendingAnySameAscending
Question 20Consider the following querySELECT * FROM employee ORDER BY salary ..............., name ...............;To display the salary from...
Question 1The condition in a WHERE clause in a SELECT query can refer to only one value.
Question 2SQL provides the AS keyword, which can be used to assign meaningful column names to the results of queries using the SQL built-in functions.
Question 3The rows of the result relation produced by a SELECT statement can be sorted, but only by one column.
Question 4SQL is a programming language.
Question 5SELECT DISTINCT is used if a user wishes to see duplicate columns in a query.
Question 6The qualifier DISTINCT must be used in an SQL statement when we want to eliminate duplicate rows.
Question 7DISTINCT and its counterpart, ALL, can be used more than once in a SELECT statement.
Question 8DISTINCT and its counterpart, ALL, can be used together on single field in a SELECT statement.
Question 9ORDER BY can be combined with the SELECT statements.
Question 10Data manipulation language (DML) commands are used to define a database, including creating, altering, and dropping tables and...
Question 11The keyword LIKE can be used in a WHERE clause to refer to a range of values.
Question 12The keyword BETWEEN can be used in a WHERE clause to refer to a range of values.