NAME

Question types


Start with


Question limit

of 235 available terms

Print test

235 Multiple choice questions

  1. Database objects, DML
  2. Changes existing data in one or more rows in a table or view(changes the data in the table)
  3. Isolate semantically related multiple relationships
  4. is a database object that can accept values, perform a calculation and return the result to the caller. Can be directly referenced using a SELECT statement.
  5. Performs insert, update, or delete operations on a target table based on the results of a join with a source table.
  6. A query and functional programming language designed to query collections of XML data.
  7. When the foreign key refers to columns in the same table.
  8. DENY
  9. Modifies a table definition by altering, adding, or dropping columns and constraints, reassigning partitions or disabling or enabling constraints and triggers.(cannot change IDENTITY constraint)
  10. DML or DDL
  11. Return a single value, calculated from values in a column. Ex. COUNT
  12. update columns with calculated values
  13. A single entity attribute
  14. Isolate independent multiple relationships
  15. When a schema is created through a series of successive refinements, starting with the first schema.
  16. 1. If a view definition contains the DISTINCT keyword, rows cannot be deleted through the view.
    2. The WITH OBJECT IDENTIFIER clause is used to specify a top level (root) object view.
    3. The OR REPLACE option is used to change the definition of a existing view without dropping and recreating.
  17. This is the primary means of programming and manageing SQL Server. When you use an SSMS to perform an action, it is using T-SQL commands in the background to do the work.
  18. Creates a SQL Server database object (table, view, or stored procedure)
  19. To check all pages in a DB are correctly allocated
  20. TRUNCATE command; does not log each row
  21. gives you the final result set where values in both of the queries match by the query on both the left and right sides of the operand.
    • The number and order of the columns must be the same in all queries.
    • The data types must be compatible.
  22. Selects data and returns the results as a table. Cannot modify any permanent tables.
  23. It specifies a percentage that indicates how much free space will be in the leaf level of each index page.
  24. A-z or 0-9(any digit or letter that math functions will not be applied to)
  25. @
  26. contains one row for each function, constraint or trigger created within a database. Indexes are not stored in this table(sysindexes).
  27. CREATE TABLE
  28. shows line stating the number of rows "affected". This is off by default. This will suppress the '(1 row affected)
  29. preserves the unmatched rows from the second (right) table, joining them with a NULL in the shape of the first (left) table
  30. used in a UPDATE statement when you need to update the values of columns that have a large object data type such as varchar(max) or varbinary(max) columns.
  31. It requires users to specify which data is needed and how to obtain it, it is a low-level DML, it requires users to know the data structure used in the db.
  32. The LIKE operator is used together with the % wildcard character
  33. Fixed, N
  34. returns all rows from the left table (table1) and from the right table (table2).
  35. Returns a single value, based on the input value of a single field(EX: UCASE - Returns the value of the field in all upper case).
  36. A reserved Keyword and cannot be used as a object name or column name in a table unless delimited. Add is used to add a new column in a alter table statement.
  37. A relational database is similar to a hierarchical database in that data is stored in tables and any new information is automatically added to the table without the need to reorganize the table itself. Minimizes the amount of redundant data stored in the database. database can have multiple parents.
  38. Server, Database and Table
  39. • A subset of rows or columns of a base table
    • A union of two or more tables
    • A join of two or more tables
    • A statistical summary of base tables
    • A subset of another view or some combination of views and base tables
  40. A SQL procedure that initiates an action when an event(INSERT, DELETE or UPDATE) occurs.
  41. Columns frequently uses as a query join conditions.
  42. are designed to return distinct values by comparing the results of two queries.
  43. Storage and Programmability
  44. Specifically identifies which column should not contain duplicate values.
  45. MDF = Primary data files, NDF = Secondary data files and LDF = Log files
  46. so that they can be accessed by multiple users and provide a higher level of performance. One popular database server is Microsoft SQL Server.
  47. used to create a user-defines data type or an alias data type.
  48. sys schema
  49. 1MB = 1024KB
    1 record is 165 bytes - Multiply by amt of records.
  50. SELECT
  51. is the maximum total number of decimal digits that can be stored in a numeric data type, both to the left and to the right of the decimal point; this value must be at least 1 and at most 38. The default precision number is 18.
  52. Unique, Check(domain Integrity), Default(domain integrity), Not Null, Primary Key(entity integrity), Foreign Key(referential integrity)
  53. A method of coding that enables a user to focus on the coding rather than the syntax for a specific database API, allowing them to use generic methods of access as long as they have the additional codes or libraries which fill in the blanks.
  54. 1 or 0, true or false
  55. To ensure all child tables are deleted inf the parent is deleted. This can be your FOREIGN KEY constraint.
  56. Can create, alter, and drop disk files. This is a Fixed server role
  57. A DDL statement used to remove objects, such as tables, views, stored procedures, and triggers , from a database.
  58. Implicit,(automatic)
  59. one, two
  60. can Configure server -wide settings and issue SHUTDOWN command which immediately stops the SQL server.
  61. value
  62. the functions cast or convert specifically.
  63. Integrity between tables using relationships.
  64. Returns character data converted from numeric data. The second parameter is for the total length of the output including the decimal point, signs, digits, and spaces. output is round as specified in the third parameter.
  65. can be used with a previously taken full backup to recover a database. you can add a NO RECOVERY clause if you plan to apply a transaction log of differential backup as part of your recovery process.
  66. are the most common SQL Server data types used to store numeric information.
  67. Building a working model of the DB system in order to suggest improvements or add new features.
  68. Changes the database context
  69. replaces all occurrences of the second given string in the first string expression with a third expression(SELECT REPLACE('The best TTS Solution','s','z') - The bezt TTZ ..
  70. Available across all database instances(network)(LOGIN)
  71. Index that includes all columns used in the query. Can optimize performance because the query can be generated from the index without accessing the actual tables involved in the query.
  72. returns a result set that contains all the combinations of rows from two tables that do not have a column in common, also know as a Cartesian product. WHERE conditions should always be included.
  73. to specify sorting rules that are different than those used for other columns in the table.
  74. Logical DB design
  75. A database will be created.
  76. used to ensure that no changes to the underlying data can be made through the view that would cause data no to conform to the definitions of the view.
  77. Generates a continuous chain of transactions without stopping until completed
  78. can perform backups, checkpoints, and DBCC commands, but not restores(only sysadmins can perform restores)
  79. Top-down, Bottom-up, Inside-out, Mixed
  80. Used to insert a default value into a column.
  81. CREATE, DROP, ALTER
  82. Physical database design
  83. SELECT AVG("column name") FROM "table name"
  84. Storage and Programmability
  85. series of steps(or rules) called "forms" the more steps you take, the more normalized your tables.
  86. can issue DDL commands(statements)(create, alter,drop)
  87. A command line application that comes with SQL and exposes the management features of SQL Server. It allows SQL queries to be written and executed from the command prompt.
  88. contains one row for each index and table in the database.
  89. N
  90. The process of extracting trails on a regular basis so they can be transferred to a designated security system where the database admins do not have access, this ensures a certain level of separation of duties and provides evidence that the audit trails were not modified.
  91. 1. Columns contain a large number of distinct values
    2. Columns are accessed sequentially
    3. Queries return large result sets
  92. physical structure in non clustered index
  93. This is a column in one table that points to the primary key in another table(defines relationship between two tables). Ensures domain and referential integrity, not entity integrity. There is not a predefined limit for foreign keys.
  94. Changes an existing object(changes the object definition)
  95. 1. Create a full text catalog in the database
    2. Create a full text index on the column in question
  96. Blocks modifying data in any table in the database. Will override any object-level grant
  97. UNION; without any duplicates. Duplicates require UNION ALL.
  98. Database can parse out redundant storage and information obtained from various relational spreadsheets.
  99. Prevents users of members of a role from performing an action on a secure-able object, such as a view, or stored procedure. even if permission is grated directly through membership in another role.
  100. used to optimize operations that use spatial data types, such as geometry and geography data types.
  101. To commit changes made within a manual transaction to the database.
  102. Command will remove a windows user or group from the SQL server. This will not alter Windows its self
  103. indexed
  104. Requirements and Evolutionary
  105. A database role is assigned to users
  106. Database performance
  107. A function
  108. INNER JOIN
  109. To automatically assign sequential integer values to a column
  110. Restore
  111. must contain a RETURNS clause and a RETURN statement.
  112. Column, localvariable, expression and parameter.
  113. INNER will only produce matching rows from both tables while OUTER will join all rows from both tables whether they match or not.
  114. used to define a clustered or non clustered index.
  115. Because it may be impossible to verify the constraints if a foreign key consists of two or more columns if one of them is NULL.
  116. 2 bytes, This allows 65,536 characters at almost any language.
  117. Column; limitations or rules placed on a field or column to ensure that data that is considered invalid is not entered.
  118. Retrieves rows from the database and enables the selection of one or many rows or columns from one or many tables in SQL Server.
  119. The function of the is to change data in a table or view
  120. Incremental
  121. A type of bottom-up approach, the inside-out method begins with identifying a few important concepts then proceeds outward radially.
  122. • Specific rows of tables
    • Specific columns of tables
    • Specific rows and columns of tables
    • Rows obtained by using joins
    • Statistical summaries of data in given tables
    • Subsets of another view or subsets of views and tables
  123. refers to a set of rules that determine how data is sorted and compared. By default, SQL Server has predefined collation precedence. If you wish to override how data is being sorted, you must use a collation clause.
  124. worsens, because it's constantly sorting it. Improves it for retrieving it though. Physical sort. Only 1 per table.
  125. 30
  126. Includes only a single SELECT statement. Can accept parameters.
  127. is the process of stepping back through the normalization steps until you get something that is "comfortable". Improves data retrieval performance.
  128. transaction design and interface design
  129. (stored procedure)one that is created within a schema and can receive permissions through that schema.
  130. 1NF - Eliminate duplicative columns from the same table.
    -Create separate tables for each group of related data and identify each row with a unique column (the primary key).
    2NF - Move repeating fields into a new table that contains a primary key, and relate it back to the old table using a foreign key. (requirement that each field value in a table is associated with only one row)
    3NF - Eliminate columns not- transitively dependent (useless) on key
    4NF - all in table are dependent on superkey
    5NF - every join is implied by superkeys of the table
  131. returns the starting position of the specifies expression in a character string. The third parameter of the function is the character position to start searching for the first parameter in the second parameter. If starting ocation is a negative number, search starts at beginning of second parameter.
  132. , which combine columns from multiple different tables. JOIN statements can be specified in either the FROM or the WHERE clause, but it is recommended that you specify them in the FROM clause.
  133. Primary key constraints and Clustered indexes
  134. CREATE LOGIN
  135. includes a row for each possible combination of results from the other tables. the number of rows returned will equal the number of rows in one table multiplied by the number of rows in the other table.
  136. A feature of a transaction processing system which enables DB's to be returned to the pre-transaction state if some error condition occurs. All databases are updated or none of them are.
  137. Use the CREATE or REPLACE VIEW command to redefine it.
  138. A function can be directly referenced in a select statement, and return only a single scalar or table vaule.
  139. is used to obtain only subset of rows that fulfill criterion in the WHERE clause
  140. Can read from any table in the database, this deny will override an object-level grant
  141. A primary key, a UNIQUE index and a CLUSTERED index
  142. Database s-scoped secure-able. Created within a database and provides a namespace and a security container for database objects. Each secure-able object must have a unique name
  143. UNION
  144. Non-clustered indexes are not copies of the table but a sorting of the columns you specify that "point" back to the data pages in the clustered index. Add non-clustered indexes for queries that return smaller result sets
  145. are the time it takes to build the indexes and the storage space the indexes require. Note: each table can have only one clustered index , data can be sorted in only one way.
  146. Must have AND; can only admit two expressions(between(10000 and 50000)) cant add another between(10000 and 50000) and (60000 and 90000)
  147. Real numbers
  148. is similar to a tree structure (such as a family tree). Each parent table can have multiple children, but each child table can have only one parent.
  149. The INSERT statement uses the default value for the column.
  150. allows you to limit the types of data a user can insert into a the database and that they meet a certain condition.
  151. is simplistic in design. They are two dimensional tables that are consisting to rows and columns. for fast searches.
  152. Adds one or more new rows to a table or a view in SQL Server. Must contain a table or view name into which to insert the data. Can be used to insert explicit values into a table or to insert the result set returned by a query into a table.
  153. is simply a virtual table consisting of different columns from one or more tables. Unlike a table, a view is stored in a database as a query object; therefore, a view is an object that obtains its data from one or more tables. View is a database object that can be used in SELECT queries just like a table. When a view contains a join, DML can be preformed but only a single base table.
  154. filter the results grouped by a GROUP BY clause.
  155. is a data structure that improves the speed of data retrieval operations on a database table.
  156. 2nf
  157. ALTER INDEX ALL ON dbo.OrderDetails REBUILD WITH (FILLFACTOR = 60);
  158. 1 byte, 256 possible characters.
  159. Can create, alter,drop, and restore databases
  160. Instances of SQL server, Data-Tier apps, Databse Files, Volumes
  161. valued function includes only a single SELECT statement.
  162. Time is the 24 hr clock without time zone awareness(Minimizes storage but can store time the includes hours, minutes, seconds but not fractional seconds.)
    Date is used to define 1/1 to 12/31 9999
    Datetime is accurate to .00333 seconds(1/1 1753 to 9999)
    datetime2 is accurate up to 100 nanoseconds
    datetimeoffset includes daylight savings time
    smalldatetime(1\1 1900 to june 6, 2079)(2 bytes) does not keep track of seconds.(cant use neg numbers)
    Time(3) stores fractional seconds, however increases storage space.
    timestamp - is uses for row versioning, not to store time data.
  163. The number of columns.
  164. False
  165. To cause the result set to be sorted by the value in a specific column or columns. Not allowed in a CREATE VIEW Statement.
  166. Would prevent a parent row from being deleted if it had a related child rows in another table.
  167. SET
  168. Gives a database user or group(defined with a role) specific permissions to data objects. Uses ON clause preceding it.
  169. Backup copy of only specific file groups.
  170. False, NULL is not a constraint
  171. A column of the uniqueidentifer data type. You need to use the NEWID() function in the values list to generate the value.
  172. Can modify the data in permanent tables and return multiple values as output parameters. It doesn't control how underlying data is physically accessed. Can return a value to the caller.
  173. occurs when you define more than one column as your primary key.
  174. Grammar and rules governing the structure and content of statements.
  175. Is optimized to handle a large number of simultaneous updates additions and deletions.
  176. Set the fillfactor to 60.
  177. • Columns to retrieve
    • Tables to retrieve the columns from
    • Conditions, if any, that the data must satisfy
  178. lets you produce individual lists, but the result may be that you get all the information you need but in an individual list format.
  179. This uniquely identifies a column in the db. Has to have a unique constraint by default. Cannot be Null and data type must match. Ensures entity integrity(Uniquely id each row). Not always created as CLUSTERED indexes if one is already made.
  180. Checks all tables file group for any damage
  181. It's used on the primary key to automatically start with 1 and auto-increment by 1.
  182. (table scoped object and not securable) is a data structure that improves the speed of data retrieval operations on a database table. The disadvantage of indexes is that they need to be created and updated,.
  183. Creates a full-text index on a table or indexed view in a database. Only one full-text index is allowed per table or indexed view, and each full-text index applies to a single table or indexed view
  184. to create a computed column that can be included in an index.
  185. ensures that data is entered in to a cell(cant be blank).
  186. mixed-mode
  187. returns when there is at least one match in both tables.
  188. removes user access rights or privileges on the database objects granted using the GRANT statement, but does not prevent permissions from being obtained through membership in other roles.
  189. gives you the final result set where data exists in the first query and not in the second dataset.
  190. allows you to modify data stored in tables using data attributes. Note: If you don't specify what records to update, all records or rows will be updated with the new value. To update another table use FROM clause. In this, SET specifies column to be updated.
  191. to filter the results grouped by a GROUP BY clause. Can only reference aggregate functions or column that are also specified in the GROUP BY clause.
  192. Differential
  193. returns character data converted from numeric data.
  194. One that returns the same predictable value when called with same nvarchar(3500). Meets requirements using least amt of storage. Supports multiple language input parameters.
  195. A select statement that is nested within another SQL statement.
  196. Windows user logon, Membership in a windows group, SQL server logon
  197. Execute
  198. ensures the tables in the DB and the indexes are correctly linked.
  199. When the server is stopped.
  200. Can configure linked servers, extend stored procedures and the start-up stored procedure. This is a Fixed server role
  201. You can identify and delete individual rows from the database
  202. Allows the admin to limit the types of data a user can insert into that column of the database.
  203. A code injection technique that exploits security vulnerabilities in the DB layer of an application.
  204. Removes rows from a table or view(, which deletes data from within a table) Use for smaller databases
  205. the primary key is replicated from the primary to secondary table, and all the key attributes duplicated from the primary table are known as the foreign key.
  206. sysadmin, db_owner
  207. An explicit transaction is one where all events of the transaction either happen together or they don't take place at all.
  208. 1MB - 1024 KB - 1 field - 165 bytes. a 100k table - = 16113.28125 kb(15.73563 mb)
  209. Public
  210. bit, decimal and numeric. Transact-SQL data types that have a fixed precision and scale. money and smallmoney are Transact-SQL data types you would use to represent monetary or currency values.
  211. Function returns the maximum value of an expression(IE: The maximum salary of all employees)
  212. MIDUS: MERGE, INSERT, DELETE, UPDATE, SELECT
  213. In computer programing, create, read, update and delete (CRUD)are the four basic functions of persistent change
  214. Wild Card character(IE: WHERE lastname LIKE 'J%'); LIKE operator is used with %
  215. users don't need to learn yet another password and because it leverages the security design of the network.
  216. MS SQL Server
  217. used to ensure that none of the tables references by the view are dropped or have their structure changes such that the view would not function properly. Cannot use asterisk in SELECT list., must specify column by name
  218. Object-Oriented
  219. Ensures domain integrity by ensuring each record has a column value if one is not assigned.
  220. Breaking down the smaller components so that each describes a basic fragment.
  221. huge numbers(way bigger than millions) = bigint
    Big numbers= int(-2,147,483,648 to 2,147,483,647)Can store dates YYYYMMDD(4 bytes)
    small numbers = smallin(-32768 to 32,767 however req 2 bytes of space)
    smaller numbers = tinyint(max value of 255 with minimum storage 1 byte)
    lots of text = varchar(expands as needed) YYYYMMDD(8 bytes)
    text containing Unicode symbols(diff language or symbols) = nvarchar
    currency = smallmoney(-214,748.3648 to 214,748.3647 (4 decimal places))
    yes/no = bit(value of 0,1 or null)
    Float = precision and scale(best for finding percent %)
    decimal(3) - 5 bytes
  222. Multiple tables that are related using primary and foreign keys
  223. Relationship; Enforces referential integrity
  224. Non-clustered indexes are not copies of the table but a sorting of the columns you specify that "point" back to the data pages in the clustered index. Add non-clustered indexes for queries that return smaller result sets. (Optimal Performance)
  225. used to specify query hints that will allow for optimization of a query's execution.
  226. Use BEGIN TRAN
  227. is a database-specific role intended to allow an application to gain access regardless of the user.
  228. - Views allow you to limit the type of data users can access. You can grant view permissions in designated tables, and you can also choose to deny permissions for certain information.
    - Views reduce complexity for end users so they don't have to learn how to write complex SQL queries. Instead, you can write those queries on their behalf and hide them in a view.
  229. Prior to the Logical design phase.
  230. You would get all values for D, E but not F. (MUST HAVE AND IN BETWEEN STATEMENT)
  231. 1. It does not have any usage of SQL group functions or grouping of data.
    2. DML operations are allowed on the view
    3. It fetches data from one database table only
  232. When creating a stored procedure, this can be used to allow the person running the SP to have the same permissions as the person who owns the SP. This is better than granting SELECT to the user.
  233. ALTER TABLE tablename
    ENABLE CHANGE_TRACKING
  234. Large amount of selects on a table, create a clustered index on the primary key of the table. This index should be the most common column that is in your WHERE clauses for queries against this table. So if most of the time you search by primary key, then leave it as the default. But if you search by DateCreated or LastName most of the time on this table, then you might want to consider changing the clustered index to this column instead. Each table can only have 1 clustered index. (faster searching)
  235. No