UPINAR
ﻗﻮاﻋﺪ ﺑﻴﺎﻧﺎت ﻣﺘﻘﺪﻣﺔ
Back Quiz navigation
Time left 0:34:55 Hide
ﻋﺎ
Question 1 Which command is used to create a stored procedure?
Not yet
ﻋﺒﺪ اﻟﺮﺣﻤﻦ ﻣﺤﻤﺪ اﻟﺘﻠﺒﺎﻧﻲ
answered
a. CREATE INDEX
Remove flag 1 2 3 4 5 6 7 8 9
b. CREATE PROCEDURE
10 11 12 13 14 15 16 17 18
c. CREATE VIEW
Clear my choice 19 20 21 22 23 24 25 26 27
28 29 30 31 32 33 34 35 36
Question 2 What does the command ALTER TABLE do? 37 38 39 40 41 42 43 44 45
Not yet
answered
a. Creates a new table 46 47 48 49 50 51 52 53 54
Remove flag
b. Modifies an existing table
Last saved: 30/10/24, 15:26:16
c. Deletes a table
Finish attempt ...
Clear my choice
Question 3 Views require physical storage space in the database for data.
Not yet
answered
True
Remove flag
False
Question 4 Which benefit is NOT provided by stored procedures?
Not yet
answered
a. Increased storage requirements
Remove flag
b. Improved performance
c. Improved data security
Clear my choice
Question 5 Which JOIN returns all records from the left table and matching records from the right table?
Not yet
answered
a. RIGHT JOIN
Remove flag
b. LEFT JOIN
c. INNER JOIN
Clear my choice
Question 6 SQL DDL commands include CREATE, DROP, and ALTER
Not yet
answered
True
Remove flag
False
Question 7 The SQL CROSS JOIN produces a Cartesian product of two tables.
Not yet
answered
True
Remove flag
False
Question 8 The SELECT DISTINCT statement retrieves unique records.
Not yet
answered
True
Remove flag
False
Question 9 An INNER JOIN only returns rows with matches in both joined tables.
Not yet
answered
True
Remove flag
False
Question 10 Views can contain aggregated data like sums and averages.
Not yet
answered
True
Remove flag
False
Question 11 What does the “*” symbol represent in a SELECT statement?
Not yet
answered
a. All rows
Remove flag
b. All columns
c. A single row
Clear my choice
Question 12 Views can be used to join multiple tables together
Not yet
answered
True
Remove flag
False
Question 13 Which of the following is NOT a reason to use stored procedures?
Not yet
answered
a. Improve security
Remove flag
b. Share application logic
c. Increase network traffic
Clear my choice
Question 14 CROSS JOIN is often used when you want a Cartesian product of two tables
Not yet
answered
True
Remove flag
False
Question 15 A data warehouse is generally designed for fast updates and transactions
Not yet
answered
True
Remove flag
False
Question 16 A LEFT JOIN will return all records from the right table even if there are no matching rows in the left table
Not yet
answered
True
Remove flag
False
Question 17 Stored procedures allow for parameterized queries
Not yet
answered
True
Remove flag
False
Question 18 The ALTER statement is used to delete a table.
Not yet
answered
True
Remove flag
False
Question 19 Which of the following is NOT typically a feature of data warehouses?
Not yet
answered
a. Roll-up and drill-down functions
Remove flag
b. Handling large volumes of data
c. Real-time updates
Clear my choice
Question 20 Data cleaning is an important step in data warehouse implementation
Not yet
answered
True
Remove flag
False
Question 21 Which clause would you use in SQL to group rows with the same values in specified columns?
Not yet
answered
a. GROUP BY
Remove flag
b. ORDER BY
c. WHERE
Clear my choice
Question 22 Which of the following is a correct syntax to create a view?
Not yet
answered
a. SELECT INTO VIEW view_name..
Remove flag
b. CREATE TABLE view_name AS SELECT..
c. CREATE VIEW view_name AS SELECT..
Clear my choice
Question 23 When updating data through a view, which option is often used to prevent changing rows that do not meet the view’s
Not yet conditions?
answered
Remove flag
a. WHERE
b. HAVING
c. WITH CHECK OPTION
Clear my choice
Question 24 Which functionality in a data warehouse shows increased levels of detail?
Not yet
answered
a. Drill-down
Remove flag
b. Pivot
c. Roll-up
Clear my choice
Question 25 Which SQL command is used to remove all rows from a table without deleting the table?
Not yet
answered
a. DROP
Remove flag
b. TRUNCATE
c. DELETE
Clear my choice
Question 26 The COUNT function in SQL returns the number of rows that match a specified condition
Not yet
answered
True
Remove flag
False
Question 27 Which SQL JOIN type will return all rows from both tables when there is a match or not?
Not yet
answered
a. INNER JOIN
Remove flag
b. FULL OUTER JOIN
c. CROSS JOIN
Clear my choice
Question 28 Which clause is used to filter groups of rows in SQL?
Not yet
answered
a. HAVING
Remove flag
b. WHERE
c. GROUP BY
Clear my choice
Question 29 Views that join horizontally partitioned data from tables on different servers are known as:
Not yet
answered
a. Indexed views
Remove flag
b. Partitioned views
c. Materialized views
Clear my choice
Question 30 To remove a stored procedure, you use the command:
Not yet
answered
a. REMOVE PROCEDURE
Remove flag
b. DROP PROCEDURE
c. DELETE PROCEDURE
Clear my choice
Question 31 Which SQL statement is used to create a new database?
Not yet
answered
a. ALTER
Remove flag
b. CREATE
c. INSERT
Clear my choice
Question 32 Which SQL statement is used to create a view?
Not yet
answered
a. CREATE TABLE
Remove flag
b. CREATE VIEW
c. CREATE PROCEDURE
Clear my choice
Question 33 Which keyword is used to prevent SQL from allowing NULL values in a column?
Not yet
answered
a. PRIMARY KEY
Remove flag
b. NOT NULL
c. UNIQUE
Clear my choice
Question 34 SQL statements can only be used in Oracle databases
Not yet
answered
True
Remove flag
False
Question 35 The CREATE DATABASE statement is used to add rows to a table.
Not yet
answered
True
Remove flag
False
Question 36 The SQL BETWEEN operator allows you to select values within a range
Not yet
answered
True
Remove flag
False
Question 37 What is a major disadvantage of data warehouses?
Not yet
answered
a. Real-time data processing
Remove flag
b. Long lead time for setup
c. Low storage costs
Clear my choice
Question 38 When would you use a SELF JOIN in SQL?
Not yet
answered
a. When you want only matching rows from two tables
Remove flag
b. When you need to join a table with itself
c. When you want all rows from two tables
Clear my choice
Question 39 Data warehousing requires a schema optimized for ad-hoc querying.
Not yet
answered
True
Remove flag
False
Question 40 Stored procedures cannot accept input parameters
Not yet
answered
True
Remove flag
False
Question 41 Which term refers to viewing data across multiple dimensions in a warehouse?
Not yet
answered
a. Roll-up
Remove flag
b. Slice and dice
c. Drill-down
Clear my choice
Question 42 Data warehouses store data persistently rather than materializing it on demand
Not yet
answered
True
Remove flag
False
Question 43 The WHERE clause in SQL is used to group rows
Not yet
answered
True
Remove flag
False
Question 44 What is one main purpose of a data warehouse?
Not yet
answered
a. Replace the relational database
Remove flag
b. Provide a central repository for data analysis
c. Store real-time data
Clear my choice
Question 45 The SQL CROSS JOIN produces a Cartesian product of two tables.
Not yet
answered
True
Remove flag
False
Question 46 UNION is used to combine result sets from multiple SELECT statements
Not yet
answered
True
Remove flag
False
Question 47 Stored procedures can help reduce network traffic
Not yet
answered
True
Remove flag
False
Question 48 SQL can only be used to retrieve data but cannot update data.
Not yet
answered
True
Remove flag
False
Question 49 Stored procedures allow a user to bypass permissions on tables.
Not yet
answered
True
Remove flag
False
Question 50 A stored procedure can contain multiple SQL statements
Not yet
answered
True
Remove flag
False
Question 51 What is one restriction when updating data through a view?
Not yet
answered
a. It cannot join multiple tables
Remove flag
b. It cannot modify columns derived from aggregate functions
c. It cannot be used to retrieve data
Clear my choice
Question 52 The WITH ENCRYPTION option protects a view’s definition.
Not yet
answered
True
Remove flag
False
Question 53 DROP TABLE removes a table and all its rows permanently.
Not yet
answered
True
Remove flag
False
Question 54 What is the default file extension for SQL Server primary data files?
Not yet
answered
a. .mdf
Remove flag
b. .ndf
c. .ldf
Clear my choice
Finish attempt ...