Viewing 15 posts - 121 through 135 (of 5,503 total)
The first issue based on your sample data: 209 usually isn't followed by 2010 but rather 309.
The "classic" gaps'n'islands will fail here since there's no consecutive pattern.
A solution could be...
August 9, 2014 at 3:17 am
Can you add the actual execution plan as well?
It displays there's only a single row estimated.
How many rows are returned "in reality"?
August 9, 2014 at 3:06 am
Expanding on Jacks solution, but eliminating the need to "hope" for @@DateFirst being either 1 or 0, here's an approach that's totally independent on the setting of @@DateFirst.
the biggest difference...
August 8, 2014 at 2:57 pm
August 8, 2014 at 11:08 am
I've seen you're using the most dangerous connection string possible.
This is absolutely the wrong way to connect to a database.
Create a SQL login limited to the database the application needs...
August 8, 2014 at 10:19 am
earlcools (8/8/2014)
the users are in the configuration file on the network website
<add name="DefaultConnection" connectionString="Data Source=xxxxx;Initial Catalog=aspnet-cxcDB-20130627224632.mdf;User ID=xxxxxx;Password=xxxxx" providerName="System.Data.SqlClient" />
<add name="CXCDBConnectionString1"...
August 8, 2014 at 8:28 am
Do both databases have the same name?
How can you connect to the DB restored on the NM (Mixed Mode or Windwos authentication only)?
In case of mixed mode: Did you add...
August 8, 2014 at 8:06 am
Looks like a "groups'n'islands" scenario with the additional challenge of overlapping groups.
Solutions for this scenario can be found here.
Side note: I'm sorry for being lazy. But without ready to use...
August 8, 2014 at 2:01 am
m.mukesh.mca2009 (8/7/2014)
Hi, eID have only unique values but ID may have duplicate values
That doesn't match the sample data you provided.
ID eID inCount outCount
41772 0 NULL NULL
10000 1033 1 7
10000 1034...
August 8, 2014 at 1:30 am
What SQL Server version do you use?
If it's SS2k8 (as indicated by the forum you posted in) it looks like an issue for Jeff's running total[/url].
Disclaimer: please make sure you...
August 7, 2014 at 9:32 am
Like I said before: Step 1 is to get the query you're looking for without the additional countries that aren't included in the result set.
Please post that query.
August 7, 2014 at 9:15 am
Also, please verify that your expected output is based on your sample data. I'd expect the current version doesn't.
August 7, 2014 at 8:29 am
Step 1:
Write the query to produce the result set you're looking for (except the countries without values).
Step 2: post that query.
Step 3:
Tell us the source tabel where we can...
August 7, 2014 at 8:09 am
I would use the following approach:
WITH cte_with_values AS
(
SELECT xxx
FROM abc INNER JOIN cde ON abc.col1=cde.col1
)
SELECT your_columns
FROM tbl_with_list_of_countries t
LEFT OUTER JOIN cte ON t.country=cte.country
The verbal description:
Within the cte calculate the values...
August 7, 2014 at 5:15 am
No I'ver reached the point where my very limited Oracle knowledge ends...
Maybe Oracle requires values for each column. Don't know.
August 6, 2014 at 6:11 am
Viewing 15 posts - 121 through 135 (of 5,503 total)