use xml for complex sql query
use xml for complex sql query