Viewing 15 posts - 601 through 615 (of 2,452 total)
GA_SQL (6/21/2016)
empidd1 d2d3d4d5d6d7d8d9d10d11d12d13d14d15d16d17d18d19d20d21d22d23d24d25d26d27d28d29d30d31WorkingDaysTotalEfficiencyAverage509700000000000000000008890000000000001780
i want... June 21, 2016 at 7:07 am
USE [tempdb]
CREATE TABLE [dbo].[#Holidaymaster](
[Holiday_ID] [int] NULL,
[Holiday] [varchar](50) NULL,
[Date1] [datetime] NULL
) ON [PRIMARY]
GO
INSERT [dbo].[#Holidaymaster] ([Holiday_ID], [Holiday], [Date1]) VALUES (1, N'New Year', '2016-01-01' )
INSERT [dbo].[#Holidaymaster] ([Holiday_ID], [Holiday], [Date1]) VALUES (2, N'Pongal', '2016-01-16'...
June 20, 2016 at 8:26 am
ganapathy.arvindan (6/20/2016)
I Tried with union as well, but while adding the column name count(hdL) it shows error..Please reply
show what code you tried (I cant see your screen :-)) and...
June 20, 2016 at 7:57 am
ganapathy.arvindan (6/20/2016)
WITH yourcalendar1 as (SELECT DATEADD(dd, rn - 1, @sd) thedate, 'D' + CAST ((rn )...
June 20, 2016 at 7:43 am
as a start
SELECT COUNT(hdL)
FROM #temp
WHERE ...
June 19, 2016 at 7:58 am
rb76 (6/18/2016)
thanks for the answers. But I think I didn't explain my question not good enough.
The table contains about 30000 lines. So I think I cannot make my query with...
June 18, 2016 at 11:27 am
ByronOne (6/17/2016)
I have a table in SQL called dbo.ACTIVITIES which records the time it takes to complete a certain activity.
The time taken to perform the activity is recorded in...
June 17, 2016 at 9:37 am
did you manage to solve this successfully ?
June 17, 2016 at 7:49 am
rightontarget (6/16/2016)
Not really, please explain
suggest you research "MS SQL Integer division"
heres some code to play around with
CREATE TABLE #mytable(
cnt INTEGER NOT NULL
,total...
June 16, 2016 at 2:51 pm
futhre to my previous post.....care to fully explain what you mean by this:
OUPUT:
lngOrderID, lngBillingStepID, lngBillingStepID, lngSubBillingStepID =1, lngSubBillingStepID =2, lngSubBillingStepID=3
I would like the lngSubBillingStepID to show their orginal value of...
June 16, 2016 at 1:52 pm
maybe.....
SELECT id, cnt, total, cnt*1.0/total
FROM <yourtable>
June 16, 2016 at 11:19 am
what are the datatypes for columns "cnt" and "total"?
what are you expected results?
June 16, 2016 at 11:16 am
just a word to the wise...and I am sure you already know this....but before doing any calculations be sure you undestand what UOM (unit of measure) you are dealing with...
June 16, 2016 at 8:50 am
David92595 (6/15/2016)
CREATE TABLE [dbo].[tblOrderBillingSteps](
[OrderBillingStepID] [int] IDENTITY(1,1) NOT NULL,
[lngOrderID] [int] NULL,
[lngBillingStepID] [int] NULL,
[lngSubBillingStepID] [int] NULL,
CONSTRAINT [PK_OrderBillingSteps] PRIMARY KEY CLUSTERED
INSERT INTO...
June 15, 2016 at 12:57 pm
CREATE TABLE #ATableLike(
ID INTEGER NOT NULL
,TS INTEGER NOT...
June 15, 2016 at 12:35 pm
Viewing 15 posts - 601 through 615 (of 2,452 total)