Viewing 4 posts - 1 through 4 (of 4 total)
The first one doesn't return anything, but the last one (ignoring the name space) it's OK. I'll use that.
Thank you very much
June 8, 2020 at 8:40 am
you're right, it's not very clear...it could be a dynamic query that does a join only for a value of id_obj.
I don't know how to write a dynamic query ,for...
May 21, 2020 at 4:06 pm
no, because the primary key is id_obj , category
I could have the same id_obj with 2 different categories. So, for the category 1 I have to do join with a...
May 20, 2020 at 8:31 pm
CREATE TABLE #An_Obj
(id_obj nvarchar(5),
id_category int)
CREATE TABLE #JoinTable
(
id_category int,
dbjoin nvarchar(50),
schemajoin nvarchar(50),
tablejoin nvarchar(50),
fieldjoin nvarchar(50)
)
insert into #An_Obj values ('a1',1)
insert into #An_Obj values ('b2',2)
insert into #JoinTable values (1,'mydb','dbo','db_a','id_a')
insert into...
May 20, 2020 at 4:45 pm
Viewing 4 posts - 1 through 4 (of 4 total)
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy