Sql Query to Select


Take Particular Column :

 SELECT ColumnName From TableName

Take Particular Row From Table:

 SELECT * FROM TableName WHERE ColumName ='xyz'

 (Note: If the column is Interger u can directly pass the value if it is string means u can use single quotes )

Take Particular row and Column :

SELECT ColumnName FROM TableName WHERE ColumnName=x -- Note When x is integer

Dynamic Sql —

After u learn normal sql, Please go to practice for Dynamic sql. That will help to improve ur logics


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s