Viewing 15 posts - 1 through 15 (of 26 total)
Who cares what language the columns names are in? We can't offer much help because we can't see your screen, have no idea what your data structures are like, no...
June 4, 2014 at 12:31 pm
cte1
as
select table2.field1, table2.field2
from table2
where...
--table3.field1 not the same value than table2.field1
cte2
as
select table3.field1, table3.field2
from table3
inner join CTE1
union table3.field2 on CTE1.FIELD2
where ...
select cte1.field1,cte1.field2
from cte1
union all
select cte2.field1,cte2.field2
from cte2
It...
June 4, 2014 at 12:24 pm
I'm not showing my code is because it's so much long and Field are in french.
Basically
I want to select cte1 union all cte2 but cte2 uses cte1 and cte1...
June 4, 2014 at 12:09 pm
Really
So I probably need a new stored procedure !
June 4, 2014 at 11:44 am
-- impossible to do any select on cte except on real table or table variable after I did a insert into because I got (Invalid object name ) when ...
June 4, 2014 at 11:27 am
I know about he "*" it's just a example.
I don't use Cte2 anywhere except to insert into the table variable. Just easier to read and understand to put the long...
June 4, 2014 at 11:04 am
With an alias on table variable I'm able to use it. I just don't know why sql server need an alias to work.
June 4, 2014 at 9:13 am
Sorry it's in a query in french but you got the idea.
here an inline table value function.
basically I check purcharse order, after I check product finish, after product half...
May 20, 2014 at 11:25 am
Hi
I've conditional expression with IIF function and "=" in and view show me error in sql pane.
CTE is fine but I want able to use the query with...
May 16, 2014 at 3:05 pm
while copying my code I see a typo in declaring #table1 into procb. So it's all fine now
thanks
February 12, 2014 at 8:09 am
thanks man !
February 10, 2014 at 2:11 pm
how is working the parameter (N)
mainly this part : ROW_NUMBER() OVER(ORDER BY (SELECT NULL)
row_number is from top ?
over ? never see this
select null ? why null ?
February 10, 2014 at 1:49 pm
thanks for second solution but for the moment I don't understand completely the function
February 10, 2014 at 1:24 pm
Anyway I can't use the recursive function for over 100...
The maximum recursion 100 has been exhausted before statement completion.
February 10, 2014 at 1:22 pm
wow just great
thanks !
I didn't know that you can use recursive cte !
February 10, 2014 at 12:28 pm
Viewing 15 posts - 1 through 15 (of 26 total)