Getting Started with Adobe After Effects - Part 6: Motion Blur


Upload Image Close it
Select File

Browse by Tags · View All
SQL Server 119
#SQLServer 88
Oracle 70
#SQL SERVER 35
BRH 31
SQL Server 2012 29
denali 23
#TSQL 19
TSQL 19
C# 15

Archive · View All
October 2011 31
November 2011 30
September 2011 30
August 2011 18
December 2011 15
July 2011 13
June 2011 8
May 2012 4
April 2012 3
January 2010 3

Sql Server Scripts

Sep 14 2011 9:57PM by Niladri Biswas   

The tables that will participate in the demonstration

  1. tblPlayers
  2. tblStudents
  3. tblDept
  4. tblEmployee

Script for tblPlayers

CREATE TABLE tblPlayers
(
	PlayerID INT NOT NULL,
	PlayerFirstName VARCHAR(10),
	PlayerLastName VARCHAR(10),
	BelongsTo VARCHAR(10),
	DOB varchar(20),	
	FeePerMatch NUMERIC(7,2)
); 

Insert into tblPlayers (PlayerID,PlayerFirstName,PlayerLastName,BelongsTo,DOB,FeePerMatch) Values(1,'A','Raman','India','20/12/1984',2000);
Insert into tblPlayers (PlayerID,PlayerFirstName,PlayerLastName,BelongsTo,DOB,FeePerMatch) Values(2,'B','Kadir','India','01/01/1980',1000);
Insert into tblPlayers (PlayerID,PlayerFirstName,PlayerLastName,BelongsTo,DOB,FeePerMatch) Values(3,'C','Nadir','India','21/04/2000',3000);
Insert into tblPlayers (PlayerID,PlayerFirstName,PlayerLastName,BelongsTo,DOB,FeePerMatch) Values(4,'D','Das','India','11/11/1980',500);
Insert into tblPlayers (PlayerID,PlayerFirstName,PlayerLastName,BelongsTo,DOB,FeePerMatch) Values(5,'E','Punchkar','India','14/02/1980',12000);
Insert into tblPlayers (PlayerID,PlayerFirstName,PlayerLastName,BelongsTo,DOB,FeePerMatch) Values(6,'F','Fateman','USA','20/12/1971',22000);
Insert into tblPlayers (PlayerID,PlayerFirstName,PlayerLastName,BelongsTo,DOB,FeePerMatch) Values(7,'G','Gajani','USA','01/01/1990',999);
Insert into tblPlayers (PlayerID,PlayerFirstName,PlayerLastName,BelongsTo,DOB,FeePerMatch) Values(8,'H','Hariharan','USA','21/04/1999',7000);
Insert into tblPlayers (PlayerID,PlayerFirstName,PlayerLastName,BelongsTo,DOB,FeePerMatch) Values(9,'I','Ikat','USA','11/11/1988',5999);
Insert into tblPlayers (PlayerID,PlayerFirstName,PlayerLastName,BelongsTo,DOB,FeePerMatch) Values(10,'J','Jwar','USA','14/02/1998',7900);

Select * from tblplayers;

/*

  PLAYERID PLAYERFIRS PLAYERLAST BELONGSTO  DOB       FEEPERMATCH
---------- ---------- ---------- ---------- --------- -----------
         1 A          Raman      India      20-DEC-84        2000
         2 B          Kadir      India      01-JAN-80        1000
         3 C          Nadir      India      21-APR-00        3000
         4 D          Das        India      11-NOV-80         500
         5 E          Punchkar   India      14-FEB-80       12000
         6 F          Fateman    USA        20-DEC-71       22000
         7 G          Gajani     USA        01-JAN-90         999
         8 H          Hariharan  USA        21-APR-99        7000
         9 I          Ikat       USA        11-NOV-88        5999
        10 J          Jwar       USA        14-FEB-98        7900
*/

Script for tblStudents

CREATE TABLE tblStudents
(
	StudentID INT NOT NULL,
	StudentName VARCHAR(10),
	Marks1	INT,
	Marks2	INT,
	Marks3	INT,
	Marks4	INT
);

Insert into tblStudents (StudentID,StudentName,Marks1,Marks2,Marks3,Marks4) Values(1,'A.Raman',45,50,30,88);
Insert into tblStudents (StudentID,StudentName,Marks1,Marks2,Marks3,Marks4) Values(2,'B.Sekhar',56,84,99,100);
Insert into tblStudents (StudentID,StudentName,Marks1,Marks2,Marks3,Marks4) Values(3,'A.Raman',32,22,78,34);
Insert into tblStudents (StudentID,StudentName,Marks1,Marks2,Marks3,Marks4) Values(4,'A.Raman',58,67,11,55);
Insert into tblStudents (StudentID,StudentName,Marks1,Marks2,Marks3,Marks4) Values(5,'A.Raman',99,92,69,89);

Select * from tblStudents;

STUDENTID STUDENTNAM     MARKS1     MARKS2     MARKS3     MARKS4
---------- ---------- ---------- ---------- ---------- ----------
         1 A.Raman            45         50         30         88
         2 B.Sekhar           56         84         99        100
         3 A.Raman            32         22         78         34
         4 A.Raman            58         67         11         55
         5 A.Raman            99         92         69         89

Script for tblDept

Create Table tblDept
(DeptID Int
 ,DeptName Varchar(50)
 ,Constraint PK_DeptID Primary Key(DeptID));

 Insert Into tblDept(DeptID,DeptName) Values(1,'IT');
 Insert Into tblDept(DeptID,DeptName) Values(2,'Accounts');
 Insert Into tblDept(DeptID,DeptName) Values(3,'Finance');
 Insert Into tblDept(DeptID,DeptName) Values(4,'Research and Development');
 Insert Into tblDept(DeptID,DeptName) Values(5,'Sales');

Select * from tblDept

DEPTID DEPTNAME
---------- --------------------------
         1 IT
         2 Accounts
         3 Finance
         4 Research and Development
         5 Sales

Script for tblEmployee

Create Table tblEmployee
(EmpId Int Primary Key
,EmpName Varchar(50)
,Salary Decimal(7,2)
,DeptID Int References tblDept(DeptID)
);


Insert Into tblEmployee(EmpId,EmpName,Salary,DeptID) Values(1,'Deepak Kumar Goyal', 6000,1);
Insert Into tblEmployee(EmpId,EmpName,Salary,DeptID) Values(2,'Shashi Dayal', 5000,2);
Insert Into tblEmployee(EmpId,EmpName,Salary,DeptID) Values(3,'Amitav Mallik', 16000,1);
Insert Into tblEmployee(EmpId,EmpName,Salary,DeptID) Values(4,'Amit Ojha', 650,5);
Insert Into tblEmployee(EmpId,EmpName,Salary,DeptID) Values(5,'Sumanta Manik', 6900,3);

Select * From tblEmployee;

EMPID EMPNAME               SALARY      DEPTID
---------- -----------------	----------   ----------
         1 Deepak Kumar Goyal   6000         1
         2 Shashi Dayal         5000         2
         3 Amitav Mallik        16000        1
         4 Amit Ojha            650          5
         5 Sumanta Manik        6900         3

Tags: #SQLServer, SQL Server, TSQL, #TSQL,


Niladri Biswas
7 · 21% · 6710
2
 
0
Lifesaver
 
0
Refreshed
 
0
Learned
 
0
Incorrect



Submit

3  Comments  

  • I really didn't get what you are trying to explain in this blog post. You have created 4 tables and inserted data into them It would be good if you can write an introduction that contain what you are trying to explain the readers of the blog. Thanks for the blogpost

    commented on Sep 15 2011 5:59AM
    Hima
    31 · 6% · 1776
  • Excellent information, very good insight into this subject, I believe it is necessary to consider the issue.

    commented on Sep 19 2011 2:24PM
    juan
    2903 · 0% · 2
  • Hima, we will use this and the oracle scripts for our oracle demonstration series. It alone does not have any value.

    commented on Sep 23 2011 11:17PM
    Niladri Biswas
    7 · 21% · 6710

Your Comment


Sign Up or Login to post a comment.

"Sql Server Scripts" rated 5 out of 5 by 2 readers
Sql Server Scripts , 5.0 out of 5 based on 2 ratings
    Copyright © Rivera Informatic Private Ltd Contact us      Privacy Policy      Terms of use      Report Abuse      Advertising      [ZULU1097]