Showing posts with label TSQL. Show all posts
Showing posts with label TSQL. Show all posts

Wednesday, September 30, 2015

New SQL Server Dev Batch from 3rdOCT 6-7AM ISD

Team,

I am pleased to inform that I am going to start new SQL Server Dev Batch on 3rd Oct.

Let us know if any one interested.
REF:


Thanks
ADMIN

Tuesday, July 28, 2015

T-SQL Developer openings @ Randstand-HYD

Randstand is looking for T-SQL Developer for one of our internal client. Please find the below details

Designation: Transact (T)-SQL Developer
Experience :2.6 to 5 yrs

Positions :05
Location : Hyderabad
Hire Type: Contract to hire

Responsibilities:
* Communicate effectively with all stakeholders to collect and understand requirements that aid in building right solutions
* Ability to write SQL queries.
* Ability to design the procedure, views & tables
* Understand business data and develop required skills to present data for business intelligence
* Nurture & Mentor junior talent in team.
* Need good co-ordination with in the team.

Knowledge/Skills/Abilities:
* Ability to understand and write SQL for complex logics
* Experience in troubleshooting highly complex technical problems.
* Good Experience on MS SQL server
* Ability to identify areas of improvement in physical design/SQL Queries to achieve performance and stability.
* Good experience in database Design and performance.
* Have exposure to Agile methodologies. Ideal candidate has worked in projects delivered in Agile fashion is an added advantage.
* Exposure towards source control tools like Git and/or Bitbucket is an added advantage.

If you are interested please share your updated profile to ravikumar.t@randstad.in

Regards.,
SQL SRINIVAS

Openings for SQL developer in a MNC(Pune)-MSBI(SSIS,SSRS)

Greetings from Datamatics!!

Needed Any ID Proof scan copy with the below details

The candidate will be Permanent with Datamatics Software solution A level 5 company ISO 9001:2000, and ISMS BS7799 certifications and will be working on our client project in client place.

Skill: SQl Developer(SSIS,SSRS)
Exp :- 1-3years
Work location: Pune

Please find the Job Detail:
Position :-
Work Location:-
Experience:-
Job Description :
Note : if your selected need to join in 15days if its possible than apply for the above position
Submittal Application form :

(1) Name(With Full Form of all Initials in your name):
(2) This position is a permanent Position with Datamatics and you will be working on the payroll of Datamatics for our client (yes/No):
(3) Current Location :
(4) Are you ready for relocation to(yes/No): .If yes which are your 3 preferred locations
(5) Are you working as a permanent employee or a contractor :
(6) Notice period :
(7) Is Notice period Negotiable (yes/No):
(8) Current CTC:
(9) Expected CTC :
(10) Total years of experience:
(11) Relevant Years of experience :
(12) Availability for F2F Interview :
(13) Date Of Birth:
(14) Passport (yes/No) :
(15) Alternate Contact No:
(16) Pancard Number :

Send All the above details to yamini.arani@datamatics.com

Thanks
SQL SRINIVAS

Engineers - MSBI Stack


Experience required for the Job: 2 - 5 years
Annual Salary of the Job: 0.0 - 15.0 Lacs
Job Location: Hyderabad

Dear Description:

Strong exp in MS BI Stack
Specific exp in tsql and ssis

Do go through www.imaginea.com and www.pramati.com
Contact Person:  rupa
Emai id: rupa.b@pramati.com

Thanks
SQL SRINIVAS

Monday, July 27, 2015

SQL Developer + SSRS in Hyderabad, F2F interview 1 August

HI Team,

 Next Step Services Pvt Ltd are one of the Leading recruitment firm in Delhi / NCR. They are having an urgent Opening of Software Engineer - SQL with one of our leading Fortune-500 Client in Hyderabad

    Location: Hyderabad
    Interview Date : 1st August 2015 (Saturday)

    Job Description
    Total Experience 2-5 years
    Strong experience in SQL server development.
    Good experience in SSRS.
    Notice Period- 2 Months
    Ready for Shift- 2:30 - 12:00 AM.

Contact Details:
    Surbhi Gupta
    01204807032
    surbhi.gupta@nextstephr.com

send your updated resume if you are looking for a change.
 
Thanks
SQL Srinivas

Sunday, July 19, 2015

SCHEMAs in TSQL SQL SERVER

SCHEMA:

It is nothing but a logical container Under a database or we can group a set of objects under database by using a SCHEMA.

We can able to Create objects(Tables,views,procedures,functions,triggers etc) under a SCHEMA.

Creating a SCHEMA:

We can Create a schema by using the below syntax

syntax:

CREATE SCHEMA <SCHEMA_name>

Example:

CREATE SCHEMA SALES
CREATE SCHEMA EMPLOYEE

Creating an Object Under SCHEMA:

If we cant to Create an object under SCHEMA,we need to prefex the SCHEMA name before the object name as follows.

CREATE table SALES.TEST
 (
id int,
 name varchar(20)
 )

So we created the table called TEST under the SALES SCHEMA.

SELECT  * FROM TEST
--If  we used the above statement we will get an error that the object is not available,As the SQL server will look for a table under default SCHEMA dbo.So we need to write a Query as below.

SELECT  * FROM SALES.TEST

Like this we can Create any object under this SCHEMA and we can use it with SCHEMA.object Name where ever it requires.

Altering a SCHEMA:
we can Move an object from one SCHEMA to another by following the below syntax.

Syntax:

 ALTER SCHEMA <target_SCHEMA_name>
 transfer <source_SCHEMA_name.objectName>

example:

 ALTER SCHEMA SALES transfer dbo.dept

In the above example we are transfering the table dept from dbo SCHEMA to SALES SCHEMA,so that complete object willmove to SALES SCHEMA.

SELECT  * FROM  DEPT
 --in valid

SELECT  * FROM  SALES.DEPT
 --valid

Example 2:
Creating a view called VIEW1 in dbo SCHEMA as follows

 CREATE view VIEW1
 as
 select top 2 * from books

 SELECT  * FROM VIEW1

Transfering the view from dbo SCHEMA to SALES SCHEMA as folows

ALTER SCHEMA SALES transfer dbo.VIEW1

 SELECT  * FROM VIEW1
--in valid(throws an error)

 SELECT  * FROM SALES.VIEW1

Example 3:
Transfering an object from SALES SCHEMA to dbo SCHEMA(default)

ALTER SCHEMA dbo transfer SALES.TEST

 SELECT  * FROM TEST

 Droping a SCHEMA:

We can Drop the SCHEMA by using the below syntax

syntax:

 DROP SCHEMA <SCHEMA_name>

Example:

 DROP SCHEMA SALES
 --Cannot Drop SCHEMA 'SALES' because it is being referenced by object 'dept'.

NOTE:
 If we want to Drop a scehma we need to Drop all the objects unedr that SCHEMA or transfer all the obects to other scehmas and make the SCHEMA as empty then only we  can Drop a Schema.

I have two objects under the SALES Schema so i am unable to Drop the Schema.

 DROP view SALES.VIEW1
ALTER SCHEMA dbo transfer SALES.dept

I dropped one object under that Schema and trnsfered one object to another Schema and made the Schema empty now we are good to drop a Schema.

DROP SCHEMA SALES

Let me know if you need any more information on this.

Thanks
SQL SRINIVAS

Saturday, July 18, 2015

Working with Variables in TSQL Programming

Variable:

A variable is nothing but a memory location whch can hold a value inside it.At any point of time we can have one value in the varibale.

We can use that varibale's value as part of our program logic implementation and we can override the value with new value if required.

We have two types of variables,those are

1)Local variables: These are declared by developers the scope of the varibale is withing that block of code.It will be preceding with single @

2)Global Variables:These are already declared by SQL SERVER,developers can use these variables,the scope of the variables are Global. These varibales can identifyable with @@
  
Ex: @@Fetch_status

Working with Local variables:

Declaring a variable in SQL Server:

Syntax:

DECLARE @<variable_name> datatype[size]

Example:

DECLARE @a int
DECLARE @name varchar(20)
DECLARE @tdate Date

We can delcare multiple variables in a single statement as follows

DECLARE @a int
                    ,@name varchar(20)
                    ,@tdate Date

2)How to Assign a value to a variable

To assign a static value:

   SET @<ariable_name>=value/expression

   SET @a=100
   SET @tdate=GETDATE( )
   SET  @name='SRINIVAS'

To assign a values from table:

We can bring the values from table and assign it a variables by using the below approach

   SELECT @variable_name1=col1(col1_value),@variable_name2=col2(col2_value)
   from <remaining SELECT statement>

 Example:

 DECLARE @tename varchar(20)
 DECLARE @tesal int
 DECLARE @teno int
 SET @teno=1003
 SELECT @tename=ename,@tesal=esal from employee where eno=@teno

3)Printing a value:

From program we can print anything with the help of print statment.

PRINT <statement>

PRINT 'srinivas'

Example 1:

DECLARE @a int
DECLARE @b int
SET @a=100
SET @b=200
PRINT @a+@b

We can optimise the above statement as bellow ways

Method 1:

DECLARE @a int ,@b int
SET @a=100
SET @b=200
PRINT @a+@b

Method 2:
DECLARE @a int=100
DECLARE @b int=200
PRINT @a+@b

Method 3:

DECLARE @a int=100,
                   @b int=200
PRINT @a+@b

All the above four statements are correct and represents the same.

Example 2

Write a Query which will print the empname and salary of a given number.

DECLARE @tename varchar(20)
DECLARE @tesal int
DECLARE @teno int
SET @teno=1003
SELECT @tename=ename,@tesal=esal from employee where eno=@teno
PRINT @tename
PRINT @tesal

Way 2:

DECLARE @tename varchar(20)
                   ,@tesal int
                  ,@teno int=1003
SELECT @tename=ename,@tesal=esal from employee where eno=@teno
PRINT @tename
PRINT @tesal

Let me know if you need any more information on this.

Thanks
SQL SRINIVAS

Saturday, June 20, 2015

Priting a pyramid by using TSQL

Hi Team,

I have been observed that many of the interviews people are asking printing the pyramid like below by using SQL server.

 
So I am giving a script to that one

DECLARE @lclMaxLevel INT=5
DECLARE @lclPrintCount INT =0

WHILE @lclMaxLevel > 0
  BEGIN
      PRINT Space(@lclMaxLevel)
            + Replicate('*', @lclPrintCount)
            + Replicate('*', @lclPrintCount+1)

      SET @lclMaxLevel=@lclMaxLevel - 1
      SET @lclPrintCount=@lclPrintCount + 1
  END

Output as follows:

Let me know if you have any doubts on this.

Thanks
SQL Srinivas

Wednesday, June 10, 2015

***New MS SQL SERVER Development Batch from 16th June***

Team,

We are going to start a new batch for MS SQL SERVER development(TSQL &TSQLProgramming) on 16th June at 10-11 PM ISD.

Please find the below Course content

MS SQL SERVER DEVELOPMENT COURSE CONTENT

let your friends/relatives/colleagues, near and  dear know if any one are in need the same.

Thanks
ADMIN

Saturday, April 11, 2015

New SQL server Batches Information

HI Team,

Hope you people are doing well.

We are pleased to inform that we are going to start a new batches for SQL servevr development(TSQL ad TSQL programming)(SQl and Pl/SQl) from
Today-11th-Aprl-15--(11PM-12PM ISD )
Monday(13 th April-15--(7-8AM ISD)
Let me know if any one of you/your friends/relatives/colleagues interested.
Thanks
Admin

Sunday, December 28, 2014

SQL Server 2014 Course Content

SQL Server 2014 Training Course Overview
SQL Server Training Course Prerequisite
  • No Prior Experience is required
SQL Server Training Course Duration
  • 40 Working days, daily one hour
SQL Server 2014 Training Course Overview

Introduction To DBMS
·         File Management System And Its Drawbacks
·         Database Management System (DBMS) and Data Models
·         Relationships in Sql Server

Introduction To SQL Server
·         Advantages and Drawbacks Of SQL Server Compared To Oracle And DB2
·         SQL Server Installation.
·         Connecting To Server
·         Server Type
·         Server Name
·         Authentication Modes
·         Sql Server Authentication Mode
·         Windows Authentication Mode
·         Login and Password
·         Sql Server Management Studio and Tools In Management Studio
·         Object Explorer
·         Object Explorer Details
·         Query Editor
TSQL (Transact Structured Query Language)
Introduction To TSQL
·         History and Features of TSQL
·         Types Of TSQL Commands
·         Data Definition Language (DDL)
·         Data Manipulation Language (DML)
·         Data Query Language (DQL)
·         Data Control Language (DCL)
·         Transaction Control Language (TCL)

Data Definition Language(DDL)
·         Database
·         Creating Database
·         Altering Database
·         Deleting Database
·         Constrains
·         Procedural Integrity Constraints
·         Declarative Integrity Constraints
·         Not Null, Unique, Default and Check constraints
·         Primary Key and Referential Integrity or foreign key constraints
·         Delete and update Rules in Foreign Key
1.     On update/delete no action
2.     On update/delete cascade
3.     On update/delete set null
4.     On update/delete set default

·         Data Types In TSQL
·         Table
·         Creating Table
·         Altering Table
·         Dropping Table
Data Manipulation Language(DML)
·         Insert
·         Identity
·         Creating A Table From Another Table
·         Inserting Rows From One Table To Another
·         Update
·         Computed Columns
·         Delete
·         Truncate
·         Differences Between Delete and Truncate
·         Merge Statement
Data Query Language (DQL)
·         Select
·         Where clause
·         Order By Clause
·         Distinct Keyword
·         Isnull() function
·         Column & table aliases
Operators:
·         Arithmetic operators
·         comparison operators
·         range operators
·         list operators
·         string /pattern matching operator
·         unknown value operators
·         logical operators
·         set operators
Built In Functions
·         Scalar Functions
·         Numeric Functions
·         Character Functions
·         Conversion Functions
·         Date Functions
Aggregate Functions
·         Convenient Aggregate Functions
·         Statistical Aggregate Functions
·         Group By and Having Clauses
·         Super Aggregates
·         Over(partition by …) Clause
·         Ranking Functions
v  Rank()
v  Dense_rank()
v  Row_Number()
v  Ntile(n)
Table Expressions

·         Derived tables
·         Common Table Expressions (CTE)
Top n Clause
Joins
·         Inner Join
·         Equip Join
·         Non-Equi Join
·         Self Join
·         Outer Join
·         Left Outer Join
·         Right Outer Join
·         Full Outer Join
·         Cross Join
Sub Queries
·         Single Row Sub Queries
·         Multi Row Sub Queries
·         Any or Some
·         ALL
·         Nested Sub Queries
·         Co-Related Sub Queries
·         Exists and Not Exists
Indexes
·         Clustered Index
·         NonClustered Index
·         Create , Alter and Drop Indexes
·         Creating indexed view
·         Using Indexes
Security
·         Login Creation
·         SQL Server Authenticated Login
·         Windows Authenticated Login
·         User Creation
·         Granting Permissions
·         Revoking Permissions
Schema
·         Creating a schema
·         Creating an object under schema
·         Alterring a schema
·         Droping a schema
·         Providing security to schemaa
Views
Purpose Of Views
·         Creating , Altering and Dropping Views
·         Simple and Complex Views
·         Updating(insert/delete/update)  the views
·         With check option
·         Encryption and Schema Binding Options in creating views
Transaction Management-(TCL)
 Introduction
·         Explicit Transactions
·         Begin Transaction
·         Commit Transaction
·         Rollback Transaction
·         Save Transaction
·         Implicit Transactions
TSQL Programming (like PL/SQL in Oracle)
·         Drawbacks Of TSQL that leads to TSQL Programming
·         Introduction To TSQL Programming
·         Control statements In TSQL Programming
·         Conditional Control Statements
·         If
·         Case
·         Looping Control Statements
·         While
Cursors
·         Working With Cursors
·         Types Of Cursors
·         Forward_Only and Scroll Cursors
·         Static, Dynamic and Keyset Cursors
·         Local and Global Cursors
·         Cursors with functions, procedures and triggers(will be dealt at the end)
Stored Sub Programs
·         Advantages Of Stored Sub Programs compared to Independent SQL Statements
·         Stored Procedures
·         Creating , Altering and Dropping
·         Optional Parameters
·         Input and Output Parameters
·         Permissions on Stored Procedures
·         User Defined Functions
·         Creating, Altering and Dropping
·         Types Of User Defined Functions
·         Scalar Functions
·         Table Valued Functions
·         Inline Table Valued Functions
·         Multi Statement Table Valued Functions
·         Permissions On User Defined Functions
·         Diff between fucntions and procedures
·         Triggers
·         Purpose of Triggers
·         Differences Between Stored Procedures and User Defined Functions and Triggers
·         Creating, Altering and Dropping Triggers
·         After Triggers
·         Magic Tables
·         Instead Of Triggers
·         Updating the complex view using instead of triggers
·         Exception Handling
·         Implementing Exception Handling
·         Try –catch mechanism
·         Adding and removing User Defined Error Messages To And From SQL Server Error Messages List
·         Raising Exceptions Manual
·         Generating Errors through throws key word
Normalization
·         First Normal Form
·         Second Normal Form
·         Third Normal Form
·         Boyce-Codd Normal Form

Backup and Restore Of Database
Attach and Detach of Database
Thanks
Srinivas
 9059361460
srinivas.r.salesforce@gmail.com