final itm
final itm
UNIVERSITY, DWARKA,
DELHI – 110064
INFORMATION TECHNOLOGY
MANAGEMENT LAB FILE
SUBJECT CODE: MS 117
<head>
</head>
<body>
<h1>Welcome to My Website</h1>
<h2>About Us</h2>
<h3>Our Mission</h3>
<h4>Team Members</h4>
<h5>Subsections</h5>
<h6>Contact Information</h6>
<footer id="footer">
<h3>Footer Section</h3>
</footer>
</body>
</html>
QUES 3. Create an ordered and unordered list of your
choice.
< html>
<head>
<title>Lists Example</title>
</head>
<body>
<h1>Types of Lists</h1>
<ul>
<li>Apples</li>
<li>Bananas</li>
<li>Oranges</li>
<li>Grapes</li>
</ul>
<ol>
<li>Boil water.</li>
</ol>
</body>
</html>
QUES 4. Create hyperlinks to transfer the control
to another webpage and back to the original
webpage.
<html>
<head><title>First Page</title></head>
</body>
</html>
QUES 5. Create hyperlinks to transfer the control to
another webpage and back to the original webpage.
Index.html
< html>
<head>
<title>Original Page</title>
</head>
<body>
<p>This is the main webpage. Click the link below to visit another page:</p>
</body>
</html>
Another Page.Html
<!DOCTYPE html>
<head>
<title>Another Page</title>
</head>
<body>
<p>This is a different webpage. Click the link below to return to the original
page:</p>
</body>
</html>
QUES 6. Create the following table:
CUST_ID CUST_NAME ADDRESS
A123 ABC ENTERPRISES NEHRU
PLACE
A225 SATYAM INTERNATIONAL DELHI
<html>
<head>
<title>Customer Table</title>
<style>
table {
width: 60%;
border-collapse: collapse;
margin: 20px 0;
th, td {
padding: 8px;
text-align: left;
th {
background-color: #f2f2f2;
}
</style>
</head>
<body>
<h1>Customer Table</h1>
<table>
<thead>
<tr>
<th>CUST_ID</th>
<th>CUST_NAME</th>
<th>ADDRESS</th>
</tr>
</thead>
<tbody>
<tr>
<td>A123</td>
<td>ABC ENTERPRISES</td>
<td>NEHRU PLACE</td>
</tr>
<tr>
<td>A225</td>
<td>SATYAM<br>INTERNATIONAL</td>
<td>DELHI</td>
</tr>
</tbody>
</table>
</body>
</html>
<head>
<title>Colspan Example</title>
<style>
table {
width: 70%;
border-collapse: collapse;
margin: 20px 0;
th, td {
text-align: center;
th {
background-color: #f2f2f2;
</style>
</head>
<body>
<table>
<thead>
<tr>
<th>Day</th>
<th>Activity</th>
</tr>
</thead>
<tbody>
<tr>
<td>Monday</td>
<td>Work</td>
</tr>
<tr>
<td>Tuesday</td>
<td>Work</td>
</tr>
<tr>
</tr>
<tr>
<td>Thursday</td>
<td>Meeting</td>
</tr>
<tr>
<td>Friday</td>
</tr>
</tbody>
</table>
</body>
</html>
SQL
QUES 1 - Create a table with the name ‘employee’ and
having following data items.
empnno char(2)
Lastname char(15)
Firstname char(15)
Street varchar2(15)
City char(15)
Credit_limit number(7,2)
Salary number (7,2)
b) Enter few data records.
QUES 2 - Write SQL statements for creating a table
Customer.
Customer (cust id, lastname, firstname, street, city, balance, credit Imt, sales
repno)
Impose all possible constraints on various fields. Enter sample data in the table
so created.
Run SQL queries to:
(MAXIMU
M)
(MINIMU
M)
(AVERAGE)
b) List customer details who live in city beginning with city name ‘A’.
d) List customer details who live in city beginning with city name "A".
g) List customer details who have credit limit in the range 1 lakh to 5 lakhs.
j) List customer details who have credit limit beyond 10 lakhs in alphabetical
order of first name.
k) Add a new column customer-ranking.
b) Display employee name, job and salary for all employees except managers.
c) Display employee name and department number for those hired between
January 1 1983 and January 1, 1982.
d) Display employee name, job and department number for all clerks and
analysts.
e) Display employee name, job, department number and hire date for those
whose name begins with capital letter 'M'.
f) Display employee name, job, department number and hire date for those
whose name begins with capital letter ‘J’ followed by two characters and
ending with 'ES’.
g) Display employee name, job and salary for managers and sales people
earning 2000 or more.
i) Display the employee names of those whose names contain the letter S.
j) Display employee names and salaries for those having salaries less than their
commission.
k) Display employees hired in 1981.
l) Display the names and jobs of all employees in department no. 10 and 20.
OFFICE CODE TARGET (Half APR. MAY JUNE JULY AUG. SEPT.
Yearly)
(In thousands)
2. Perform the data entry for the data given in the table
as stated in
question.
Solution:
Solution:
Solution:
MAXIMUM
MINIMUM
7. Calculate the incentive amount for each branch office
@2% of the total half yearly sales turnover.
Solution:
Solution:
9. Find the branch wise average sales turnover for each
month using a function.
Solution:
DOS
1) Create a file ‘TEST.TXT’ & then assign a new name to this as
‘ABC.DAT’.
2) Copy the file ‘TEST.TXT’ to new directory TEST.
3) Explain & Execute any two Internal DOS commands.
DIR
Lists files and subdirectories in the current directory.
DIR /P
Pauses the output one screen at a time.
DIR /W
Displays the output in a wide format.
CD (Change Directory)
Purpose: Changes the current directory or displays the current directory path.
4) Explain & Execute any two External DOS
Commands.
1. XCOPY (Extended Copy)