What are two methods of retrieving SQL?
What cursor type do you use to retrieve multiple recordsets?
What is the difference between a âwhereâ clause and a âhavingâ clause? - âWhereâ is a kind of restiriction statement. You use where clause to restrict all the data from DB.Where clause is using before result retrieving. But Having clause is using after retrieving the data.Having clause is a kind of filtering command.
What is the basic form of a SQL statement to read data out of a table? The basic form to read data out of table is âSELECT * FROM table_name; â An answer: âSELECT * FROM table_name WHERE xyz= âwhateverâ;â cannot be called basic form because of WHERE clause.
What structure can you implement for the database to speed up table reads? - Follow the rules of DB tuning we have to: 1] properly use indexes ( different types of indexes) 2] properly locate different DB objects across different tablespaces, files and so on.3] create a special space (tablespace) to locate some of the data with special datatype ( for example CLOB, LOB and â¦)
What are the tradeoffs with having indexes? - 1. Faster selects, slower updates. 2. Extra storage space to store indexes. Updates are slower because in addition to updating the table you have to update the index.
温馨提示:内容为网友见解,仅供参考