Computer Science, asked by muskanagrawal8772, 10 months ago

Sql query does not work if there are no indexes on the relations

Answers

Answered by Anonymous
0

SELECT EMP_NUM, EMP_LNAME, EMP_FNAME, Sum(INV_TOTAL) AS TOTALINVOICES FROM LGINVOICE, LGEMPLOYEE WHERE EMP_NUM = EMPLOYEE_ID GROUP BY EMP_NUM, EMP_LNAME, EMP_FNAME ORDER BY EMP_LNAME, EMP_FNAME

Answered by smartbrainz
4

The statement is incorrect.

Explanation:

The SQL query will work even when there are no indexes on the relations. It is because SQL query could generate index automatically even when there is no indication of indexes. In this context, the index is commonly used for speeding up the presentation of queries in SQL. Thus, this statement on SQL query regarding the index relation is inappropriate.

Similar questions