I have three queries.
If the counts returned from the first and second queries are equal
then the third query is executed.
Is it possible to get this information in a single query without
writing a procedure?
Thanks.
SELECT COUNT(*) FROM NAV_DIV_GROUP NDG INNER JOIN EMP_GROUP EG ON
NDG.GROUP_ID=EG .GROUP_ID
WHERE EG.EMP_ID=? AND NDG.NAV_DIV_ID= ?
SELECT GROUP_COUNT FROM NAV_DIV WHERE NAV_DIV_ID=?
SELECT NAV_DIV_ID, NAV_PAGE_ID, COLUMN_NO, POSITION_NO, GROUP_COUNT,
TYPE, BOBLET_NAME, ADMIN_NAME, PATH,
BLURB FROM NAV_DIV WHERE NAV_DIV_ID=?
If the counts returned from the first and second queries are equal
then the third query is executed.
Is it possible to get this information in a single query without
writing a procedure?
Thanks.
SELECT COUNT(*) FROM NAV_DIV_GROUP NDG INNER JOIN EMP_GROUP EG ON
NDG.GROUP_ID=EG .GROUP_ID
WHERE EG.EMP_ID=? AND NDG.NAV_DIV_ID= ?
SELECT GROUP_COUNT FROM NAV_DIV WHERE NAV_DIV_ID=?
SELECT NAV_DIV_ID, NAV_PAGE_ID, COLUMN_NO, POSITION_NO, GROUP_COUNT,
TYPE, BOBLET_NAME, ADMIN_NAME, PATH,
BLURB FROM NAV_DIV WHERE NAV_DIV_ID=?
Comment