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

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

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