* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
Download For what are used constructor methods? What actions they can
Survey
Document related concepts
Oracle Database wikipedia , lookup
Concurrency control wikipedia , lookup
Microsoft SQL Server wikipedia , lookup
Microsoft Jet Database Engine wikipedia , lookup
Functional Database Model wikipedia , lookup
Open Database Connectivity wikipedia , lookup
Extensible Storage Engine wikipedia , lookup
Entity–attribute–value model wikipedia , lookup
Clusterpoint wikipedia , lookup
Versant Object Database wikipedia , lookup
Transcript
1 Examination questions in course Specialized database systems (DB3) DN DB 1. part. Object – relational database data storage structures What is the main difference features between relational and object-relational database? What significant properties has table with row type objects (4 features)? What is the difference in data input (INSERT) for the tables in relational and object – relational databases? There is the table COMPANIES (C_NUM, C_NAME, CITY, STREET, NUMBER) with row type objects. Please write object SQL query to achieve the company names in the city Riga. There is table STUDENTS (S_NUM, S_NAME, ADRESS (STATE, CITY)) with object column ADRESS. Please write object SQL query to achieve all students' names and cities. There is table COMPANIES (C_NUM, C_NAME, ADRESS (CITY, STREET, NUMBER)) with object column ADRESS. Please write object SQL query to achieve the street number of company "Programmers" (C_NAME). What is the table with collection or with nested table (two sentences or picture)? What actions must be performed to create table with object collection? For what purposes is used object – relation database function TABLE()? 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”. There is a table COMPANIES with collection (nested table) - column WORKERS: COMPANIES (C_NUMB, C_NAME, WORKERS (NAME, SURNAME, SALARY)). Obtain the total salary of company "XYZ" workers. What actions need to perform in object view creation? 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. What actions need to perform to create object link between tables? For what purpose is used function REF()? There are two object types: PORT (P_NUMB, P_NAME, CITY) and SHIP (S_NUMB, S_NAME, S_TYPE). Please create appropriate tables. Input two ports and two ships data in the tables. Connect tables with object relationship 1 : 1. Please write object SQL query to achieve ports names and appropriate ships names. 2 For what purposes is used object – relational database function DEREF()? For what purposes is used object SQL function SET()? What object – relational database data storage structures have object identifiers (3)? There is a object type SHIP(S_NUM, S_NAME) with two subtypes PASSENGER_SHIP(NUMB_OF_CABINS) and FREIGHTER_SHIP(TONNAGE). Create an object types, object table for all object types. With the OSQL query obtain the names of passenger ships. There are two object types: SHOP (S_NUMB, S_NAME, CITY) and GOOD (G_NUMB, G_NAME, G_TYPE). Please create appropriate tables. Input two shops and two goods data in the tables. Connect tables with object relationship 1 : 1. Please write object SQL query to achieve goods names and appropriate shops names. For what purposes is used object SQL function POWERMULTISET? For what purposes is used object SQL function CARDINALITY()? 3 2. part. Database server programming What is cursor and what is cursor variable? What is difference between object method and ordinary function? What definitions do you need to perform object method creation? What information is included in these definitions? In what manner is it possible to create complex object? What actions are needed to perform? What methods could be used with this type of object? What is SELF type object? For what and where it is used? What is different in methods and functions use? For what are used constructor methods? What actions they can perform? For what are used MAP member methods? What they perform, how many we could create them? For what are used ORDER member methods? What they perform, how many we could create them? For what is used cursor? What actions are performed in cursor use? What is cursor variable? For what it is used and what actions are performed with it? What is different in cursor and cursor variable use? In what ways we can get data in program from database? What is cursor and cursor variable? For what they are used? Give an example of cursor variable use to extract data from table Shops(S_NUM, S_NAME, S_TEL). Could object views use methods? What methods and how many? For what is used program package? What essential it could help? For what is needed method for object ordering? Why it is not enough with ORDER by clause in SELECT query? In what way method (program) could process data from table with collection? For what is used object type's hierarchy? In what way it is used? In what way manifests data inheritance in object-relational database? In what way manifests methods inheritance in object-relational database? For what object-relational database data storage structures can be realised method inheritance? 4 3. part. Graphical database systems What are the main graphical systems classes? What tasks they deal with the purposes for which they are created? What are the technologies for graphic data (images) storage on computer? What they are and what are their advantages and disadvantages? For specialised database systems, in addition to the universal database system is created the extension (extension). As such the extension "Oracle Spatial" is implemented in Oracle DBMS? Where it is stored and how it is used? Why in the Oracle Spatial geometric data retrieval queries is used term MDSYS? What is the sense of its use? What tables are used for the graphical database organization? What are they structure, content and use? What is the geometric data base layer (layer), why it is being created, what data storage structures realise it? Give a graphical explanation too. What are a geometry objects metadata? Where and how they are entered? What principles are used for data index creation? Get a graphical representation of the data organization in the index table? How is implemented the R-tree index? What is its main idea? Give an example. What information is obtained with primary and secondary filter queries? What secondary filters you know, what functions they realize? Give examples. What information as the parameters is recorded in SQL graphical queries? What are these parameters and what parameter input types are used? How data visualization programs understands, what information from the graphics database it is possibly to visualize? What problems and how are solved realising graphic data visualization in Java applications? For given geometrical object explain (text and coding) what information is recorded in the object SDO_GEOMETRY components. SDO_GTYPE SDO_SRID SDO_POINT SDO_STARTING_OFFSET SDO_ETYPE SDO_INTERPRETATION SDO_ORDINATES = = = = = = = 5 4. part. Temporal data base systems What is temporal database? With what it differ from universal database? What is time series, what attributes it constituted? Give an example. What is the main rule for time series storage organization? Why we must use it? What is temporal algebra? With what it differ from ordinary algebra? What is the main idea of clone table or analytical function use or windowing function use or use of OVER construction? What is the difference between relation algebra and temporal algebra operation "multiplication"? There is table Bus_runs(NUM, RUN_NAME, STATIONS(STA_NAME, Time_FROM, Time_TO)) with object collection. Please write a query: What bus runs stand in station Ogre in period from 12 to 13 (not all period)? There is table PRODUCTS(NUM, NAME, COUNT, SHOP). Use OVER construction to write query: What is the count of product bicycle and all products in shop "Ritenis"? In the summer students works in the countryside farms. These data are in table SUMMER_WORK(ID, SURNAME, FARM, D_FROM, D_TO). Please, write query: What students work in the farm "Pumpkin" in the time, when in this farm works student "Koks"? To perform query, create method IN_THE_SAME_TIME(). What data structures could be used (3 variants) in temporal database to store time series data (data relationship one to many (1 : N)? Graphical answer, please three schemas. 6 5. part. Intelligent database systems What is data, facts, information, knowledge, wisdom? Give an examples. With what an intelligent database system differs from the usual database systems? What is a logical programming language? Give an example. What three basic architectures are used for intelligent database implementation? Draw schemas. What is the operating algorithm of intelligent database? Draw a diagram. What are the dynamic SQL and dynamic PL / SQL? For what purposes they are used? What is a deduction tree? Draw a small example.