create table emp(empno number(4) not null,ename varchar2(10),
job varchar2(9), mgr number(4),
hiredate date, sal number(7, 2),
comm number(7, 2), deptno number(2));
================================================
insert into emp values (7369, 'smith', 'clerk', 7902,
to_date('17-dec-1980', 'dd-mon-yyyy'), 800, null, 20);
insert into emp values (7499, 'allen', 'salesman', 7698,
to_date('20-feb-1981', 'dd-mon-yyyy'), 1600, 300, 30);
insert into emp values (7521, 'ward', 'salesman', 7698,
to_date('22-feb-1981', 'dd-mon-yyyy'), 1250, 500, 30);
insert into emp values (7566, 'jones', 'manager', 7839,
to_date('2-apr-1981', 'dd-mon-yyyy'), 2975, null, 20);
insert into emp values (7654, 'martin', 'salesman', 7698,
to_date('28-sep-1981', 'dd-mon-yyyy'), 1250, 1400, 30);
insert into emp values (7698, 'blake', 'manager', 7839,
to_date('1-may-1981', 'dd-mon-yyyy'), 2850, null, 30);
insert into emp values (7782, 'clark', 'manager', 7839,
to_date('9-jun-1981', 'dd-mon-yyyy'), 2450, null, 10);
insert into emp values (7788, 'scott', 'analyst', 7566,
to_date('09-dec-1982', 'dd-mon-yyyy'), 3000, null, 20);
insert into emp values (7839, 'king', 'president', null,
to_date('17-nov-1981', 'dd-mon-yyyy'), 5000, null, 10);
insert into emp values (7844, 'turner', 'salesman', 7698,
to_date('8-sep-1981', 'dd-mon-yyyy'), 1500, 0, 30);
insert into emp values (7876, 'adams', 'clerk', 7788,
to_date('12-jan-1983', 'dd-mon-yyyy'), 1100, null, 20);
insert into emp values (7900, 'james', 'clerk', 7698,
to_date('3-dec-1981', 'dd-mon-yyyy'), 950, null, 30);
insert into emp values (7902, 'ford', 'analyst', 7566,
to_date('3-dec-1981', 'dd-mon-yyyy'), 3000, null, 20);
insert into emp values (7934, 'miller', 'clerk', 7782,
to_date('23-jan-1982', 'dd-mon-yyyy'), 1300, null, 10);
===========================================================
create table dept
(deptno number(2),
dname varchar2(14),
loc varchar2(13) );
-----------------------------------------------
insert into dept values (10, 'accounting', 'new york'); insert
into dept values (20, 'research', 'dallas'); insert into
dept values (30, 'sales', 'chicago'); insert
into dept values (40, 'operations', 'boston');
====================================================
job varchar2(9), mgr number(4),
hiredate date, sal number(7, 2),
comm number(7, 2), deptno number(2));
================================================
insert into emp values (7369, 'smith', 'clerk', 7902,
to_date('17-dec-1980', 'dd-mon-yyyy'), 800, null, 20);
insert into emp values (7499, 'allen', 'salesman', 7698,
to_date('20-feb-1981', 'dd-mon-yyyy'), 1600, 300, 30);
insert into emp values (7521, 'ward', 'salesman', 7698,
to_date('22-feb-1981', 'dd-mon-yyyy'), 1250, 500, 30);
insert into emp values (7566, 'jones', 'manager', 7839,
to_date('2-apr-1981', 'dd-mon-yyyy'), 2975, null, 20);
insert into emp values (7654, 'martin', 'salesman', 7698,
to_date('28-sep-1981', 'dd-mon-yyyy'), 1250, 1400, 30);
insert into emp values (7698, 'blake', 'manager', 7839,
to_date('1-may-1981', 'dd-mon-yyyy'), 2850, null, 30);
insert into emp values (7782, 'clark', 'manager', 7839,
to_date('9-jun-1981', 'dd-mon-yyyy'), 2450, null, 10);
insert into emp values (7788, 'scott', 'analyst', 7566,
to_date('09-dec-1982', 'dd-mon-yyyy'), 3000, null, 20);
insert into emp values (7839, 'king', 'president', null,
to_date('17-nov-1981', 'dd-mon-yyyy'), 5000, null, 10);
insert into emp values (7844, 'turner', 'salesman', 7698,
to_date('8-sep-1981', 'dd-mon-yyyy'), 1500, 0, 30);
insert into emp values (7876, 'adams', 'clerk', 7788,
to_date('12-jan-1983', 'dd-mon-yyyy'), 1100, null, 20);
insert into emp values (7900, 'james', 'clerk', 7698,
to_date('3-dec-1981', 'dd-mon-yyyy'), 950, null, 30);
insert into emp values (7902, 'ford', 'analyst', 7566,
to_date('3-dec-1981', 'dd-mon-yyyy'), 3000, null, 20);
insert into emp values (7934, 'miller', 'clerk', 7782,
to_date('23-jan-1982', 'dd-mon-yyyy'), 1300, null, 10);
===========================================================
create table dept
(deptno number(2),
dname varchar2(14),
loc varchar2(13) );
-----------------------------------------------
insert into dept values (10, 'accounting', 'new york'); insert
into dept values (20, 'research', 'dallas'); insert into
dept values (30, 'sales', 'chicago'); insert
into dept values (40, 'operations', 'boston');
====================================================
👍2
<head>
<style>
h1,h2
{
color:rgb(23,56,78);
font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
background-color:rgb(255,255,255);
}
.p1{
text-transform: uppercase;
letter-spacing: 5px;
word-spacing: 5px;
text-align:right;
text-align:justify;
border: dotted;
}
#p2{
border: double;
background-color: aliceblue;
color: #abeeff;
text-align: center;
text-align: justify;
}
label{
color: #ddaacc;
font-size: larger;
}
input{
color:#ff34cc;
}
.p3{
font-style: italic;
text-decoration:underline;
border: 3px solid yellowgreen;
box-shadow: 5px;
}
</style>
</head>
<style>
h1,h2
{
color:rgb(23,56,78);
font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
background-color:rgb(255,255,255);
}
.p1{
text-transform: uppercase;
letter-spacing: 5px;
word-spacing: 5px;
text-align:right;
text-align:justify;
border: dotted;
}
#p2{
border: double;
background-color: aliceblue;
color: #abeeff;
text-align: center;
text-align: justify;
}
label{
color: #ddaacc;
font-size: larger;
}
input{
color:#ff34cc;
}
.p3{
font-style: italic;
text-decoration:underline;
border: 3px solid yellowgreen;
box-shadow: 5px;
}
</style>
</head>
<head>
<style>
.div1{
background-color: antiquewhite;
display: block;
width: 100vw;
height: 20vh;
margin: 10px;
}
.div2{
background-color: rgb(173, 105, 17);
display: inline-block;
width: 30vw;
height: 40vh;
margin: 10px;
}
.div3{
background-color: rgb(5, 165, 21);
display: inline-flex;
width: 40vw;
height: 40vh;
margin: 10px;
}
</style>
</head>
<body>
<div class="div1">DIV-1</div>
<div class="div2">DIV-2</div>
<div class="div3">DIV-3</div>
</body>
<style>
.div1{
background-color: antiquewhite;
display: block;
width: 100vw;
height: 20vh;
margin: 10px;
}
.div2{
background-color: rgb(173, 105, 17);
display: inline-block;
width: 30vw;
height: 40vh;
margin: 10px;
}
.div3{
background-color: rgb(5, 165, 21);
display: inline-flex;
width: 40vw;
height: 40vh;
margin: 10px;
}
</style>
</head>
<body>
<div class="div1">DIV-1</div>
<div class="div2">DIV-2</div>
<div class="div3">DIV-3</div>
</body>
👍6