Viewing 15 posts - 31 through 45 (of 85 total)
yudy.varma (9/1/2012)
ex :i have two parameters
1)item
2)option(multivalued - ven,itm,qty) and values are (venr,itm,qty).
i have a dataset...
September 13, 2012 at 6:57 am
You have to choose scope of Total value.
September 13, 2012 at 6:29 am
rramsey (7/29/2012)
July 29, 2012 at 10:49 pm
vinu512 (4/14/2012)
Divya Agrawal (4/14/2012)
RexHelios (4/13/2012)
I have the following table...
DECLARE @EmploymentHistory TABLE (
CompanyName VARCHAR (100), EmployeeName VARCHAR (100),
EmploymentBeginDate DateTime, EmploymentEndDate DateTime)
INSERT @EmploymentHistory (CompanyName, EmployeeName, EmploymentBeginDate, EmploymentEndDate)
SELECT 'Jack and Jill...
April 16, 2012 at 3:03 am
RexHelios (4/13/2012)
I have the following table...
DECLARE @EmploymentHistory TABLE (
CompanyName VARCHAR (100), EmployeeName VARCHAR (100),
EmploymentBeginDate DateTime, EmploymentEndDate DateTime)
INSERT @EmploymentHistory (CompanyName, EmployeeName, EmploymentBeginDate, EmploymentEndDate)
SELECT 'Jack and Jill Company', 'John Doe',...
April 14, 2012 at 12:15 am
itskanchanhere (4/3/2012)
Hi Divya,even through SQl cmd I will have to connect to database for which Use dn_name ; go will be needed...
No, its a command prompt cmd which need to...
April 3, 2012 at 5:05 am
You can add a stored procedure in your database which will have all the content of the script. Then you can provide the stored proc name to the deployment team...
April 3, 2012 at 2:12 am
Koen Verbeeck (4/3/2012)
nilesh-652355 (4/2/2012)
I have following records....
CompanyID.......Quantity......Sales Year
123.................12..............2011-12
123.................34..............2011-12
123.................12..............2011-12
123.................15..............2012-13
123.................12..............2012-13
123.................12..............2012-13
Now, I want to write a view so I can get the following output
with sum of...
April 3, 2012 at 2:06 am
Do you require sum of quanity on sale year? in your example output you have two sale year rows..
You can try the query:
select customerid,sum(quantity) quantity, saleyear
from tbl
group by customerid, saleyear
If...
April 3, 2012 at 12:04 am
JimS-Indy (12/16/2010)
USE [AssetLending]
GO
/****** Object: View [dbo].[AssetsWithCurrentTrans] Script Date: 12/16/2010 11:24:57 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER VIEW [dbo].[AssetsWithCurrentTrans]
AS
SELECT dbo.Asset.AssetID, dbo.Asset.AssetDescription, dbo.Asset.AssetCategory, dbo.Asset.AssetCondition,...
January 5, 2011 at 3:53 am
danajao (9/7/2010)
September 8, 2010 at 2:48 am
danajao (9/7/2010)
September 8, 2010 at 2:40 am
lmu92 (2/26/2010)
You could use dynamic SQL ,meaning: build the SELECT statement as a string and call that with sp_executesql. See BOL for details.
Thanks again.
I have already written in my first...
February 26, 2010 at 3:55 am
Thanks Lutz.
Your solution i have already used for less number of columns.
There are lots of columns around 100's in the table which i need to query. Case will be...
February 26, 2010 at 3:01 am
Viewing 15 posts - 31 through 45 (of 85 total)