Viewing 15 posts - 1,036 through 1,050 (of 1,082 total)
Hi there,
Please could you give the full table structure, when I use your code on my talbe with bother fields as varchar(100) this all seems to work 100%
I'm using SQL2005
Thanks
Chris
August 29, 2007 at 8:34 am
Hi All,
Sorry about this.
It seems that with some further coding and testing that this [!ActiveSchema!] is actually jsut something that needs to be replaced with a real schema...
August 29, 2007 at 6:51 am
Hi Ville,
I am having trouble getting the same results as you!
Please coul dyou let me knwo the code behind [dbo].[DateToStr]?
Thanks
Chris
August 29, 2007 at 2:31 am
how are you creating your queries?
Can you not just type the code into the query window?
August 27, 2007 at 8:38 am
UPDATE t1
SET t1.Field = t2.field
FROM Table1 t1
INNER JOIN Table2 t2
on t1.PKField = t2.FKField
That should work
August 27, 2007 at 8:15 am
Hi there,
Are you sure that the data that is being selected from now is not different?
that error normally means that you are trying to assign multiple values to a single...
August 27, 2007 at 6:53 am
Hi There,
Will this do the trick?
SELECT COUNT(*)
FROM (SELECT DISTINCT ID_NR,ID_NR_p,KZ FROM dbo.Table WHERE KZ ='V') [nest]
August 14, 2007 at 2:29 am
what about this:
SELECT COUNT(*)
FROM
WHERE KZ='z'
taht will give you a result of 3
August 14, 2007 at 2:00 am
Hi There,
Try this.
SELECT ID_NR,COUNT(*)
FROM
WHERE KZ='z'
GROUP BY ID_NR
Thanks
Chris
August 14, 2007 at 1:48 am
Hi there,
What you could do is create a table that holds all the holidays for you company(don't need to include week-ends).
Then you can right a query that does a dateDiff...
August 13, 2007 at 3:18 am
That will be hard to do without know exactly what it is yu are trying to achieve through your query.
I'm sure the logic behind why you want to group by...
August 8, 2007 at 8:16 am
There are various ways.
For example try using subqueries(performance must be kept in mind here)
Also try using table Variables r temp tables to break down your results tehn join them at...
August 8, 2007 at 8:07 am
HI Mark,
Just remember that the more fields that you are grouping by will normally mean more rows being returned because of the un-unqueness of the rows.
Does that make sense?
August 8, 2007 at 7:52 am
IS the problem with your result set or are you getting an actual error?
August 8, 2007 at 7:02 am
Viewing 15 posts - 1,036 through 1,050 (of 1,082 total)