Alter the RESIDENTS table and change the ID field to an auto-incremented field.
SQL
SQL stands for Structured Query Language, is a form of communication that uses queries structured in a specific format to store, manage & retrieve data from a relational database.
Queries
A query is a type of computer programming language that is used to retrieve data from a database. Databases are useful in a variety of ways. They enable the retrieval of records or parts of records, as well as the performance of various calculations prior to displaying the results. A search query is one type of query that many people perform several times per day. A search query is executed every time you use a search engine to find something. When you press the Enter key, the keywords are sent to the search engine, where they are processed by an algorithm that retrieves related results from the search index. Your query's results are displayed on a search engine results page, or SER.
Task 7:
The development team wants to add new residents and new service requests to StayWell without checking the latest IDs and manually incrementing it. Therefore, you need to alter the RESIDENTS table and change the RESIDENT_ID field to an auto-incremented field of type SMALLINT.
Alter the RESIDENTS table and change the ID field to an auto-incremented field.
Task 8:
The Colombia City office of StayWell indicated that there is a new tenant by the name of Yigit Yilmaz staying at the property with an ID of 13. You need to include this new resident in the RESIDENTS table.
Add Yigit Yilmaz to the RESIDENTS table.
Task 9:
The StayWell property management team wants to add two additional properties and run some simulation tests relating to market coverage. Add the following properties to the PROPERTY table:
PROPERTY_ID | OFFICE_NUM | ADDRESS | SQR_FT | BDRMS | FLOORS | OWNER_NUM |
---|---|---|---|---|---|---|
14 | 1 | 9 Houston Drive | 1,100 | 2 | 1 | MO100 |
15 | 1 | 11 Village Drive | 1,300 | 3 | 1 | CO103 |
However, the team does not want this data in the
Add the provided property locations to the PROPERTY table
Trending now
This is a popular solution!
Step by step
Solved in 3 steps