Sql course dec1: Difference between revisions
												
				Jump to navigation
				Jump to search
				
No edit summary  | 
				No edit summary  | 
				||
| Line 1: | Line 1: | ||
[  | [https://www.nobleprog.com/cc/sqlfun Course Outline]  | ||
[[SQL Programming]]  | [[SQL Programming]]  | ||
[[SQL Cheat Sheet]]  | [[SQL Cheat Sheet]]  | ||
Latest revision as of 03:46, 1 August 2024
create table dept (deptno int(2), dname varchar(15), loc varchar(12));
insert into dept values (10, 'accounting', 'new york'), (20, 'research', 'london'), (30, 'sales', 'paris'), (40, 'operations', 'berlin');
select * from dept;
create table salgrade (grade int(1), losal int(4), hisal int(4));
insert into salgrade values (1, 700, 1200), (2, 1201, 1400), (3, 1401, 2000), (4, 2001, 3000), (5, 3001, 9999);
select * from salgrade;