Viewing 15 posts - 1,081 through 1,095 (of 6,486 total)
What are you hoping to use this for? It vaguely looks like a pivot table to total things up by date, or some kind of running total. Am...
February 14, 2012 at 10:27 am
ACtually - using an ORDER BY during the insert would guarantee the ID's be generated in the correct order. Conor Cunningham confirmed that to be true a long while...
February 14, 2012 at 8:53 am
PaulB-TheOneAndOnly (2/11/2012)
Rowles (2/10/2012)
February 13, 2012 at 11:33 am
Steve Jones - SSC Editor (2/13/2012)
Jeff Moden (2/12/2012)
February 13, 2012 at 10:19 am
Here's about as simple as it gets:
select
phone.value('(NUMBER)[1]', 'VARCHAR(40)' ),
...
February 10, 2012 at 6:15 pm
Try this one on. You'll find more info on how to set the inline XML queries up in the W3C xquery examples
declare @xmlstr XML
set @xmlstr=cast(@str as XML);
select item.value('(var[./@name="ITEMID"]/number)[1]','float')...
February 10, 2012 at 6:02 pm
The issue is that you're repeating sequences of nodes (i.e NUMBER and TYPE) without encapsulating them, so the querying is reasonably ugly. If you were to add the PHONE...
February 10, 2012 at 3:49 pm
Have you looked at computed columns to render the contents of the CASE? They all look to be deterministic calculations, so you could even include the "post-calc" values in...
February 10, 2012 at 12:06 pm
This also might be a way to capture this. SQL Server triggers system events based on firing or executing procedures. You can use SQL Server (event) Broker to...
February 9, 2012 at 3:30 pm
AS400 is a midrange operating system (think mainframe). You're not going to be able to hook up to it directly because it has a very different file structure (and...
February 6, 2012 at 2:48 pm
mmiller 85218 (2/6/2012)
J Livingston SQL (2/6/2012)
mmiller 85218 (2/6/2012)
Sean Lange (2/6/2012)
J Livingston SQL (2/6/2012)
4 type of Colour
3 type of Size
5 type of Flavour
2*4*3*5 = 120 combinations
though...
February 6, 2012 at 12:40 pm
CELKO (2/1/2012)
COALESCE...
February 1, 2012 at 8:58 pm
Question still is - why would you WANT to? As in - why would you not use the best and most obvious methods?
Knowing the structure doesn't hurt, but having...
February 1, 2012 at 11:13 am
GSquared (1/30/2012)
Matt Miller (#4) (1/27/2012)
January 30, 2012 at 1:36 pm
Jeff Moden (1/30/2012)
It uses the MODULO function (% operator) which simply returns the remainder of a division. Try running just Amount %...
January 30, 2012 at 12:03 pm
Viewing 15 posts - 1,081 through 1,095 (of 6,486 total)