Viewing 15 posts - 3,481 through 3,495 (of 15,381 total)
You need to use a numbers or tally table as the main table in your query. Check out this article on the topic. http://www.sqlservercentral.com/articles/T-SQL/62867/%5B/url%5D
December 10, 2014 at 3:28 pm
TomThomson (12/10/2014)
Incidentally, I wonder whether you think the exponentiation operator is right associative or left associative in your "standard" rules for evaluating numeric expressions?
One thing I would never attempt is...
December 10, 2014 at 3:26 pm
Eirikur Eiriksson (12/10/2014)
December 10, 2014 at 12:42 pm
Eirikur Eiriksson (12/10/2014)
😎
USE tempdb;
GO
SET NOCOUNT ON;
IF OBJECT_ID('dbo.TBL_ROWNUM') IS NOT NULL DROP TABLE dbo.TBL_ROWNUM;
IF OBJECT_ID('dbo.UDF_COUNT_ROWS') IS NOT NULL DROP FUNCTION dbo.UDF_COUNT_ROWS;
DECLARE @COUNT_FUNC NVARCHAR(MAX) = N'
CREATE FUNCTION...
December 10, 2014 at 12:29 pm
TomThomson (12/10/2014)
Sean Lange (12/10/2014)
Can you show me an example of any programming language that does not support the mathematical agreed upon order of operations?
That's rather easy to do. ...
December 10, 2014 at 9:10 am
Yeah it was down for about 15 minutes or so it seems.
December 10, 2014 at 7:41 am
davoscollective (12/10/2014)
Xavon (12/10/2014)
paul.knibbs (12/10/2014)
Emil Bialobrzeski (12/10/2014)
1+1+1+1+1+1+1+1+1+1+1+1x0+1 = ?
most of the answers was 1. So saying Simple may apply differently to...
December 10, 2014 at 7:37 am
JKSQL (12/9/2014)
In the parent the table is a table that has a PK on the guid (non clustered). The table is empty.
the Child...
December 9, 2014 at 3:31 pm
Alan what you posted is almost exactly what I had envisioned. I refrained from posting simply because this seems so much like homework. Let's hope the OP reads this and...
December 9, 2014 at 3:18 pm
JKSQL (12/9/2014)
The stored procedure filled a temp table with the parent objects. If the particular...
December 9, 2014 at 2:51 pm
Port1433 (12/9/2014)
December 9, 2014 at 2:49 pm
DSNOSPAM (12/9/2014)
Sean Lange (12/9/2014)
December 9, 2014 at 9:39 am
cbrammer1219 (12/9/2014)
December 9, 2014 at 8:08 am
Emil Bialobrzeski (12/9/2014)
cbrammer1219 (12/9/2014)
December 9, 2014 at 7:55 am
cbrammer1219 (12/9/2014)
December 9, 2014 at 7:48 am
Viewing 15 posts - 3,481 through 3,495 (of 15,381 total)