Skip to content

Commit 02fec56

Browse files
Fixing minor Typos
1 parent ffb3e31 commit 02fec56

File tree

21 files changed

+21
-21
lines changed

21 files changed

+21
-21
lines changed

Capital Gain-Loss/READme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Each row of this table indicates that the stock which has stock_name had an oper
2626
It is guaranteed that each 'Sell' operation for a stock has a corresponding 'Buy' operation in a previous day. It is also guaranteed that each 'Buy' operation for a stock has a corresponding 'Sell' operation in an upcoming day.
2727
<br/>
2828
</br>
29-
<b>Write an SQL query to report the Capital gain/loss for each stock.</b>
29+
<b>Write a SQL query to report the Capital gain/loss for each stock.</b>
3030
</br>
3131
<br/>
3232
The Capital gain/loss of a stock is the total gain or loss after buying and selling the stock one or many times.<br/>

Confirmation Rate/READme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Each row of this table indicates that the user with ID user_id requested a confi
3737
The confirmation rate of a user is the number of 'confirmed' messages divided by the total number of requested confirmation messages. The confirmation rate of a user that did not request any confirmation messages is 0. Round the confirmation rate to two decimal places.
3838
</br>
3939
</br>
40-
Write an SQL query to find the confirmation rate of each user.
40+
Write a SQL query to find the confirmation rate of each user.
4141
</br>
4242
Return the result table in any order.
4343
</br>

Consecutive Numbers/READme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
id is an autoincrement column. </b>
2020
</br>
2121

22-
Write an SQL query to find all numbers that appear at least three times consecutively.
22+
Write a SQL query to find all numbers that appear at least three times consecutively.
2323

2424
Return the result table in any order.
2525

Cricket Runs/READme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
In an ODI cricket match, you have a dataset representing deliveries during the match. The dataset contains three columns: ball_no (delivery number in the match), runs (runs scored on that delivery), and delivery_type (type of delivery: legal, nb for no ball, or wd for wide).
2424

25-
Write an SQL query to find the runs scored in every over.
25+
Write a SQL query to find the runs scored in every over.
2626

2727
There are a few special conditions to consider:
2828

Customer Acquisition/READme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<b>order_date, customer is the primary key for this table. </br>
2222
</b>
2323

24-
Write an SQL query to find the count of new customers added in each Month.
24+
Write a SQL query to find the count of new customers added in each Month.
2525

2626
Return the result table in any order.
2727

Customers Who Bought All Products/READme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ product_key is a foreign key to Product table.
2828

2929
<b> product_key is the primary key column for this table. </b><br/>
3030
</br>
31-
Write an SQL query to report the customer ids from the Customer table that bought all the products in the Product table.
31+
Write a SQL query to report the customer ids from the Customer table that bought all the products in the Product table.
3232
</br>
3333
Return the result table in any order.
3434
</br>

Department Top 3 Salary/READme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
A company's executives are interested in seeing who earns the most money in each of the company's departments. A high earner in a department is an employee who has a salary in the top three unique salaries for that department.
3737
</br>
3838
</br>
39-
<b>Write an SQL query to find the employees who are high earners in each of the departments. </b>
39+
<b>Write a SQL query to find the employees who are high earners in each of the departments. </b>
4040
</br>
4141
</br>
4242
Return the result table in any order.

Employees Check-in Details/READme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ isdefault is of Boolean type.<br/>
3838
Each row of this table gives the information about phone numbers of the employees and whether they are default phone numbers or not </br>
3939
</br>
4040
</br>
41-
Write an SQL query to find the default the phone number, total entry count, total login and logout count, and latest login and logout time for each employees like given below.
41+
Write a SQL query to find the default the phone number, total entry count, total login and logout count, and latest login and logout time for each employees like given below.
4242
</br>
4343
Return the result table in any order.
4444
</br>

Exchange Seats/READme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323

2424

25-
Write an SQL query to swap the seat id of every two consecutive students. If the number of students is odd, the id of the last student is not swapped.</br>
25+
Write a SQL query to swap the seat id of every two consecutive students. If the number of students is odd, the id of the last student is not swapped.</br>
2626
Return the result table ordered by id in ascending order.
2727

2828
</br>

Friend Requests : Who Has the Most Friends/READme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
This table contains the ID of the user who sent the request, the ID of the user who received the request, and the date when the request was accepted.
2323

2424
</br>
25-
Write an SQL query to find the people who have the most friends and the most friends number.
25+
Write a SQL query to find the people who have the most friends and the most friends number.
2626

2727
The test cases are generated so that only one person has the most friends.
2828
The query result format is in the following example.

Game Play Analysis/READme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
This table shows the activity of players of some games. </br>
2222
Each row is a record of a player who logged in and played a number of games (possibly 0) before logging out on someday using some device. </br>
2323
</br>
24-
Write an SQL query to report the fraction of players that logged in again on the day after the day they first logged in, rounded to 2 decimal places. </br>
24+
Write a SQL query to report the fraction of players that logged in again on the day after the day they first logged in, rounded to 2 decimal places. </br>
2525
In other words, you need to count the number of players that logged in for at least two consecutive days starting from their first login date, then divide that number by the total number of players.</br>
2626
</br>
2727
The query result format is in the following example:

Investments in 2016/READme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
* lon is the longitude of the policy holder's city. It's guaranteed that lon is not NULL.
2929
</br>
3030

31-
<b> Write an SQL query to report the sum of all total investment values in 2016 tiv_2016, for all policyholders who:</b>
31+
<b> Write a SQL query to report the sum of all total investment values in 2016 tiv_2016, for all policyholders who:</b>
3232

3333
* have the same tiv_2015 value as one or more other policyholders, and
3434
* are not located in the same city like any other policyholder (i.e., the (lat, lon) attribute pairs must be unique).

Last Person to Fit in the Bus/READme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ weight is the weight of the person in kilograms.
2828

2929
There is a queue of people waiting to board a bus. However, the bus has a weight limit of 1000 kilograms, so there may be some people who cannot board.
3030
</br>
31-
Write an SQL query to find the person_name of the last person that can fit on the bus without exceeding the weight limit. The test cases are generated such that the first person does not exceed the weight limit.
31+
Write a SQL query to find the person_name of the last person that can fit on the bus without exceeding the weight limit. The test cases are generated such that the first person does not exceed the weight limit.
3232
</br>
3333
The query result format is in the following example.
3434

Manager with at Least 5 direct Reportees/READme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ If managerId is null, then the employee does not have a manager.
2525
No employee will be the manager of themself.
2626

2727

28-
Write an SQL query to report the managers with at least five direct reports.
28+
Write a SQL query to report the managers with at least five direct reports.
2929

3030
Return the result table in any order.
3131

Match Results/READme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Each row contains information about the matches played between the two teams and
2525

2626
<br/>
2727

28-
Write an SQL query to find the number of matches won and lost for all the teams.
28+
Write a SQL query to find the number of matches won and lost for all the teams.
2929
</br>
3030
Return the result table in decreasing order of the number of matches won by them.
3131
</br>

Maximum Sum Subarray - SQL/READme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ You have a table `ArrayTable`, with 2 columns, as follows:
3131

3232
<br/>
3333

34-
Write an SQL query to find the maximum sum among all its subarrays.
34+
Write a SQL query to find the maximum sum among all its subarrays.
3535
</br>
3636
</br>
3737
<b>The query result format is in the following example: </b>

Monthly Transactions/READme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ The table has information about incoming transactions. </br>
2525
The state column is an enum of type ["approved", "declined"].
2626
</br>
2727

28-
Write an SQL query to find for each month and country, the number of transactions and their total amount, the number of approved transactions and their total amount.
28+
Write a SQL query to find for each month and country, the number of transactions and their total amount, the number of approved transactions and their total amount.
2929
</br>
3030
Return the result table in any order.
3131

Product Price at a Given Date/READme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
Each row of this table indicates that the price of some product was changed to a new price at some date.
2121
<br/>
2222

23-
Write an SQL query to find the prices of all products on 2019-08-16. Assume the price of all products before any change is 10.
23+
Write a SQL query to find the prices of all products on 2019-08-16. Assume the price of all products before any change is 10.
2424
Return the result table in any order.
2525
</br>
2626
The query result format is in the following example:

Quiet Students in all the Exams/READme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
| student_id | int |
2525
| score | int |
2626

27-
**Write an SQL query to find and display students who did not achieve the highest or lowest scores in any of their exams. Do not include those students who did not appear in any exam.**
27+
Write a SQL query to find and display students who did not achieve the highest or lowest scores in any of their exams. Do not include those students who did not appear in any exam.
2828

2929
### Schema
3030

Restaurant Growth/READme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ amount is the total paid by a customer. </br>
2424
</br>
2525
You are the restaurant owner and you want to analyze a possible expansion (there will be at least one customer every day).
2626
</br>
27-
Write an SQL query to compute the moving average of how much the customer paid in a seven days window (i.e., current day + 6 days before). average_amount should be rounded to two decimal places.
27+
Write a SQL query to compute the moving average of how much the customer paid in a seven days window (i.e., current day + 6 days before). average_amount should be rounded to two decimal places.
2828

2929
Return result table ordered by visited_on in ascending order.</br>
3030
</br>

User Purchase Platform/READme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
The table logs the spendings history of users that make purchases from an online shopping platform which has a desktop and a mobile application .</br>
2323
<br/>
24-
<b>Write an SQL query to find the total number of users and the total amount spent using mobile only, desktop only and both mobile and desktop together for each date as given below.</b>
24+
<b>Write a SQL query to find the total number of users and the total amount spent using mobile only, desktop only and both mobile and desktop together for each date as given below.</b>
2525
</br>
2626
<br/>
2727
Return the result table in any order.

0 commit comments

Comments
 (0)