logo

CuriousTab

CuriousTab

Discussion


Home Interview Technology Comments

  • Question
  • My SQL statement SELECT AVG(SALARY) FROM EMP yields inaccurate results. Why?


  • Correct Answer
  • Because SALARY is not declared to have NULLs and the employees for whom the salary is not known are also counted 


  • Technology problems


    Search Results


    • 1. File contains 5 records say D,E,F,C,A-I want to copy D and A records only by using file-aid?
    • Discuss
    • 2. What is the self-referencing constraint?
    • Discuss
    • 3. What do you accomplish by GROUP BY ... HAVING clause?
    • Discuss
    • 4. What is the difference between primary key & unique index ?
    • Discuss
    • 5. Why is free space left in KSDS Dataset?
    • Discuss
    • 6. What is a DB2 plan?
    • Discuss
    • 7. What is a DB2 bind?
    • Discuss
    • 8. How will u send data from a cobol file to db2 table?
    • Discuss
    • 9. What is meant by index cardinality?
    • Discuss
    • 10. Why SELECT * is not preferred in embedded SQL programs?
    • Discuss


    Comments

    There are no comments.

Enter a new Comment