Stack Exchange
log in
help
Stack Exchange Data Explorer
Home
Queries
Users
Compose Query
Sarath Avanavu
Registered User
member for
3569 days
seen
Apr 22 '15 at 17:15
location
edited
favorite
recent
CREATE TABLE #Teacher(TchrId VARCHAR(3), TeacherName VARC...
CREATE TABLE #Teacher(TchrId VARCHAR(3), TeacherName VARC...
CREATE TABLE #TEMP(sales_Id INT, product_id INT, ...
CREATE TABLE #CustomerDetails (CustomerID INT, CustCo...
CREATE TABLE #CustomerDetails (CustomerID INT, CustCo...
SAMPLE
Dynamic sql
DECLARE @table TABLE ( [Group] CHAR(1) , Value1 INT , ...
Cross Apply
Pivot
CSV with COALESCE
CSV with QUOTENAME
Wrong result in Coalesce
Replace NULL with zero in static pivot
Replace NULL with zero in dynamic pivot
1
2
3
next
Data Explorer works best with JavaScript enabled