I have to finish this project for tomorrow-so I'll Appreciate quick reply.
I need to do reports in my projects. now I've created Data Environment and all that but in the SQL the only thing that work is if I select the entire table from the database. (like "select * from tbl_table" the problem is, I have one Variable that I need from another table(because it appears as a number in table1 and the name is written in table2-and I need the name. so I tried to write "select tbl2_name from tbl2 where tbl1_number=tbl2_number"
well..something like that..
I got here from google so I don't know the rules here or anything..sorry if I did something wrong.
chen12m 0 Newbie Poster
Recommended Answers
Jump to PostWithout a tables' structure, it is hard to give an usefull response.
As I can see, you need an inner join between table1 and table2, something likeselect tbl2_name from tbl2 t2
inner join tbl1 t1 on t1.tbl1_number = t2.tbl2_number
where t1.tbl1_number = anumberIonut
All 3 Replies
Reply to this topic Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.