After requesting a service, a client must pay 30 days after the service is required. In the SERVICE table, there exists the attribute DATE that holds the day a service was required, but there is no attribute for the due date. Which of the following queries shows the date a service was required and when the payment is due as DUE_DATE. a. SELECT SID, DATE, DUE_DATE FROM SERVICE b. SELECT SID, DATE, DATE+30 FROM SERVICE c. SELECT SID, DATE, DATE+30 AS DUE_DATE FROM SERVICE d. SELECT SID, DATE, DUE_DATE FROM SERVICE
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.
a. |
SELECT SID, DATE, DUE_DATE FROM SERVICE |
|
b. |
SELECT SID, DATE, DATE+30 FROM SERVICE |
|
c. |
SELECT SID, DATE, DATE+30 AS DUE_DATE FROM SERVICE |
|
d. |
SELECT SID, DATE, DUE_DATE FROM SERVICE |
Trending now
This is a popular solution!
Step by step
Solved in 3 steps