Hello Everyone !!!
I am trying to help you for sharing some programming problem.Programming is a part of life.Sometimes its changed.Like life is valueless without programming.So,don't be upset. Don't be hopeless.There are lots of hope.If you can take it as a part of your life.
I am talking too much.Now come to the point. if I asked anybody say something about programming language,I sure most of them give me a vast description about specific language.How many programming language we have,I am just mentioning some of these: C,C++,C#,Java,Python,Ruby,PHP,JavaScript,Perl,CSS and so and. I am trying to give some idea about a few of these.
Today I am describing SQL query language.
SQL is a standard language for storing, manipulating and retrieving data
in databases.
What is SQL?
- SQL stands for Structured Query Language.
- SQL lets you access and manipulate databases.
- SQL is an ANSI (American National Standards Institute) standard.
What Can SQL do?
- SQL can execute queries against a database
- SQL can retrieve data from a database
- SQL can insert records in a database
- SQL can update records in a database
- SQL can delete records from a database
- SQL can create new databases
- SQL can create new tables in a database
- SQL can create stored procedures in a database
- SQL can create views in a database
- SQL can set permissions on tables, procedures, and views.
Here I am talking about Select Statement only.
A select query is a database object that shows information in Datasheet view. A query does not store data, it displays data that is stored in tables. A query can show data from one or more tables, from other queries, or from a combination of the two.
When we used Select query?
After creating table ,sometimes we need to check table specific column or row value.At that time we used Select statement.
Suppose we have a table name Student_Info having some of columns like:Student_ID,Student_Name,Student_ContactNo,Student_address
In that case if we want to check the total content of the table then we need to write the following statement: Select * from Student_info (table name)
As look like below image:Firstly I create a Database then create a table. I Insert some value in the table field.Then using Select statement single query and lastly using with where condition.Just check it out:
By writing this statement we can check the total value of a table.
Suppose we want to check specific column value against a specific ID then we need to write the following statement:
Select Student_ID,Student_Name,Student_ContactNo (Column Name) from Student_info (table name) where Student_ID='001'
This is the end of today's description.Hope it will help you.If you have any query please give me knock.if am I made any mistake please correct me.
Comments
Post a Comment