Write an sql statement to list lastname

Assignment Help PL-SQL Programming
Reference no: EM13764839

The Queen Anne Curiosity Shop PROJECT- Excerpted

The Queen Anne Curiosity Shop sells both antiques and current-production household items that complement or are useful with the antiques. For example, the store sells antique dining room tables and new tablecloths. The antiques are purchased from both individuals and wholesalers, and the new items are purchased from distributors. The store's customers include individuals, owners of bed-and-breakfast operations, and local interior designers who work with both individuals and small businesses. The antiques are unique, although some multiple items, such as dining room chairs, may be available as a set (sets are never broken). The new items are not unique, and an item may be reordered if it is out of stock. New items are also available in various sizes and colors (for example, a particular style of tablecloth may be available in several sizes and in a variety of colors).

Read each question stated below and write SQL statements for this database as follows:

1. Find tables in page 237, 238 and 239. Write SQL CREATE TABLE and SQL INSERT statements data for:

1. SQL statements for Table 1 (p. 237) - QACS CUSTOMER

2. SQL statements for Table 2 (p. 238) - QACS EMPLOYEE

3. SQL statement for Table 3 (p. 240) - QACS ITEM

4. SQL statement for Table 4 (p. 241) - QACS SALE

2. Write SQL statements to list all columns for all tables.

3. Write an SQL statement to list ItemID and ItemDescription for all items that cost $1000 or more.

4. Write an SQL statement to list LastName, FirstName, and Phone of the customer who made the purchase with SaleID 1. Use a subquery.

5. Write an SQL statement to list LastName, FirstName, and Phone of the customers who made the purchase with SaleIDs 1, 2, and 3. Use a subquery.

6. Write an SQL statement to list LastName, FirstName, and Phone of customers who have made at least one purchase with SubTotal greater than $500. Use a subquery.

7. Write an SQL statement to list LastName, FirstName, and Phone of customers who have purchased an item that has an ItemPrice of $500 or more. Use a subquery

8. Write SQL CREATE TABLE statement for table VENDOR (p. 239) and insert the data (the first three rows only) into the VENDOR table

9. Write an SQL statement to modify the vendor with CompanyName of Linens and Things to Linens and Other Stuff.

Reference no: EM13764839

Questions Cloud

Determine the total flexible budget materials variance : Determine the total flexible budget materials variance for pigment. Indicate whether the variance is favorable or unfavorable. Determine the materials price variance and indicate whether the variance is favorable (F) or unfavorable (U).
Legal and ethical issues of patient care : Health Law and Ethics - Legal and Ethical Issues of Patient Care, What are the implications and effect of tough ethical beginning-of-life and end-of-life decisions
What did you learn about people who are deaf in relationship : What did you learn about people who are deaf in relationship to what you have been learning about culture? How has this information expanded your idea of culture?
Explain how you will follow-up with employees : Explain how you will follow-up with employees involved in the breach. Recommend changes to ensure data security and privacy compliance under HIPAA (1996)
Write an sql statement to list lastname : Write an SQL statement to list LastName, FirstName, and Phone of the customers who made the purchase with SaleIDs 1, 2, and 3. Use a subquery.
What you would suggest the university do to expand revenue : Assess a raise in tuition and if it will necessarily result in more revenue - Describe the conditions under which revenue will (a) rise, (b) fall, or (c) remain the same.
Describe the business environment in the industry : Describe the business environment in the industry, and the business strategy chosen by your company and the competitor. Consider the degree of competition from existing competitors, potential entrants and substitute products.
Tcp/ip protocol : After reviewing the concepts, pictorially model the TCP/IP protocol against the 7-layer OSI model. In your depiction, include the common protocol sections that fit in the various levels.
Summarize at two points that enhanced your understanding : Review this section of the chapter and then summarize at least two points that enhanced your understanding of child development related to this issue.

Reviews

Write a Review

PL-SQL Programming Questions & Answers

  Write sql create table statement to create pet table

Write an SQL CREATE TABLE statement to create the PET table without referential integrity constraint on OwnerID in PET.

  Create a view named productsummary

Create a view named ProductSummary that uses the view you created in exercise 4. This view should return some summary information about each product.

  A duplicate eliminating projection

Consider the following SQL query over tables R(A), S(A), and T (A). Note that "Select Distinct" in SQL represents a duplicate-eliminating projection.

  Create report using wizard or based on sql query

Create a report using the wizard or based on an SQL query that that shows Courses that instructors are approved to teach. Show Course Number, First Name, and Last Name of Instructor.

  Show a structured query language query

Show a Structured Query Language (SQL) query, and screenshot your results in a Microsoft Word document. For Part 2, provide explanations and screenshots documenting

  Convert the er/eer model

To represent a problem description given in natural language as an (Enhanced) Entity -Relationship model; to convert the ER/EER model into a relational data model;

  Run the lab_03_01.sql script

Run the lab_03_01.sql script in the attached file to create the SAL_HISTORY table. Display the structure of the SAL_HISTORY table.

  Statement to display the sku, sku_description

write an sql statement to display the SKU, SKU_Description, WareHouse ID, and QuantityOnHand for all products having a QuantityOnOrder equal to 0. Sort the results in descending order by WareHouse ID and in ascending order by SKU

  Explain the factor necessary to ensure referential integrity

Identify which data components are the entities and attributes, and the relationship between each using an object representation diagram through the use of graphical tools such as Microsoft Visio, or an open source alternative such as Dia.

  Determine all letter and person that have value over 1000

Determine all Letter and Person that have value over 1000. Use sub query - Show results sorted by letter in ascending order and person in descending.

  Write a script that creates and calls a stored procedure

Write a script that creates and calls a stored procedure named spInsertProduct that inserts a row into the Products table. This stored procedure should accept five parameters.

  Create account, email confirmation, and account activation

Chosen User Identifier for the account - System must ensure the user id is at least 5 characters, and no existing accounts with the same user id- If same user id exists, System must require User to choose another user id

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