SQL LanguageSQL Language discussions not specific to a particular RDBMS program or vendor.
Welcome to the p2p.wrox.com Forums.
You are currently viewing the SQL Language section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
I have troubles in doing SQL request comparison. I need to know if 2 sql request are equal. I think I need some logical language as Isabelle/HOL to find if 2 SQL request do the same result...
the syntaxical and grammatical analysis are not enough because 2 different request can give the same result. Moreover 2 requests can give the same results for a set of data and can give different result for another set of data... so comparing the request or their results in not enaugh to say that two requests are the same...
does anyone know how I can do this any tips to help me?
UNION and INTERSECT are SQL 92 compliant, I don't know about MINUS though. There is a SQL 92 compliant way of doing it but I am not sure if MINUS is the appropiate one, it might be though.