Structured query language

Assignment Help Basic Computer Science
Reference no: EM131204534

Structured Query Language

Goal: Use a transaction to add new rows to two tables at the same time. You must add a row into one table first, before the row can be added into the second table.

Using the class example database (SQLFUN), create the required SQL statements to produce the following results:

Add a new food to the L_foods table from a new supplier.Add Fresh Salmon as menu item 11.

  • The supplier_id is CFF.
  • The product_code is SA.
  • The price is $8.25.
  • There is no price_increase value.

Step 1: Add CFF to the L_suppliers table. (The name of this supplier is Cathy's Fresh Fish).

Step 2: In Oracle or mySQL, make these two inserts in a single transaction:

You first need to add the row to the L_suppliers table because I have created a rule that says, "When a new row is added to the L_foods table, the supplier_id must already exist in the L_suppliers table."

Do a rollback after you have inserted both rows and viewed your changes.

Goal: Using SQL, create a new table. Define each of its columns. Include at least one text and one numeric column.

Create a table using SQL:Build a table of your favorite songs. Include the following:

  • A song ID
  • Name of the song
  • The performer

You may include other columns if you wish.

Reference no: EM131204534

Questions Cloud

How do you define classes in css : How do you define classes in css? Please give an example and explain what classes are?
How does the halt command trap : How does the HALT command Trap x25 work when coding in LC-3? Where is the placement, at the front or back?
What is the value of total purchases at the nash equilibrium : What level of expenditure on the public good maximizes the total level of utility?
Detect the syn flooding attacks and port scan attacks : Calculate the metrics you selected - Use the statistical metrics calculated from the training data set to training the statistical model - Use the statistical metrics calculated from the training data set to training the statistical model.
Structured query language : Goal: Use a transaction to add new rows to two tables at the same time. You must add a row into one table first, before the row can be added into the second table.
Why we would choose to place so much emphasis on qsen : Then, choose one of the QSEN competencies (Patient Centered Care, Teamwork and Collaboration, Informatics, Evidence Based Practice, Safety, or Quality Improvement) and one attitude that you think is most important for a student nurse to incorporat..
Professional language and terminology of systems : Your informed commentary and analysis -- simply repeating what your sources say does not constitute an adequate paper. Your ability to apply the professional language and terminology of systems analysis and design correctly and in context; you are e..
Difference between a security plan and a security policy : What is the difference between a security plan and a security policy? How these do relates to each other?
What is javaserver pages : What is JavaServer Pages? Why Use JSP? Advantages of JSP?

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Describe one real or future (even imaginary) iot

Describe one real or future (even imaginary) IoT (or CPS - Cyber Physical System) usecase. Provide details on the system(s) requirements from user(s)/actor(s) perspective.

  Create a customer experience strategy

Include components of customer service model reognized within your text. How would you use them to create a customer experience strategy?

  Ways to open the header and footer view

Discuss the three ways to open the Header and Footer view. Discuss: (1) how to insert a page number using the Page Number button in the Header and Footer group on the Insert tab

  Identify and compare the camera features

Go online and shop for two digital video cameras: one a high end and another a general hand held model. Identify and compare the camera features. Which one would you choose? Explain why.

  How does this experience differ from working on your own

How does this experience differ from working on your own?

  Difference between the short-run and the long-run

Explain the difference between the short-run and the long-run with regard to firm behavior. What are fixed and variable factors of production, and how does this distinction relate to the short-run, long-run distinction? How does the concept of sun..

  Esign a four state finite automaton that accepts the words

Design a 4-state finite automaton that accepts the words over {a,b} that end with aba.

  Problem regarding the systems analysis and design

Consider the system sequence diagrams shown in Figure 5-6 then 5-8 and 5-9, the SSD showing customer account associative entity. Does this model limit a customer to enroll in more than one account at a time?

  Write a program that implements binary search first using

To understand the value of recursion in a programming language write a program that implements binary search first using recursion and without recursion.

  Position titles of the users

Contact at least three people at your school or a nearby company who use information systems. List the systems, the position titles of the users, and the business functions that the systems support.

  Experiment with different file and buffer sizes

Try performing these timing tests on a range of file systems (e.g., ext3, XFS, Btrfs, and JFS). Are the results similar? Are the trends the same when going from small to large buffer sizes?

  What is a vpn

How do you reduce computer screen flicker. How do you minimize all windows. What is a VPN

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