Académique Documents
Professionnel Documents
Culture Documents
(b) Write a program in Perl to display all the CGI environment variables
Q 4. Create a counter in Perl to keep track of the numbers of visitors accessing your
website:
Q 5. Write a program in Perl to create to display the content of a HTML form using
(a) Get method
(b) Post method
Q 9. write a program in perl to display the data from the table in tabular form.
Section B
Q 2 create two table of your choice and enable the referencial integrity constraints on the
tables.
Q 3. display the titles of all the books where type in NULL
Q 4. display the titles of all the books where type is undecided and not NULL
Q 5. List title-id, price and proposal price by increasing the current price by 10 percent,
under the heading proposed price.
Q6. create a new table EMP, which should be same as employee table.
Q 7. write a query that return the average sales figure from title table of all categories
Q 8. write a query that return the title of all the books that are written by more than one
author.
Q9. write query that will return the maximum price of each category.
(c) create the table EMP with attributes (empno, ename, jobs, sal, hiredate)
make empno as identity column
Q 11 create a view which should include the attributes Job_id, job_desc from the job
table and Job_lvl from employee table.
Q 12 create a stored procedure “abc” which accepts two parameters of integer type low
limit and high limit and return pub_id, type, price from titles table where price is less then
the high limit and greater then low limit.
Q 13. create a stored procedure “avg” which return average sales of the titles stored in the
titles table.
Q 14. List the names of the employees whose name start with the letter ‘P’ and job_lvl is
greater then 50
Q 15. In ERP Module as soon as sales record is entered into sales table, inventory for the
sold item is automatically reduced in the inventory table. Write a trigger for it.
Q 16. when a tuple is inserted in a table EMP(emp_no, ename, job, sal) then same tuple is
also inserted in the table EMP1, which has same structure as EMP. Write a trigger for it.
Section ‘C’
Q 1. Show how are the contents of a website is verified. Take website of your choice