Write and Run SQL Statements in MS Access MySQL focusing on INSERT, UPDATE, DELETE, LIKE, Wildcards,...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Write and Run SQL Statements in MS Access MySQL focusing on INSERT, UPDATE, DELETE, LIKE, Wildcards, IN and BETWEEN. If you are using MS Access, you will need Ch07_LargeCo.mdb attached to this assignment, if you are using MySQL, you will need to run Ch07_LargeCo_MySQL.txt to create the table. For every question, copy paste your SQL and the result screens into a MS Word or PDF file and upload. 1. SELECT a. b. Select all columns from the LGCUSTOMER order by the CUST_BALANCE. Select all columns from the LGINVOICE table that have an INV_TOTAL greater 100 and less than 500. Order by INV_DATE. 2. INSERT a. Add George Washington to the LGCUSTOMER table using values only. Write SQL Select statement to verify your change. Add Acme Co to the LGVENDOR table. Write SQL Select statement to verify your change. Insert your first and last name into the LGEMPLOYEE. Write SQL Select statement to verify your change. b. c. 3. UPDATE a. Update Washington first name to "President". Write SQL Select statement to verify your change. b. Update Wally Anderson from Associate to Senior Associate in the LGEMPLOYEE table. Write SQL Select statement to verify your change. c. Update the price of 2366-EFV to 6.99 in the LGPRODUCT table. Write SQL Select statement to verify your change. 4. DELETE a. Delete George Washington from the LGCUSTOMER table. Write SQL Select statement to verify your change. b. Delete Acme Co from the LGVENDOR table. Write SQL Select statement to verify your change. c. Delete your name from the LGEMPLOYEE table. Write SQL Select statement to verify your change. 5. LIKE a. b. Select all products from the LGPRODUCT table that starts with "Va." Select all vendors from the LGVENDOR table that start with "H." Select all the columns from the LGCUSTOMER table where the customer's last name ends with "na." 6. Wildcard a. Select all the columns from the LGCUSTOMER table where the 2nd character in the customer's first name is "E." b. Select all the columns from LGSUPPLIES table where the seventh letter is "O" (this is the first letter of the three letters in NNNN-SSS format). 7. IN a. Select all columns from the LGCUSTOMER table in a list where the customer is in Vermont, Ohio, or New York. b. Select all columns from the LGCUSTOMER table in a list where the customer is NOT in Vermont, Ohio, Florida, New York, Indiana, or Pennsylvania. 8. BETWEEN a. Select all columns from the LGINVOICE table where INV TOTAL is in-between 100 and 500. b. Select all the columns from LGCUSTOMER table where balance is in-between 2000 and 3000. Write and Run SQL Statements in MS Access MySQL focusing on INSERT, UPDATE, DELETE, LIKE, Wildcards, IN and BETWEEN. If you are using MS Access, you will need Ch07_LargeCo.mdb attached to this assignment, if you are using MySQL, you will need to run Ch07_LargeCo_MySQL.txt to create the table. For every question, copy paste your SQL and the result screens into a MS Word or PDF file and upload. 1. SELECT a. b. Select all columns from the LGCUSTOMER order by the CUST_BALANCE. Select all columns from the LGINVOICE table that have an INV_TOTAL greater 100 and less than 500. Order by INV_DATE. 2. INSERT a. Add George Washington to the LGCUSTOMER table using values only. Write SQL Select statement to verify your change. Add Acme Co to the LGVENDOR table. Write SQL Select statement to verify your change. Insert your first and last name into the LGEMPLOYEE. Write SQL Select statement to verify your change. b. c. 3. UPDATE a. Update Washington first name to "President". Write SQL Select statement to verify your change. b. Update Wally Anderson from Associate to Senior Associate in the LGEMPLOYEE table. Write SQL Select statement to verify your change. c. Update the price of 2366-EFV to 6.99 in the LGPRODUCT table. Write SQL Select statement to verify your change. 4. DELETE a. Delete George Washington from the LGCUSTOMER table. Write SQL Select statement to verify your change. b. Delete Acme Co from the LGVENDOR table. Write SQL Select statement to verify your change. c. Delete your name from the LGEMPLOYEE table. Write SQL Select statement to verify your change. 5. LIKE a. b. Select all products from the LGPRODUCT table that starts with "Va." Select all vendors from the LGVENDOR table that start with "H." Select all the columns from the LGCUSTOMER table where the customer's last name ends with "na." 6. Wildcard a. Select all the columns from the LGCUSTOMER table where the 2nd character in the customer's first name is "E." b. Select all the columns from LGSUPPLIES table where the seventh letter is "O" (this is the first letter of the three letters in NNNN-SSS format). 7. IN a. Select all columns from the LGCUSTOMER table in a list where the customer is in Vermont, Ohio, or New York. b. Select all columns from the LGCUSTOMER table in a list where the customer is NOT in Vermont, Ohio, Florida, New York, Indiana, or Pennsylvania. 8. BETWEEN a. Select all columns from the LGINVOICE table where INV TOTAL is in-between 100 and 500. b. Select all the columns from LGCUSTOMER table where balance is in-between 2000 and 3000.
Expert Answer:
Answer rating: 100% (QA)
It seems you have posted a set of questions related to SQL statements for certain database operations like SELECT INSERT UPDATE DELETE and using claus... View the full answer
Related Book For
Principles Of Information Security
ISBN: 9780357506431
7th Edition
Authors: Michael E. Whitman, Herbert J. Mattord
Posted Date:
Students also viewed these databases questions
-
$1000 was deposited on January 1, 2010, and $2000 was deposited in an account on July 1, 2012. Interest was paid on the account at 7% compounded quarterly from January 1, 2010, to October 1, 2012,...
-
The owner of Colonial Adventure Tours would like you to complete the following tasks to help him maintain his database. In the following exercises, you will use the data in the Colonial Adventure...
-
In the following exercises, you will use the data in the Solmaris Condominium Group database shown in Figures 1-21 through 1-25. (If you use a computer to complete these exercises, use a copy of the...
-
A transparent rod 30.0 cm long is cut flat at one end and rounded to a hemispherical surface of radius 10.0 cm at the other end. A small object is embedded within the rod along its axis and halfway...
-
Suppose the collar of Prob. 544 has a yield strength of Sy = N (95.5, 6.59) kpsi. What is the probability that the material will not yield?
-
The following information is available for Robstown Corporation for 20Y8: Instructions 1. Prepare the 20Y8 statement of cost of goods manufactured. 2. Prepare the 20Y8 income statement. Inventories...
-
What do digital spectrum analyzers use to prevent the low-frequency ski slope?
-
Janes Company provided the following information on intangible assets : a. A patent was purchased from the Lou Company for $700,000 on January 1, 2009. Janes estimated the remaining useful life of...
-
Suppose a Summons and Complaint were filed on February 16, 2021 and personally served on the defendant on March 1, 2021, please calendar the following dates: a the day Proof of Service of Summons and...
-
Craig Fisher started a lawn service called Craigs Quick Cut to earn money over the summer months. Fisher has decided to use the following accounts for recording transactions: Assets Revenue Cash Lawn...
-
One important projection you can make when analyzing financial statements is the sales you need to avoid losing money. What type of analysis can be performed to determine the point at which the costs...
-
Troy Engines, Limited, manufactures a variety of engines for use in heavy equipment. The company has always produced all of the necessary parts for its engines, including all of the carburetors. An...
-
Robert Corp. granted an incentive stock option for 200 shares to Beverly, an employee, on March 14, Year 12. The option price and FMV on the date of grant was$150. Beverly exercised the option on...
-
A company purchased a highspeed industrial centrifuge at a cost of $420,000. Shipping costs totaled $12,000. Foundation work to house the centrifuge cost $8,800. An additional water line had to be...
-
A real estate loan that is not insured or guaranteed by a government agency is a(n) known as: Define and explain the answer with example.
-
sarasota corporation produces high - performance rotors. it expects to produce 3 0 , 0 0 0 rotors in the coming year. it has invested $ 4 , 3 1 2 , 5 0 0 to produce rotors. the company has a required...
-
Which mission statement best represents the Digby company? Select: 1 Save Answer Consistency and affordability are our goals. Our central mission is to offer dependable, low-price products that our...
-
The financial statements of Eastern Platinum Limited (Eastplats) are presented in Appendix A at the end of this textbook. Instructions (a) Does East plats report any investments on its statement of...
-
I. Obtain an understanding that janitors or custodians are often the least scrutinized people in a facility, yet they have access to nearly every part of a facilityincluding computer rooms and wiring...
-
True or False: With respect to changes that often occur in information security systems, persons maintaining the system often need to do major and minor release updates to ensure that the system is...
-
Detail that a policy administrator is the person that is responsible for the creation, revision, distribution, and storage of a policy in an organization. Stress that this person does not have to...
-
You own your own firm, and you want to raise \($40\) million to fund an expansion. Currently, you own 100% of the firms equity, and the firm has no debt. To raise the \($40\) million solely through...
-
If investors are holding optimal portfolios, how will the portfolios of a more risk averse and a more risk-tolerant investor differ?
-
According to the managerial entrenchment theory, managers choose capital structures so as to preserve their control of the firm. On the one hand, debt is costly for managers because they risk losing...
Study smarter with the SolutionInn App