Carlosdl
29820 pts. | Jul 28 2009 8:56PM GMT
What database are you using ?
Do you want to do this with pure SQL, or would you use a stored procedure if needed ?
For each part number, is it not possible to have more than one record with null division ?
Broeren79
100 pts. | Jul 29 2009 6:30AM GMT
Hi, Thanks for your reply.
I am using the production database for our ERP system. Let’s call it “DUMMY”.
I need it in pure SQL, since I need to join the result with another query. The result is for reporting purposes. The table itself should not undergo any changes.
Carlosdl
29820 pts. | Jul 29 2009 1:05PM GMT
Thanks Broeren.
By “what database” I meant, what RDBMS (i.e. Oracle, SQL Server, etc…)are you using ?
Broeren79
100 pts. | Jul 31 2009 10:20AM GMT
Sorry, misunderstood your question. i am working with sql2005.
Broeren79
100 pts. | Aug 24 2009 6:35AM GMT
perhaps i have not mentioned it clear enough. I can not make updates or changes to the database, since it is a database belonging to an external erp-system, and support will be void if changes to the database structure is made. Thus i simply need a select-type query that retrieves the info….
Carlosdl
29820 pts. | Aug 25 2009 2:54PM GMT
Could you please clarify if any of the suggested solutions is suitable for you ?
Broeren79
100 pts. | Aug 26 2009 7:05AM GMT
i think the solution with creating the “bogus”-table might work, if I change it into a view.
That’ll allow me to join it to the rest of the query without making changes to the table structure.
Thanks you all!






