it is very difficult to answer you these questions on your pseudo code - the first query is syntax whise incorrect as columns names are missing. Not a big deal but it means it is manual pseudo code and you could have changed things buy writing it.
You would need to share the whole DDLs and SQL to get good answers.
it is very difficult to answer you these questions on your pseudo code - the first query is syntax whise incorrect as columns names are missing. Not a big deal but it means it is manual pseudo code and you could have changed things buy writing it.
You would need to share the whole DDLs and SQL to get good answers.