Viewing 15 posts - 76 through 90 (of 187 total)
The way your query is written is possible and works. However, it's not the most versatile. I would suggest to you, you join tables using INNER/OUTER/FULL JOIN. I rewrote your...
March 13, 2009 at 5:23 am
Alberto.Omini (3/13/2009)
HELP ME PLEASE !!!!!!!
I have a table with 5 fields with this value
FIELD A ...
March 13, 2009 at 4:12 am
Now a much more useful question form, both in interviews and for SSC (IMHO), is "When I run this in SSMS, I get this. WHY?" You just have...
March 13, 2009 at 3:30 am
Added to my last post:
I don't know the english postal code very well, and also not your data of course. So I only suggest all your postal codes have...
March 11, 2009 at 9:23 am
sam.marsden (3/11/2009)
March 11, 2009 at 9:16 am
This is what I would do: create a (temporary) table with postal codes and correct county and area names, and update from there. It will come out like this:
CREATE TABLE...
March 11, 2009 at 7:41 am
I feel like being in Back to the Future... "The time-traveling is just too dangerous. Better that I devote myself to study the other great mystery of the universe: women!"...
March 11, 2009 at 5:59 am
How's the growth of the tempdb and log file? I know we've had several problems with that on jobs.
March 9, 2009 at 8:24 am
Bob Hovious (3/5/2009)
select dateadd(yy,datediff(yy,0,getdate())-5,0)+ N-1
from dbo.tally
where N < datediff(dd,dateadd(yy,datediff(yy,0,getdate())-5,0),getdate())+2
Runs almost a full millisecond faster at 5-10 years. 😉
Pretty...
March 5, 2009 at 7:58 am
If you use both SQL 2000 and 2005 databases, why not use SSMS for all databases? I'm using it too for SQL 2000 (right now working on an upgrade...
March 5, 2009 at 7:53 am
All of the changes are already default or pure textual, except for the fillfactor. And that is only used on creation of the constraint, the fillfactor won't be evaluated dynamically....
March 5, 2009 at 7:41 am
I guess you should put the MyCol2 in a variable and use that in the CONTAINS.
If you want better tested results, you should give some table descriptions, sample data...
March 5, 2009 at 4:58 am
I understand that, since you asked that in your first post. For some reason I like to know why you want this, because you might think there are limitations where...
March 2, 2009 at 6:20 am
If there isn't a relation between TableC and TableA, why would you want to store Aid in TableC?
March 2, 2009 at 5:49 am
Viewing 15 posts - 76 through 90 (of 187 total)