1.Write a SELECT statement that returns InvoiceId and Total from

1.Write a SELECT statement that returns InvoiceId and Total from the Invoice table.  Use the CONCAT function to insert a ‘$’ in the front of  the total value

— 2.Write a SELECT statement that returns CustomerId and average Total from the Invoice table grouped by customerId. Use the CONCAT function to insert a ‘$’ in the front of  the average total and the FORMAT function to to display it with commas and 2 decimal places. 

— 3.  Use the CHAR and CONCAT functions (for the first and last names), to format the the address for each customer in the customer table – the formatted output should look like this

— Gary Hernandez

— 3829 Broadway Ave

— New York, NY 10012 

— note ***** the output will not look like this in the workbench the CHAR functions will place columns in each row of the results *****

— 4. Display the first initial, last name, and email address of each customer in the customer table.

— 5. Return these columns from the customer table, customerid, email and Phone. Use the substr and lpad functions to render the phone number like this: ************9999

— 6. use the concat_ws function to render to display the customer lastname and firstname in this manner: Lastname, Firstname. Also display the customer’s email address but only list the customers whose email addresses have more than 20 characters 

— 7.Display the customerId and the phone for all customers who live in the USA, format the phone numbers so that they look like this 123-456-7899

— 8. For every track in the track table, return the track name and the album title. The album title should be in all uppercase letters. 

— 9. For each track, display the unitprice, unitprice rounded to 1 decimal place, unitprice truncated to 1 decimal place, smallest integer >= unitprice and largest integer <= unitprice. 

— 10. For each track, display the trackId and a random number between 1 and 10 using the trackId as a seed. 

Share This Post

Email
WhatsApp
Facebook
Twitter
LinkedIn
Pinterest
Reddit

Order a Similar Paper and get 15% Discount on your First Order

Related Questions

Instructions: Please read the 3 cases and the question sets

Instructions: Please read the 3 cases and the question sets below them. Then choose 2 of the cases/question sets to answer. (Optional: you may answer all 3 cases, but it is not required; if you do, the best 2 will be counted.) Review Working in BC (guide to the Employment Standards Act), and Employment

Directions 1. Base your presentation on Unit 4: Country Analysis:

   Directions 1. Base your presentation on Unit 4: Country Analysis: Nigeria. 2. Your presentation should discuss the following components o Overview of the country under consideration must be given (geographic location, date of the independence, the capital city, current President or Premier Minister of the country, the total population,

In Chi Luu’s article, punctuation is evolving as social media

In Chi Luu’s article, punctuation is evolving as social media evolves. Two of the punctuations included in the discussion are dashes and the oxford comma. Research the differences between a hyphen, em dash, and en dash. After you have discovered the differences, create a paragraph using mainly using dashes, colon,

A 75 year old female complains of insomnia : 1.

  A 75 year old female complains of insomnia :  1. What may be  reasons for her insomnia 2. Describe some common sleep  disorders in the elderly 3.Describe some common myths /Attitudes toward Sex and the Older Elderly 4. Describe a diet outline for people over 70  age and explain

Enhanced Collaboration in the Workplace

Good communication between nurses, patients, and the interprofessional team is essential to patient safety and quality of care. Proponents of interprofessional collaborations encourage enhanced collaboration, where each professional’s contribution is valued equally. Discuss the benefits and challenges of this concept in your workplace. Be sure to follow the requirements for

When discussing and evaluating professional ethics, it is essential to

 When discussing and evaluating professional ethics, it is essential to understand the purpose, terminology, and repercussions of professional misconduct. The American Institute of Certified Public Accountants (AICPA) code of professional conduct is the gold standard for defining professional conduct in accounting; it is therefore important for business professionals to be

APA Format Header and citation 400 words Click on the

 APA Format Header and citation 400 words Click on the link “The main reasons why IOT companies failed.”  Compare the mistakes/challenges from chapter 8, pages 175-177, with those mentioned in the article. Match each mistake (5) in the article with at least one in chapter 8.https://www.raconteur.net/technology/the-main-reasons-why-iot-projects-fail (Links to an external

https://www.mediafire.com/file/ul9jq96ctykprup/Care_Plan_1_.docx/file https://www.mediafire.com/file/5a0w1jrmztjy82k/Care_Plan_2_.docx/file https://www.mediafire.com/file/ul9jq96ctykprup/Care_Plan_1_. Nursing Assignment Help

Expert Solution Preview Introduction: As a medical professor, my role encompasses designing college assignments and providing answers for medical college students. Additionally, I am responsible for conducting lectures, evaluating student performance, and delivering feedback through examinations and assignments. With a focus on enhancing students’ knowledge and skills, I strive to

Topic 2 DQ 1 The clinical problem of the organizations

 Topic 2 DQ 1 The clinical problem of the organizations I work with in my internship is the practice of infection control, which is a safety concern for both healthcare professionals and the communities in which they serve. The shortage of PPE supply in the healthcare sector and the open

The CSU Widget Factory OSHA 300 log

PART 3 Your boss wants more information on one of the accidents listed on the CSU Widget Factory OSHA 300 log. He has sent you the OSHA Form 301, Injury and Illness Incident Report, for the accident involving William Smith (available here). Mr. Smith’s supervisor filled out the form, but

Documents and Website Content as Data Sources for a Qualitative Study

Premium Paper Help is a professional writing service that provides original papers. Our products include academic papers of varying complexity and other personalized services, along with research materials for assistance purposes only. All the materials from our website should be used with proper references.

Patient education is an effective tool in supporting compliance and

Patient education is an effective tool in supporting compliance and treatment for a diagnosis. It is important to consider effective ways to educate patients and their families about a diagnosis—such as coaching, brochures, or videos—and to recognize that the efficacy of any materials may differ based on the needs and

see instructions, need pages and 3 references Nursing Assignment Help

Antibiotic Therapy Discuss the use of antibiotic therapy when treating ear and throat pain in both children and adults. What is considered standard of care?  Include professional guidelines and recommendations.   Expert Solution Preview Introduction: Antibiotic therapy is commonly used in the treatment of ear and throat pain for both

ManagementArticle: https://erm.ncsu.edu/az/erm/i/chan/library/Integration_of_ERM_and_Strategy_Case_Study.pdf Post: After reading this article, and any other

ManagementArticle: https://erm.ncsu.edu/az/erm/i/chan/library/Integration_of_ERM_and_Strategy_Case_Study.pdf Post: After reading this article, and any other relevant research you locate, please discuss the following in your main post:. Which case study in the paper was most interesting to you and why? Do you think that ERM is necessary in the contemporary organization and why? Word Count: 300additional Scholarly

Please answer this in a word document Briefly discuss/answer any

Please answer this in a word document Briefly discuss/answer any four of the following questions.  What is the hotel development process and briefly discuss feasibility studies and its components? Briefly discuss the Planning and Design process. What are planning and design criteria for Hotel function space? Briefly discuss considerations for

Submit five references in APA format with a one paragraph

Submit five references in APA format with a one paragraph summary below each reference that you plan to use in your final research discussion. The references should be from a peer-reviewed journal or other academic sources like books, textbooks, or academic webpages. Each summary should attempt to answer the following questions: