0% found this document useful (0 votes)
200 views5 pages

SQL Questions

The document contains 17 SQL queries that retrieve or update data from various database tables. The queries select, filter, sort, group, calculate aggregates and join data from tables like clients, courses, business analysts.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
200 views5 pages

SQL Questions

The document contains 17 SQL queries that retrieve or update data from various database tables. The queries select, filter, sort, group, calculate aggregates and join data from tables like clients, courses, business analysts.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

1

Find all clients whose amount paid is greater than $1,000.


Display all fields in the query result.

Find all clients whose amount paid or current due is $0.00.


Display the Client Number, Client Name, Amount Paid, and
Current Due fields in the query result.

Display the Client Number, Client Name, Business Analyst


Number, First Name, Phone Number for which the clients are
located in Buda

Add a new row to the course table including the following


values
Course Number: C10
Description: Computer Applications
Total Hours: 10
Increments: 2

Display the subtotal of all hours spent in courses by every


client, sort the result query by the client number

List all client cities in Descending order, every city should


appear only once

Display the Count of clients in every city, Excluding Buda city

Calculate the full hours by adding the hours to the


increment, Show the course number and description and full
hours

Find all Clients whose Client name is Alix or Alex, Display the
Client Name and Business Analyst Number

10

Display the total, Average and Maximum of Amount Paid.

11

Display the Business Analyst Number whose client has the


Maximum Amount Paid

12

Display the Business Analyst Number, Business Analyst First


Name, Business Analyst Last Name. Whose Business Analyst
Number matches any of the following values: 104, 105, 107

13

14

Update the client whose client number is CJ29 amount paid


to $50.00

Display the Business Analyst number, first name, last name,


whose start date is prior to (Before) 1/1/2014

15

Display the Course Number, Client Number, Description, Total


Hours, Hours Spent
To the client whose client number is BA53

16

Display the Business Analyst Number for every pair of


Business Analysts in the same city.

17

Display the business analyst first name and phone number


whose clients amount paid is 0.00

You might also like