sheshu kumar


{ City } hyderabad
< Country > india
* Profession *
User No # 113696
Total Questions Posted # 0
Total Answers Posted # 2

Total Answers Posted for My Questions # 0
Total Views for My Questions # 0

Users Marked my Answers as Correct # 1
Users Marked my Answers as Wrong # 0
Questions / { sheshu kumar }
Questions Answers Category Views Company eMail




Answers / { sheshu kumar }

Question { Spectra, 3638 }

how to copy only distinct data into another table which is not already exist in database?


Answer

SELECT DISTINCT * INTO TABLE_NEW FROM TABLE_EXISTING

Is This Answer Correct ?    1 Yes 0 No

Question { IBM, 4927 }

How to read 2nd highest sal from EMP table?


Answer

SELECT MAX(EMP_SALARY) FROM EMP
WHERE EMP_SALARY NOT IN (SELECT MAX(EMP_SALARY) FROM EMP)

Is This Answer Correct ?    0 Yes 0 No