This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SELECT DEPARTMENT_ID, | |
| Min(SALARY) | |
| FROM employees | |
| GROUP BY DEPARTMENT_ID |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SELECT DEPARTMENT_ID, | |
| Min( SALARY ) | |
| FROM employees | |
| GROUP BY DEPARTMENT_ID |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SELECT department_id, | |
| Min( salary ) | |
| FROM EMPLOYEES | |
| GROUP BY department_id |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SELECT * | |
| FROM fn_virtualfilestats(DB_ID(N'AdventureWorks2012'), 2); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SELECT [department_id], | |
| Min( [salary] ) | |
| FROM [employees] | |
| GROUP BY [department_id] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SELECT department_id, | |
| Min( salary ) | |
| FROM employees | |
| GROUP BY department_id |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| CREATE TABLE dept(deptno NUMBER(2), | |
| dname VARCHAR2(14), | |
| loc VARCHAR2(13)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SELECT department_id, | |
| Min( salary ) | |
| FROM employees | |
| GROUP BY department_id |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| IF @cost <= @compareprice BEGIN | |
| PRINT 'These products can be purchased for less than ' | |
| END | |
| ELSE | |
| PRINT 'The prices for all products in this category exceed ' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| IF (x < 7) THEN | |
| IF (y < 0) THEN | |
| <statements> | |
| END IF; | |
| ELSIF (x > 10) THEN | |
| <statements> | |
| ELSE | |
| <statements> | |
| END IF; |