manoj


{ City }
< Country > india
* Profession *
User No # 27020
Total Questions Posted # 0
Total Answers Posted # 4

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

Users Marked my Answers as Correct # 15
Users Marked my Answers as Wrong # 2
Questions / { manoj }
Questions Answers Category Views Company eMail




Answers / { manoj }

Question { 8890 }

What is the difference between Userdefined function and
stored procedure? Explain and give the example also


Answer

1. function always run with select command while stored
procedure execute with execute command

2. function not provide output parameter facility
while stored procedure provide output facility

3. function always execute means it execute more than one
time while store procedure execute only one time

Is This Answer Correct ?    1 Yes 1 No

Question { Hewitt, 128222 }

find out the third highest salary?


Answer

select salary from emp
where salary = (select max (salary) from emp
where salary < (select max (salary) from emp
where salary < (select max (salary) from emp)));

Is This Answer Correct ?    5 Yes 1 No


Question { Systematix, 26003 }

is there more the two primary key in a single table?


Answer

cannot add multiple primary key constraint on a single table

Is This Answer Correct ?    2 Yes 0 No

Question { Wipro, 5524 }

what is the main difference between myisam and innodb


Answer

both myisam and innodb are storange enginein sql.
innodb support transaction, foreign key while myisam not
support transaction.

Is This Answer Correct ?    7 Yes 0 No