Show all columns and all records in the membertype table

Assignment Help Database Management System
Reference no: EM131852756

Copy this document to your local drive and add your name to the footer.

Create SQL commands to answer the following questions from the tables in the MembersSQL database as shown below. Paste a screenshot from FoxyFreeSQL below each question showing the SQL code and the first few rows of your results.

Submit the completed document in Moodle. Save and/or print your assignment out to refer to in the first SQL quiz.

1218_Keys.jpg

1. Show all columns and all records in the MemberType table.

2. Show all the columns from the Payments table where the payment date is 5/23/2013.Hint: Use # for delimiters for dates.

3. Display the first name, last name, city, state, and phone number for every member with the initials A.C. that lives in California.

4. Display the first name, last name, and fax number for all fax numbers that end with 5278.

5. Display the first name, last name, city, and phone number for all members from California with a first name that is either Don, Donald, Ron, or Ronald.

6. Show first name, last name, address, city, state, and zip for all members that live in either California or in Oregon.

7. Show first name, last name, address, city, and state for all members that live in Albany, CA.

8. Show all the columns from the payments table for payments made in March 2014 where the payment was either $35 or $50.

9. Provide a list of cities in the Members table that have a zip that begins with ‘99'. Show the city and state and show each city one time only. Hint: Refer to the SQL 1 Video or slide deck for information on DISTINCT. ZIP codes are character data.

10. List first name, last name, and fax number for all members whose fax number includes prefix 448. (as in: 541-448-3432). Hint: Look for patterns within a column; don't include phone numbers that have 448 somewhere else in the column.

Reference no: EM131852756

Questions Cloud

Standard deviation of reaction times : The psychologist estimates that the standard deviation of reaction times is 15 msec.What size sample should he draw?
What are your feelings on the project managers comments : What are your feelings on the project manager's comments that he must wait until the prototyping phase to assign probabilities and outcomes?
Confidence the difference between the two population means : The psychologist wants this difference to be within 5 msec of the difference between the sample means.
The minimum-variance portfolio of the two risky funds : What are the investment proportions in the minimum-variance portfolio of two risky funds. What is expected value and standard deviation of its rate of return?
Show all columns and all records in the membertype table : Display the first name, last name, city, state, and phone number for every member with the initials A.C. that lives in California.
Example of seven experimental drugs : In the introduction to the chapter, we used the example of seven experimental drugs being tested for use with Alzheimer's patients.
Discuss the concept of marketing : UK-based organisation of your choice and as part of the interview process you are required to discuss the concept of marketing as well as its role within
Upper tail of the f distribution is of interest : 1. In the analysis of variance F test, why is it that only the area in the upper tail of the F distribution is of interest?
Compute earnings per share if return on assets increased : Compute the earnings per share if return on assets increased to 14.0 percent.

Reviews

Write a Review

Database Management System Questions & Answers

  Knowledge and data warehousing

Design a dimensional model for analysing Purchases for Adventure Works Cycles and implement it as cubes using SQL Server Analysis Services. The AdventureWorks OLTP sample database is the data source for you BI analysis.

  Design a database schema

Design a Database schema

  Entity-relationship diagram

Create an entity-relationship diagram and design accompanying table layout using sound relational modeling practices and concepts.

  Implement a database of courses and students for a school

Implement a database of courses and students for a school.

  Prepare the e-r diagram for the movie database

Energy in the home, personal energy use and home energy efficiency and Efficient use of ‘waste' heat and renewable heat sources

  Design relation schemas for the entire database

Design relation schemas for the entire database.

  Prepare the relational schema for database

Prepare the relational schema for database

  Data modeling and normalization

Data Modeling and Normalization

  Use cases perform a requirements analysis for the case study

Use Cases Perform a requirements analysis for the Case Study

  Knowledge and data warehousing

Knowledge and Data Warehousing

  Stack and queue data structure

Identify and explain the differences between a stack and a queue data structure

  Practice on topic of normalization

Practice on topic of Normalization

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd