For the following relations and a Set operation: **Employee** | Name | City | Gender | | :--- | :--- | :--- | | Nguyen Trung Truc | HCM | Male | | Le Hong Son | HCM | Male | **Customer** | Name | City | Gender | | :--- | :--- | :--- | | Nguyen Trung Truc | HCM | Male | | Tran Tuyet Nhi | HN | Female | Employee \\ Customer What is the result of the Difference operation?🔒 Đáp án trong Source VIPDBI202Đã xuất hiện trong 1 đề thi
Your database contains a table named Purchases. The table includes a DATETIME column named PurchaseTime that stores the date and time each purchase is made. There is a non-clustered index on the PurchaseTime column. The business team wants a report that displays the total number of purchases made on the current day. You need to write a query that will return the correct results in the most efficient manner. Which Transact-SQL query should you use?🔒 Đáp án trong Source VIPDBI202Đã xuất hiện trong 1 đề thi
The relation $R(A,B,C,D)$ has following FDs: $$\{AB \to C,\ ABD \to C,\ ABC \to D,\ AC \to D\}$$ Choose a correct statement about $R$?🔒 Đáp án trong Source VIPDBI202Đã xuất hiện trong 1 đề thi
The _____ constraint is used to insert a default value into a column🔒 Đáp án trong Source VIPDBI202Đã xuất hiện trong 1 đề thi
When drawing an ERD: (a) Entity sets and their attributes should reflect reality (b) Redundancy is not important, so we can ignore it (c) Avoid introducing more elements into the design than is absolutely necessary (d) Choosing the right relationships🔒 Đáp án trong Source VIPDBI202Đã xuất hiện trong 1 đề thi
What is the difference between Where and Having Clause?🔒 Đáp án trong Source VIPDBI202Đã xuất hiện trong 1 đề thi
Here are two relations, R(A,B), S(C,D). (see figure): **Table R:** | A | B | |---|---| | 1 | 4 | | 2 | 5 | | 3 | 6 | | 4 | 7 | **Table S:** | C | D | |---|---| | 0 | 1 | | 1 | 0 | | 2 | 1 | Compute the result of the query: ```sql SELECT A, B, C, D FROM R LEFT OUTER JOIN S ON R.A = S.C ``` Identify, in the list below, the row that appears in the result.🔒 Đáp án trong Source VIPDBI202Đã xuất hiện trong 1 đề thi
Let we examine the following code: ```sql DECLARE @a int; DECLARE @b int; PRINT @a + @b; ``` What is the output?🔒 Đáp án trong Source VIPDBI202Đã xuất hiện trong 1 đề thi
Let R(A,B,C,D) with the following FDs: {AB->C, AC->B, AD->C} Choose a correct statement about R:🔒 Đáp án trong Source VIPDBI202Đã xuất hiện trong 1 đề thi
If you wish to return a value from a stored procedure into a parameter, which of the following use?🔒 Đáp án trong Source VIPDBI202Đã xuất hiện trong 1 đề thi
Which SQL keyword is used to sort the result-set?🔒 Đáp án trong Source VIPDBI202Đã xuất hiện trong 1 đề thi
Look at the following statements: (a) For any relation schema, there is a dependency-preserving decomposition into 3NF. (b) For any relation schema, there is not a dependency-preserving decomposition into 3NF. (c) For any relation schema, there is a dependency-preserving decomposition into BCNF. (d) For some relation schema, there is not a dependency-preserving decomposition into BCNF.🔒 Đáp án trong Source VIPDBI202Đã xuất hiện trong 1 đề thi
Why the intersection operator is not called a primitive relational algebra operator?🔒 Đáp án trong Source VIPDBI202Đã xuất hiện trong 1 đề thi
Data Definition language (DDL) is used to .....🔒 Đáp án trong Source VIPDBI202Đã xuất hiện trong 1 đề thi
A database transaction, by definition, must be ACID (atomic, consistent, isolated and durable). What does "Durable" mean?🔒 Đáp án trong Source VIPDBI202Đã xuất hiện trong 1 đề thi