Question

Database: Describe the structure of the SELECT statement with an example.

Database: Describe the structure of the SELECT statement with an example.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

The structure of the SELECT statement:

SELECT statement is one of the SQL commands.It is used to a query.

Select statement is retrieve the data or select the data from a table in the database.

A query is retrieving the information from particular columns or from all of the columns in the table.

Syntax:

1.select the Particular Column from table:

SELECT column1,column2....... ,FROM tablename;

2.Select the all columns from table:

SELECT * FROM tablename;

Example: Table_name:Customers

CustomerId CustomerName City Country

1 Sony Berlin Germany

2 John Delhi India

3 Thomson London UK

Query Example:

SELECT the particular columns like customerName and Country from Customer table

1. SELECT CustomerName,Country FROM Customers.

Display the Information:

CustomerName Country

Sony Germany

Jhon India

Thomson UK

2.SELECT all columns from Customers Table.

SELECT * FROM Customers;

Display the information:

CustomerId CustomerName City Country

1 Sony Berlin Germany

2 John Delhi India

3 Thomson London UK

Add a comment
Know the answer?
Add Answer to:
Database: Describe the structure of the SELECT statement with an example.
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT