Question

Let me see a list of all engagements that occurred during October 2017

▼ EngagementNumber StartDate EndDate StartTime StopTime ContractPrice CustomerID AgentD EntertainerID_ elete elete elete lete

What is the SQL statement needed given these fields?

0 0
Add a comment Improve this question Transcribed image text
Answer #1

SELECT * FROM ENGAGEMENT_TABLE WHERE STARTDATE>='2017-10-01' AND ENDDATE <= ' 2017-10-31'

as in the table we have start and end data we can fetch by putting these 2 in where condition to get all the engagements occurred during the October. Picture is showing the results for month 9. if it is 9 month just change the 10 to 9 and table name accordingly

Add a comment
Know the answer?
Add Answer to:
Let me see a list of all engagements that occurred during October 2017 What is the...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Language SQL Need help with SQL Question Create a view vHW1_8_xxxx listing the guest name, number...

    Language SQL Need help with SQL Question Create a view vHW1_8_xxxx listing the guest name, number of days and the amount each guest needs to pay to the hotels for their stays. Your result should not include any unknown value in the dateto. Your result should include guest name, hotel name, number of days, and amount to pay. Here is my code: select guestname, hotelname, datediff(dateto,datefrom), sum(datediff(dateto,datefrom)*price) from Guest g, Hotel h, Room r, Booking b where h.hotelno=b.hotelno and r.roomno=b.roomno...

  • I need the answer to #2 listed above. This is the code I have come up...

    I need the answer to #2 listed above. This is the code I have come up with, and it is wrong. I am new to this and need help. group by sust.cida Q2 (7 Points) Show customer id (CID) for customers who have spent 30,000 or more with the company in 2019. Money is considered "spent" when the entire work order is completed as recorded in workorder.completionDate. (Correct query will find customer 2). Use ONE SQL statement. select workarder.id from...

  • All the required files are attached to this question here in the form of images. Please refer the attached images and answer the questions. List the names and codes of vendors and the number of produ...

    All the required files are attached to this question here in the form of images. Please refer the attached images and answer the questions. List the names and codes of vendors and the number of products each vendor has supplied, i.e. vendor AA has supplied xxx products, and vendor BB has supplied yyy products etc. Show the total value of invoices for each customer with the customer the Last Name, and a column heading showing ‘Total_invoice_value’ in the results. List...

  • CUSTOMER EMP INVOICE LINE P CODE V CODE CUS CODE EMP CODE NV NUMBER NV NUMBER,...

    CUSTOMER EMP INVOICE LINE P CODE V CODE CUS CODE EMP CODE NV NUMBER NV NUMBER, LINE NUMBER Create SQL queries for displaying the following results 5. List the customers who have ordered product bearing product code "23109-HB. Display first names, last names of customers, invoice numbers and product codes 6. Display Vendor details (V_CODE, V NAME) and product details (P CODE, P DESCRIPT) and product quantity on hand in excess of product min quantity (give alias of Quantity above...

  • Are all disciplines in the University equally boring or there are some more boring than others?  To...

    Are all disciplines in the University equally boring or there are some more boring than others?  To answer that question, a study performed at Columbia University counted the number of times per 5-minute interval when professors from three different departments said “uh” or “ah” during lectures to fill gaps between words.  These counts were used as a proxy (approximation) for the measure of class boredom.  The data from observing one hundred of 5-minute intervals from each of three departments’ professors were recorded in...

  • Suppose there are 100 identical firms in the market and the luggage industry is perfectly competitive....

    Suppose there are 100 identical firms in the market and the luggage industry is perfectly competitive. What does the market supply curve look like? 20 19 18 17 16 15 14 13 12 11 A 10 9 8 7 6 5 4 20 19 18 17 16 15 14 13 12 11 A 10 8 7 6 2 1 0 0 0 1 2 3 4 5 6 7 8 9 10 11 12 0 1 2 3 4 5...

  • What is the major product for each reaction? Could you please draw the mechanism? JAN FEB...

    What is the major product for each reaction? Could you please draw the mechanism? JAN FEB MAR APR MAY 01 02 03 04 05 06 07 08 09 10 11 12 13 JUN 14 15 16 JUL AUG SEP O 17 18 19 20 21 22 23 24 25

  • The following transactions relate to Hawkins, Inc., an office store wholesaler, during June of this year....

    The following transactions relate to Hawkins, Inc., an office store wholesaler, during June of this year. Terms of sale are 2/10, n/30. The company is located in Los Angeles, California. June  1 Sold merchandise on account to Hendrix Office Store, invoice no. 1001, $451.20. The cost of the merchandise was $397.06. 3 Bought merchandise on account from Krueger, Inc., invoice no. 845A, $485.15; terms 1/10, n/30; dated June 1; FOB San Diego, freight prepaid and added to the invoice, $15 (total...

  • Problem 6. The set (Z19 − {0}, ·19) is a group with the indicated operation; see...

    Problem 6. The set (Z19 − {0}, ·19) is a group with the indicated operation; see the attached table. a.) Show that H = {1, 7, 8, 11, 12, 18} is a subgroup. b.) List all the right cosets of H. c.) Show that if Hy = Hx then xy−1 ∈ H. [Make sure to give a reason for each step.] d.) Show that φ : H → Hx defined by φ(h) = hx is one-to-one and onto. [Use the...

  • 2. After building a scientific way for demand forecasting, Mary hoped Jason can propose the optimal...

    2. After building a scientific way for demand forecasting, Mary hoped Jason can propose the optimal inventory/ordering policies for these 4 products for the first week of 2018. The sale price/unit for each product is listed below: Product A =$230 Product B=$50 Product C=$5 Product D=$3 Jason decided to use ABC rule to classify these 4 products. ‘A’ category product(s) will have the target service level 95%. ‘B’ product(s) will have the target service level 90% and ‘C’ products(s) will...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT