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
| { | |
| // open json editor for settings | |
| "workbench.settings.editor": "json", | |
| // Theme | |
| "workbench.colorTheme": "Aura Dark", | |
| "workbench.iconTheme": "moxer-icons", | |
| // Change font | |
| "editor.fontFamily": "Geist Mono", |
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
| # Byte-compiled / optimized / DLL files | |
| __pycache__/ | |
| *.py[cod] | |
| *$py.class | |
| # C extensions | |
| *.so | |
| # Distribution / packaging |
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
| .model small | |
| .stack 100h | |
| .data | |
| msg db 0ah,0dh,'$' | |
| .code | |
| main proc | |
| mov ax,@data | |
| mov ds,ax |
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
| .model small | |
| .stack 100h | |
| .data | |
| .code | |
| main proc | |
| mov ah,1 | |
| int 21h |
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
| /* employee name ad job title name */ | |
| SELECT e.FIRST_NAME, j.JOB_ID | |
| FROM employees as e | |
| JOIN | |
| jobs as j |
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
| 1. show alll jobs max and min salary | |
| SELECT MAX(MIN_SALARY), MIN(MAX_SALARY) | |
| FROM jobs | |
| 2. | |
| SELECT MAX(MIN_SALARY), MIN(MAX_SALARY), count(JOB_ID) | |
| FROM jobs | |
| WHERE JOB_ID NOT LIKE "AD_%" |
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
| /* QUESTION 1*/ | |
| SELECT FIRST_NAME,MANAGER_ID,HIRE_DATE | |
| FROM employees | |
| WHERE MANAGER_ID IN(30,40,50) IS FALSE | |
| AND FIRST_NAME LIKE "%a%r%" OR "%r%a%" |
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
| 4.1 | |
| SELECT * | |
| FROM employees | |
| 4.3 | |
| SELECT EMPLOYEE_ID, FIRST_NAME, SALARY*12 | |
| FROM employees | |
| 4.6 | |
| SELECT EMPLOYEE_ID, FIRST_NAME, SALARY*12 as "YEARLY SALARY" |
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 EMPLOYEE_ID,FIRST_NAME ,SALARY*12 | |
| FROM employees; | |
| SELECT EMPLOYEE_ID,FIRST_NAME ,SALARY*12 AS 'yearly salary' | |
| FROM employees; | |
| SELECT EMPLOYEE_ID,FIRST_NAME ,SALARY*12 AS 'yearly salary' | |
| FROM employees | |
| ORDER BY SALARY DESC ,FIRST_NAME; | |
| SELECT EMPLOYEE_ID,FIRST_NAME ,SALARY*12 AS 'yearly salary' | |
| FROM employees | |
| ORDER BY SALARY DESC ,FIRST_NAME |
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
| /* | |
| MySQL consists of two parts. | |
| 1. DDL = Data Definition Language | |
| 2. DML = Data Manipulation Language | |
| */ | |
| -- DML Query 1(Inserting data) | |
| INSERT INTO tablename[(jcol1, col2, col3, ... ...)] VALUES(val1, val2, val3, ... ...); | |
| -- DML Query 2(Deleting data) |
NewerOlder