Professional Documents
Culture Documents
On
Information Technology Management
Submitted By:
Name: Sidharth Gautam
MBA (W), 1st Sem, Sec- A
Enrolment No.: 056-116688516
INDEX
HTML Based
Ques.1) Create an ordered and unordered list of your choice.
Ques.2) Create a HTML file using the following tags:
a) Header Tags
b) Formatting Tags
c) Anchor Tags
empname
rakesh
suresh
designation
Manager
CELL4
SQL Based
Ques.11) Display average salary of employees having salary greater than 500
from emp table.
Ques.12) Display the department no and total no of employees from emp
table and group them by department number.
Ques.13) Display the total salary from emp table where department no. is
either 10 or 20.
Ques.14) Display dept no and total salary from emp table where job is not
equals to salesman and employee having total salary greater than 6000.
Ques.15) Display dept no and total number of job in emp table and group
them by deptno.
Ques.16) Display second maximum salary from emp table
Ques.17) Create a table newdept.
Ques.18) Alter table empdata and add primary constraint on employee id.
Ques.19) Insert values in empdata table with values where input is from
keyboard.
Ques.20) Create a copy of existing table emp without data.
Ques.21) Append a string _emp on employee name and display all the
employees with append name.
Ques.22) Trim the string from the right and display the trimmed name from
emp table.
Ques.23) Display the name of employees in uppercase from emp table.
Ques.24) Display the name of employees in the lowercase from table.
Ques.25) Display the length of employee name from emp table.
Ques.26) Display the first two letters of employee name from emp table.
Ques.27) Display the employee name from emp table where length of emp
name is greater than 4.
Ques.28) Find the position of first letter A in all the employee names in emp
table.
Ques.29) Find out the second occurrence of A in ename from emp table.
Ques.30) Display the emp name from emp. table where sound of employee
name likes JOHNS.
Ques. 31) List the details of all employees in departments 10 and 20 in
alphabetical order of name.
Ques. 32) List names and jobs of all clerks in department 20 in alphabetical
order of name.
Ques. 33) List the names of all employees who LL and TT in their names.
Ques.34) List names and total remuneration for all employess.
Ques.35) List name, annual salary and commission of all salespeople whose
monthly salary is greater than their commission. The output should be ordered
by salary, highest first if two or more employees have the same salary sort by
employee name within the highest salary order.
Ques.36) List lowest paid employees working for each manager sort the output
by salary.
Ques.37) List all employees, their job, and department number who are having
same job as that of any employee of department number 20.
Ques.38) List all employees, their salary and their increment using emp and
incr table.
Ques.39)Using self join, list all employees having salary greater than or equal
to employee number 7788.
Ques.40) Consider emp table, List all employees who earn less than the
average salary of all the employees.
Ques.41) List all employees name along with their managers name. Also list
the name of that employee who has no manager (Employee KING has no
manager).
Ques.42) Display the department that has no employee.
Ques.43) List the employee details who earn minimum salary of their job.
Ques.44) List the ename, salary, deptno for those employees who earn greater
than average salary for their department, sort the output in department
number order.
Ques.45) List the employees details who earn highest salary of their job.
Ques.46) List the details of those employees who are among the five highest
earners of the company.
HTML Based
</BODY>
</HTML>
b) Formatting Tags
c) Anchor Tags
Ans.2)
<html>
<head>
<center>
<h1> <B> <FONT color= "red"> Heading Bold </FONT color= "red"> </B> </h1>
<h2> <I> <FONT color= "green"> Heading Italic </FONT color= "green"> </I>
</h2>
<h3> <U> <FONT color= "orange"> Heading Underline </FONT color=
"orange"> </U> </h3>
<h4> <strike> <FONT color= "pink"> Heading Strike </FONT color= "pink">
</strike> </h4>
<h5> <big> <big> <big> <big> <FONT color= "magenta"> Heading Big </FONT
color= "magenta"> </big> </big> </big> </big> </h5>
</html>
<DD>
<B> Ans 2: </B>
<OL type = "A">
<li> I am living in Gurgaon
<li> Near Manesar
<li> Near Main Bus Stand
</OL>
</DD>
</DL>
<BR>
<BR>
</BODY>
</HTML>
</BODY>
</HTML>
</Pre>
<A name = "w">
<U> Definition & Ordered Listing: </U>
<DL>
<DT> <B> Ques 1: </B> What's your profession?
<DD>
<B> Ans 1: </B>
<OL type = "1">
<li> My profession is Engineering
<li> Engineering is my profession
<li> I have done my Graduation in Engineering
</OL>
</DD>
<DT> <B> Ques 2: </B> Where are you living?
<DD>
<B> Ans 2: </B>
<OL type = "A">
<li> I am living in Gurgaon
<li> Near Manesar
<li> Near Main Bus Stand
</OL>
</DD>
</DL>
</A>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<A name = "x">
<U> Definition Listing: </U>
<DL>
<DT> <B> Ques 1: </B> What's your profession?
<DD>
<B> Ans 1: </B>
<li> My profession is Engineering
<li> Engineering is my profession
<li> I have done my Graduation in Engineering
</DD>
<DT> <B> Ques 2: </B> Where are you living?
<DD>
<B> Ans 2: </B>
<li> I am living in Gurgaon
<li> Near Manesar
<li> Near Main Bus Stand
</DD>
</DL>
</A>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<A name = "y">
<U> Ordered Listing: </U>
<OL type = "A" start = 2>
<lh> <B> Students: </B>
<li> Mohit
<li> Rohit
<li> Ramesh
<li> Mukesh
</OL>
</A>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<A name = "z">
<U> Unordered Listing: </U>
<UL type = "circle">
<lh> <B> Students: </B>
<li> Mohit
<li> Rohit
<li> Ramesh
<li> Mukesh
</UL>
</A>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<U> Ordered & Unordered Listing: </U>
<OL type = "1">
<li> Mohit
<li> Rohit
<UL type = "disc">
<li> Pitampura
<li> Rohini
<OL type = "I">
<li> G 5/92
<li> A 533
</OL>
</UL>
</OL>
</BODY>
</HTML>
empname
rakesh
suresh
designation
Manager
Ans.7)
<html>
<body>
<table border="30" bordercolor="magenta" align="center" bgcolor="pink"
width="200" height="200">
<tr>
<th>empno </th>
<th>empname </th>
<th> designation </th>
</tr>
<tr>
<td> 1111 </td>
<td> rakesh </td>
<p> <td rowspan=2 > Manager </p> </td>
</tr>
<tr>
<td> 2222 </td>
<td> suresh </td>
</table>
</html>
CELL4
Ans.8)
<html>
<body>
<table border="10" bordercolor="red" align="center" bgcolor="pink"
width="250" height="100">
<tr>
<td> CELL1 </td>
<tr>
<td> CELL2 </td>
</tr>
</table>
</html>
<body>
<form action="#">
<table border="1" style="text-align: center;">
<thead>
<tr><th colspan="4">Resume</th></tr>
</thead>
<tbody>
<tr><td colspan="4" style="border: none;padding-top:
25px;"></td></tr>
<tr><td colspan="4">Basic Details</td></tr>
<tr><td>First Name</td><td><input type="text" value=""><td>Last
Name</td><td><input type="text" value=""></td></tr>
<tr><td>Email Adress</td><td><input type="text"
value=""></td><td>Mobile Number</td><td><input type="text"
value=""></td></tr>
<tr><td>Post
Graduation</td><td>Graduation</td><td>12th</td><td>10th</td></tr>
<tr>
<td><input type="text" value="" placeholder="University/Board"></td>
<td><input type="text" value="" placeholder="University/Board"></td>
<td><input type="text" value="" placeholder="University/Board"></td>
<td><input type="text" value="" placeholder="University/Board"></td>
</tr>
<tr>
<td><input type="text" value="" placeholder="Year Of Passing"></td>
<td><input type="text" value="" placeholder="Year Of Passing"></td>
<td><input type="text" value="" placeholder="Year Of Passing"></td>
<td><input type="text" value="" placeholder="Year Of Passing"></td>
</tr>
<tr>
<td><input type="text" value="" placeholder="Percentage"></td>
</tbody>
</table>
</form>
</body>
</html>
Ques.10) Create a form to collect feedback from students about the course
contents.
Ans.10)
<html>
<head>
<br>
<br>
Section:
<br>
<br>
</form>
</body>
</html>
SQL Based
Ques.11) Display average salary of employees having salary greater than 500
from emp table.
Ans.11) select job,avg(sal) from emp group by job having avg(sal) > 500;
Ques.12) Display the department no and total no of employees from emp
table and group them by department number.
Ans.12) select deptno, count(empno) from emp group by deptno;
Ques.13) Display the total salary from emp table where department no. is
either 10 or 20.
Ans.13) select sum(sal) from emp where deptno IN(10,20);
Ques.14) Display dept no and total salary from emp table where job is not
equals to salesman and employee having total salary greater than 6000.
Ans.14) select deptno, sum(sal) from emp where job NOT IN (salesman) group
by deptno having sum(sal) > 6000;
Ques.15) Display dept no and total number of job in emp table and group
them by deptno.
Ans.15) select deptno, count(job) from emp group by deptno;
Ques.16) Display second maximum salary from emp table
Ans.16) select max(sal) from emp where sal NOT IN(select max(sal) from emp);
Ques.38) List all employees, their salary and their increment using emp and
incr table.
Ans.38) Select empno, ename, sal from emp where empno in(select empno,
incr from incr);
Ques.39)Using self join, list all employees having salary greater than or equal
to employee number 7788.
Ans.39) SELECT e.ename, e.empno, e.sal, m.ename, m.sal as mgr, e.mgr from
emp e, emp m WHERE e.mgr = m.empno and e.salary >m.salary;
Ques.40) Consider emp table, List all employees who earn less than the
average salary of all the employees.
Ans.40) Select empno, ename, sal, deptno from emp e where sal<(select
avg(sal) from emp);
Ques.41) List all employees name along with their managers name. Also list
the name of that employee who has no manager (Employee KING has no
manager).
Ans.41) Select distinct e.ename, m.mgr, m.Ename from emp e inner join emp
m on e.mgr = m.EmpID;
Ques.42) Display the department that has no employee.
Ans.42) Select d.dname from dept d where not exists (select * from emp e
where d.deptno = e.deptno);
Ques.43) List the employee details who earn minimum salary of their job.
Ans.43) Select ename from emp where sal=(select min(sal) from emp);
Ques.44) List the ename, salary, deptno for those employees who earn greater
than average salary for their department, sort the output in department
number order.
Ans.44) Select ename, sal, deptno from emp where sal>(select avg(sal) from
dept order by deptno);
Ques.45) List the employees details who earn highest salary of their job.
Ans.45) select empno, ename, job from emp where sal=(select max(sal) from
emp);
Ques.46) List the details of those employees who are among the five highest
earners of the company.
Ans.46) select * from emp where sal in (select top 5 sal from emp order by
salary desc) ;