Question

Using the School Scheduling Example, suppose you need to change area code to 612 for all...

Using the School Scheduling Example, suppose you need to change area code to 612 for all staff living in ZIP codes 55416 and 55426. Write a SQL statement to implement this action.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Please find below sql query and read the note section carefully and let me know if u have any concern..

UPDATE staff
SET area_code = 612
WHERE zip_code = 55416
OR zip_code = 55426;

Note: staff is the name of table please change the name if actual one differs
area_code is the column name of table for updating new Area code please change the name if actual one differs
zip_code is the column name of table for staff living in Zip code please change the name if actual one differs

Explanation:
SET command used change the existing value of table and where clause
used for matching the condition as like given zip code

Add a comment
Know the answer?
Add Answer to:
Using the School Scheduling Example, suppose you need to change area code to 612 for all...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Need help with this program in C # CheckZips.cs Instructions sing static System.Console 2 class Checkzips...

    Need help with this program in C # CheckZips.cs Instructions sing static System.Console 2 class Checkzips Write a program named CheckZips that is used by a package delivery service to check delivery areas. Information Review Mode Project Help Download Share static void Main) string[] zips {"12789", "54012", "54481", "54982", The program contains an array that holds the 10 zip codes of areas to which the company makes deliveries. (Note that this array is created for you and does not need...

  • Since most of you live in the same area or share the same ZIP code, your...

    Since most of you live in the same area or share the same ZIP code, your instructor may assign you different ZIP codes within the same city or different towns or cities. Your instructor may assign you to teams or have you work as an individual. Your instructor may require a written report, or have you make a presentation to the class. Your report or presentation should cover the following points: If findings are presented to the class, be prepared...

  • Hi I have 4 problems below I need done ASAP, if you could upload them one...

    Hi I have 4 problems below I need done ASAP, if you could upload them one by one by order you finish them instead of all at once that would be appreciated, I need this done in basic c++ code, all of the body structure are below I just need codes to be implemented for the codes to give the write outputs, Thank you. Q1. Update the given code 1 to implement the following problem: Create a class animal Set...

  • Using MySQL commands answer the questions listed below using the Premier Products Company schema. 1.Using Views...

    Using MySQL commands answer the questions listed below using the Premier Products Company schema. 1.Using Views a) Create a view called part_location that has the following attributes: part_num, part_description, part_quantity, warehouse_name, warehouse_address. This data comes from the part and warehouse entities. b) Write a query using the view that shows the total number of parts ordered from each warehouse. The output should look like this: 2. Using Triggers a) Execute the following SQL to create the customer_audit table in the...

  • Type, Compile, Run all syntactically complete or mostly complete example code .You may need to change...

    Type, Compile, Run all syntactically complete or mostly complete example code .You may need to change some syntax to make them compile and run import java.io.*; import java.lang.*; import java.util.*; class MyThreadExampleMutex{ public static void main(String[] args) { new HelloThread (1). start (); new HelloThread (2). start (); new HelloThread (3). start (); System.out.print("Global.buffer Content = "); for (int i = 0; i < 9; i++) { System.out.print(Global.buffer[i] + "; "); }} } class Global { public static int[] buffer...

  • Have you ever noticed the bar code printed on envelopes? That code helps the USPS process...

    Have you ever noticed the bar code printed on envelopes? That code helps the USPS process the mail. The barcode is generated as specified below. In this assignment you are to write a JAVA program that will accept a 5 digit number from the user and then prints the appropriate symbols to the screen. Name your file ZipCode_yourInitials.java. The specifications for the code are PostalCodeAsignment.pdf. Using a do while loop allow the user to continue entering numbers as long as...

  • Put all of your SQL code in a file named grades.sql and submit it below. Download...

    Put all of your SQL code in a file named grades.sql and submit it below. Download the starter code, which contains import_grades.sql and the grades.csv file. Using he import_grades, sql file, create your database and table. - 0 eded. 1 T Une Modify the LOAD DATA INFILE to correct the path to load the grades.csv file, and add/remove LOCAL he only modification you may make to the import_grades.sql or the grades.csv files. The data represents grades for assignments in a...

  • Write a program **(IN C)** that displays all the phone numbers in a file that match the area code...

    Write a program **(IN C)** that displays all the phone numbers in a file that match the area code that the user is searching for. The program prompts the user to enter the phone number and the name of a file. The program writes the matching phone numbers to the output file. For example, Enter the file name: phone_numbers.txt Enter the area code: 813 Output: encoded words are written to file: 813_phone_numbers.txt The program reads the content of the file...

  • Using C programming Using the supplied example code as a starting point, add 3 more conversions...

    Using C programming Using the supplied example code as a starting point, add 3 more conversions using strtod(). Make sure you change the output conversion for type double. Use the same input strings and base codes as the strtol() function example but notice how the numbers are now represented. Manipulate the width and precision as needed for a good presentation.   Supplied code: #include <stdio.h> #include <string.h> int main(void) { long num; char* ptr; num = strtol("12345 Decimal Constant: ", &ptr,...

  • Suppose you want to determine if a string contains all lowercase letters. For this purpose you...

    Suppose you want to determine if a string contains all lowercase letters. For this purpose you are going to write a procedure allLower. A C++ header for this procedure might look like int allLower (char str[]) // precondition: str is a null terminated string // postcondition: // returns true (-1) if str contains nly ї we r case letters returns false (0) if str contains any other character Using 32-bit cdecl protocol, write assembly language code to implement hasLower

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT