Documente Academic
Documente Profesional
Documente Cultură
Select Statement
Select Statement allows the users to retrieve the specific information
they desire from an operational database.
Order By Clause
Order by Clause sorts data according to what the user desire. The
results are in ascending order in default.
And & Or Operators
And & Or operators are used to filter records based on more than one
condition. The and operator displays a record if all the condition are
met. The Or operator displays a record if any condition is met.
The select statement together with the order by clause and and & or
operators will be used to search and filter information in the database. This
will be mainly used for searching data in the sales table and customer table.
The sample format for this statement is Select * from tblSales where
Description=Credit
and
CustomerName=txtCustmerName.text
or
CustomerID=txtCustomerID.text.
CustomerID=txtCustomerID.Text
CustomerName=txtCustomerName.Text.
or