User Profile

Collapse

Profile Sidebar

Collapse
hr007
hr007
Last Activity: Sep 10 '13, 10:27 AM
Joined: Sep 5 '13
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Do you mean to say there is a table named "Employee Salary" and it has two columns - Name and Salary. You need to display only the salary values which are odd (1,3,5,7 etc) and in ascending order? If yes, below is the query -

    Assuming EmployeeSalary to be the table name and Salary to be the column name -

    Select * from EmployeeSalary where Salary%2 <> 0
    order by salary asc

    If you are...
    See more | Go to post

    Leave a comment:


  • I want to print only the content of the iframe and not the whole page

    I'm displaying a PDF within an Iframe and I have a dynamic button which says Print. On the click of that button, I want to print only the PDF which is displayed in the iframe and not the complete page. I'm using the below code to print but it is printing the whole page.

    Code:
      try {
                          iframe = document.getElementById('id of iframe');
                          iframe.contentWindow.document.execCommand('print', false,
    ...
    See more | Go to post
    Last edited by Rabbit; Sep 5 '13, 06:32 PM. Reason: Please use code tags when posting code.
No activity results to display
Show More
Working...