rbd Flashcards

1
Q

The SELECT statement is used to

A

fetching records from the database

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

The INSERT statement is used to

A

inserting records into the database

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

The DELETE statement is used to

A

deleting records from the database

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

The UPDATE statement is used to

A

updating records in the database

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

INDEX in the database speeds up

A

searching for records in the database

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

The COMMIT statement is used to

A

approving changes to the database

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

The ROLLBACK instruction is used to

A

Rolling back changes to the database

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

The GRANT instruction is used to

A

granting permissions in the database

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

The REVOKE instruction is used to

A

revoking permissions in the database

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

The ALTER TABLE statement is used to

A

table schema changes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is the value of the expression Null=Null

A

is undefined

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is the value of the expression True OR Null

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is the value of the expression False OR Null

A

Null

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is the value of the expression False AND Null

A

False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is the value of the expression True AND Null

A

Null

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is the value of the NOT Null expression

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

What will be the result of executing the statement SELECT * FROM Employees WHERE EmployeeID=EmployeeID OR EmployeeID=NULL, Emp’s report

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

What will be the result of executing the statement SELECT * FROM Emp WHERE EmployeeID=EmployeeID AND NULL=EmployeeID, empty relation

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

Relation R has an attribute a. What number can be the result of executing the statement SELECT Count() FROM R WHERE a=a, always as many as the cardinality of the relation R

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

Relation R has an attribute a. What number can be the result of executing the statement SELECT Count() FROM R WHERE a<a, always 0

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

An entity corresponds to in a relational database

A

table

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

A unique relationship corresponds to the following in a relational database

A

foreign key

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

An ambiguous relationship corresponds to the following in a relational database

A

table

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

An attribute in a relational database corresponds to

A

column in table

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
Q

A unique identifier corresponds to the following in a relational database

A

master key

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
26
Q

Referential integrity concerns the fact that

A

the value of a foreign key can be null or the value of its corresponding primary key

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
27
Q

Third normal form concerns the fact

A

values ​​in a non-key column cannot depend on either part of the key or even transitively on the key

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
28
Q

Which of the following statements are true in the relational modelx the poems are not repeated, the order of the columns is irrelevant, values ​​in the column are not repeated

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
29
Q

Which of the following statements are true in the relational model

A

a unique relationship is represented by a foreign key

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
30
Q

Which of the following statements are true in the relational model

A

an index is automatically created for a unique key, a unique index is automatically created for the primary key

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
31
Q

Which of the following statements are true in the relational model

A

primary key values ​​cannot be repeated

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
32
Q

Which of the following statements are true in the relational model

A

there can be multiple foreign keys, there can be multiple indexes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
33
Q

Boyce-Codd normal form refers to the fact

A

every nontrivial functional dependency is a dependency on a superkey

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
34
Q

Which of the following statements are true

A

There should be no uncontrolled redundancies in the table

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
35
Q

Which of the following statements are true

A

each fact stored in the database should be expressed in only one way

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
36
Q

At what levels is a relational database designed

A

logical, physical

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
37
Q

Who is the creator of the relational database model

A

Edgar Codd

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
38
Q

Which company first implemented a relational database management system

A

IBM

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
39
Q

When the table schema is not in third normal form we have

A

redundancy, anomalous insertion, anomalies in removal, anomalies in modification

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
40
Q

Functional dependency concerns the relationship between

A

attributes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
41
Q

Elimination of partial and transitive dependencies leads to

A

III normal form

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
42
Q

When moving to an object table, the table row

A

obtains object identity, may have related methods, becomes an object of a certain class

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
43
Q

What type can an attribute value be in the object-relational model

A

list of values, reference to an object, a set of values, atomic value

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
44
Q

A class diagram in ODL includes

A

attributes, compounds, methods

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
45
Q

A class schema in ODL is defined using the keyword

A

interface, class

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
46
Q

ODL language specifications include

A

inverse compounds, inheritance

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
47
Q

Given the relational schema R={City, Street, Code}, F = {City,Street->Code

A

Code->City}. This schema

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
48
Q

Given the relational schema R={City, Street, Postcode, Post}, F = {City, Street->Postcode

A

Postcode->City

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
49
Q

Given the relational schema R={City, Street, Postcode, Post}, F = {City, Street->Postcode

A

Postcode->Post}. This schema

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
50
Q

Given a relational schema R={City, Street, Code}, F = {City, Street->Code}. This schema

A

is in Boyce-Codd normal form, is in the third normal form

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
51
Q

Given the relational schema R={Street, Code, Shop}, F = {Street->Code

A

Shop->Street}. This schema

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
52
Q

Given the relational schema R={Street, Code, Shop, Number}, F = {Street->Code

A

Street, Number ->Shop}. This schema

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
53
Q

Given the relational schema R={Student,Address,Dormitory}, F = {Student->Address

A

Dormitory->Address

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
54
Q

Given the relational schema R={Student,University,Address,Club}, F = {Student->University

A

Club->Address}. This schema

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
55
Q

Given the relational schema R={Student,University,Address,Club}, F = {Student->University

A

Club->Address

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
56
Q

Given the relational schema R={Student,University,Address,Club}, F = {Student, University->Club

A

Club->Address}. This schema

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
57
Q

Which of the following statements are true for a non-identifying relationship in Visio

A

the foreign key is not part of the primary key of the entity on the multiple side

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
58
Q

Which statements are true for the identifying relationship in Visio

A

the foreign key is part of the primary key of the entity on the multiple side

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
59
Q

Reference actions apply to Visio

A

performing INSERT, DELETE and UPDATE operations on related records

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
60
Q

In Visio, the Cardinality property defines

A

how many instances of an entity on the one side can be associated with an instance of an entity on the many side

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
61
Q

In Visio, the optionality property specifies

A

is the relationship optional

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
62
Q

In Visio, the Relationship Type property specifies

A

is the relationship identifying

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
63
Q

As a result of the transformation of a binary wildcard relationship, the number of entities created is

A

1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
64
Q

As a result of the transformation of a binary ambiguous relationship, the number of relationships created is

A

1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
65
Q

As a result of the transformation of a ternary ambiguous relationship, the number of entities created is

A

1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
66
Q

As a result of the transformation of a ternary ambiguous compound, the number of compounds created is

A

1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
67
Q

A cycle in an entity-relationship diagram means that

A

there may be a recursive relationship

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
68
Q

An instance of a one-to-one relationship is always a function

A

“on”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
69
Q

In Chen modeling notation, the relationship is represented by

A

diamond

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
70
Q

In Chen’s modeling notation, an entity is represented by

A

rectangle

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
71
Q

In Chen’s modeling notation, an attribute is represented by

A

wheel

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
72
Q

Students have ideas. Each idea is about something. Each idea comes to mind of exactly one student. The student can share the idea with fellow students. Which of the following schemes is most appropriate from the point of view of database design principles

A

Students(student_id, name, surname, address), Ideas(idea_id, thing, description, student_id), Colleagues(idea_id, colleague_id)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
73
Q

Students like each other, are indifferent to each other, or can’t stand each other (there is no other way). Which of the following schemes is most appropriate from the point of view of database design principles

A

Students(student_id, name, surname), Likes(student_id, colleague_id), Dislikes(student_id, colleague_id), Indifferent(student_id, colleague_id)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
74
Q

Domestic animals live in the houses. Some animals eat each other. The houses can be located next to each other. Which schema, according to the principles of database schema design, is most appropriate for an animal welfare organization

A

Homes(house_id, address), Animals(animal_id, type_id, house_id), Types(type_id, type), Next_to_each_other(house_id1, house_id2), Eats(type_id, type_id_eaten)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
75
Q

Movies are played by actors. Each movie has exactly one director and one or more screenwriters. Which of the following schemes is most appropriate from the point of view of database design principles

A

Movies(movie_id, title, director_id, director_salary), People(person_id, last_name), Actors(actor_id, movie_id, role, salary), Screenwriters(screenwriter_id, movie_id, salary)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
76
Q

Politicians belong to political parties (sometimes they change them, sometimes they split them). Political parties, before elections, form electoral coalitions. Which of the following schemes is most appropriate from the point of view of database design principles

A

Politicians(policy_id, name, surname), Parties(party_id, name, from, to), Coalitions(coalition_id, election_date), Members(party_id, person_id, from, to), In_coalition(party_id, coalition_id, from, to)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
77
Q

Students plan what they would like to do in their future careers and what positions they would like to hold. Which of the following schemes is most appropriate from the point of view of database design principles

A

Students(student_id, name, surname), Classes(class_id, name), Positions(position_id, name), Who_what(student_id, position_id, class_id)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
78
Q

A database is to be created at PJWSTK to collect information about skills useful in professional work, subjects that teach these skills, and books in which the skills are described. Which of the following schemes is most appropriate from the point of view of database design principles

A

Skills(skill_id, name, description), Where(skill_id, ISBN, from_page, to_page), On(skill_id, subject_id), Subjects(subject_id, name, semester), Book_copies(call number, title, authors, shelf_number)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
79
Q

At PJWSTK a database is being created with information on what software is installed in each room - with a view to conducting classes in the appropriate subjects in them. Which of the following schemes is the most appropriate from the point of view of database design principles

A

Programs(program_id, company, name, version), Items(item_id, name), Rooms_programs(room_no., program_id, number_of_installations), Items_programs(item_id, program_id), Rooms(room_id, number, how_many_computers)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
80
Q

Which of the following database schemas is most appropriate for a library from the point of view of database design principles? The database should store information about customers, books, and loans (capital letters indicate the primary key)

A

Customer(CUSTOMER_ID, name, surname, address), Book(BOOK_ID, title, author), Loan(CUSTOMER_ID, BOOK_ID, LOAN_DATE, RETURN_DATE)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
81
Q

A database is needed to record students and their grades. Which of the database schemas is most appropriate from the point of view of database design principles

A

Student(student_id, name, surname), Assessment(assessment_id, assessment, date_issued, subject_id, student_id), Subject(subject_id, name)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
82
Q

Which methods concern maintaining data consistency during concurrent access

A

pessimistic blocking, optimistic locking

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
83
Q

Which methods concern data protection against unauthorized access

A

entering accounts and passwords, granting permissions to perform operations on objects

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
84
Q

Data dictionary data (metadata) is stored in the database

A

in special tables in the same database

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
85
Q

Client-server architecture means

A

division of tasks performed by the application into two aspects

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
86
Q

Client-server architecture means

A

that one program provides services to a group of other programs

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
87
Q

Which of the following statements are true

A

There can be many servers and many clients on one computer

88
Q

Which of the following statements are true

A

a program acting as a server can become a client of another server, the user interface is part of the client program, the client and server can be on different computers

89
Q

Which of the following statements are true

A

a program acting as a server can become a client of another server, the user interface can be generated by the client program, the user interface can be generated by a server program

90
Q

Which of the following objects appear in the MS Access database window

A

modules, forms, macros, reports

91
Q

Which of the following objects appear in the MS Access database window

92
Q

Which of the following objects appear in the MS Access database window

A

forms, reports

93
Q

Which of the following objects appear in the MS Access database window

A

modules, tables

94
Q

Which of the following objects appear in the MS Access database window

A

tables, forms, macros

95
Q

Which SQL standard operators are not available in MS Access

A

INTERSECT, EXCEPT

96
Q

Which SQL standard operators appear in MS Access

A

UNION, DISTINCT

97
Q

Which SQL standard operators are not available in MS Access

A

INTERSECT, EXCEPT

98
Q

Which Access operators are not included in the SQL standard

A

DISTINCTIVE

99
Q

Can a SELECT statement appear

A

in the query grid in the Field row, in the query grid in the Criteria row, as a source of rows for the form, as a row source for a list box on a form

100
Q

A pass-through query consists of

A

sending SQL statements to the database server via ODBC

101
Q

A pass-through query can be used to

A

creating a table in the SQLServer database, creating a view in the SQLServer database

102
Q

A pass-through query can be used to

A

creating a table in the Oracle database, creating a view in the Oracle database

103
Q

A pass-through query can be used to

A

fetching data from a remote database, executing SQL statements in a remote database

104
Q

A pass-through query can be used to

A

executing SQL statements in a remote database

105
Q

A pass-through query can be used to

A

fetching data from a remote database

106
Q

A pass-through query can be used to

A

deleting a table in a remote database

107
Q

What role do tables play in MS Access

A

physical structure of data storage, logical structure of data storage, data sources for forms

108
Q

What operations can be performed on an MS Access table in datasheet view

A

add a new row, add a new column, delete a row, remove column

109
Q

What operations can be performed on an MS Access table in table design view

A

add a new column, remove column

110
Q

What operations can be performed on an MS Access table in datasheet view

A

sort rows by values ​​in one of the columns, put on a filter, apply filter

111
Q

What operations can be performed on an MS Access table in table design view

A

add a new column, remove column

112
Q

The reference is defined for

A

foreign key columns

113
Q

“Cascading Delete Related Records” option

A

enables the preservation of referential integrity constraints, is set in the edit properties window of the relationship between two tables

114
Q

Row join type

A

is set in the properties pane of the relationship between two tables, has three options

115
Q

Perspective in MS Access is

A

select query

116
Q

Which of the following are query type names

117
Q

What are the possible forms of the form (Default View) in the form view

A

single form, data sheet, continuous form

118
Q

The displayed form content can be divided into

A

pages, bookmarks, windows

119
Q

A form field can be

A

related, unrelated, calculated

120
Q

What value can the expression If(IsNull([Earnings]),0,[Earnings]) have?, 0, equal to the value of the expression [Earnings]

121
Q

The natural logical structure for dividing data in a report is

A

groups, pages, columns

122
Q

Cross-tabulation of data uses

A

cross-tab queries

123
Q

Data stored in an MS Access database can be accessed over the web for display in browsers using

A

data access pages, ODBC and web server

124
Q

Which of the following objects can appear on a standard Access form as its dialog items (controls)

125
Q

Which of the following objects can be included in a module in Access

A

function, variable

126
Q

Which of the following objects can be stored in a table field in an Access database

A

Word document, value YES/NO

127
Q

What objects in Access can event procedures be linked to

A

field in the table

128
Q

Using ODBC technology you can in an MS Access database

A

save data to Oracle database, define a table linked to a table in the SQL Server database

129
Q

The link is

A

a field on a form containing a reference to a record position in a table

130
Q

What does the term “Filter by form” mean

A

searching for records according to the conditions entered into the form by the user

131
Q

Which events can be programmed for the form

A

at closing, after update

132
Q

In the WHERE condition: Institutions![Institution ID]=Forms![Persons]![Institution ID] the Institutions, Persons objects can be respectively

A

table and form

133
Q

Where can you use the expression Sum([Cost])

A

in the form footer, in the form details section, in the “Field” row of the query grid

134
Q

The ActiveX control is

A

a form dialog element supported by a registered Windows application

135
Q

MS Access allows you to use remote ODBC databases in the following ways

A

by linked tables, by forwarding queries, using the Connection object and record sets

136
Q

The DLookUp function allows you to

A

bringing values ​​from another table to the form

137
Q

The IIf function allows you to

A

interpreting Null as an empty string

138
Q

Replacing a foreign key field in an MS Access table with a lookup (LookUp)

A

allows you to edit a table field by selecting a value from an installed control - a combo box, allows you to view values ​​also from fields other than the key fields of the parent table

139
Q

The “autonumber” value that can be selected in the “data type” field of the MS Access table design view specifies the values ​​of this field as

A

is a mechanism for automatically entering consecutive natural numbers or random numbers different from each other in subsequent table records into a field for which this type of value is specified

140
Q

If for MS Access tables that are related to each other, the primary key of the parent table is implemented by “autonumbering”, then the corresponding foreign key field of the child table should be declared as variable type

A

long integer

141
Q

Deleting cascade-related records in an MS Access database can be accomplished by

A

selecting the “cascade delete related records” option when declaring integrity constraints for the relationship that connects these tables, then the database system will automatically delete the related records from the child table before deleting the record in the parent table

142
Q

the data source for an Append query in MS Access can be

A

another table or query

143
Q

After creating a new table in MS Access the database system

A

will suggest the user to define a primary key field and possibly select such a field and make it the primary key.

144
Q

When creating a form with a subform to simultaneously view records from the parent table and their related records from the child table, the database application designer must ensure

A

the existence of fields in the record sources of both forms that will enable linking corresponding records.

145
Q

The purpose of the TOR document is

A

a reference point for further design work, writing down the functions that the database application is to perform

146
Q

Entity Relationship Diagram

A

is used by analysts, abstracts from the implementation details of the database, is used to determine user requirements

147
Q

What processes are subjected to design objects stored in the CASE tool repository

A

transformation, versioning, generation (forward engineering), reverse engineering

148
Q

What are the phases in the MSF risk model

A

analysis, planning, tracking, control

149
Q

What elements is the MSF process model based on

A

checkpoints (milestones), managing the relationship between resources, schedule and features

150
Q

Which phases are distinguished as basic in the MSF process model

A

Planning phase, Analysis phase, Design phase, Creation phase

151
Q

Which roles are included in the MSF project team model

A

Project Manager, Product Manager, program manager

152
Q

According to the MSF methodology, the following are responsible for delivering the product within the design constraints

A

Project Manager, program manager

153
Q

According to the MSF methodology, the following persons are responsible for delivering a product that complies with the specification

A

Product Manager, tester

154
Q

What are the fundamental aspects of the MSF enterprise architecture model

A

business, information, applications, technology

155
Q

What design perspectives are highlighted in the MSF design process model

A

conceptual, logical, physical

156
Q

What layers are distinguished in the MSF application model

A

presentation layer, business layer, data layer

157
Q

Saving whether a select query returns an empty set in a Boolean variable can be done using

A

set of records

158
Q

Synchronizing two unrelated lists on a form can be done using

A

DLookUp function, ApplyFilter method (of DoCmd object), OpenForm methods (of the DoCmd object)

159
Q

Which of the constructs are used for validation and error handling in the application

A

action CancelEvent, “On Error” event procedure, On Error instruction, event procedure “When value is not in list”

160
Q

For what objects can a record set be defined

A

form, report, table

161
Q

Which of the following objects are part of the ADO hierarchy

A

record sets

162
Q

Which of the following statements are used to synchronize values ​​in two forms

A

DoCmd.ApplyFilter, DoCmd.Requery

163
Q

Which of the following expressions are part of the SQL language

A

Select Distinct People.LastName From People, Update People Set Data = null

164
Q

The collection is

A

an object representing a set of elements

165
Q

A record set is

A

RecordSet type object

166
Q

ADO is a library of objects and collections that allows access to

167
Q

The root of the ADO hierarchy is the object

A

Connection

168
Q

DoCmd is

A

an object whose methods are used to execute commands

169
Q

Control is

A

an object belonging to the Controls collection

170
Q

What does the Visual Basic runtime environment include

A

program analysis window, break points, class object navigator

171
Q

Access administrative tools allow you to

A

database defragmentation, converting a database from an earlier version of Access, creating user accounts, data replication

172
Q

Access administrative tools allow you to

A

database defragmentation, converting a database from an earlier version of Access, data replication

173
Q

Access administrative tools allow you to

A

managing Access databases in a local network, converting a database from an earlier version of Access, repairing a corrupted database, data replication

174
Q

Access administrative tools allow you to

A

database defragmentation, converting a database from an earlier version of Access, database encryption

175
Q

Access administrative tools allow you to

A

separating data from the user interface, setting a password for the database, data replication

176
Q

Which of the following actions can speed up the performance of a database application

A

using the Database Performance Analyzer, removing drawings from unbound frames, using the Database Table Analyzer

177
Q

Which of the following actions can speed up the performance of a database application

A

using the Database Performance Analyzer, converting to .mde format, removing drawings from unbound frames, using the Database Table Analyzer

178
Q

Which of the following actions can speed up the performance of a database application

A

using the Database Performance Analyzer, removing drawings from unbound frames, using the Database Table Analyzer

179
Q

Which of the following actions can speed up the performance of a database application

A

using the Database Performance Analyzer, establishment of new indexes, removing some indexes, removing drawings from unbound frames

180
Q

Which of the following actions can speed up the performance of a database application

A

using the Database Performance Analyzer, replacing queries as a row source for lists with SELECT statements

181
Q

The java.sql package includes

A

interface responsible for establishing a connection to the database, a class that manages the list of available drivers, interface for managing the list of available drivers

182
Q

The java.sql package includes

A

a class representing an SQL statement, a class representing a database connection, a class representing a set of query results

183
Q

What are the methods of the Statement class

A

executeQuery, executeUpdate

184
Q

What are the methods of the ResultSet class

A

next, getString

185
Q

What are the methods of SQLException class

A

getSQLState

186
Q

The commit method belongs to the class

A

Connection

187
Q

To model an ambiguous relationship (many-to-many) in MS Visio you need to

A

Create an association entity and link it to the output entities with two one-to-many relationships, where the association entity will remain on the “one” side

188
Q

The relationship STATE - RIVER (“flows through”) is a relationship?

A

many - many

189
Q

How many tables should a simple normalized database containing information about floors, rooms and “one-to-many” relationships between them consist of?

190
Q

The entities PRESIDENT and STATE (with the dependency “directs”) are connected by the relationship

A

one - many

191
Q

Which SQL statements will list employees working in a department named “DALLAS” or “CHICAGO” earning more than $1,200,, SELECT NAME,DEPT,SAL FROM EMP WHERE (DEPT=’DALLAS’ OR DEPT=’CHICAGO’) AND SAL>1200

192
Q

In MS Visio, the circle separating the relationship is placed on the relationship line

193
Q

Given a relational schema: R = {Student, University, Address, Club}, F = {Student -> University

A

Club -> Address

194
Q

What is the value of the logical expression TRUE AND (Null OR FALSE)

195
Q

The entities COUNTRY and RIVER (with the relationship “the river flows through many countries”) are connected by a relationship, many - many

196
Q

There are three tables Customers(Customer_ID, First_Name, Last_Name), Products(Product_ID, Name, Price) and Purchases(Customer_ID, Product_ID, Quantity). Indicate the correct SQL query that finds the names and surnames of customers who have purchased at least one product, SELECT DISTINCT FirstName, LastName FROM Customers LEFT OUTER JOIN Shopping ON Customers.Customer_Id = Shopping.Customer_Id

197
Q

What will be the result of executing the following statement on a non-empty relation PERSON (PersonId, FirstName, LastName, AccountNo.): SELECT * FROM Person WHERE AccountNo. = AccountNo. OR AccountNo. = NULL?, relationship Person

198
Q

There are domestic animals living in the houses. Some animals eat each other. The houses can be located next to each other. Indicate which of the following diagrams (primary key attributes are marked in capital letters) correctly (and without redundancy) model the problem, Homes(HOUSE_ID, address) Animals(ANIMAL_ID, type_id, house_id) Types(TYPE_ID, type) Next_to_each_other(HOUSE_ID1, HOUSE_ID2) Eats(TYPE_ID_EATS, TYPE_ID_EATEN)

199
Q

If there is a GROUP BY clause in the query, then the SELECT can be followed by

A

column following GROUP BY

200
Q

The CURRENCY entity and the COUNTRY entity (with the relationship “the country has one currency”) are connected by a relationship, one - many

201
Q

There are three tables Customers (Customer_ID, First_Name, Last_Name), Products (Product_ID, Name, Price and Purchases (Customer_ID, Product_ID, Quantity). Indicate the correct SQL query that finds the first and last names of customers who purchased the product named Washing Machine., SELECT FirstName, LastName FROM Customers INNER JOIN Shopping ON Customers.Customer_Id = Shopping.Customer_Id INNER JOIN Products ON Products.Product_Id = Shopping.Product_Id WHERE Name = ‘Washing Machine’

202
Q

Relation R has an attribute a. What number can be the result of executing the statement SELECT COUNT(*) FROM R WHERE a <> a

A

, always 0

203
Q

What is the value of the logical expression TRUE OR Null OR FALSE

204
Q

The concept of reference shares applies, Performing DELETE and UPDATE operations on related records, Possibilities of linking entities together with an unambiguous relationship

205
Q

The tables STUDENT and SUBJECT (with the relationship “each student takes multiple subjects”) are connected by the relationship

A

Requiring an additional association table, many - many

206
Q

Specify the correct SQL query (ORACLE dialect) that finds the average earnings of only those departments that employ more than three employees

A

SELECT deptno, AVG(sal) FROM emp HAVING COUNT(*) > 3 GROUP BY deptno

207
Q

Given two tables Osoby(Imię, Nazwisko, Zarobki, Id_działu)and Działy(Id_działu, Nazwa). Which of the following statements are valid SQL statements in the ORACLE dialect?, INSERT INTO Osoby (Imię, Nazwisko, Zarobki) VALUES (‘Jan’, ‘Kowalski’, 2000), DELETE FROM Osoby WHERE Id_działu = 10

208
Q

A unique relationship is implemented in a relational database by

A

foreign key

209
Q

If there is a GROUP BY clause in the query, then HAVING can be followed by

A

summary function

210
Q

The requirements specification states: An album consists of a number of songs

A

a song is in one album. In which drawings is this requirement modeled correctly. (The arrow indicates the “one” side of the relationship)?, (The first image)

211
Q

The logical value of the expression FALSE OR Null AND TRUE is

212
Q

Given the relational schema R={City, Street, Postcode, Post}, F = {City, Street->Postcode

A

Postcode->City

213
Q

Given the relational schema R={Street, Code, Shop}, F = {Street->Code

A

Shop->Street}. This schema

214
Q

What is the value of the logical expression TRUE OR Null OR FALSE

215
Q

The IIf function allows you to

A

interpreting Null as an empty string