Professional Documents
Culture Documents
Video of this topic uploaded in YouTube Channel “Learn with AKJoshi” Watch,Subscribe and Like
Page 1
Video of this topic uploaded in YouTube Channel “Learn with AKJoshi” Watch,Subscribe and Like
1.
2.
Video of this topic uploaded in YouTube Channel “Learn with AKJoshi” Watch,Subscribe and Like
Page 2
Video of this topic uploaded in YouTube Channel “Learn with AKJoshi” Watch,Subscribe and Like
SELECT POW(2,2); 4
SELECT POWER(2,-2); 0.25
(i) Write SQL Query to display name and square of their salary from emp table who works in “Research”
Department.
Video of this topic uploaded in YouTube Channel “Learn with AKJoshi” Watch,Subscribe and Like
Page 3
Video of this topic uploaded in YouTube Channel “Learn with AKJoshi” Watch,Subscribe and Like
(ii) Write SQL Query to display square root of all salary from emp table.
SELECT ROUND(1.58); 2
SELECT ROUND(2.4) 2
SELECT ROUND(-1.58); -2
SELECT ROUND(-2.6); -3
SELECT ROUND(-1.23); -1
Video of this topic uploaded in YouTube Channel “Learn with AKJoshi” Watch,Subscribe and Like
Page 4
Video of this topic uploaded in YouTube Channel “Learn with AKJoshi” Watch,Subscribe and Like
(i) Write SQL Query to display salary of all employees rounds to nearest thousand.
(ii) Write SQL Query to display salary rounds to having integer only .
OR
Video of this topic uploaded in YouTube Channel “Learn with AKJoshi” Watch,Subscribe and Like
Page 5
Video of this topic uploaded in YouTube Channel “Learn with AKJoshi” Watch,Subscribe and Like
SELECT 253 % 7; 1
SELECT MOD(29,9); 2
SELECT 29 MOD 9; 2
SELECT MOD(6,2); 0
Query Example 1:- display the remainder of the ratio of salary to commission for all employees whose job title is
salesman.
Video of this topic uploaded in YouTube Channel “Learn with AKJoshi” Watch,Subscribe and Like
Page 6
Video of this topic uploaded in YouTube Channel “Learn with AKJoshi” Watch,Subscribe and Like
CEILING(X), CEIL Returns the smallest integer value not less than X.
(X) mysql> SELECT CEILING(1.23); -> 2
mysql> SELECT CEIL(-1.23); -> -1
Video of this topic uploaded in YouTube Channel “Learn with AKJoshi” Watch,Subscribe and Like
Page 7