tsql - how to find record count mismatch in a stored procedure in sql server 2008 R2? -


2 stored procedures developed .net developers. giving same record counts when pass same parameter?

now due changes , getting mismatch record count i.e

if first stored procedure giving 2 records paramemter , second sp giving 1 record.

to find followed approach verified

  1. i counted total records of table after joining
  2. total tables used in joining 3.distinct / group used in 2 tables or not?

finally not able find issue.

how fix it?

could body share ideas.

thanks in advance?

assuming same joins , filters, problem nulls.

that is, either

  • a clause has direct null comparison fail
  • a count on nullable column. see count(*) vs count(1) more

either way, why have same similar stored procedures written 2 different developers, appear have differences?


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

javascript - Clean way to programmatically use CSS transitions from JS? -

android - send complex objects as post php java -