Fd4 SQL Testing
Fd4 SQL Testing
O 03M535
25/25 Questions attempted Help
EMCQATTEMPTED
You are working with a database containing employee information. You want to find employees who are either in the Engineering department and have a salary greater than $80,000,
or employees in the Sales department with a Senior job title.
Which SQL query should you use to achieve this?
Answer
4 CLEAR
Please choose a correct answer.
SELECT * FROM employees WHERE (department 'Engineering' AND salary > 80000) OR (department Sales' AND job_title 'Senior');
8
SELECT * FROM employees WHERE (department - 'Engineering' OR department 'Sales') AND (salary > 80000 OR job_title - 'Senior');
10 SELECT FROM employees WHERE (department - 'Engineering' AND salary > 80000) AND (department - 'Sales' AND job title = 'Senior' );
12 SELECT * FROM employees WHERE (department = Engineering AND salary > 80000) XOR (department = 'Sales' AND job title = Senior');
13
deselect Foundation Test 4- SQL (.. O 03 M485 25/25 Questions attempted Help
There isa Student table that has two column IDs and names.
2
We need to update the name of the student with id = 10 as John. Which of the following query is correct?
Answer
CLEAR
Please choose a correct answer.
8 UPDATE NAME FROM STUDENT SET NAME =" John" WHERE ID-10;
https//app.doselectcom/test/Dxbg8/problem/934b3p
deselect Foundation Test 4 - SQL (... O 03 M415
25/25 Questions attempted Help
Assume that you work for a company that operates an e-commerce website. You are tasked with updating the order status for a particular customer's orders. You are provided with
the given table schema:
Which SQL statement can be used to update the status of all the orders for the customer with the email [email protected] to "shipped?
10 Answer
CLEAR
Please choose a correct answer.
11
12
UPDATE orders
All Which SQL query retrieves information about the primary key columns of the "customers table?
Answer
CLEAR
Please choose a correct answer.
6
SELECT CONSTRAINT NAME, COLUMN NAME
FROM INFORMATION SCHEMA. KEY COLUMN USAGE
WHERE REFERENCED TABLE NAME - 'customers AND CONSTRAINT TYPE - PRIMARY KEY':
12
SELECT cOLUMN NAME, CONSTRAINT NAME
FROM INFORMATION _SCHEMA.CONSTRAINT_COLUMN USAGE
Drrorrn TABLE NAME = 'customers AND CONSTRAINT_TYPE -PRIMARY';
https//app.doselect.com/test/Oxbg8/problem/dstwxt
deselect Foundation Test 4- SQL (... O 03 M285
25/25 Questions attempted Help
Consider a scenario where a company possesses twO tables: the first one holds customer details with columns such as customer id, customer name, and email and the second one
Al
contains order information with columns like order_id, customer_id, total_amount, and order date
Describe how you would formulate a SQL query to combine these tables and obtain the total amount spent by each customer.
Answer
CLEAR
Please choose a correct answer.
https//app.doselectcom/test/Dxbq8/problem/xnváp1
deselect Foundation Test 4- SQL (... O 03 M 08S 25/25 Questions attempted Help
Assume you are a database administrator for a companythat is updating an existing SQL database with new product data. The new data requires a change in the data type for the
price column in the product table from decimaltoan integer.
Which SQL command should you use to change the data type?
Answer
CLEAR
Please choose a correct answer.
ALTER COLUMN
10
ALTER UPDATE COLUMN
12
13
døselect Foundation Test 4-SQL (. O 03 M11S
25/25 Questions attempted Help
You want to allow records to be inserted with a blank email ID field initially. However, you need to ensure that this blank field is automatically populated with a random email ID ending
in @gmail.com' after insertion.
Which combination of constraints and mechanisms should you use to achieve this?
Answer
CLEAR
Please choose a correct answer.
O CHECK
DEFAULT
NOT NULL
UNIQUE @gmail.com'
12
13
deselect Foundation Test 4-SQL (.. O 03 M165
25/25 Questions attempted Help
All
Assume thnat your company has a database that stores information about employees and their salaries. The HR department needs to update the salary of a specific employee who has
just received a raise.
Which DML command should the HR admin use to update the salary of the employee with employee_id 101?
Answer
CLEAR
Please choose a correct answer.
6
DELETE FROM employees WHERE employee_id - 101;
10
INSERT INTO employees (employee_id, first_name, last_name, salary) VALUES (181, 'John', 'Doe, 75000);
https//app.doselect.com/test/Oxbg8/problem/dstwxt
deselect Foundation Test 4- SQL (.. O02M375 25/25 Questions attempted Help
first_name NVARCHAR(255),
All
last_name NVARCHAR(255),
job_title NVARCHAR(255),
hire_date DATETIME,
salary MONEY
Al Assume that you are working as a database administrator for a company that has recentiy implemented a new payroll system. As part of this system, you need to create a new table
named 'employees' that will store information about all the company's employees. The employees table should have the given columns:
emp_id (integer, auto-incremented, primary key)
first_name (string)
last_name (string)
job_title (string)
hire_date (date)
salary (decimal)
Which SQL statement can be used to create the "employees table with the required columns? Analyze the given choices and select the correct option.
Answer
CLEAR
Please choose a correct answer.
12
13
CREATE
12. MySQL: Most Active Users on Social MySQL
Media
02m 22s 1 use SocialData;
left EDatabaseACCEPTED
*Enter your query below.
Environment Specifications & Instructions *Please appenda semicolon "; " at the end of the query
5
Type of Database 6 SELECT U.USER_ID AS userId, U.USERNAME AS userName, P.NO _OF_POST as topPost
7 FROM USERS U JoIN POSTS P ON U.USER ID -P.USER ID
MySQL ORDER BY P.NO_OF_POST DESC LIMIT-4;
Help Database Name to be used
SocialData
All
Problem Statement
Write a SQL query to find the top 4 most active users on
a social media platform, where activity is defined as the
maximum number of posts created.
The query should include a column called the user_id as
userld, the username as userName and no_of_oost as
topPost that indicates the user who created the maximum
number of posts.
Ln 2. Col 3 MySQL
Return the output result based on topPost in descending
order. Test Results TEST QUERY RUN &sUBMIT > NEXT QUESTION
Table Description:
Testcase #1 Passed
" tblemployee
Description
Testcase passed! The solution's output matches the expected output.
0.00s Os 12MB
| Field I Type | Null | Key | Eval Time CPU Memory
Default | Extra |
13. MySQL: Employee with Highest Salary MySQL
12 Table Description:
Testcase #1 Passed
" departments
Description
Testcase passed! The solution's output matches the expected output.
14 Testcase #2
0.00s Os OkB
| Field I Type | Null | Eval Time CPU Memory
Key | Default | Extra |
15. MySQL: Course Fees MySQL
15
| NULL Eval Time CPU Memory
| customer id | int (11) | YES |
NUL
deselect Foundation Test 4- SQL (.. O01M 385
25/25 Questions attempted Help
When publishing a test execution report, which key attribute(s) must the report contain? Select all that apply.
74
18 Test cases
Defects
https//app.doselect.com/test/Oxbg8/problem/85113
deselect Foundation Test 4-SQL (.. O01M 40S 25/25 Questions attempted Help
A EMCQATTEMPTED
13
Which of the following metrics would be most useful to monitor during test execution?
14
Answer
16 CLEAR
Please choose a correct answer.
https//app.doselect.com/test/Oxbg8/problem/944
doselect Foundation Test 4- SQL (.. O 01 M435 25/25 Questions attempted Help
Which of the following comparisons of component testing and system testing are TRUE?
14
15
Answer
16 CLEAR
Please choose a correct answer.
17
18 Component testing verifies the functioning of software modules, program objects, and classes that are separately testable, whereas system testing verifies interfaces between
components and interactions with different parts of the system.
20 O Test cases for component testing are usually derived from component specifications, design specifications, or data models, whereas test cases for system testing are usually
derived from requirement specifications, functional specifications or use cases.
O Component testing focuses on functional characteristics, whereas system testing focuses on functional and non-functional characteristics.
25
24
deselect Foundation Test 4- SQL (. O 01 M345
25/25 Questions attempted Help
Software is used to calculate Employee bonuses. Bonus cannot be negative, but it can be zero. The bonus is based on the duration of the employment. An employee can be employed
14
for less than or equal to 2 years, more than 2 years but less than 5 years, 5to 10 years, or longer than 10 years. Depending on this period of employment, an employee will get a baonus of
09%, 109%, 259% or 35%.
How many equivalence partitions are needed to test the calculation of the bonus?
16
Answer
4 CLEAR
Please choose a correct answer.
20
O5
O2
https//app.doselect.com/test/Oxbg8/problem/3b41
deselect Foundation Test 4- sQL (... O01 M355 25/25 Questions attempted Help
EMCQATTEMPTED
13
Which of the following are the main phases of a formal review?
74
15
Answer 4 CLEAR
16
Please choose a correct answer.
12
19
Planning, preparation, review meeting, rework, closure, follow up.
20
O Planning, kick off individual preparation, review meeting, rework, follow up.
O Preparation, review meeting, rework, closure, folow up, rocot cause analysis.
https//app.doselectcom/test/Ox6g8/problem/v489p
deselect Foundation Test 4 - SQL (... O01MO55 25/25 Questions attempted Help
13
A EMCQATTEMPTED
15
Answer
CLEAR
Please choose a correct answer.
Produces non-deterministic outcomes, sometimes passing and sometimes failing, under the same conditions.
20
O Is only applicable for performance and load testing scenarios.
23
Ois specifically designed to test the security features of the application.
https//app.doselect.com/test/Oxbg8/problem/deirn
deselect Foundation Test 4 - SQL (.. O01M 085 25/25 Questions attempted Help
13
A
EMCQATTEMPTED
15
Answer
16 & CLEAR
Please choose a correct answer.
12
The answer depends on the risk for your industry, contract and special requirements
21
13
A EMCQATEMPTED
Which of the following function(s) isare) typically supported by a software quality information system?
14
(Select all that apply)
15
16
Answer
CLEAR
Please choose all correct answers.
Test Management
D System design
20
Defect Tracking
Configuration Management
23
https://app.doselect.com/test/Oxbg8/problem/9gx05
døselect Foundation Test 4- SQL(.. O00M595
25/25 Questions attempted Help
The most important thing about early test design is that it?
74
Answer CLEAR
16
12
23
https//app.doselect.com/test/Oxbg8/problem/n406q