81 solutions available
Question 1Assertion. Single row functions when applied on a column in a table, yield multiple values equal to number of rows in the table.Reason....
Question 2Assertion. Multi-row functions when applied on a column in a table, yield values which are not equal to number of rows in the table.Reason....
Question 3Assertion. Multiple rows functions when applied on a column in a table, yield values which are not equal to number of rows in the...
Question 4Assertion. The count(*) will yield a single value while round() will yield number of values equal to the cardinality of the table.Reason....
Question 1Which function can be used to concatenate two strings ?
Question 2Which function(s) can be used for extracting a substrings ?
Question 3What is the difference between Trim() and Rtrim() ?
Question 4What is the difference between round() and truncate() ?
Question 5Which function returns the current date and current time ?
Question 6What is the difference between sysdate() and now() functions ?
Question 1The functions that work with one row at a time are called single row functions.
Question 2The functions that work with multiple rows and return aggregated result, are called multiple rows functions.
Question 3The other name of multiple rows functions is aggregate functions.
Question 4To get a substring of a string, other than Substr(), function mid() is also used.
Question 5To get the day part of a date, Day() function is used.
Question 6To get the day name from a date, Dayname() function is used.
Question 7To remove a character from the right side of a string, Rtrim() function is used.
Question 8To get the current date, Curdate() Sysdate function is used.
Question 1A function working with every row of a table, is a ............... function.AggregateSingle valueSingle rowSummary
Question 2Which of the following is not a text function ?TRIM()TRUNCATE()LEFT()MID()
Question 3Which of the following is not a numeric function ?MODSIGNMIDPOW
Question 4Which of the following is not a date function ?MonthYearNOWPOW
Question 5Which of the following functions returns the substring from a given string ?MIDINSTRSUBSTRCHAR
Question 6Which of the following functions returns the position of a substring in a given string ?MIDINSTRSUBSTRCHAR
Question 7Which one of the following is not an aggregate function ?ROUND()SUM()COUNT()AVG()
Question 8Which of the following SQL functions does not belong to the Math functions category ?POWER()ROUND()LENGTH()MOD()
Question 9Which of the following is not a valid aggregate function in MYSQL ?COUNT()SUM()MAX()LEN()
Question 10What will be printed by the given query ?SELECT LENGTH("WINNER"); 7689
Question 11What will be returned by the given query ?SELECT INSTR("INDIA", "DI"); 23-2-3
Question 12If the substring is not present in a string, the INSTR() returns:-11NULL0
Question 13What will be returned by the given query ?SELECT concat("It", "was", "ok");"It was ok""It wasok""Itwasok""Itwas ok"
Question 14Predict the output of the following query :SELECT LCASE(MONTHNAME('2023-03-05'));MayMarchmaymarch
Question 15To remove the leading and trailing space from data values in a column of MySQL Table, we useLeft()Right()Trim()Ltrim()
Question 16What will be returned by the given query ?SELECT Round(153.669, 2);153.6153.66153.67153.7
Question 17What will be returned by the given query ?SELECT Sign(26);1-10none of these
Question 18What will returned by the given query ?SELECT Truncate(15.79, -1), Truncate(15.79, 0), Truncate(15.79, 1);15 15 15.710 15.7 15.910 15...
Question 19What will be returned by the given query ?SELECT month('2020-05-11');511MayNovember
Question 20Which of the following are correct aggregate functions in SQL ?AVERAGE()MAX()COUNT()TOTAL()
Question 21Write the output of the following SQL command :SELECT Round(49.88);49.8849.849.050
Question 22Predict the output of the following query :SELECT MOD(9, 0);0NULLNaN9
Question 23The avg() function in MySQL is an example of ............... .Math functionText functionDate FunctionAggregate Function
Question 24An aggregate function performs a calculation on ............... and returns a single value.single valuemultiple valuesno valuenone of these
Question 1SQRT() is an aggregate function.
Question 2SUM() is an aggregate function.
Question 3Truncate() is a text function.
Question 4Length() is a numeric function.
Question 5Functions MID() and SUBSTR() do the same thing.
Question 6Date() and Day() return the same thing.
Question 7INSTR() and SUBSTR() work identically.
Question 1Define a function.
Question 2(i)Explain the UCASE() SQL function using suitable examples.
Question 2(ii)Explain the TRIM() SQL function using suitable examples.
Question 2(iii)Explain the MID() SQL function using suitable examples.
Question 2(iv)Explain the DAYNAME() SQL function using suitable examples.
Question 2(v)Explain the POWER() SQL function using suitable examples.
Question 3(i)What will be the output of following code ?mysql> SELECT CONCAT(CONCAT('Inform', 'atics'), 'Practices');
Question 3(ii)What will be the output of following code ?mysql> SELECT LCASE('INFORMATICS PRACTICES CLASS 11TH');
Question 3(iii)What will be the output of following code ?mysql> SELECT UCASE('Computer studies');
Question 3(iv)What will be the output of following code ?mysql> SELECT CONCAT(LOWER('Class'), UPPER('xii'));
Question 4If Str = "INFORMATICS PRACTICES ...." and Str1 = "... FOR CLASS XI"Write commands to print the output as 'informatics practices for class...
Question 5Write commands to display the system date.
Question 6Write a command to display the name of current month.
Question 7Write SQL statement to displayToday, the date is <current date>
Question 8Write command to print the day of the week of your Birthday in the year 1999.
Question 9Write a command to display the current time.
Question 10Consider two fields B_date, which stores the birth date and J_date, which stores the joining date of an employee. Write commands to find...
Question 11(i)Find the output of the following SQL Query :SELECT ROUND(7658.345, 2);
Question 11(ii)Find the output of the following SQL Query :SELECT MOD(ROUND (13.9, 0), 3);
Question 12Write the SQL functions which will perform the following operations :(i) To display the name of the month of the current date.(ii) To...
Question 13Write suitable SQL query for the following :(i) Display 7 characters extracted from 7th left character onwards from the string 'INDIA...
Question 1Based on the SQL table CAR_SALES, write suitable queries for the following :NUMBERSEGMENTFUELQT1QT21Compact...
Question 2Predict the output of the following queries based on the table CAR_SALES given below :NUMBERSEGMENTFUELQT1QT21Compact...
Question 3Given the following table :Table :...
Question 4Given the table LIBRARY :NoTitleAuthorTypePubQtyPrice1Data StructureLipschutzDSMcGraw42172Computer StudiesFrenchFNDGalgotia2753Advanced...
Question 5Write a query to show the current date and time.
Question 6Perform the following question based on these tables :table PAYDAY (contains one column only) CycleDate DATE table ADDRESS ( contains...
Question 7Show via query how many days remain until Christmas. Round fractional days up using the numeric function ROUND.
Question 8Write the SQL queries which will perform the following operations :(i) To display the year from your Date of Admission which is...
Question 9Write a query against the EMPL table to show the names of all employees concatenated with their jobtypes.
Question 10Write a query against the ADDRESS table to show the names (first name, last name) and phones of all persons concatenated in following form...
Question 11Write a query against the ADDRESS table to select a list of names and phone numbers. The output should match these requirements :The name...