Informatics Practices
Related Questions
Which of the following functions is used to find the largest value from the given data in MySQL?
- MAX()
- MAXIMUM()
- LARGEST()
- BIG()
Consider a table named Employees with columns — EName, Age, Salary and Designation. Which SQL statement do we use to find out the total salary given to employees?
- Select SUM(Salary) From Employees;
- Select COUNT (*) From Employees;
- Select FIND (*) From Employees;
- Select SUM () From Employees;
In SQL, which function is used to extract a date from a date expression?
- Now()
- Curdate()
- Date()
- Day()
Assertion (A): COUNT() function ignores distinct values.
Reasoning (R): Distinct clause ignores duplicate values.
- Both A and R are true and R is the correct explanation of A.
- Both A and R are true but R is not the correct explanation of A.
- A is true but R is false.
- A is false but R is true.