मराठी

Write the output produced by the following SQL statement: SELECT YEAR(“1979/11/26”), MONTH(“1979/11/26”), DAY(“1979/11/26”), MONTHNAME(“1979/11/26”); - Computer Science (Python)

Advertisements
Advertisements

प्रश्न

Write the output produced by the following SQL statement:

SELECT    YEAR(“1979/11/26”),
MONTH(“1979/11/26”),    DAY(“1979/11/26”), MONTHNAME(“1979/11/26”);

टीपा लिहा
Advertisements

उत्तर

Year: 1979

Month: 11

Day: 26

Month Name: November

shaalaa.com
Functions in SQL
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
पाठ 9: Structured Query Language (SQL) - Exercise [पृष्ठ १७७]

APPEARS IN

एनसीईआरटी Computer Science [English] Class 12
पाठ 9 Structured Query Language (SQL)
Exercise | Q 2. d) | पृष्ठ १७७

संबंधित प्रश्‍न

Which method is used to get the row-id of the last modified row?


Which of the following belongs to an "aggregate function"?


Consider the table STUDENT given below:

RollNo Name Class DOB Gender City Marks
1 Anand XI 6/6/97 M Agra 430
2 Chetan XII 7/5/94 M Mumbai 460
3 Geet XI 6/5/97 F Agra 470
4 Preeti XII 8/8/95 F Mumbai 492
5 Saniyal XII 8/10/95 M Delhi 360
6 Maakhiy XI 12/12/94 F Dubai 256
7 Neha X 8/12/95 F Moscow 324
8 Nishant X 12/6/95 M Moscow 429

State the command to display the average marks scored by students of each gender who are in class XI?

(i) Select Gender, avg(Marks) from STUDENT where Class= "XI" group by Gender;

(ii) Select Gender, avg(Marks) from STUDENT group by Gender where Class="XI";

(iii) Select Gender, avg(Marks) group by Gender from STUDENT having Class="XI";

(iv) Select Gender, avg(Marks) from STUDENT group by Gender having Class = "XI";

Choose the correct option:


What will be the output of the following SQL statement? 

SELECT DAY NAME (2022-04-08) 


Assertion (A): COUNf function ignores DISTINCT

Reason (R): DISTINCT ignores the duplicate values.


The char() function in MySql is an example of ______. 


Which command is used to delete a table? (in SQL)


Identify Single Row function of MySQL among the following.


What will be returned by the given query? select day of year('2015-02-10') = ______.


What will be returned by the given query? select power(3, 2) = ______.


Name a function of MySQL used to give position of the first occurrence of a string2 in string1.


What will be returned by the given query? SELECT DAYOFYEAR('2015-01-10') = ______.


Which of the following is not a date function?


The string function that returns the index of the first occurrence of substring is ______.


Which statement is used to count the number of rows in table?


Write the name of the functions to perform the following operation:

To display the name of the month in which you were born.


Write the output produced by the following SQL statement:

SELECT LENGTH("Informatics Practices");


Which function is used to display the total number of records from a table in a database?


Differentiate between count() and count(*) functions in SQL with appropriate examples.


Which type of values will not be considered by SQL while executing the following statement?

SELECT COUNT(column name) FROM inventory;


In SQL, which function is used to display the current date and time?


Write suitable SQL query for the following:

Display 7 characters extracted from the 7th left character onwards from the string ‘INDIA SHINING’.


Write suitable SQL query for the following:

Round off the value 23.78 to one decimal place.


Write suitable SQL query for the following:

Display the remainder of 100 divided by 9.


Explain the following SQL function using a suitable example.

UCASE()


Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×