Knowledge Walls
Gopal Rao
Mumbai, Maharashtra, India
Passcode:
How to use select command in SQL in Queries of SQL Queries
2454 Views
Syntax
To select all the columns in particular table

select * from tableName;

If u want to select one column from table

select columnName from tableName;

If u want to select number of  column from table

select columnName1,columnName2,columnName..n from tableName;
Example
1)select * from orders;
2)select orderId from orders;
3)select orderId,customerId from orders;
Hints 
Select query used to select all the values from table by using * symbol or else can get value of particular column by useing column name.In select query can use different condition with "And","or" and something like "not like","like","distinct",etc..,

For some activities examples created follows.
  Copyright © 2014 Knowledge walls, All rights reserved
KnowledgeWalls
keep your tutorials and learnings with KnowledgeWalls. Don't lose your learnings hereafter. Save and revise it whenever required.
Click here for more details