Viewing 15 posts - 13,321 through 13,335 (of 13,838 total)
Watch out for the possibility that INSERT statements can add a row that has its clustered index value 'between' existing entries - possibly forcing a major rewrite of data on...
September 6, 2005 at 3:13 pm
Hi Ray, just a quick comment on your response - your final query will, in fact, only return those orders that are placed at the same millisecond as the query...
September 5, 2005 at 4:13 pm
I would have thought that the GROUP BY clause would ensure that city5 would not be displayed 3 times - ** please test and post the results along with the...
September 5, 2005 at 6:12 am
I'm having a bit of trouble working out what you want. Is it something like this?
select t1.city, t1.name, sum(no_of_games)
from test1 t1
join test2 t2 on t1.city = t2.city
join test3...
September 5, 2005 at 4:21 am
By "reflexive", do you mean a self-join? If so, I agree with Phill Cart's response - just add the table again and Access will create an alias for it.
August 29, 2005 at 9:23 am
There is - use the SQL pane and write the query yourself. Is that what you mean?
August 29, 2005 at 3:07 am
It is possible to restore without the log file - SQL Server should create a new log for you. Are you working in EM or QA and exactly what is...
August 28, 2005 at 3:10 am
So you want to display the campaign count for the partner on the same row? This is untested, but along the right lines - you will see that I have...
August 28, 2005 at 3:08 am
Try this:
SELECT MAX(LEN(isnull(COLUMN1,''))+LEN(isnull(COLUMN2,''))+LEN(isnull(COLUMN3,''))) FROM TABLE1
August 27, 2005 at 4:03 am
It's a simple enough matter to put triggers on tables that you want to be able to do this for - to record 'date last updated' and 'updated by' for...
August 27, 2005 at 3:09 am
Suggest you import the spreadsheet into SQL Server "as is" and then normalise. Your general approach should work though:
insert into tblNormalised(date, offer, receipt)
select date1, offer1, receipt1 from imported union
select date2,...
August 26, 2005 at 6:40 pm
Surely the time difference here is due to the fact that SELECT INTO is writing to disk and SELECT is not? How much data are we talking about?
August 26, 2005 at 4:14 pm
You need to switch context as part of the sp_executesql statement. Try this:
declare @strSQL nvarchar(1000)
set @strSQL = N'use tempdb '
set @strSQL = @strSQL + N'select top 10 * from information_schema.columns'
exec...
August 26, 2005 at 2:01 pm
Noticed that col_Fname is ambiguous, so you need to qualify it:
SELECT DISTINCT r.col_Fname
FROM tbl_Reports r left join tbl_Employees e
ON r.col_Fname = e.col_Fname
WHERE e.col_Fname is null
If that doesn't work, there's something you're...
August 26, 2005 at 8:23 am
Or this way:
SELECT DISTINCT col_Fname
FROM tbl_Reports r left join tbl_Employees e
ON r.col_Fname = e.col_Fname
WHERE e.col_Fname is null
Using != in a join is an advanced technique that will rarely be required. I...
August 26, 2005 at 8:04 am
Viewing 15 posts - 13,321 through 13,335 (of 13,838 total)