• ¿Documento equivocado? Cámbialo gratis
  • Escrito por estudiantes que aprobaron
  • Inmediatamente disponible después del pago
  • Leer en línea o como PDF
Vender
¿Dónde estudias?
Tu idioma
Document preview thumbnail
Vista previa 1 fuera de 4 páginas
Examen

MIT Final Examination Study Material - Expert-Verified Solutions

Document preview thumbnail
Vista previa 1 fuera de 4 páginas

MIT Final Examination Study Material - Expert-Verified Solutions Give names of manufacturers and their cities that are located in cities with names ending with 'City'. - answer - SELECT ManufacturerName, City FROM Manufacturer WHERE City LIKE '%City'; List the information of each sale item where 2 or more items were sold but only for sizes 5, 6, and 7 (Use the keyword IN.) Show all sale item information. - answer - SELECT * FROM SaleItem WHERE Quantity = 2 AND ItemSize IN (5, 6, 7); Give date and the sum of tax and shipping for each sale from December 20th through December 25th of 2015. (use BETWEEN. Name the calculated column SUM) - answer - SELECT SaleDate, (Tax + Shipping) AS SUM FROM Sale WHERE SaleDate BETWEEN '' AND ''; What is the customerID for Sam Gill? - answer - SELECT CustomerID FROM Customer WHERE FirstName = 'Sam' AND LastName = 'Gill'; What are the sales dates and shipping amount of sales with over $55 of shipping charges? - answer - SELECT SaleDate, Shipping FROM Sale WHERE Shipping 55; List the data in the Salaried Employees table about Salaried Employees earning between $40000 and $50000. (use between) - answer - SELECT * FROM SalaryEmployee WHERE Salary BETWEEN 40000 AND 50000; Give full names of customers that have a 'D' as the third character in their last names. Eliminate duplicates. - answer - Select distinct firstname, lastname from Customer where lastname like '__D%' Give names of manufacturers and their cities that are located in cities with names starting with 'C'. - answer - Select ManufacturerName, City from Manufacturer where City like 'C%' Make a list of all Manufacturers including ID, Name, Address1, Address2, City, State and PostalCode. Only include Manafacturers that have data in the Address2 field. - answer - Select ManufacturerID, ManufacturerName, Address1, Address2, City, State, PostalCode From Manufacturer where Address2 is Not Null List productID,product name, and list price for all shoes prices between $5 and $15. In addition, create a new column, NewListPrice, that will show a 7% increase in the list price. Round this new list price to 2 decimal points. - answer - SELECT ProductID, ProductName, ListPrice, ROUND(ListPrice * 1.07, 2) AS NewListPrice FROM Product WHERE ListPrice BETWEEN 5 AND 15; Who are the customers (first and last names) that bought "casual shoes" from the manufacturer named Timberland? (Note category names are lower case, manufacturer names are capitalized in the database.) - answer - Select distinct C.FirstName, C.LastName from Customer C join Sale S on C.CustomerID = S.CustomerID join SaleItem SI on S.SaleID = SI.SaleID join Product P on SI.ProductID = P.ProductID join Manufacturer M on P.ManufacturerID = M.ManufacturerID where Category = 'casual shoes' and ManufacturerName = 'Timberland' Give a list of employees (as Emp_FirstName, Emp_LastName) and their hire dates (as Emp_HireDate) and their Managers (as Mgr_FirstName, Mgr_LastName). Also include the managers hiredates (as Mgr_HireDate) Name the columns as indicated. Only show names and hire dates. - answer - Select nameas emp_firstname,ame as emp_lastname,ate as emp_hiredate,name as mgr_firstname,ame as mgr_lastname,ate as mgr_hiredatefrom employee ejoin employee mon erid = yeeid Which cities are manufacturers from who make boots? - answer - Select distinct Cityfrom Product Pjoin Manufacturer Mon P.ManufacturerID = M.ManufacturerIDand Category = 'boots' What are the names and list prices of products that sold on Valentines Day 2014? - answer - Select distinct ProductName,ListPricefrom Product Pjoin SaleItem SIon P.ProductID = SI.ProductIdjoin Sale S on S.SaleID = SI.SaleIDwhere SaleDate = '' How many customers have information listed in the Customer Table? Name the column NumOfCustomers. - answer - SELECT Count(*) as NumOfCustomers FROM Customer How many produc


Información del documento

Subido en
8 de noviembre de 2026
Número de páginas
4
Escrito en
2026/2027
Tipo
Examen
Contiene
Preguntas y respuestas
$11.99

¿Documento equivocado? Cámbialo gratis Dentro de los 14 días posteriores a la compra y antes de descargarlo, puedes elegir otro documento. Puedes gastar el importe de nuevo.
Escrito por estudiantes que aprobaron
Inmediatamente disponible después del pago
Leer en línea o como PDF

Seller avatar
Los indicadores de reputación están sujetos a la cantidad de artículos vendidos por una tarifa y las reseñas que ha recibido por esos documentos. Hay tres niveles: Bronce, Plata y Oro. Cuanto mayor reputación, más podrás confiar en la calidad del trabajo del vendedor.
aldrisraand
3.0
(1)
Vendido
16
Seguidores
0
Artículos
10197
Última venta
2 horas hace



Por qué los estudiantes eligen Stuvia

Creado por compañeros estudiantes, verificado por reseñas

Calidad en la que puedes confiar: escrito por estudiantes que aprobaron y evaluado por otros que han usado estos resúmenes.

¿No estás satisfecho? Elige otro documento

¡No te preocupes! Puedes elegir directamente otro documento que se ajuste mejor a lo que buscas.

Paga como quieras, empieza a estudiar al instante

Sin suscripción, sin compromisos. Paga como estés acostumbrado con tarjeta de crédito y descarga tu documento PDF inmediatamente.

Student with book image

“Comprado, descargado y aprobado. Así de fácil puede ser.”

Alisha Student

Preguntas frecuentes

Ups! No podemos cargar tu documento ahora. Inténtalo de nuevo o contacta con soporte.