Viewing 15 posts - 5,911 through 5,925 (of 10,144 total)
tantcu (8/13/2012)
I'm creating two temporary table from a query:
SELECT
branch_description
,qty_order
,current_open_orders
.....
These 2 tables has the same column as branch description. Is there a way that I...
August 14, 2012 at 3:49 am
kgillispie (8/13/2012)
I am running the below query but I end up with...
August 14, 2012 at 2:20 am
L' Eomot Inversé (8/13/2012)
ChrisM@Work (8/13/2012)
Ray K (8/13/2012)
mehMeths
Wood alcohol
Possibly, depends on how much.
August 13, 2012 at 9:37 am
sradez_DBA (8/13/2012)
They are not searching the Database from the UI.The search is on the files.
It will be very interesting to see how this approach compares with the more conventional one,...
August 13, 2012 at 9:35 am
Eugene Elutin (8/13/2012)
...
Same here. Experience takes precedence over theory.
...
Actually, you wouldn't even need a lot of experience to choose surrogate PK over natural key. Use common sense or apply...
August 13, 2012 at 9:24 am
sradez_DBA (8/13/2012)
Thanks for the reply.
Our project involves storing the every detail of a product(example).When the users search for the product from the UI, they get this file which has...
August 13, 2012 at 9:04 am
carl6885 (8/12/2012)
SELECT tblErrors_ER.ErrorID, CASE WHEN Count(tblPolicyNumbers_ER.PolicyNumber) = 1 THEN MIN(tblPolicyNumbers_ER.PolicyNumber) ELSE 'Multiple' END
FROM tblErrors_ER
INNER JOIN tblPolicyNumbers_ER ON
tblErrors_ER.ErrorID = tblPolicyNumbers_ER.ErrorID
GROUP BY...
August 13, 2012 at 8:08 am
Lynn Pettis (8/10/2012)
I like the idea of having a sid (a surrogate id) on my tables, even if I do have a natural key that can serve as a primary...
August 13, 2012 at 7:42 am
Jeff Moden (8/10/2012)
August 13, 2012 at 7:11 am
SELECT *
FROM #Temp t
CROSS APPLY (
SELECT AVGfield3 = AVG(field3*1.00) FROM #Temp s
WHERE s.field2 = t.field2
AND s.field1 IN ( t.field1, DATEADD(YY, -1, t.field1), DATEADD(YY, -2, t.field1) )
) x
August 13, 2012 at 4:10 am
Here's another way:
declare @cattyp varchar(3) = 'cri'
SELECT a.alid,
a.cattyp,
a.altitle,
...
August 13, 2012 at 3:32 am
Lowell (8/7/2012)
August 13, 2012 at 2:46 am
Cadavre (8/3/2012)
shahsn11 (8/3/2012)
Hi,How will i reverse the number in SQL Server with out using reverse()
Is this an intellectual challenge? Because otherwise, use reverse().
I guess you could do something like...
August 3, 2012 at 5:27 am
shahsn11 (8/3/2012)
Hi,How will i reverse the number in SQL Server with out using reverse()
Why don't you want to use reverse() ?
August 3, 2012 at 5:04 am
Viewing 15 posts - 5,911 through 5,925 (of 10,144 total)