Viewing 15 posts - 16 through 30 (of 1,061 total)
I just look at the table, it has 12 FK and 1 PK and 11 non unique non cluster index.
February 19, 2016 at 7:09 am
Yes I put in Option recompile and still ran a long time.
February 19, 2016 at 7:06 am
The table has 2357880092 number of records.
February 18, 2016 at 2:32 pm
We purchase the software for our company and we cannot just update the database and create index.
February 18, 2016 at 7:59 am
The table is not partition and there is no index on date.
February 18, 2016 at 7:57 am
I guess I should say each row is fixed length based on the first 4 character.
Each row - the first 4 character is segment type, then next 3 character...
April 23, 2015 at 8:40 am
This is not a contract to hire position. I asked the employer if they will open a position.
They never have a SQL database developer here before, I...
November 5, 2014 at 10:08 am
I came up with this, not as good as Sean.
SELECT a.userid, u.NAME
FROM ( SELECT a.userid
FROM (SELECT u.*,
ROW_NUMBER() OVER(PARTITION BY u.userid ORDER BY u.colorid ) AS Row
FROM UserColor u ) a
INNER...
June 27, 2014 at 1:26 pm
Here is the question.
I need to get the user who can access all the color.
That means the result is userid 3.
CREATE TABLE Color (colorid INT, NAME VARCHAR(100))
INSERT INTO Color(Colorid, Name)
SELECT...
June 27, 2014 at 12:36 pm
I kind of figured it out too. More complicated.
SELECT a.userid
FROM (SELECT u.*,
ROW_NUMBER() OVER(PARTITION BY u.userid ORDER BY u.colorid ) AS Row
FROM UserColor u ) a
INNER JOIN (SELECT COUNT(*) cnt...
June 26, 2014 at 11:01 am
Please see
LEFT() is a function it would result in an index scan where like '% %' would result in index seek which is more efficient.
July 13, 2012 at 10:38 am
I don't understand why there is such a big difference in salary when your MIS director thought BI specialist is much harder to get than SQL developer. :unsure:
May 9, 2012 at 6:50 am
I thought it supposed to be 300.
What number is good and what number is bad?
I don't understand the number meant. Can you explain?
Thanks
October 26, 2011 at 8:12 am
I used
select *
from @table
INNER JOIN table1
INNER JOIN table2
WHERE...
October 21, 2011 at 9:16 am
Viewing 15 posts - 16 through 30 (of 1,061 total)