Viewing 15 posts - 12,841 through 12,855 (of 26,486 total)
selvakumar.sms (4/16/2012)
how to access multi user in remote desktop connection of ms server.plz give any idea. i want to connect more than one person...
April 16, 2012 at 10:31 am
sqlbi.vvamsi (4/16/2012)
CREATE TABLE [dbo].[test](
[a] [numeric] NULL,
[date] NULL
) ON [PRIMARY]
GO
ab
11981-08-14
21985-10-03
32012-04-13
select SUM(a) from test group by b having b=CONVERT(date,GETDATE())--This returns nothing
select SUM(a) from test where b=CONVERT(date,GETDATE())--This returns...
April 16, 2012 at 10:21 am
Phil Parkin (4/16/2012)
ewhitaker (4/16/2012)
ok, never seen that structure before haha..so would i just form the query around everything you pasted? and whats with the ";" at the beginning
Read up on...
April 16, 2012 at 10:17 am
Jeremy... (4/16/2012)
CASE WHEN CLPCR.LicenseExpirationDate IS NOT NULL THEN CAST(CLPCR.LicenseExpirationDate AS DATE)
WHEN CLPCR.LicenseExpirationDate IS NULL THEN 'Perpetual' END AS 'Expiration'
When executing, i get...
April 16, 2012 at 10:10 am
hbtkp (4/16/2012)
i just want to know ,how you select max (date)max is not working as date is datetime
Really? Try running this code:
WITH TestData(dates) AS (
SELECT
...
April 16, 2012 at 10:05 am
memymasta (4/16/2012)
Hmm is it an absolute must to use the virtual tables u and uf?
Those are table alaises, and I highly recomment using them. In fact, I should have...
April 16, 2012 at 10:01 am
sqlbi.vvamsi (4/16/2012)
select sum(a) from dbo.test group by b...
April 16, 2012 at 9:58 am
hbtkp (4/16/2012)
agai my req has changenow i need to calculate maximum date and put it into local variable
Your requirements may have changed, but ours hasn't. Following the link in...
April 16, 2012 at 9:56 am
Rob Schripsema (4/16/2012)
April 16, 2012 at 9:54 am
sqlbi.vvamsi (4/16/2012)
I've a table with a numeric and date columns. Assuming a,b are the column names, I'm writing a query which isn't returning any rows. Below is the query
select *...
April 16, 2012 at 9:46 am
Something like this:
CREATE TABLE #users(id INT PRIMARY KEY, selection INT, period INT)
INSERT #users VALUES (1, 1, 1)
INSERT #users VALUES (2, 1, 2)
INSERT #users VALUES (3, 1, 3)
INSERT #users VALUES (4,...
April 16, 2012 at 9:40 am
hbtkp (4/16/2012)
it snot running total,if you see it carefully,its not just adding values. sometimes its adding 1 ,sometimes it minus 1
Really, then show us how the calculation is being made....
April 16, 2012 at 9:28 am
I don't see a column #users.number in your definition shown above.
April 16, 2012 at 9:25 am
hbtkp (4/16/2012)
NUMBER CUMULATIVE
...
April 16, 2012 at 9:05 am
Shouldn't have any issues since both are running SQL Server 2008 R2. You may want to be sure they are both a the same build level.
April 16, 2012 at 8:59 am
Viewing 15 posts - 12,841 through 12,855 (of 26,486 total)