Viewing 15 posts - 316 through 330 (of 358 total)
HI if your willing to share i would love a copy of the script you mention i have SQL2005 and 2008
September 15, 2011 at 9:48 am
are you just replacing the tables on the other databases? do you need to ensure that the primary key inseted into these new tables are the same? are the DB's...
September 14, 2011 at 2:09 pm
not too sure what you mean, are you saying you have a view called dead object?
September 14, 2011 at 2:01 pm
you can also use SQL to create the BCP syntax for a batch file
BCP IN
select 'bcp %DATABASE%.dbo.'+name+' in "'+name+'.bcp" -E -n -T -S%SERVER%' from sysobjects (nolock)
where name like 'table_name%'
and...
August 13, 2011 at 2:15 pm
can you paste in your queires so we can take a look please
July 19, 2011 at 4:10 am
instead of subqueries google temp tables, i prefer to create a temp table and then innner join instead of using subqueries
however, it can depend on what you are trying to...
July 13, 2011 at 7:13 am
Hi are you looking at sub queries? for example
select col1,col2,col1
from sometable
where col1 in (select col1 from someother table
July 11, 2011 at 3:26 pm
http://coolthingoftheday.blogspot.com/2010/09/if-i-had-to-draw-circles-to-visualize.html
there you go all you need to know on joins 🙂
July 5, 2011 at 4:27 am
add in here some code to create some representative data or what data you want and i will pop you some SQL
July 4, 2011 at 10:03 am
as others say, you want to do a outer join perhaps like the below example
you can find examples on books online, w3schools etc
select column,column2,column3
from tableA tblA(nolock)
left outer join tableB tblB(nolock)...
July 4, 2011 at 6:46 am
granted it may not be but by filterting down on the 2 collum you provide that bit of SQL will get out the top row of a returned set.
can...
June 29, 2011 at 6:56 am
ys i agree 0 divided by null yeilds null, i had a simmilar issue with the same error and once i sorted out the null value the script worked fine
June 29, 2011 at 6:30 am
That error sounds like somting your calculating has a null value so you need to find out what and eliminate the null.
Do you have any representative data we can use...
June 29, 2011 at 4:34 am
Here is a start for you this will give you the highest paid per department
select Emp_Name max(Salary)
group by emp_name, Dept
June 28, 2011 at 2:36 pm
Viewing 15 posts - 316 through 330 (of 358 total)