Thursday, February 21, 2013

plsql

Q. What will be output of below query:
             Select top 2 1 '3'
A. 3 will be column name and 1 as data.
3
1


Q. In table_user.gender column change 'male to female' and 'female to male' in one SQL statement.

A. UPDATE table_user
          SET gender =
               CASE gender
                      WHEN 'male' THEN 'female'
                      WHEN 'female' THEN 'male'
                      ELSE gender
               END



Q. Delete Duplicate Records from tbl_emp where employee name and city should not be repeated. i.e if emp_name and city are same are same, it should be concidered duplicate
A. DELETE FROM MyTable
        WHERE ID NOT IN
             (SELECT MAX(ID) FROM MyTable
              GROUP BY emp_name, city)


Q. How will you find the duplicate records in a table? Give Query, also show number of occurrence.
A. Select col1, count(*) as occurrenceCount From tablename
         group by col1
         having count(col1)>1
Q. How will you find out 7th highest salary in a table?
A. SELECT * FROM
      (SELECT ROW_NUMBER() OVER(ORDER BY sal_amount DESC) row_number, emp_id,
                                    sal_amount
            FROM Salary ) a 
WHERE row_number = 7
 
 
 
 
reference  - >  http://sqlserverqanda.blogspot.in/2011/11/tricky-select-queries.html

Thursday, November 1, 2012

Mozilla borwser navigation recording imacros

https://addons.mozilla.org/en-US/firefox/addon/imacros-for-firefox/

QC TO EXCEL

http://h30499.www3.hp.com/t5/Quality-Center-Support-and-News/How-to-export-HP-Quality-Center-test-cases-to-excel/td-p/5306159#.UJKtyWdyW1s

Wednesday, October 31, 2012

automatic deployment

java-

https://www.google.co.in/search?hl=en&newwindow=1&noj=1&biw=1024&bih=592&q=open+source+java+deployment+tools&oq=open+source+javadep&gs_l=serp.3.1.0i13i30l2.252782.265186.0.268249.35.29.5.0.0.1.873.8582.5j3j9j3j5j3j1.29.0.les%3B..0.0...1c.1.efHCENJujD0


http://en.wikipedia.org/wiki/Comparison_of_open_source_configuration_management_software


http://journal.paul.querna.org/articles/2012/01/05/dreadnot-continuous-deployment/

starting new jvm in java

http://thilosdevblog.wordpress.com/2010/02/20/starting_a_new_jvm_in_java/



https://wiki.cantara.no/display/dev/Start+a+new+JVM+from+Java

jvm monitoring tools

http://www.jvmmonitor.org/

http://jniport.wikispaces.com/Starting+a+JVM

http://stackoverflow.com/questions/1731398/can-a-java-exe-jvm-restart-itself-somehow

http://wrapper.tanukisoftware.com/doc/english/download.jsp




https://www.google.co.in/search?hl=en&newwindow=1&noj=1&biw=1024&bih=592&q=start+jvm+from+java&oq=start+jvm+&gs_l=serp.3.1.0j0i20j0l2j0i30l6.109201.114988.0.120120.20.17.3.0.0.2.1416.8863.2j2j2j1j1j6j0j3.17.0.les%3B..0.0...1c.1.OVCk5Ruk3c0

Saturday, October 20, 2012

Installed dual os- windows and ubuntu, but not able to see ubuntu?.. then try this


 
If you have a Ubuntu Live CD , then start Live session .
In The Live session , open your terminal and type this

sudo add-apt-repository ppa:yannubuntu/boot-repair && sudo apt-get update
 
Give a Enter shot and try this


sudo apt-get install -y boot-repair && boot-repair
 
then it will open boot-repair as shown in image there select Recommended Repair Option . It will do the job of restoring your GRUB and then give a restart . remove your CD . There you go with your GRUB .
Source :https://help.ubuntu.com/community/Boot-Repair


enter image description here