Entertainment Technology Entertainment Entertainment
Main Page Forum Ringtones SMS Messages Games Free Downloads Contact UsTelepk Map
Make This Page Your Home Page Make TelePK.Com Your Favorite Website Telepk Header
IP: 38.103.63.17 COUNTRY: FLAG:
Mobile Zone
  1. PTCL TelePhone Directory
  2. SMS Messages
  3. SmS Jokes
  4. Sms Dictionary
  5. Memory Card Rates
  6. Mobile Phones
  7. Mobile Phone Articles
  8. Mobile Tutorials
  9. Mobile Games
  10. Mobile Wallpapers
  11. Secret Codes
  12. Ring Tones
  13. Web To SmS
  14. Telecom Reviews
  15. SMS Worldwide

Entertainment
  1. Islam
  2. Elections
  3. Home Decoration
  4. Beauty And Health
  5. Tech News
  6. Kitchen
  7. Greeting Cards
  8. Messenger Zone
  9. Online Chat
  10. Articles
  11. Downloads
  12. City Codes
  13. Know Your Heart
  14. Palmistry
  15. Myspace
  16. Make Money
  17. World News
  18. Map Guide
  19. Eid Day
  20. Pakistan
  21. Pakistani Singers
  22. Personalities
  23. Emergency No.s
  24. Funny Jokes
  25. Funny Pictures
  26. Kids
  27. Songs
  28. Sports Online
  29. Spotlight
  30. Student Visa
  31. Education
  32. Online Games
  33. Study Abroad
  34. Tutorials
  35. Immigration
  36. Urdu
  37. Weather Status
  38. Webmaster Tools
  39. Valentine Day
  40. Video Clips
  41. Videos

Search Engine
Google

Active Visitors
  1. 111

Sponsored Links



SQL Tutorial

SQL is a standard computer language for accessing and manipulating databases.


What is SQL?

  • SQL stands for Structured Query Language
  • SQL allows you to access a database
  • SQL is an ANSI standard computer language
  • SQL can execute queries against a database
  • SQL can retrieve data from a database
  • SQL can insert new records in a database
  • SQL can delete records from a database
  • SQL can update records in a database
  • SQL is easy to learn

SQL is a Standard - BUT....

SQL is an ANSI (American National Standards Institute) standard computer language for accessing and manipulating database systems. SQL statements are used to retrieve and update data in a database. SQL works with database programs like MS Access, DB2, Informix, MS SQL Server, Oracle, Sybase, etc.

Unfortunately, there are many different versions of the SQL language, but to be in compliance with the ANSI standard, they must support the same major keywords in a similar manner (such as SELECT, UPDATE, DELETE, INSERT, WHERE, and others).

Note: Most of the SQL database programs also have their own proprietary extensions in addition to the SQL standard!


SQL Database Tables

A database most often contains one or more tables. Each table is identified by a name (e.g. "Customers" or "Orders"). Tables contain records (rows) with data.

Below is an example of a table called "Persons":

LastName FirstName Address City
Hansen Ola Timoteivn 10 Sandnes
Svendson Tove Borgvn 23 Sandnes
Pettersen Kari Storgt 20 Stavanger

The table above contains three records (one for each person) and four columns (LastName, FirstName, Address, and City).


SQL Queries

With SQL, we can query a database and have a result set returned.

A query like this:

SELECT LastName FROM Persons

Gives a result set like this:

LastName
Hansen
Svendson
Pettersen

Note: Some database systems require a semicolon at the end of the SQL statement. We don't use the semicolon in our tutorials.


SQL Data Manipulation Language (DML)

SQL (Structured Query Language) is a syntax for executing queries. But the SQL language also includes a syntax to update, insert, and delete records.

These query and update commands together form the Data Manipulation Language (DML) part of SQL:

  • SELECT - extracts data from a database table
  • UPDATE - updates data in a database table
  • DELETE - deletes data from a database table
  • INSERT INTO - inserts new data into a database table

SQL Data Definition Language (DDL)

The Data Definition Language (DDL) part of SQL permits database tables to be created or deleted. We can also define indexes (keys), specify links between tables, and impose constraints between database tables.

The most important DDL statements in SQL are: 

  • CREATE TABLE - creates a new database table
  • ALTER TABLE - alters (changes) a database table
  • DROP TABLE - deletes a database table
  • CREATE INDEX - creates an index (search key)
  • DROP INDEX - deletes an index

SQL Basic

[SQL Tutorial] [SQL Introduction] [SQL Select] [SQL Where] [SQL Insert] [SQL Update] [SQL Delete]

SQL Advance

[SQL Order By] [SQL AND & OR] [SQL In] [SQL Between] [SQL Aliases] [SQL Join] [SQL Union] [SQL Create] [SQL Drop] [SQL Alter] [SQL Functions] [SQL Group By] [SQL Select Into] [SQL Create View] [SQL Server]



More Tutorials...
  1. HTML Tutorial
  1. XHTML Tutorial
  1. CSS Tutorial
  1. Javascript Tutorial
  1. DHTML Tutorial
  1. VBScript Tutorial
  1. TCP/IP Tutorial
  1. ASP Tutorial
  1. AJAX Tutorial
  1. CFML Tutorial
  1. PHP Tutorial
  1. WML Tutorial
  1. Flash Tutorial
  1. XML Tutorial
  1. RSS Tutorial
  1. Web Services
  1. ADO Tutorial
  1. MySQL Tutorial
  1. SQL Tutorial
  1. HTML Tips
  1. SEO Tips
  1. MYSQL Tips
  1. PHP Tips


Send this page to a friend

   
Play Games
Janubaba Janubaba Click here to visit The Pak Ranks
Most Viewed Services:
  1. AIM Away Messages
  2. AIM Buddy Icons
  3. BBQ Recipes
  4. Burger Recipes
  5. Fruit Salad Recipes
  6. Funny Pictures
  7. Spider-Man
  8. Spider-Man The Film
  9. Spider-Man Wallpapers
  10. Family
  11. Family Fun
  12. Windows Live Messenger
  13. Easter E-Cards
  14. 2008 Festivals
  15. Christian Festivals
  16. Msn Display Pictures
  17. Yahoo Avatars
  18. Myspace
  19. Nokia 5700
  20. Nokia 5070
  21. Bob Woolmer
  22. SMS Messages
  23. SMS Jokes
  24. MSN Web Messenger
  25. Download MSN Messenger
  26. Download Latest Msn Messenger
  27. Multi MSN
  28. Download Multi MSN
  29. MSN Emoticon
  30. MSN Nick Name
  31. MSN Screen Names
  32. MSN Nick
  33. MSN Names
  34. Cool MSN Emoticon
  35. Urdu
  36. Urdu Jokes
  37. Urdu Dictionary
  38. Urdu Poetry
  39. Automobile
  40. Cars
  41. New Cars
  42. Food
  43. Kitchen
  44. Cell Phone
  45. Free Mobile Game
  46. Free Mobile Wallpapers
  47. Mobile Phone Secret Code
  48. Free Web SMS
  49. Free Worldwide Sms
  50. Islam Way
  51. Home Interior Decoration
  52. Health And Beauty Tip
  53. Latest Tech News
  54. Kitchen Remodeling
  55. Free E Greeting Card
  56. Know Heart
  57. Palmistry Line
  58. Make Money Online
  59. Myspace HTML Codes
  60. Myspace Toolbox
  61. Toyota RAV4
  62. Nokia Cell Phone
  63. Sony Ericsson Cell Phone
  64. Blackberry Phone
  65. Funny Joke
  1. MSN Avatars
  2. MSN Smileys
  3. MSN Display Pics
  4. MSN Display Pictures
  5. Pakistan Cricket Team
  6. Spicy Food
  7. Health Food
  8. Pakistan
  9. AOL Block Checker
  10. Urdu News
  11. Yahoo Web Messenger
  12. Download Yahoo Messenger
  13. Download Latest Messenger Version Yahoo
  14. Multi Yahoo Messenger
  15. Download Multi Yahoo Messenger
  16. Yahoo Emoticon
  17. Yahoo Hidden Emoticon
  18. Yahoo Avatars
  19. Yahoo Display Pictures
  20. Yahoo Animated Avatars
  21. Yahoo Smileys
  22. Free Cooking Recipe
  23. Hindu Festivals
  24. Sikh Festivals
  25. March Madness
  26. Tutorials
  27. Article of Mobile Phone
  28. Abrar Ul Haq
  29. Cricket News
  30. Latest World News
  31. Personality
  32. Emergency Phone Numbers
  33. Family Kid
  34. Online Spotlight
  35. Student Visa
  36. Download Online Game
  37. Study Abroad
  38. Immigration Law
  39. College University
  40. Web Master Tool
  41. Weather Report
  42. Funny Video Clips
  43. Funny SMS Joke
  44. Urdu SMS
  45. New Year SMS Joke
  46. Free SMS Joke
  47. AIM Block Checker
  48. City Code
  49. Find Article
  50. Dual Sim T500
  51. Asus P535
  52. Asus Cell Phone
  53. Sky Scrappers
  54. Funny Jokes
  55. History of Pakistan
  56. Government of Pakistan
  57. Lahore Resolution
  58. English Chat
  59. Online Chat Rooms
  60. Computer Wallpaper
  61. Software Downloads
  62. Samsung i710
  63. Ali Zafar
  64. Atif Aslam



Powered By : Mux Soft Inc.

© All Rights Reserved : Pakistan : Privacy Policy : Sitemaps : XML, TEXT, ROR, Google Base Feed, HTML