Survey
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
Riga Technical University. Chair: Artificial intelligence and system theory Course: Object technologies in database systems (Large Databases) (DB2) Typical examination questions 2015. var. 1 Surname Name ………………………………………………. 1. There are tables FACULTIES (F_NUMB, F_NAME, F_TELEF) and STUDENTS (S_NUM, SURNAME, SPECIALITY, GROUP, FACULTY_NUMB). Please write SQL query to achieve faculties names in which the count of students are greater than in faculty “Computer science”. 2. There is a table SHOPS with collection (nested table) - column GOODS: SHOPS (S_NUMB, S_NAME, GOODS (G_NAME, PRICE, QUANTITY)). Please drew the structure of table SHOPS. Please write object SQL query to achieve the count of goods in shop “ABC”. 3. There is a table SHOPS with collection (nested table) - column GOODS: SHOPS (S_NUMB, S_NAME, GOODS (G_NAME, PRICE, QUANTITY)). Please create object view SHOPS_GOODS which include shop’s name, good’s name and quantity. 4. and 5. Please create table GOODS(G_NAME, PRICE, QUANTITY) with row type objects and object method, which compare goods prices. Please write object SQL query, using created object method, to achieve goods with prices greater than price of good “salami”. 6. What is cursor and what is cursor variable (two sentences)? There is table GOODS (G_NUMB, G_NAME, PRICE, QUANTITY). Use the cursor variable to write all data from database table to PL/SQL table (any type of PL/SQL table). 7. There are two object types: FACULTY which includes faculty number, name and telephone and STUDENT which include student number, surname and name of specialty. Please create tables and connect them with object relationship. Please write object SQL query to achieve student’s names and faculty’s names.