Saturday, October 8, 2016

SQL Syntax

SQL is followed by unique set of rules and guidelines called Syntax.

SQL Statements


Most of the actions you need to perform on a database are done with SQL Statments.
SQL was designed to be entered on a console and results would display back to a screen.


SELECT * FROM TableName;

Example:

SELECT * FROM Employee;

Important SQL Commands


SELECT                           -     Read the data.
INSERT INTO                 -     Insert or Add new data.
UPDATE                          -     Update existing data.
DELETE                          -     Remove or Delete data.
CREATE DATABASE    -     Create new database.
DROP TABLE                -      Deletes a table.
CREATE INDEX            -     Create an index.
ALTER DATABASE      -      Modifies or Edit database.
CREATE TABLE           -      Create a  new table.
ALTER TABLE              -      Modifies or Edit table.
DROP INDEX                -      Remove or Delete index.

SQL Keyword are not case sensitive and some database systems required a semicolon at end of each SQL statement.


Database Tables


A database contains one or more tables.Each table is assigned with unique name.
Below is selection from the "Employee" table.

Employee Table
Employee Table

The table above contains four records and four cloumns (EmployeeId, EmployeeName, Address, Salary).

Friday, October 7, 2016

SQL Introduction

SQL (Structured Query Language) is a standard language for accessing and manipulating databases.


What is SQL?

SQL is  stands for Structured Query Language. SQL  lets your access and manipulate database.SQL is an ANSI (American National Standards Institute) standard. SQL is the standard language for Relation Database System. All relational database management systems like

  • MySQL.
  • MS Access.
  • Sybase.
  • Postgres.
  • SQL Server.
  • Oracle.
  • Informix.

 use SQL as standard database language.Also they are using different dialects such as

  • Oracle using PL/SQL.
  • MS SQL Server using T-SQL.
  • MS Access version of SQL is called JET SQL (native format) etc .




ASP.NET Introduction

What is ASP.NET?


Asp.Net is Web application framework developed and marketed by Microsoft to build dynamic data driven Web applications and Web services. It allow programming language such as 
  • C# .
  •  VB.Net
  • Java Script.
to build web applications easily.
Asp.Net framework is collection of classes and Asp.Net is the successor to classic ASP(Active Server Pages).

microsoft asp.net
Microsoft Asp.Net

Asp.Net is used produce interactive,data driven web application over the internet.It consists of a large number of controls such as text boxes,buttons,

and labels for assembling,configuring, and manipulating code to create HTML pages.

What is Web Application?


A web application is an application that is accessed by users using a web browser. For Example:

  1. Microsoft Internet Explorer.
  2. Mozilla FireFox.
  3. Google Chrome.
  4. Apply Safari.
  5. Netscape Navigator.

What are advantages of Web application?


1.Asp.Net reduces the amount of code required to build large applications.
2.Provides simplicity as ASP.NET makes it easy to perform common tasks, from simple form submission and client authentication to deployment and site configuration.
3It is purely server-side technology so, ASP.NET code executes on the server before it is sent to the browser.
4.With built in Windows authentication and per – application configuration,your application are safe  and  secured.
5.Being language independent, it allows you to choose the language that best applies to your application or partition your application across many languages.
6.The ASP.NET framework is complemented by a rich toolbox and designer in the Visual Studio integrated development environment. drag-and-drop server controls, and automatic deployment are just a few of the features this powerful tool provides.
7.The source code and HTML are together therefore ASP.NET pages are easy to maintain and write.Also the source code is executed on the server. This provides a lot of power and flexibility to the web pages.
8.It provides better performance by taking advantage of early binding, just-in-time compilation, native optimization, and caching services right out of the box.
9.All the processes are closely monitored and managed by the ASP.NET runtime, so that if process is dead, a new process can be created in its place, which helps keep your application constantly available to handle requests.
10.Asp.Net  makes for easy deployment. There is no need to register components because the configuration information is built-in.
11.The Web server continuously monitors the pages, components and applications running on it. If it notices any memory leaks, infinite loops, other illegal activities, it immediately destroys those activities and restarts itself.
12.Easily works with ADO.NET using data-binding and page formatting features. It is an application which runs faster and counters large volumes of users without having performance problems.