• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
SQL tutorial for beginners | Basic SQL Commands | SQL Syntax
 

SQL tutorial for beginners | Basic SQL Commands | SQL Syntax

on

  • 1,134 views

In this article you will learn about basic details of SQL. It is about SQL Tutorials for Beginners | SQL Commands | SQL Syntax | SQL interview questions ...

In this article you will learn about basic details of SQL. It is about SQL Tutorials for Beginners | SQL Commands | SQL Syntax | SQL interview questions

For more details on this topic please visit: http://www.speed4career.com/blog/

Statistics

Views

Total Views
1,134
Views on SlideShare
1,134
Embed Views
0

Actions

Likes
0
Downloads
27
Comments
4

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel

14 of 4 previous next Post a comment

  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
  • It is a very good step by step content for beginners
    Are you sure you want to
    Your message goes here
    Processing…
  • Awesome for the laymen.............
    Are you sure you want to
    Your message goes here
    Processing…
  • It is a very content for SQL traning.. Waiting for next module. It is very helpfull for a student.
    Are you sure you want to
    Your message goes here
    Processing…
  • In this article you will learn about basic details of SQL. It is about SQL Tutorials for Beginners | SQL Commands | SQL Syntax | SQL interview questions
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    SQL tutorial for beginners | Basic SQL Commands | SQL Syntax SQL tutorial for beginners | Basic SQL Commands | SQL Syntax Presentation Transcript

    • [SQL Tutorial – Part - 1] by [Speed4Career]
    • About Us:  In modern days economic system the most valuable asset is knowledge. Day by day increasing competition and invention of cutting edge technologies are the results of revolution in the global Educational system and use of process oriented learning environment.  This process oriented learning environment is essential for the modern corporate world. Speed4career.com understands the nature of this revolution.  We are committed to this process oriented learning environment and set our goals to help in creating a better modern corporate world, more over a better world for our future generation.
    •  In this quest for creating a process oriented learning environment www.speed4career.com introducing a new module – Tutorial.  In this “Tutorial” module we are discussion about the BEGINNERS lesson for the technology related subjects.  All the Tutorials are created by the INDUSTRY EXPERTS working on the same field for years.  For more details please visit: www.speed4career.com/blog
    • SQL for Beginner – PART I  About SQL:  Collection of organized data called as DATABASE. When we define, create, query and update the database through software then that system known as “Database Management System” or “DBMS”. When we want to manage all this things through programming language then we use “SQL” or “Structured Programming Language”.  SQL was initially developed at IBM by Donald D. Chamberlin and Raymond F. Boyce.
    •  Data Definition Language:  Whenever you want to build or destroy or altered any structure of database object at that time whatever SQL commands we follow those are inside of Data Definition Language’s scope.  SQL Commands: 1. Create – It will create an object in database. 2. Alter – It will alter required object in database. 3. Drop – It will destroy the whole structure of an object in database.
    •  Syntax: 1. CREATE table <table_name> (column_name datatype,.....column_name datatype); 2. ALTER table <table_name> add/modify/drop/rename column_name datatype; 3. DROP table <table_name> These are the examples of basic DDL SQL commands. In advance SQL tutorial we will give lots of other example. So by this SQL command first we create a table named “Speed4career_User_Details” which has 5 columns.
    •  Command: CREATE TABLE Speed4career_User_Details( User_ID VARCHAR2(10), User_Name VARCHAR2(200), Address VARCHAR2(1000), City VARCHAR2(100), Postal_Code Number, Country VARCHAR2(100), Phn_number VARCHAR2(20)); [Note: - We are following Oracle SQL syntax for this tutorial. SQL is NOT case sensitive] Suppose you want to change the column name “Postal_code” to “Zip_code” of this table then you have to use ALTER command to do this.
    •  Command: ALTER TABLE Speed4career_User_Details RENAME Postal_code TO Zip_code; After change this now you want to add another column “Special_User” in this table.  Command: ALTER TABLE Speed4career_User_Details ADD Special_User VARCHAR2(1); Now after doing this you feel that you want to change the table name itself and want to give new table name as “Speed4career_Master_Details”.
    •  Command: ALTER TABLE Speed4career_User_Details RENAME TO Speed4career_Master_Details; There are several more things you can do with ALTER command. Now you want to drop this table because you don’t need this table anymore. So which command you have to use? Exactly “DROP” command.  Command: DROP TABLE Speed4career_User_Details;
    • • SQL INTERVIEW QUESTIONS: 1. What is SQL? What is the full form of SQL? 2. Which is the subset of SQL commands used to manipulate Oracle Database Structures? 3. Example of CREATE TABLE. 4. What is the use of DROP option in the ALTER TABLE command? For more details please visit: http://www.speed4career.com/blog/sql-for-beginne