You are on page 1of 1

1.

Write a query to create view which holds the result of an arithmetic


expression
2. Write a query to create stored proceduer which will retrieve the value of
salesman id of all salesmen, getting orders from the customers in orders
table without any repeats.
3. Write a SQL query to create view to display all orders where purchase
amount less than 200 or exclude those orders which order date is on or
greater than 10th Feb,2012 and customer id is below 3009.
4. Write a SQL statement to find those salesmen with all information whose
name containing the 1st character is 'N' and the 4th character is 'l' and
rests may be any character.
5. Write a SQL statement to create stored proceduer to find the highest
purchase amount ordered by the each customer with their ID and highest
purchase amount and stored in the view.
6. Write a query to create parameterized stored proceduer to display the
name ( first name and last name ), salary, department id for those
employees who earn such amount of salary which is the smallest salary of
any of the departments

You might also like