Question

Write the statement(s) to delete all rows from table1 when the values in col1 are either...

Write the statement(s) to delete all rows from table1 when the values in col1 are either 100, 200, or 300.

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

DELETE from table1 where col1=100 OR col1=200 OR col1=300;
Add a comment
Know the answer?
Add Answer to:
Write the statement(s) to delete all rows from table1 when the values in col1 are either...
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
  • Write an SQL statement to switch the values of ExperienceLevel so that all rows currently having...

    Write an SQL statement to switch the values of ExperienceLevel so that all rows currently having the value Junior will have the value Senior and all rows currently having the value Senior will have the value Junior.

  • In R how do I delete rows that contain NA values My code below dosn't give...

    In R how do I delete rows that contain NA values My code below dosn't give me what I am looking for Gamma <- sqldf("SELECT DISTINCT A.Record_ID, A.Day, B.Date FROM Slot_Info as A LEFT JOIN Volume_Info as B ON A.Day = B.Date Where Date not Null ")

  • 48. values is a two-dimensional array of floats with 10 rows and 20 columns. Write code that sums...

    c++ 48. values is a two-dimensional array of floats with 10 rows and 20 columns. Write code that sums all the elements in the array and stores the sum in the variable total 48. values is a two-dimensional array of floats with 10 rows and 20 columns. Write code that sums all the elements in the array and stores the sum in the variable total

  • 1. Write an INSERT statement that adds this row to the Categories table: CategoryName: Brass Code...

    1. Write an INSERT statement that adds this row to the Categories table: CategoryName: Brass Code the INSERT statement so SQL Server automatically generates the value for the CategoryID column. 2. Write an UPDATE statement that modifies the row you just added to the Categories table. This statement should change the Category Name column to “Woodwinds”, and it should use the CategoryID column to identify the row. 3.Write an INSERT statement that adds this row to the Products table: ProductID:...

  • *Answer must be in C* Write a program that: 1- Declare and initialize all values to...

    *Answer must be in C* Write a program that: 1- Declare and initialize all values to zero an array of doubles 10 x 10 named "cat" 2- Write the code(using for loops) to fill the array with values 1, 2, 3, .... 98, 99, 100 3- Output (using for loops) the sum of the diagonal from 1-100 4- Output (using for loops) the sum of the last 50 rows of the array

  • Assume s and t are Numpy arrays with 100 rows and 300 columns. Consider the following...

    Assume s and t are Numpy arrays with 100 rows and 300 columns. Consider the following two statements: x = numpy.where(s > 1000, 100, t) y = (s + t) > 10 Is x an array or a single value? Tell me what you can about its value or values. Is y an array or a single value? Tell me what you can about its value or values.

  • SQL Homework exercises: 1. Write INSERT statements that add two rows to the Members table for...

    SQL Homework exercises: 1. Write INSERT statements that add two rows to the Members table for member IDs 1 and 2, two rows to the Groups table for group IDs 1 and 2, and three rows to the Group_Membership table: one row for member 1 and group 2; one for member 2 and group 1; and one for member 2 and group 2. Then, write a SELECT statement that joins the three tables and retrieves the group name, member last...

  • Name the DCL ( table. idently given permissions to delete records from the Customer table. Write...

    Name the DCL ( table. idently given permissions to delete records from the Customer table. Write control language) statement such that Bob cannot delete records from Customer Data A university has two tables, Student and Alumni, ALUMNI Table Attribute DENT Table ibute ntiD Data Type INTEGER(8,0 VARCU ntName

  • 3. Write a script that adds rows to the database that you created in exercise 2....

    3. Write a script that adds rows to the database that you created in exercise 2. Add two rows to the Users and Products tables. Add three rows to the Downloads table: one row for user 1 and product 2; one row for user 2 and product 1; and one row for user 2 and product 2. Use the SYSDATE function to insert the current date into the download_date column. Use the sequences created in the previous exercise to get...

  • 5. Write a SELECT statement that returns these columns from the Orders table: OrderID OrderDate ShipDate...

    5. Write a SELECT statement that returns these columns from the Orders table: OrderID OrderDate ShipDate Return only the rows where the ShipDate column contains a null value. 6. Write a SELECT statement that returns all columns from the Addresses table State is equal to CA 7. Write a SELECT statement that returns all columns from the Products table Product name has a "ru" in its name 8. Write a SELECT statement that returns these columns from the Customers table...

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