0% found this document useful (0 votes)
71 views12 pages

Dbmsand Pagemaker, Photoshop Practical

The document provides examples of SQL commands and PL/SQL programs. It demonstrates how to: 1) Create tables, insert records, and write queries to select records in SQL. 2) Write PL/SQL programs using loops and conditional statements to calculate sums, accept user input, and perform other operations. 3) Identify and demonstrate tools in applications like PageMaker and Photoshop, including cropping images and inserting/editing text.

Uploaded by

gnvenkatmf
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
71 views12 pages

Dbmsand Pagemaker, Photoshop Practical

The document provides examples of SQL commands and PL/SQL programs. It demonstrates how to: 1) Create tables, insert records, and write queries to select records in SQL. 2) Write PL/SQL programs using loops and conditional statements to calculate sums, accept user input, and perform other operations. 3) Identify and demonstrate tools in applications like PageMaker and Photoshop, including cropping images and inserting/editing text.

Uploaded by

gnvenkatmf
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 12

Program-1

(a) Write the SQL commands for creating a table named CSE with the following
attributes.

StuRollno, Studentname, feespaid, dateofjoining, StuRollno should be declared as


unique.

SQL>create table cse(sturollno number(10)constraint stuno unique,studname


varchar2(20),feepaid varchar(1),doj date);
Table created.

(b) Insert Five records in the above table CSE.

SQL>insert into cse values(1701,’siva’,’y’,’23-july-13’);

1 row created. (or)

SQL>insert into cse values(&sturollno,’&studname’,’&feepaid’,’&doj’);

Enter value for sturollno:1702


Enter value for studname:karthik
Enter value for feepaid:y
Enter value for doj: 24-aug-13
1 row created.

(c) Write a query to display the student rollno and date of joining.

SQL>select sturollno,doj from cse;

STUROLLNO DOJ

1701 23-JUL-13

1702 02-JUL-13

1703 02-JUN-13

1704 12-JUN-13

1705 22-JUN-13

5 rows selected
Program-2
a) Write and demonstrate the following queries for the below table.

Table name : Emp

Empno Ename Salary Department

1001 Rahul 6000 Accounts

1002 Salman 8000 I.T

1003 Aziz 12000 Sales

1004 Ravi 9000 I.T

1005 Priyanka 10000 Sales

Table Creation:

SQL>create table emp(empno number(5),ename varchar2(20),salary number(20),dept


varchar2(10));

Insert Record:

SQL>insert into emp values(1001,’Rahul’,6000,’Accounts’);

(In the same way insert the all records)

(a) Query to display records of employees working in I.T. department

SQL>select * from emp where dept=’I.T’;

Empno Ename Salary Department

1002 Salman 8000 I.T

1004 Ravi 9000 I.T

2 rows selected.

b) Query to display records of employees whose salary is greater than 8000.

SQL>Select empno, ename, salary from emp where salary >8000;

Empno Ename Salary


1003 Aziz 12000
1004 Ravi 9000
1005 Priyanka 10000
c) Query to display records of employees whose name is Rahul.
SQL>Select * from emp where ename=’Rahul’;
Empno Ename Salary Department

1001 Rahul 6000 Accounts

1 row selected

(d) Query to display records of employees working in I.T and Accounts department.

SQL>Select * from emp where dept=’I.T’ or dept=’Accounts’;


Empno Ename Salary Department
1001 Rahul 6000 Accounts

1002 Salman 8000 I.T

1004 Ravi 9000 I.T

3 rows selected.
(e) Query to display records of employees whose salary is between.

SQL> select ename from emp where salary between 4000 and 9000;

Ename
Rahul

Salman
2 rows selected.
Program-3
Write and demonstrate the following SQL queries.

a) Query to display the table.


SQL>select sysdate from dual;

SYSDATE
12-FEB-14

1rowsreturned

b) Query to add two strings “ computer ” and ” science”.


SQL>select concat(‘computer’ , ’science’)from dual;

CONCAT('COMPUTER','SCIENCE')

computerscience
1 rows returned

c) Query to display the length of string (“ computer science engineering ”).


SQL>select length(‘computer science engineering‘) from dual;

LENGTH('COMPUTERSCIENCEENGINEERING')
28
1 rows returned

d) Write the PL-SQL program to print sum of 1 to 100 numbers using loop and end loop.

declare
a number;
s number default 0;
begin
a:=1;
loop
s:=s+a;
exit when(a=100);
a:=a+1;
end loop;
dbms_output.put_line('Sum of 100 numbers = '||s);
end;
OutPut:-Sum between 1 to 100 is 5050

PL/SQL procedure successfully completed.

Program -4
a) Write the PL-SQL program for generating number between 1 and 100 using while loop.

declare
a number;
begin
a:=1;
while(a<=100) loop
dbms_output.put_line(a);
a:=a+1;
end loop;
end;

Output: - 1 2 3 4 5 6 7 8 9 10……………100.
b) Write the PL-SQL program to accept two number A and B and print the sum of it.

declare
a number;
b number;
c number;
begin
a:= &a;
b:= &b;
c:= a+b;
dbms_output.put_line('Sum of a and b is ' || c);
end;

Output:- Sum of a and b is 50


d) Query to display the string “Computer Science” in capital letters.

SQL>select upper(‘Computer Science’) from dual;

UPPER('COMPUTERSCIENCE')
COMPUTER SCIENCE

e) Query to display the string “COMPUTER SCIENCE” in small letter.

SQL>select lower(‘COMPUTER SCIENCE’) from dual;

LOWER('COMPUTERSCIENCE')
computer science

f) Query to display the square root of 25.


SQL>select sqrt(25)from dual;
SQRT(25)
5
Program-5

(a) Write the SQL Command for creating the table student with following attributes.

Rollno, Studentname,Fathername,Address,Mobileno. Mobile number should not be empty.

SQL>create table student (rollno number(10),sname varchar2(20),fname varchar2(20),addr


varchar2(30),mobile number(10) constraint mno not null);

Table created.

(b) Insert five records in the above table.

SQL>insert into student values (1701,’siva’,prasad’,’eluru’,8519917638);

1 row inserted

(c) Delete all the rows from the above table.

SQL> delete student;

5 rows deleted.

(d) Delete the table student.

SQL>drop table student;

Table droped.
Program-6

Identify and demonstrate the following tool from Page Maker.

a) Text Tool
The Text tool enables you to select and edit text, as well as insert text boxes.
Click the text tool and then click on the document and start typing in text.

b) Rotate Tool
The rotate tool enables you to rotate a text box or image to a desired angle. Select
the rotate tool, and click on the object's reference point. Drag the object to the angle you want
it to be.

c) Crop Tool
Enables you to crop imported images down to size. You can only use this
PageMaker tool on .tiff images.

d) Rectangle Frame Tool


The rectangle frame tool enables you to create a rectangular text box that you can
type your text into. Select the rectangle frame tool, then click on the document. Drag to draw a
rectangular frame. Select the Text tool from the toolbox and click inside the frame. Type in your
text. The text will be confined within the text box.

e) Circle Tool
The circle tool enables you to create a circular or oval shape. Select the circle
tool, click on the document. Drag to draw a circle or ellipse.

f) Zoom Tool

The zoom tool enables you to magnify or shrink the area of the page on your
screen.

g) Save Tool
Click on the File menu, and then select save. Click on General… to save dialog box
given name of the file. (Short Cut: Ctrl+S).

h) Pointer Tool
The Pointer tool enables you to pick, drag and drop text boxes, images and other objects, which
can then be resized, moved or can have their attributes changed.

Program-7

Identify and demonstrate the following tool from Photoshop.

a) Crop Tool
The Crop tool allows you to select an area of an image and discard everything
outside this area. The tool is located third from the top in the Photoshop Toolbox, on the left
side.
b) TypeTool
To insert text into your document, simply click on the Type tool icon on your toolbox and
click on the area of your document where you want to insert text.

c) Eraser Tool
The eraser is basically a brush which erases pixels as you drag it across the image.
Pixels are erased to transparency or the background color if the layer is locked.
d) Clone Stamp Tool

Clone stamp tool allows you to duplicate part of an image. The process involves setting
a sampling point in the image which will be used as a reference to create a new cloned area.
Select the Clone Stamp tool , then check the settings in the options bar.

e) Dodge Tool

The dodge tools work best on grayscale images. On color image the dodge tool will wash
out color and details. In a grayscale image, these tools are used to lighten shadows or
overexposed areas and to darken underexposed areas.

f) Blur Tool

The Blur tool is used to selectively blur areas of a layer. The amount of
blur can be controlled. It is especially handy when blending colors or objects.

g) RectangularMarquee
Click once on the Rectangular Marquee tool to choose it. The icon will turn white
and the cursor will turn into a cross hair when you move it onto the document.

h) Magnetic Polygon Lasso tool


Works a little like a combination of the other two lasso tool. As you drag, the
selection maps to natural borders in the image. This is a useful tool when dealing with
well-defined and high-contrast images.

Program-8
Write and demonstrate the following commands for PageMaker.

a) To display the pages numbers on all pages.

1.On a Master Page, click on the page or draw a text block where you want to insert a page number.
2.At the point where you want the page number type Ctrl + Alt + P (Windows) or Command +
Option + P .
3.Repeat Step 2 on the opposite Master page.
4.A page number marker will be on each master page -- LM on the left master, RM on the right
master.
5.Format the paragraph and page number marker as necessary including adding additional text before
or after the page number marker.
b) The Use of Auto Flow command.
1. Open the document you want to format in PageMaker.

2. Select the "Layout" menu and click "Auto flow" to set the text to flow
automatically.

3. Click the "Pointer" tool in the "Toolbox" palette.

4. Select the "File" menu, and then click "Place (Import text and graphics)." A
dialog box appears.

5. Find and double-click the document with the text you want to import. Your mouse head changes
into a squiggly arrow.
6. Move your cursor where you want the text inserted, and click to add it.

c) Inserting the images in PageMaker.

1. Open the document that you would like to add an image to.
2. Click the "Pointer" icon, which contains an arrow image and is located on the "Tools Palette."
3. Click "File" at the top of the PageMaker window, and then click "Place."
4. Navigate to the image that you would like to insert into the document using the file browser.
Select the image and then click "Open" to insert the image into the document.
5. Click the image to drag it to the desired location.
d) Enter the College name and change the following Font Size: 30, Font Name: Arial,
Type Style: Bold.

In Font Tool select size is 30 and Font name Arial, Type style is Bold.

e) Add two images and demonstrate the Bring to front and send to back command.

The Arrange menu is used to change the elements order, to set the elements positioning and
to group two or more elements.
Bring To Front: Moves the selected element forward one position.
Send To Back: Moves the selected element back one position.
Program-9

Write and demonstrate the following commands for Photoshop.

a) Insert an image.
1. Now select the photo, which you want to insert. Go to File > Open > Select picture from your drive > Click
on Open.
2. Create the shape layer (ellipse).
3. Make sure your image is above the shape layer in the Layers panel.

b) Increase the canvas size to 15 cm width and 20 cm height.

1. Open an image, any image, in Photoshop. In Photoshop’s Toolbox, double-click on the Zoom tool icon.
2. Now open the Image> Image Size dialog box.
3. Changes made will alter the number of pixels in the image.
4. The Document Size fields are available put width is 15 cm and height is 20cm.

c) Demonstrate the Lasso tool.

The Lasso tools allow you to select precise areas of an image by drawing or tracing the selection outline.
There are three lasso tools available.

.
d) Demonstrate the Crop tool

The Crop tool allows you to select an area of an image and discard everything outside
this area. The tool is located third from the top in the Photoshop Toolbox, on the left side.

e) Demonstrate the slice tool

The Slice tool allows you to divide an image into smaller sections which fit together like a
jigsaw (but with straight edges).
Program10

Demonstrate the following.

(a) Query in SQL to display the date

SQL> select sysdate from dual;

(b) Write a PL-SQL program to display the odd numbers from 1 to 100.

Declare
n number;
sum1 number default 0;
endvalue number;
begin
endvalue:=&endvalue;
n:=1;
for n in 1..endvalue
loop
if mod(n,2)=1
then
sum1:=sum1+n;
end if;
end loop;
dbms_output.put_line(' sum = '||sum1);
end;
/
Enter value for endvalue: 30
old 6: endvalue:=&endvalue;
new 6: endvalue:=30;
sum = 225

PL/SQL procedure successfully completed.

c) Demonstrate the use of Autoflow command in pagemaker.


1.Open the document you want to format in PageMaker.

2.Select the "Layout" menu and click "Auto flow" to set the text to flow automatically.

3.Click the "Pointer" tool in the "Toolbox" palette.

4.Select the "File" menu, and then click "Place (Import text and graphics)." A dialog box appears.
5. Find and double-click the document with the text you want to import. Your mouse head changes into a
squiggly arrow.

d) Change the back ground color of any layer in Photoshop.

1. Click the Background Layer from the Layers panel.


2. Click Edit at the top of the window, then click Fill.
3. Click the drop-down menu to the right of Use, then click the Color option.
4. Click your mouse on the color with which you want to fill the background layer.
5. click the OK button

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy