A Guide to SQL
A Guide to SQL
9th Edition
ISBN: 9781111527273
Author: Philip J. Pratt
Publisher: Course Technology Ptr
bartleby

Concept explainers

Question
Book Icon
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;

Blurred answer
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?
Knowledge Booster
Background pattern image
Computer Science
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
Recommended textbooks for you
Text book image
A Guide to SQL
Computer Science
ISBN:9781111527273
Author:Philip J. Pratt
Publisher:Course Technology Ptr
Text book image
Oracle 12c: SQL
Computer Science
ISBN:9781305251038
Author:Joan Casteel
Publisher:Cengage Learning
Text book image
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:9780357392676
Author:FREUND, Steven
Publisher:CENGAGE L
Text book image
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:9781337508841
Author:Carey
Publisher:Cengage
Text book image
CMPTR
Computer Science
ISBN:9781337681872
Author:PINARD
Publisher:Cengage