0% found this document useful (0 votes)
20 views1 page

SQL

The document provides examples of SQL SELECT statements for retrieving data from the 'emp' table in the 'new_schema' database. It explains how to select all columns, specific columns, rename column headings, and perform calculations such as multiplication. Each SQL query demonstrates different functionalities of the SELECT statement.

Uploaded by

Atiya Falak
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
20 views1 page

SQL

The document provides examples of SQL SELECT statements for retrieving data from the 'emp' table in the 'new_schema' database. It explains how to select all columns, specific columns, rename column headings, and perform calculations such as multiplication. Each SQL query demonstrates different functionalities of the SELECT statement.

Uploaded by

Atiya Falak
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

SELECT * FROM new_schema.

emp;
* Mean Select all column and Rows

SELECT ename, job, sal FROM new_schema.emp;


With this you can select specific column

SELECT ename, job AS Title, sal FROM new_schema.emp;


With this you can the change the Column Heading

SELECT empno, ename, sal, sal*12 AS "Annual Salary" FROM new_schema.emp;


With this Code we can use Multiplication.

You might also like