Can someone please help,
For this lab you will be using SQL SELECT statements (and depending on your structure, JOINs) to query your database tables. You will be turning in the results of the following queries:
1. List all Guests in the databases
2. List all Guests who stayed at least one time between January 3rd, 2019 and March 4th, 2019.
3. List all Inventory items and their current quantities and units when the quantity is less than 3
4. List the volunteers and what shift they worked most recently
5. List all donors in alphabetical order
6. List all donors who live in Atlanta and have donated at least $500 dollars.
7. List all donors who live in either Watkinsville or Athens who have made at least two donations.
If you don't have enough data in your created tables that will allow you to create these queries - add appropriate data to your tables before doing the queries.
Turn in the following:
*A text file containing the SQL commands you used for each question
(labelled/comment for each question they satisfy).
*Screenshots for each question's results
1: select * from guest; // This query is used to select all data from guests database. Select statement is used to select data from database and * is used to select all data from guest database.
Result:

2: select * from guest where name Between date="2019-1-3" AND date ="2019-3-4"; // This query is used to select those name whose stay between January 3rd, 2019 and March 4th, 2019.
Result:

3: select Inven_items,quantity,unit where quantity <3; // This query is used to select those Inventory items, quantity and unit whose quantity is less than 3.
Result:

5: select * from donor where order by name asc; // In this query, the data order into ascending order.
Result:

6: select * from donor where Live="Atlanta" AND donate=500; // This query is used to select those whose live in atlanta and also donated at least 500 dollars.
Result:

Can someone please help, For this lab you will be using SQL SELECT statements (and depending...
Database For this lab you will be using SQL SELECT statements to query your database tables. You will be turning in the results of the following queries: 1. List all Patients and what Bed they are assigned to 2. List all patients who had Treatments and what Treatment they received 3. List all patients who had tests and what Test they had 4. List the employees (doctors, nurses, etc.) who assisted each patient. 5. List all patients in alphabetical order...
SQL: Can someone please help me ASAP?? I need to create QUERIES for 2 INNER JOINS with 3 or more tables. I have an HR Database with the tables Region, Location, Country, Job, Department, Employee, Dependent. Any help would be greatly appreciated...
A nonprofit organization depends on a number of different types of persons for its successful operation. The organization is interested in the following attributes for all of these persons: SSN, Name, Address, City/State/Zip, and Telephone. Three types of persons are of greatest interest: employees, volunteers, and donors. Employees have only a Date Hired attribute, and volunteers have only a Skill attribute. Donors have only a relationship (named Donates) with an Item entity type. A donor must have donated one or...
I am using Oracle SQL and am new to it. I have seven tables, one
of them is a subtable of two of the others. I need to do the
following queries:
1. List all Patients
and what Bed they are assigned to
2. List all patients
who had Treatments and what Treatment they received
3. List all patients
who had tests and what Test they had
4. List the employees
(doctors, nurses, etc.) who assisted each patient.
5. List...
Please help me to solve Please, No handwriting COURSE; introduction to database Q- write a query SQL by Using the info below A. Normalize the Tables (in 3NF at least) B. Create the Normalized Tables and Populate them with at least 5 Rows C. Write the Wholesale Management System requested Queries & Execute them VERY IMPORTANT Screenshots from MySQL (or any other software you use) of all the tables after queries result. - Database system for a Wholesale Management System...
SQL
and Databases, please help
During an interview, you are asked to explain the result of the following query: SELECT S.sname, s.rating, MIN(S.age) FROM Sailors 5 WHERE S.age > 18 GROUP BY S.rating HAVING COUNT(*) > 1; What is the right answer? This query is not functional since sname is not in the GROUP BY list. Find the age of the sailors who have at least two rating and older than 18 years old. Find the ratings and ages of...
NEED THE SQL QUERIES ASAP PLEASE(LIKE 1 HOUR) THE ONES WITH ID ARE PRIMARY KEYS OR FOREIGN etc Customer [ CustID, LastName, FirstName, Address, City, State, Zip, Phone, Fax, Email] Product [ ProdID, Description, Color, Size, Pack] Sales [ TransID, CustID, ProdID, Price, Quantity, Amount] Write SQL statement to produce a list of unique products and their prices from the Sales table. Please ensure that the products do not repeat. Write an SQL statement to list ProdID and Description for...
Please help with this SQL problem. Using Microsoft SQL Server
Management Studio, NOT MYSQL!! Thank you.
There are 5 tables total (don't have to use all of them) and
their columns:
Instructions:
Write the following SQL statements in Microsoft Access by using the Books database from Week 2 Assignment 2. Once complete, copy and paste the SQL statements in a Microsoft Word document: Write SQL statements: To update the publisher name from READ WITH US to READ FOR US To verify the updated name field for the publisher with ID 6 To make the following updates to the Publisher table (be careful with WHERE): Make Contact="John Travolta" for publisher with ID number...
1.You and 9 of your wealthy friends attend a political fundraiser. You each can donate up to $1,000,000 to the candidate. Let M be the sum of all 10 donations; it is convenient to write M=Mi+M-i, where Mi is the donation by person i, and M-i is the sum of the donations by the other people. Suppose Adelsoros wants to have as much money as possible be donated. He will still offer to donate $1,000,000 as long as the sum...