I’m making lots of assumptions since your question doesn’t have much detail. Here is some generic code assuming that everything is in 1 table:
Update employees
set salary = salary * .85
where training_course_completed < '2012-11-15'
and start_date > '2013-02-05'
;
More Related Contents:
- How can I do a FULL OUTER JOIN in MySQL?
- SQL JOIN – WHERE clause vs. ON clause
- How to convert comma separated values to rows in oracle?
- How do I see what character set a MySQL database / table / column is?
- How do I create a comma-separated list using a SQL query?
- How to list table foreign keys
- How can I combine multiple rows into a comma-delimited list in Oracle? [duplicate]
- Group by column and multiple Rows into One Row multiple columns
- Is it possible to output a SELECT statement from a PL/SQL block?
- Performing SQL queries on an Excel Table within a Workbook with VBA Macro
- Accessing SQL Database in Excel-VBA
- Primary key or Unique index?
- Find the smallest unused number in SQL Server
- Dynamic Sorting within SQL Stored Procedures
- Is it possible to have an indexed view in MySQL?
- Django select only rows with duplicate field values
- Why can’t you mix Aggregate values and Non-Aggregate values in a single SELECT?
- Is it possible to run multiple DDL statements inside a transaction (within SQL Server)?
- What are the principles behind, and benefits of, the “party model”?
- How to find rows in one table that have no corresponding row in another table
- I want to use CASE statement to update some records in sql server 2005
- PostgreSQL delete with inner join
- Display names of all constraints for a table in Oracle SQL
- Sql Server trigger insert values from new row into another table
- Getting the Id of a row I updated in Sql Server
- Zero SQL deadlock by design – any coding patterns?
- UNION ALL vs OR condition in sql server query
- Convert bigint to datetime
- Drop column from SQLite table
- Why isn’t row level security enabled for Postgres views?