A Guide to SQL
9th Edition
ISBN: 9781111527273
Author: Philip J. Pratt
Publisher: Course Technology Ptr
expand_more
expand_more
format_list_bulleted
Concept explainers
Question
Chapter 5, Problem 9CAT
Program Plan Intro
Alias:
- It is nothing but another name given for an existing table name. During the usage of “FROM” clause, the user can give an alias name for the table names so that, the user need not to mention the table name each time rather, he/ she can use the alias name.
- Usually an alias name will be simple and it might be a short form of the table name. Example for a “CUSTOMER” table, the alias name can be give as “C” or “CUS” according to the user’s comfort.
Specifying alias in SQL:
In SQL, the format to give an alias name is as follows:
Table_Name alias_Name
AND Operator:
In SQL, “AND” keyword is used in order to check two and more than two conditions. This usually works well with “WHERE” clause.
Syntax:
SELECT * FROM table_Name WHERE condition1 AND condition2;
Expert Solution & Answer
Trending nowThis is a popular solution!
Students have asked these similar questions
Order of tuples in a table is irrelevant, true or false?
6. List all authors whose last name contains the letter pattern “IN.” Put the results in order oflast name, then first name. List each author’s last name and first name.
Create a list of EMPNO, ENAME, HIREDATE, DEPTNO from EMPLOYEE for employee’s with a salary (SAL) greater than 2000. (Note: Do not print out the salary amount!)
How many records were printed to the screen?
Chapter 5 Solutions
A Guide to SQL
Ch. 5 - Prob. 1RQCh. 5 - Prob. 2RQCh. 5 - Prob. 3RQCh. 5 - Prob. 4RQCh. 5 - Prob. 5RQCh. 5 - Prob. 6RQCh. 5 - Prob. 7RQCh. 5 - What does it mean for two tables to be union...Ch. 5 - Prob. 9RQCh. 5 - Prob. 10RQ
Ch. 5 - Prob. 11RQCh. 5 - Prob. 12RQCh. 5 - Prob. 13RQCh. 5 - Prob. 14RQCh. 5 - Prob. 15RQCh. 5 - Prob. 1TDCh. 5 - Prob. 2TDCh. 5 - Prob. 3TDCh. 5 - Prob. 4TDCh. 5 - Prob. 5TDCh. 5 - Prob. 6TDCh. 5 - Prob. 7TDCh. 5 - Prob. 8TDCh. 5 - Prob. 9TDCh. 5 - Prob. 10TDCh. 5 - Prob. 11TDCh. 5 - Prob. 12TDCh. 5 - Prob. 13TDCh. 5 - Prob. 14TDCh. 5 - Prob. 15TDCh. 5 - Prob. 16TDCh. 5 - Prob. 17TDCh. 5 - Prob. 18TDCh. 5 - Prob. 20TDCh. 5 - Prob. 21TDCh. 5 - Prob. 1CATCh. 5 - Prob. 2CATCh. 5 - Prob. 3CATCh. 5 - Prob. 4CATCh. 5 - Prob. 5CATCh. 5 - Prob. 6CATCh. 5 - Repeat Exercise 6, but this time use the EXISTS...Ch. 5 - Prob. 8CATCh. 5 - Prob. 9CATCh. 5 - Prob. 10CATCh. 5 - Prob. 11CATCh. 5 - Prob. 12CATCh. 5 - Prob. 13CATCh. 5 - Prob. 14CATCh. 5 - Prob. 15CATCh. 5 - Prob. 16CATCh. 5 - Prob. 17CATCh. 5 - Prob. 18CATCh. 5 - Prob. 1SCGCh. 5 - Prob. 2SCGCh. 5 - Prob. 3SCGCh. 5 - Prob. 4SCGCh. 5 - Repeat Exercise 4, but this time use the EXISTS...Ch. 5 - Prob. 6SCGCh. 5 - Prob. 7SCGCh. 5 - Prob. 8SCGCh. 5 - Prob. 9SCGCh. 5 - Prob. 10SCGCh. 5 - Prob. 11SCGCh. 5 - Prob. 12SCGCh. 5 - Prob. 13SCGCh. 5 - Prob. 14SCGCh. 5 - Prob. 15SCGCh. 5 - Prob. 16SCG
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Similar questions
- Add a new row in the ORDERS table with the following data: Order# = 1023 and Customer# = 1009. Describe the error raised and what caused the error.arrow_forwardModify the Job_class column of the EMPLOYEES table so that it allows storing a maximum width of two characters.arrow_forwardExplain the difference between truncating a table and deleting a table.arrow_forward
- Which of the following characters can be used in a table name? a. b. ( c. % d. !arrow_forwardAdd a new row in the ORDERS table with the following data: Order# = 1022, Customer# = 2000, and Order date = August 6, 2009. Describe the error raised and what caused the error.arrow_forwardHow do you indicate that a column alias should be used?arrow_forward
- You want to use the summarize() and max() functions to find the maximum rating for your data. Add the code chunk that lets you find the maximum value for the variable Rating.arrow_forward. Rename the EMPLOYEES table as JL_EMPSarrow_forwardList unique first (first_name) and last names (last_name) of customers (CUSTOMER table) who rented a movie (RENTAL table) between '2011-06-01' and '2012-01-01’ (rental_date). Sort by last_name. The common key is CUSTOMER_ID.arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- A Guide to SQLComputer ScienceISBN:9781111527273Author:Philip J. PrattPublisher:Course Technology PtrCOMPREHENSIVE MICROSOFT OFFICE 365 EXCEComputer ScienceISBN:9780357392676Author:FREUND, StevenPublisher:CENGAGE L
- Np Ms Office 365/Excel 2016 I NtermedComputer ScienceISBN:9781337508841Author:CareyPublisher:Cengage
A Guide to SQL
Computer Science
ISBN:9781111527273
Author:Philip J. Pratt
Publisher:Course Technology Ptr
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:9780357392676
Author:FREUND, Steven
Publisher:CENGAGE L
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:9781337508841
Author:Carey
Publisher:Cengage